Enum syn_solidity::Mutability
source · pub enum Mutability {
Pure(pure),
View(view),
Constant(constant),
Payable(payable),
}
Expand description
A mutability attribute.
Variants§
Implementations§
source§impl Mutability
impl Mutability
pub fn parse_opt(input: ParseStream<'_>) -> Result<Option<Self>>
pub fn peek(lookahead: &Lookahead1<'_>) -> bool
pub const fn span(self) -> Span
pub fn set_span(&mut self, span: Span)
pub const fn as_str(self) -> &'static str
pub const fn as_debug_str(self) -> &'static str
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 Debug for Mutability
impl Debug for Mutability
source§impl Display for Mutability
impl Display for Mutability
source§impl Hash for Mutability
impl Hash for Mutability
source§impl Parse for Mutability
impl Parse for Mutability
fn parse(input: ParseStream<'_>) -> Result<Self>
source§impl PartialEq<Mutability> for Mutability
impl PartialEq<Mutability> for Mutability
impl Copy for Mutability
impl Eq for Mutability
Auto Trait Implementations§
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