Enum rustc_const_eval::interpret::intern::InternMode
source · enum InternMode {
Static(Mutability),
Const,
}
Variants§
Static(Mutability)
A static and its current mutability. Below shared references inside a static mut
,
this is immutable, and below mutable references inside an UnsafeCell
, this
is mutable.
Const
A const
.
Trait Implementations§
source§impl Clone for InternMode
impl Clone for InternMode
source§fn clone(&self) -> InternMode
fn clone(&self) -> InternMode
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 InternMode
impl Debug for InternMode
source§impl Hash for InternMode
impl Hash for InternMode
source§impl PartialEq<InternMode> for InternMode
impl PartialEq<InternMode> for InternMode
source§fn eq(&self, other: &InternMode) -> bool
fn eq(&self, other: &InternMode) -> bool
impl Copy for InternMode
impl Eq for InternMode
impl StructuralEq for InternMode
impl StructuralPartialEq for InternMode
Auto Trait Implementations§
impl RefUnwindSafe for InternMode
impl Send for InternMode
impl Sync for InternMode
impl Unpin for InternMode
impl UnwindSafe for InternMode
Blanket Implementations§
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Static
: 1 byteConst
: 0 bytes