pub struct VariableBlock {
pub access: AccessModifier,
pub constant: bool,
pub retain: bool,
pub variables: Vec<Variable>,
pub kind: VariableBlockType,
pub linkage: LinkageType,
pub location: SourceLocation,
}Fields§
§access: AccessModifier§constant: bool§retain: bool§variables: Vec<Variable>§kind: VariableBlockType§linkage: LinkageType§location: SourceLocationImplementations§
Source§impl VariableBlock
impl VariableBlock
pub fn global() -> Self
pub fn with_linkage(self, linkage: LinkageType) -> Self
pub fn with_block_type(self, block_type: VariableBlockType) -> Self
pub fn with_variables(self, variables: Vec<Variable>) -> Self
pub fn is_local(&self) -> bool
pub fn is_temp(&self) -> bool
pub fn is_input_by_val(&self) -> bool
Trait Implementations§
Source§impl Clone for VariableBlock
impl Clone for VariableBlock
Source§fn clone(&self) -> VariableBlock
fn clone(&self) -> VariableBlock
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 VariableBlock
impl Debug for VariableBlock
Source§impl Default for VariableBlock
impl Default for VariableBlock
Source§impl<'de> Deserialize<'de> for VariableBlockwhere
'de: 'static,
impl<'de> Deserialize<'de> for VariableBlockwhere
'de: 'static,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for VariableBlock
impl PartialEq for VariableBlock
Source§fn eq(&self, other: &VariableBlock) -> bool
fn eq(&self, other: &VariableBlock) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for VariableBlock
impl Serialize for VariableBlock
Source§impl Walker for VariableBlock
impl Walker for VariableBlock
fn walk<V>(&self, visitor: &mut V)where
V: AstVisitor,
Source§impl WalkerMut for VariableBlock
impl WalkerMut for VariableBlock
fn walk<V>(&mut self, visitor: &mut V)where
V: AstVisitorMut,
impl StructuralPartialEq for VariableBlock
Auto Trait Implementations§
impl Freeze for VariableBlock
impl RefUnwindSafe for VariableBlock
impl Send for VariableBlock
impl Sync for VariableBlock
impl Unpin for VariableBlock
impl UnsafeUnpin for VariableBlock
impl UnwindSafe for VariableBlock
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