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 for VariableAttribute
impl PartialEq 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 for VariableAttribute
impl PartialOrd 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 moreimpl Eq for VariableAttribute
impl StructuralEq for VariableAttribute
impl StructuralPartialEq for VariableAttribute
Auto Trait Implementations§
impl RefUnwindSafe for VariableAttribute
impl Send for VariableAttribute
impl Sync for VariableAttribute
impl Unpin for VariableAttribute
impl UnwindSafe for VariableAttribute
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