Enum erg_compiler::varinfo::Mutability
source · [−]#[repr(u8)]
pub enum Mutability {
Immutable,
Const,
}
Variants
Immutable
Const
Implementations
sourceimpl Mutability
impl Mutability
Trait Implementations
sourceimpl Clone for Mutability
impl Clone for Mutability
sourcefn clone(&self) -> Mutability
fn clone(&self) -> Mutability
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 more
sourceimpl Debug for Mutability
impl Debug for Mutability
sourceimpl From<&str> for Mutability
impl From<&str> for Mutability
sourceimpl Hash for Mutability
impl Hash for Mutability
sourceimpl PartialEq<Mutability> for Mutability
impl PartialEq<Mutability> for Mutability
sourcefn eq(&self, other: &Mutability) -> bool
fn eq(&self, other: &Mutability) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Copy for Mutability
impl Eq for Mutability
impl StructuralEq for Mutability
impl StructuralPartialEq for Mutability
Auto Trait Implementations
impl RefUnwindSafe for Mutability
impl Send for Mutability
impl Sync for Mutability
impl Unpin for Mutability
impl UnwindSafe for Mutability
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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