Struct xlang_syntax::ast::Struct
source · [−]pub struct Struct<'input> {
pub loc: Loc,
pub publ: bool,
pub name: Ident<'input>,
pub members: Vec<StructMember<'input>>,
}Expand description
A struct declaration.
Fields
loc: Locpubl: boolname: Ident<'input>members: Vec<StructMember<'input>>Implementations
Trait Implementations
sourceimpl<'input> PartialEq<Struct<'input>> for Struct<'input>
impl<'input> PartialEq<Struct<'input>> for Struct<'input>
impl<'input> StructuralPartialEq for Struct<'input>
Auto Trait Implementations
impl<'input> RefUnwindSafe for Struct<'input>
impl<'input> Send for Struct<'input>
impl<'input> Sync for Struct<'input>
impl<'input> Unpin for Struct<'input>
impl<'input> UnwindSafe for Struct<'input>
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