pub struct ResolvedEnumType {
pub name: ResolvedLocalTypeIdentifier,
pub assigned_name: String,
pub module_path: Vec<String>,
pub number: TypeNumber,
pub variants: SeqMap<String, ResolvedEnumVariantTypeRef>,
}
Fields§
§name: ResolvedLocalTypeIdentifier
§assigned_name: String
§module_path: Vec<String>
§number: TypeNumber
§variants: SeqMap<String, ResolvedEnumVariantTypeRef>
Implementations§
Source§impl ResolvedEnumType
impl ResolvedEnumType
pub fn new( name: ResolvedLocalTypeIdentifier, assigned_name: &str, module_path: Vec<String>, number: TypeNumber, ) -> Self
pub fn name(&self) -> &ResolvedLocalTypeIdentifier
pub fn get_variant(&self, name: &str) -> Option<&ResolvedEnumVariantTypeRef>
pub fn get_variant_from_index( &self, index: usize, ) -> Option<&ResolvedEnumVariantTypeRef>
Trait Implementations§
Source§impl Debug for ResolvedEnumType
impl Debug for ResolvedEnumType
Source§impl PartialEq for ResolvedEnumType
impl PartialEq for ResolvedEnumType
impl Eq for ResolvedEnumType
impl StructuralPartialEq for ResolvedEnumType
Auto Trait Implementations§
impl Freeze for ResolvedEnumType
impl !RefUnwindSafe for ResolvedEnumType
impl !Send for ResolvedEnumType
impl !Sync for ResolvedEnumType
impl Unpin for ResolvedEnumType
impl !UnwindSafe for ResolvedEnumType
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