pub struct ResolvedStructType {
pub name: ResolvedNode,
pub assigned_name: String,
pub anon_struct_type: ResolvedAnonymousStructType,
pub functions: SeqMap<String, ResolvedFunctionRef>,
}
Fields§
§name: ResolvedNode
§assigned_name: String
§anon_struct_type: ResolvedAnonymousStructType
§functions: SeqMap<String, ResolvedFunctionRef>
Implementations§
Source§impl ResolvedStructType
impl ResolvedStructType
pub fn new( name: ResolvedNode, assigned_name: &str, anon_struct_type: ResolvedAnonymousStructType, ) -> Self
pub fn field_index(&self, field_name: &str) -> Option<usize>
pub fn name(&self) -> &ResolvedNode
pub fn add_external_member_function( &mut self, external_func: ResolvedExternalFunctionDefinitionRef, ) -> Result<(), SeqMapError>
pub fn get_member_function( &self, function_name: &str, ) -> Option<&ResolvedFunctionRef>
pub fn get_internal_member_function( &self, function_name: &str, ) -> Option<ResolvedInternalFunctionDefinitionRef>
Trait Implementations§
Source§impl Debug for ResolvedStructType
impl Debug for ResolvedStructType
Source§impl PartialEq for ResolvedStructType
impl PartialEq for ResolvedStructType
impl Eq for ResolvedStructType
impl StructuralPartialEq 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