Enum rustc::middle::mem_categorization::MutabilityCategory [−][src]
pub enum MutabilityCategory {
McImmutable,
McDeclared,
McInherited,
}🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Variants
McImmutable🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
McDeclared🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
McInherited🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Methods
impl MutabilityCategory[src]
impl MutabilityCategorypub fn from_mutbl(m: Mutability) -> MutabilityCategory[src]
pub fn from_mutbl(m: Mutability) -> MutabilityCategory🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn from_borrow_kind(borrow_kind: BorrowKind) -> MutabilityCategory[src]
pub fn from_borrow_kind(borrow_kind: BorrowKind) -> MutabilityCategory🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn from_pointer_kind(
base_mutbl: MutabilityCategory,
ptr: PointerKind
) -> MutabilityCategory[src]
fn from_pointer_kind(
base_mutbl: MutabilityCategory,
ptr: PointerKind
) -> MutabilityCategory🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn from_local(
tcx: TyCtxt,
tables: &TypeckTables,
id: NodeId
) -> MutabilityCategory[src]
fn from_local(
tcx: TyCtxt,
tables: &TypeckTables,
id: NodeId
) -> MutabilityCategory🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn inherit(&self) -> MutabilityCategory[src]
pub fn inherit(&self) -> MutabilityCategory🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn is_mutable(&self) -> bool[src]
pub fn is_mutable(&self) -> bool🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn is_immutable(&self) -> bool[src]
pub fn is_immutable(&self) -> bool🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn to_user_str(&self) -> &'static str[src]
pub fn to_user_str(&self) -> &'static str🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Trait Implementations
impl Clone for MutabilityCategory[src]
impl Clone for MutabilityCategoryfn clone(&self) -> MutabilityCategory[src]
fn clone(&self) -> MutabilityCategoryReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Copy for MutabilityCategory[src]
impl Copy for MutabilityCategoryimpl PartialEq for MutabilityCategory[src]
impl PartialEq for MutabilityCategoryfn eq(&self, other: &MutabilityCategory) -> bool[src]
fn eq(&self, other: &MutabilityCategory) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Eq for MutabilityCategory[src]
impl Eq for MutabilityCategoryfn assert_receiver_is_total_eq(&self)[src]
fn assert_receiver_is_total_eq(&self)impl Hash for MutabilityCategory[src]
impl Hash for MutabilityCategoryfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Debug for MutabilityCategory[src]
impl Debug for MutabilityCategoryAuto Trait Implementations
impl Send for MutabilityCategory
impl Send for MutabilityCategoryimpl Sync for MutabilityCategory
impl Sync for MutabilityCategory