Struct swc_ecma_ast::Constructor
source · [−]pub struct Constructor {
pub span: Span,
pub key: PropName,
pub params: Vec<ParamOrTsParamProp>,
pub body: Option<BlockStmt>,
pub accessibility: Option<Accessibility>,
pub is_optional: bool,
}
Fields
span: Span
key: PropName
params: Vec<ParamOrTsParamProp>
body: Option<BlockStmt>
accessibility: Option<Accessibility>
is_optional: bool
Trait Implementations
sourceimpl Clone for Constructor
impl Clone for Constructor
sourcefn clone(&self) -> Constructor
fn clone(&self) -> Constructor
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 Constructor
impl Debug for Constructor
sourceimpl<'de> Deserialize<'de> for Constructor
impl<'de> Deserialize<'de> for Constructor
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 Constructor
impl EqIgnoreSpan for Constructor
fn eq_ignore_span(&self, other: &Self) -> bool
sourceimpl From<Constructor> for ClassMember
impl From<Constructor> for ClassMember
sourcefn from(v: Constructor) -> Self
fn from(v: Constructor) -> Self
Converts to this type from the input type.
sourceimpl Hash for Constructor
impl Hash for Constructor
sourceimpl PartialEq<Constructor> for Constructor
impl PartialEq<Constructor> for Constructor
sourcefn eq(&self, other: &Constructor) -> bool
fn eq(&self, other: &Constructor) -> bool
sourceimpl Serialize for Constructor
impl Serialize for Constructor
sourceimpl Spanned for Constructor
impl Spanned for Constructor
impl Eq for Constructor
impl StructuralEq for Constructor
impl StructuralPartialEq for Constructor
Auto Trait Implementations
impl RefUnwindSafe for Constructor
impl Send for Constructor
impl Sync for Constructor
impl Unpin for Constructor
impl UnwindSafe for Constructor
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