pub enum StructType<'ctx> {
NamedStruct(NamedStructType<'ctx>),
LiteralStruct(LiteralStructType<'ctx>),
}Expand description
Could either be named or a literal
Variants§
NamedStruct(NamedStructType<'ctx>)
LiteralStruct(LiteralStructType<'ctx>)
Implementations§
Trait Implementations§
Source§impl<'ctx> Clone for StructType<'ctx>
impl<'ctx> Clone for StructType<'ctx>
Source§fn clone(&self) -> StructType<'ctx>
fn clone(&self) -> StructType<'ctx>
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<'ctx> Debug for StructType<'ctx>
impl<'ctx> Debug for StructType<'ctx>
Source§impl<'ctx> Hash for StructType<'ctx>
impl<'ctx> Hash for StructType<'ctx>
Source§impl<'ctx> PartialEq for StructType<'ctx>
impl<'ctx> PartialEq for StructType<'ctx>
Source§impl<'ctx> StructTypeTrait<'ctx> for StructType<'ctx>
impl<'ctx> StructTypeTrait<'ctx> for StructType<'ctx>
Source§fn num_element_types(&self) -> usize
fn num_element_types(&self) -> usize
Get the number of element types in the Struct
Source§fn element_types(&self) -> Vec<Type<'ctx>>
fn element_types(&self) -> Vec<Type<'ctx>>
Get the element types in vector
impl<'ctx> Copy for StructType<'ctx>
impl<'ctx> Eq for StructType<'ctx>
impl<'ctx> StructuralPartialEq for StructType<'ctx>
Auto Trait Implementations§
impl<'ctx> Freeze for StructType<'ctx>
impl<'ctx> RefUnwindSafe for StructType<'ctx>
impl<'ctx> Send for StructType<'ctx>
impl<'ctx> Sync for StructType<'ctx>
impl<'ctx> Unpin for StructType<'ctx>
impl<'ctx> UnwindSafe for StructType<'ctx>
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