Struct swc_ecma_ast::TsParamProp
source · [−]pub struct TsParamProp {
pub span: Span,
pub decorators: Vec<Decorator>,
pub accessibility: Option<Accessibility>,
pub is_override: bool,
pub readonly: bool,
pub param: TsParamPropParam,
}
Fields
span: Span
decorators: Vec<Decorator>
accessibility: Option<Accessibility>
At least one of accessibility
or readonly
must be set.
is_override: bool
readonly: bool
param: TsParamPropParam
Trait Implementations
sourceimpl Clone for TsParamProp
impl Clone for TsParamProp
sourcefn clone(&self) -> TsParamProp
fn clone(&self) -> TsParamProp
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TsParamProp
impl Debug for TsParamProp
sourceimpl<'de> Deserialize<'de> for TsParamProp
impl<'de> Deserialize<'de> for TsParamProp
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl EqIgnoreSpan for TsParamProp
impl EqIgnoreSpan for TsParamProp
fn eq_ignore_span(&self, other: &Self) -> bool
sourceimpl From<TsParamProp> for ParamOrTsParamProp
impl From<TsParamProp> for ParamOrTsParamProp
sourcefn from(v: TsParamProp) -> Self
fn from(v: TsParamProp) -> Self
Converts to this type from the input type.
sourceimpl Hash for TsParamProp
impl Hash for TsParamProp
sourceimpl PartialEq<TsParamProp> for TsParamProp
impl PartialEq<TsParamProp> for TsParamProp
sourcefn eq(&self, other: &TsParamProp) -> bool
fn eq(&self, other: &TsParamProp) -> bool
sourceimpl Serialize for TsParamProp
impl Serialize for TsParamProp
sourceimpl Spanned for TsParamProp
impl Spanned for TsParamProp
impl Eq for TsParamProp
impl StructuralEq for TsParamProp
impl StructuralPartialEq for TsParamProp
Auto Trait Implementations
impl RefUnwindSafe for TsParamProp
impl Send for TsParamProp
impl Sync for TsParamProp
impl Unpin for TsParamProp
impl UnwindSafe for TsParamProp
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more