Enum solang_parser::pt::FunctionAttribute
source · #[repr(u8)]pub enum FunctionAttribute {
Visibility(Visibility),
Mutability(Mutability),
Virtual(Loc),
Immutable(Loc),
Override(Loc, Vec<IdentifierPath>),
BaseOrModifier(Loc, Base),
Error(Loc),
}
Expand description
A function attribute.
Variants§
Visibility(Visibility)
Visibility attribute.
Mutability(Mutability)
Mutability attribute.
Virtual(Loc)
virtual
Immutable(Loc)
immutable
Override(Loc, Vec<IdentifierPath>)
override[(<identifier path>,*)]
BaseOrModifier(Loc, Base)
A modifier or constructor invocation.
Error(Loc)
An error occurred during parsing.
Trait Implementations§
source§impl Clone for FunctionAttribute
impl Clone for FunctionAttribute
source§fn clone(&self) -> FunctionAttribute
fn clone(&self) -> FunctionAttribute
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 FunctionAttribute
impl CodeLocation for FunctionAttribute
source§impl Debug for FunctionAttribute
impl Debug for FunctionAttribute
source§impl Display for FunctionAttribute
impl Display for FunctionAttribute
source§impl Ord for FunctionAttribute
impl Ord for FunctionAttribute
source§impl PartialEq for FunctionAttribute
impl PartialEq for FunctionAttribute
source§fn eq(&self, other: &FunctionAttribute) -> bool
fn eq(&self, other: &FunctionAttribute) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for FunctionAttribute
impl PartialOrd for FunctionAttribute
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 FunctionAttribute
impl StructuralPartialEq for FunctionAttribute
Auto Trait Implementations§
impl Freeze for FunctionAttribute
impl RefUnwindSafe for FunctionAttribute
impl Send for FunctionAttribute
impl Sync for FunctionAttribute
impl Unpin for FunctionAttribute
impl UnwindSafe for FunctionAttribute
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more