Struct moore_vhdl::hir::VarDecl
source · [−]pub struct VarDecl {
pub shared: bool,
pub ty: SubtypeIndRef,
pub init: Option<ExprRef>,
}
Expand description
A variable declaration.
See IEEE 1076-2008 section 6.4.2.4.
Fields
Whether the variable was declared as shared or not.
ty: SubtypeIndRef
The subtype of the variable.
init: Option<ExprRef>
The optional initial value for the variable.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for VarDecl
impl Send for VarDecl
impl Sync for VarDecl
impl Unpin for VarDecl
impl UnwindSafe for VarDecl
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