Struct syn_solidity::VariableAttributes
source · pub struct VariableAttributes(pub Vec<VariableAttribute>);
Expand description
A list of unique variable attributes.
Tuple Fields§
§0: Vec<VariableAttribute>
Implementations§
source§impl VariableAttributes
impl VariableAttributes
pub fn visibility(&self) -> Option<Visibility>
pub fn has_external(&self) -> bool
pub fn has_internal(&self) -> bool
pub fn has_private(&self) -> bool
pub fn has_public(&self) -> bool
pub fn has_constant(&self) -> bool
pub fn has_immutable(&self) -> bool
pub fn has_override(&self, path: Option<&SolPath>) -> bool
Trait Implementations§
source§impl Clone for VariableAttributes
impl Clone for VariableAttributes
source§fn clone(&self) -> VariableAttributes
fn clone(&self) -> VariableAttributes
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 VariableAttributes
impl Debug for VariableAttributes
source§impl Display for VariableAttributes
impl Display for VariableAttributes
source§impl Parse for VariableAttributes
impl Parse for VariableAttributes
fn parse(input: ParseStream<'_>) -> Result<Self>
source§impl Spanned for VariableAttributes
impl Spanned for VariableAttributes
source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty.Auto Trait Implementations§
impl RefUnwindSafe for VariableAttributes
impl !Send for VariableAttributes
impl !Sync for VariableAttributes
impl Unpin for VariableAttributes
impl UnwindSafe for VariableAttributes
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