Enum solang_parser::pt::Mutability
source · pub enum Mutability {
Pure(Loc),
View(Loc),
Constant(Loc),
Payable(Loc),
}
Expand description
Function mutability.
Variants§
Implementations§
Trait Implementations§
source§impl Clone for Mutability
impl Clone for Mutability
source§fn clone(&self) -> Mutability
fn clone(&self) -> Mutability
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 Mutability
impl CodeLocation for Mutability
source§impl Debug for Mutability
impl Debug for Mutability
source§impl Display for Mutability
impl Display for Mutability
source§impl OptionalCodeLocation for Mutability
impl OptionalCodeLocation for Mutability
source§impl PartialEq for Mutability
impl PartialEq for Mutability
source§fn eq(&self, other: &Mutability) -> bool
fn eq(&self, other: &Mutability) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for Mutability
impl StructuralPartialEq for Mutability
Auto Trait Implementations§
impl Freeze for Mutability
impl RefUnwindSafe for Mutability
impl Send for Mutability
impl Sync for Mutability
impl Unpin for Mutability
impl UnwindSafe for Mutability
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