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