pub struct StructType {
pub name: Node,
pub assigned_name: String,
pub anon_struct_type: AnonymousStructType,
pub functions: SeqMap<String, FunctionRef>,
}
Fields§
§name: Node
§assigned_name: String
§anon_struct_type: AnonymousStructType
§functions: SeqMap<String, FunctionRef>
Implementations§
Source§impl StructType
impl StructType
pub fn new( name: Node, assigned_name: &str, anon_struct_type: AnonymousStructType, ) -> Self
pub fn field_index(&self, field_name: &str) -> Option<usize>
pub fn name(&self) -> &Node
pub fn add_external_member_function( &mut self, external_func: ExternalFunctionDefinitionRef, ) -> Result<(), SeqMapError>
pub fn get_member_function(&self, function_name: &str) -> Option<&FunctionRef>
pub fn get_internal_member_function( &self, function_name: &str, ) -> Option<InternalFunctionDefinitionRef>
Trait Implementations§
Source§impl Debug for StructType
impl Debug for StructType
Source§impl PartialEq for StructType
impl PartialEq for StructType
impl Eq for StructType
impl StructuralPartialEq for StructType
Auto Trait Implementations§
impl Freeze for StructType
impl !RefUnwindSafe for StructType
impl !Send for StructType
impl !Sync for StructType
impl Unpin for StructType
impl !UnwindSafe for StructType
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