Enum syn_solidity::VariableAttribute
source · pub enum VariableAttribute {
Visibility(Visibility),
Constant(constant),
Immutable(immutable),
Override(Override),
}
Expand description
A variable attribute.
Variants§
Visibility(Visibility)
A Visibility attribute.
Constant(constant)
constant
.
Immutable(immutable)
immutable
.
Override(Override)
An Override attribute.
Implementations§
source§impl VariableAttribute
impl VariableAttribute
pub const fn visibility(&self) -> Option<Visibility>
pub const fn override(&self) -> Option<&Override>
pub const fn is_external(&self) -> bool
pub const fn is_public(&self) -> bool
pub const fn is_internal(&self) -> bool
pub const fn is_private(&self) -> bool
pub const fn is_constant(&self) -> bool
pub const fn is_immutable(&self) -> bool
pub fn is_override(&self, path: Option<&SolPath>) -> bool
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 Debug for VariableAttribute
impl Debug for VariableAttribute
source§impl From<VariableAttribute> for FunctionAttribute
impl From<VariableAttribute> for FunctionAttribute
source§fn from(value: VariableAttribute) -> Self
fn from(value: VariableAttribute) -> Self
Converts to this type from the input type.
source§impl Hash for VariableAttribute
impl Hash for VariableAttribute
source§impl Parse for VariableAttribute
impl Parse for VariableAttribute
fn parse(input: ParseStream<'_>) -> Result<Self>
source§impl PartialEq<VariableAttribute> for VariableAttribute
impl PartialEq<VariableAttribute> for VariableAttribute
source§impl Spanned for VariableAttribute
impl Spanned for VariableAttribute
impl Eq 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