pub struct StructDecl {
pub attrs: Vec<Attribute>,
pub name: Ident,
pub is_pub: bool,
pub fields: Vec<FieldDecl>,
pub span: Span,
}Expand description
struct Name { fields... }, optionally pub (spec 4.1). Whether a
field is visible follows the same rule as everything else (spec 3.2):
see FieldDecl::is_pub.
Fields§
§attrs: Vec<Attribute>§name: Ident§is_pub: bool§fields: Vec<FieldDecl>§span: SpanTrait Implementations§
Source§impl Clone for StructDecl
impl Clone for StructDecl
Source§impl Debug for StructDecl
impl Debug for StructDecl
Source§impl PartialEq for StructDecl
impl PartialEq for StructDecl
impl StructuralPartialEq for StructDecl
Auto Trait Implementations§
impl Freeze for StructDecl
impl RefUnwindSafe for StructDecl
impl Send for StructDecl
impl Sync for StructDecl
impl Unpin for StructDecl
impl UnsafeUnpin for StructDecl
impl UnwindSafe for StructDecl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more