Struct semantic_analyzer::ast::StructTypes
source · pub struct StructTypes<'a> {
pub name: Ident<'a>,
pub attributes: Vec<StructType<'a>>,
}
Fields§
§name: Ident<'a>
§attributes: Vec<StructType<'a>>
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 copy 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<StructTypes<'a>> for StructTypes<'a>
impl<'a> PartialEq<StructTypes<'a>> for StructTypes<'a>
source§fn eq(&self, other: &StructTypes<'a>) -> bool
fn eq(&self, other: &StructTypes<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> StructuralPartialEq for StructTypes<'a>
Auto Trait Implementations§
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