pub struct StructDecl {
pub span: Span,
pub name: String,
pub fields: Vec<StructFieldDecl>,
}Expand description
One user-defined structure declaration.
Fields§
§span: SpanSource span covering the whole declaration.
name: StringStructure name.
fields: Vec<StructFieldDecl>Field declarations in source order.
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 · 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<'de> Deserialize<'de> for StructDecl
impl<'de> Deserialize<'de> for StructDecl
Source§fn 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
Source§impl PartialEq for StructDecl
impl PartialEq for StructDecl
Source§impl Serialize for StructDecl
impl Serialize 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