Struct swc_ecma_ast::ObjectPat
source · [−]pub struct ObjectPat {
pub span: Span,
pub props: Vec<ObjectPatProp>,
pub optional: bool,
pub type_ann: Option<Box<TsTypeAnn>>,
}
Fields
span: Span
props: Vec<ObjectPatProp>
optional: bool
Only in an ambient context
type_ann: Option<Box<TsTypeAnn>>
Trait Implementations
sourceimpl<'de> Deserialize<'de> for ObjectPat
impl<'de> Deserialize<'de> for ObjectPat
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 ObjectPat
impl EqIgnoreSpan for ObjectPat
fn eq_ignore_span(&self, other: &Self) -> bool
impl Eq for ObjectPat
impl StructuralEq for ObjectPat
impl StructuralPartialEq for ObjectPat
Auto Trait Implementations
impl RefUnwindSafe for ObjectPat
impl Send for ObjectPat
impl Sync for ObjectPat
impl Unpin for ObjectPat
impl UnwindSafe for ObjectPat
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