pub struct StructTypes<'a> {
pub name: Ident<'a>,
pub attributes: Vec<StructType<'a>>,
}
Expand description
StructTypes
struct type element of AST.
Basic entity to declare struct complex types and its attributes.
Fields§
§name: Ident<'a>
Struct type name
attributes: Vec<StructType<'a>>
Struct type attributes
Trait Implementations§
Source§impl<'a> Clone for StructTypes<'a>
impl<'a> Clone for StructTypes<'a>
Source§fn clone(&self) -> StructTypes<'a>
fn clone(&self) -> StructTypes<'a>
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<'a> Debug for StructTypes<'a>
impl<'a> Debug for StructTypes<'a>
Source§impl From<StructTypes<'_>> for StructTypes
impl From<StructTypes<'_>> for StructTypes
Source§fn from(value: StructTypes<'_>) -> Self
fn from(value: StructTypes<'_>) -> Self
Converts to this type from the input type.
Source§impl GetLocation for StructTypes<'_>
impl GetLocation for StructTypes<'_>
fn location(&self) -> CodeLocation
Source§impl<'a> PartialEq for StructTypes<'a>
impl<'a> PartialEq for StructTypes<'a>
impl<'a> StructuralPartialEq for StructTypes<'a>
Auto Trait Implementations§
impl<'a> Freeze for StructTypes<'a>
impl<'a> RefUnwindSafe for StructTypes<'a>
impl<'a> Send for StructTypes<'a>
impl<'a> Sync for StructTypes<'a>
impl<'a> Unpin for StructTypes<'a>
impl<'a> UnwindSafe for StructTypes<'a>
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