pub struct VariableDecl {
pub span: Span,
pub name: String,
pub ty: ScalarType,
pub state_space: Option<StateSpace>,
pub linkage: Option<LinkingDirective>,
pub attributes: Vec<Attribute>,
pub alignment: Option<u32>,
pub vector: Option<VectorSize>,
pub count: Option<u32>,
pub array_bounds: Vec<Option<u32>>,
pub initializer: Option<Initializer>,
}Fields§
§span: Span§name: String§ty: ScalarType§state_space: Option<StateSpace>§linkage: Option<LinkingDirective>§attributes: Vec<Attribute>§alignment: Option<u32>§vector: Option<VectorSize>§count: Option<u32>§array_bounds: Vec<Option<u32>>§initializer: Option<Initializer>Trait Implementations§
Source§impl Clone for VariableDecl
impl Clone for VariableDecl
Source§fn clone(&self) -> VariableDecl
fn clone(&self) -> VariableDecl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VariableDecl
impl Debug for VariableDecl
Source§impl PartialEq for VariableDecl
impl PartialEq for VariableDecl
Source§fn eq(&self, other: &VariableDecl) -> bool
fn eq(&self, other: &VariableDecl) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VariableDecl
Auto Trait Implementations§
impl Freeze for VariableDecl
impl RefUnwindSafe for VariableDecl
impl Send for VariableDecl
impl Sync for VariableDecl
impl Unpin for VariableDecl
impl UnsafeUnpin for VariableDecl
impl UnwindSafe for VariableDecl
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