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
sourceimpl Clone for InternMode
impl Clone for InternMode
sourcefn clone(&self) -> InternMode
fn clone(&self) -> InternMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for InternMode
impl Debug for InternMode
sourceimpl Hash for InternMode
impl Hash for InternMode
sourceimpl PartialEq<InternMode> for InternMode
impl PartialEq<InternMode> for InternMode
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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