Struct semantic_analyzer::ast::StructType
source · pub struct StructType<'a> {
pub attr_name: Ident<'a>,
pub attr_type: Type<'a>,
}
Fields§
§attr_name: Ident<'a>
§attr_type: Type<'a>
Trait Implementations§
source§impl<'a> Clone for StructType<'a>
impl<'a> Clone for StructType<'a>
source§fn clone(&self) -> StructType<'a>
fn clone(&self) -> StructType<'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 StructType<'a>
impl<'a> Debug for StructType<'a>
source§impl From<StructType<'_>> for StructType
impl From<StructType<'_>> for StructType
source§fn from(value: StructType<'_>) -> Self
fn from(value: StructType<'_>) -> Self
Converts to this type from the input type.
source§impl<'a> PartialEq<StructType<'a>> for StructType<'a>
impl<'a> PartialEq<StructType<'a>> for StructType<'a>
source§fn eq(&self, other: &StructType<'a>) -> bool
fn eq(&self, other: &StructType<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> StructuralPartialEq for StructType<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for StructType<'a>
impl<'a> Send for StructType<'a>
impl<'a> Sync for StructType<'a>
impl<'a> Unpin for StructType<'a>
impl<'a> UnwindSafe for StructType<'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