Struct moore_vhdl::builtin::BuiltinType
source · [−]pub struct BuiltinType {
pub id: TypeDeclRef,
pub name: Name,
pub ty: Ty,
pub aux: Vec<Builtin>,
}
Expand description
A builtin type.
Fields
id: TypeDeclRef
The ID of this type.
name: Name
The name of this type.
ty: Ty
The actual type.
aux: Vec<Builtin>
Auxiliary definitions.
Implementations
sourceimpl BuiltinType
impl BuiltinType
sourcepub fn with_id<T: Into<Ty>>(id: TypeDeclRef, name: &str, ty: T) -> BuiltinType
pub fn with_id<T: Into<Ty>>(id: TypeDeclRef, name: &str, ty: T) -> BuiltinType
Create a new builtin type with predefined ID.
sourcepub fn new_enum(name: &str) -> BuiltinType
pub fn new_enum(name: &str) -> BuiltinType
Create a new builtin enum type.
Auto Trait Implementations
impl RefUnwindSafe for BuiltinType
impl Send for BuiltinType
impl Sync for BuiltinType
impl Unpin for BuiltinType
impl UnwindSafe for BuiltinType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more