Enum rustc_trans::middle::mem_categorization::MutabilityCategory
[−]
[src]
pub enum MutabilityCategory {
McImmutable,
McDeclared,
McInherited,
}Unstable (
rustc_private)Variants
McImmutableUnstable (
rustc_private)McDeclaredUnstable (
rustc_private)McInheritedUnstable (
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>
Formats the value using the given formatter.
impl Hash for MutabilityCategory
fn hash<__H>(&self, __arg_0: &mut __H) where __H: Hasher
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.
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) -> bool1.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