Struct swc_ecma_ast::PrivateProp
source · [−]pub struct PrivateProp {
pub span: Span,
pub key: PrivateName,
pub value: Option<Box<Expr>>,
pub type_ann: Option<Box<TsTypeAnn>>,
pub is_static: bool,
pub decorators: Vec<Decorator>,
pub accessibility: Option<Accessibility>,
pub is_optional: bool,
pub is_override: bool,
pub readonly: bool,
pub definite: bool,
}
Fields
span: Span
key: PrivateName
value: Option<Box<Expr>>
type_ann: Option<Box<TsTypeAnn>>
is_static: bool
decorators: Vec<Decorator>
accessibility: Option<Accessibility>
Typescript extension.
is_optional: bool
is_override: bool
readonly: bool
definite: bool
Trait Implementations
sourceimpl Clone for PrivateProp
impl Clone for PrivateProp
sourcefn clone(&self) -> PrivateProp
fn clone(&self) -> PrivateProp
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 PrivateProp
impl Debug for PrivateProp
sourceimpl<'de> Deserialize<'de> for PrivateProp
impl<'de> Deserialize<'de> for PrivateProp
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 PrivateProp
impl EqIgnoreSpan for PrivateProp
fn eq_ignore_span(&self, other: &Self) -> bool
sourceimpl From<PrivateProp> for ClassMember
impl From<PrivateProp> for ClassMember
sourcefn from(v: PrivateProp) -> Self
fn from(v: PrivateProp) -> Self
Converts to this type from the input type.
sourceimpl Hash for PrivateProp
impl Hash for PrivateProp
sourceimpl PartialEq<PrivateProp> for PrivateProp
impl PartialEq<PrivateProp> for PrivateProp
sourcefn eq(&self, other: &PrivateProp) -> bool
fn eq(&self, other: &PrivateProp) -> bool
sourceimpl Serialize for PrivateProp
impl Serialize for PrivateProp
sourceimpl Spanned for PrivateProp
impl Spanned for PrivateProp
impl Eq for PrivateProp
impl StructuralEq for PrivateProp
impl StructuralPartialEq for PrivateProp
Auto Trait Implementations
impl RefUnwindSafe for PrivateProp
impl Send for PrivateProp
impl Sync for PrivateProp
impl Unpin for PrivateProp
impl UnwindSafe for PrivateProp
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