Enum rustc_lint::middle::mem_categorization::MutabilityCategory [] [src]

pub enum MutabilityCategory {
    McImmutable,
    McDeclared,
    McInherited,
}
Unstable (rustc_private)

Variants

McImmutable
Unstable (rustc_private)
McDeclared
Unstable (rustc_private)
McInherited
Unstable (rustc_private)

Methods

impl MutabilityCategory

fn from_mutbl(m: Mutability) -> MutabilityCategory

fn from_borrow_kind(borrow_kind: BorrowKind) -> MutabilityCategory

fn inherit(&self) -> MutabilityCategory

fn is_mutable(&self) -> bool

fn is_immutable(&self) -> bool

fn to_user_str(&self) -> &'static str

Trait Implementations

Derived Implementations

impl Debug for MutabilityCategory

fn fmt(&self, __arg_0: &mut Formatter) -> Result<()Error>

impl Hash for MutabilityCategory

fn hash<__H>(&self, __arg_0: &mut __H) where __H: Hasher

impl Eq for MutabilityCategory

impl PartialEq<MutabilityCategory> for MutabilityCategory

fn eq(&self, __arg_0: &MutabilityCategory) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl Copy for MutabilityCategory

impl Clone for MutabilityCategory

fn clone(&self) -> MutabilityCategory

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more