pub struct TypeDefinitionStmt {
pub name: String,
pub fields: Vec<(String, TypeId)>,
pub location: Location,
}
Expand description
A type definition statement (like struct)
Fields§
§name: String
Name of the defined type
fields: Vec<(String, TypeId)>
Fields of the type with their names and types
location: Location
Source code location information
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TypeDefinitionStmt
impl RefUnwindSafe for TypeDefinitionStmt
impl Send for TypeDefinitionStmt
impl Sync for TypeDefinitionStmt
impl Unpin for TypeDefinitionStmt
impl UnwindSafe for TypeDefinitionStmt
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