pub struct ResolvedStructType {
pub number: TypeNumber,
pub module_path: ModulePath,
pub fields: SeqMap<IdentifierName, ResolvedType>,
pub name: LocalTypeIdentifier,
pub ast_struct: StructType,
pub functions: SeqMap<IdentifierName, ResolvedFunctionRef>,
}
Fields§
§number: TypeNumber
§module_path: ModulePath
§fields: SeqMap<IdentifierName, ResolvedType>
§name: LocalTypeIdentifier
§ast_struct: StructType
§functions: SeqMap<IdentifierName, ResolvedFunctionRef>
Implementations§
Source§impl ResolvedStructType
impl ResolvedStructType
pub fn new( module_path: ModulePath, name: LocalTypeIdentifier, fields: SeqMap<IdentifierName, ResolvedType>, ast_struct: StructType, number: TypeNumber, ) -> Self
pub fn field_index(&self, field_name: &LocalIdentifier) -> Option<usize>
pub fn get_internal_member( &self, name: IdentifierName, ) -> Option<ResolvedInternalFunctionDefinitionRef>
pub fn name(&self) -> &LocalTypeIdentifier
Trait Implementations§
Source§impl Debug for ResolvedStructType
impl Debug for ResolvedStructType
Auto Trait Implementations§
impl Freeze for ResolvedStructType
impl !RefUnwindSafe for ResolvedStructType
impl !Send for ResolvedStructType
impl !Sync for ResolvedStructType
impl Unpin for ResolvedStructType
impl !UnwindSafe for ResolvedStructType
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