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 MutabilityCategory
pub 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?
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 MutabilityCategory
fn clone(&self) -> MutabilityCategory
[src]
fn clone(&self) -> MutabilityCategory
Returns 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 MutabilityCategory
impl PartialEq for MutabilityCategory
[src]
impl PartialEq for MutabilityCategory
fn eq(&self, __arg_0: &MutabilityCategory) -> bool
[src]
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[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Eq for MutabilityCategory
[src]
impl Eq for MutabilityCategory
impl Hash for MutabilityCategory
[src]
impl Hash for MutabilityCategory
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
fn hash<__H: Hasher>(&self, __arg_0: &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 MutabilityCategory
Auto Trait Implementations
impl Send for MutabilityCategory
impl Send for MutabilityCategory
impl Sync for MutabilityCategory
impl Sync for MutabilityCategory