#[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 duplicate 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§impl PartialOrd for FunctionAttribute
impl PartialOrd for FunctionAttribute
impl 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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