pub struct EnumType {
pub name: Node,
pub assigned_name: String,
pub module_path: Vec<String>,
pub variants: SeqMap<String, EnumVariantType>,
pub instantiated_type_parameters: Vec<Type>,
}Fields§
§name: Node§assigned_name: String§module_path: Vec<String>§variants: SeqMap<String, EnumVariantType>§instantiated_type_parameters: Vec<Type>Implementations§
Source§impl EnumType
impl EnumType
pub fn new(name: Node, assigned_name: &str, module_path: Vec<String>) -> Self
pub const fn name(&self) -> &Node
pub fn get_variant(&self, name: &str) -> Option<&EnumVariantType>
pub fn are_all_variants_with_blittable_payload(&self) -> bool
pub fn get_variant_from_index(&self, index: usize) -> Option<&EnumVariantType>
Trait Implementations§
impl Eq for EnumType
impl StructuralPartialEq for EnumType
Auto Trait Implementations§
impl Freeze for EnumType
impl RefUnwindSafe for EnumType
impl !Send for EnumType
impl !Sync for EnumType
impl Unpin for EnumType
impl UnwindSafe for EnumType
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