pub struct NamedStructType {
pub name: Node,
pub assigned_name: String,
pub anon_struct_type: AnonymousStructType,
pub type_id: TypeNumber,
}
Fields§
§name: Node
§assigned_name: String
§anon_struct_type: AnonymousStructType
§type_id: TypeNumber
Implementations§
Source§impl NamedStructType
impl NamedStructType
pub fn new( name: Node, assigned_name: &str, anon_struct_type: AnonymousStructType, type_id: TypeNumber, ) -> Self
pub fn field_index(&self, field_name: &str) -> Option<usize>
pub fn name(&self) -> &Node
Trait Implementations§
Source§impl Debug for NamedStructType
impl Debug for NamedStructType
Source§impl PartialEq for NamedStructType
impl PartialEq for NamedStructType
impl Eq for NamedStructType
impl StructuralPartialEq for NamedStructType
Auto Trait Implementations§
impl Freeze for NamedStructType
impl !RefUnwindSafe for NamedStructType
impl !Send for NamedStructType
impl !Sync for NamedStructType
impl Unpin for NamedStructType
impl !UnwindSafe for NamedStructType
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