Enum solang_parser::pt::VariableAttribute
source · #[repr(u8)]
pub enum VariableAttribute {
Visibility(Visibility),
Constant(Loc),
Immutable(Loc),
Override(Loc, Vec<IdentifierPath>),
}
Expand description
A variable attribute.
Variants§
Visibility(Visibility)
The visibility.
Only used for storage variables.
Constant(Loc)
constant
Immutable(Loc)
immutable
Override(Loc, Vec<IdentifierPath>)
ovveride(<1>,*)
Trait Implementations§
source§impl Clone for VariableAttribute
impl Clone for VariableAttribute
source§fn clone(&self) -> VariableAttribute
fn clone(&self) -> VariableAttribute
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl CodeLocation for VariableAttribute
impl CodeLocation for VariableAttribute
source§impl Debug for VariableAttribute
impl Debug for VariableAttribute
source§impl Display for VariableAttribute
impl Display for VariableAttribute
source§impl Ord for VariableAttribute
impl Ord for VariableAttribute
source§impl PartialEq<VariableAttribute> for VariableAttribute
impl PartialEq<VariableAttribute> for VariableAttribute
source§fn eq(&self, other: &VariableAttribute) -> bool
fn eq(&self, other: &VariableAttribute) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<VariableAttribute> for VariableAttribute
impl PartialOrd<VariableAttribute> for VariableAttribute
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more