pub struct StructureDeclaration {
pub name: String,
pub attributes: Vec<Attribute>,
pub modifiers: Vec<String>,
pub members: Vec<Member>,
pub span: Range<usize>,
}Expand description
Structure declaration.
Fields§
§name: StringThe name of the structure.
attributes: Vec<Attribute>Attributes applied to the structure.
modifiers: Vec<String>Modifiers like Public, Private.
members: Vec<Member>Members of the structure.
span: Range<usize>Source location of the structure declaration.
Trait Implementations§
Source§impl Clone for StructureDeclaration
impl Clone for StructureDeclaration
Source§fn clone(&self) -> StructureDeclaration
fn clone(&self) -> StructureDeclaration
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 StructureDeclaration
impl Debug for StructureDeclaration
Source§impl<'de> Deserialize<'de> for StructureDeclaration
impl<'de> Deserialize<'de> for StructureDeclaration
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 StructureDeclaration
impl PartialEq for StructureDeclaration
Source§impl Serialize for StructureDeclaration
impl Serialize for StructureDeclaration
impl StructuralPartialEq for StructureDeclaration
Auto Trait Implementations§
impl Freeze for StructureDeclaration
impl RefUnwindSafe for StructureDeclaration
impl Send for StructureDeclaration
impl Sync for StructureDeclaration
impl Unpin for StructureDeclaration
impl UnsafeUnpin for StructureDeclaration
impl UnwindSafe for StructureDeclaration
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