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 Freeze for VariableAttributes
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)