pub struct StructDecl {
pub name: String,
pub fields: Vec<Field>,
pub span: Span,
}Expand description
a struct declaration: a name and its typed fields, in declaration order.
Fields§
§name: Stringthe struct’s name.
fields: Vec<Field>the fields, in declaration order.
span: Spanstruct keyword to closing }.
Trait Implementations§
Source§impl Clone for StructDecl
impl Clone for StructDecl
Source§fn clone(&self) -> StructDecl
fn clone(&self) -> StructDecl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StructDecl
impl Debug for StructDecl
Source§impl PartialEq for StructDecl
impl PartialEq for StructDecl
Source§fn eq(&self, other: &StructDecl) -> bool
fn eq(&self, other: &StructDecl) -> bool
Tests for
self and other values to be equal, and is used by ==.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