pub struct Struct {
pub name: String,
pub fields: Vec<StructField>,
pub generics: Vec<Type>,
}
Fields§
§name: String
§fields: Vec<StructField>
§generics: Vec<Type>
Implementations§
Source§impl Struct
impl Struct
pub fn new(name: String, fields: Vec<StructField>, generics: Vec<Type>) -> Self
pub fn get_llvm_type(&self) -> LLVMType
pub fn get_field_type(&self, field_name: &str) -> Option<Type>
pub fn has_generic(&self) -> bool
pub fn get_generics(&self) -> &Vec<Type>
pub fn get_type(&self) -> Type
pub fn get_props(&self) -> Vec<(String, Type)>
pub fn get_name(&self) -> &str
pub fn get_fields(&self) -> &Vec<StructField>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Struct
impl RefUnwindSafe for Struct
impl Send for Struct
impl Sync for Struct
impl Unpin for Struct
impl UnwindSafe for Struct
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