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