Enum semantic_analyzer::types::types::Type
source · pub enum Type {
Primitive(PrimitiveTypes),
Struct(StructTypes),
Array(Box<Self>, u32),
}Expand description
Variants§
Implementations§
source§impl Type
impl Type
sourcepub fn get_struct(&self) -> Option<StructTypes>
pub fn get_struct(&self) -> Option<StructTypes>
Get structure type if it is
Trait Implementations§
source§impl PartialEq for Type
impl PartialEq for Type
source§impl TypeAttributes for Type
impl TypeAttributes for Type
source§fn get_attribute_index(&self, attr_name: &ValueName) -> Option<u32>
fn get_attribute_index(&self, attr_name: &ValueName) -> Option<u32>
Get attribute index by value name for the parent type
source§fn get_attribute_type(&self, attr_name: &ValueName) -> Option<Type>
fn get_attribute_type(&self, attr_name: &ValueName) -> Option<Type>
Get attribute type by value name for the parent type
source§fn get_method(&self, method_name: String) -> Option<FunctionName>
fn get_method(&self, method_name: String) -> Option<FunctionName>
Get function name for the parent type by method name
source§fn is_attribute(&self, attr_name: &ValueName) -> bool
fn is_attribute(&self, attr_name: &ValueName) -> bool
Check is value attribute
impl Eq for Type
impl StructuralEq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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