#[repr(u8)]pub enum Mut {
Const = 0,
Var = 1,
}
Variants§
Trait Implementations§
Source§impl TryFromPrimitive for Mut
impl TryFromPrimitive for Mut
Source§impl UnsafeFromPrimitive for Mut
impl UnsafeFromPrimitive for Mut
type Primitive = u8
Source§unsafe fn unchecked_transmute_from(number: Self::Primitive) -> Self
unsafe fn unchecked_transmute_from(number: Self::Primitive) -> Self
Transmutes into an enum from its primitive. Read more
Source§unsafe fn from_unchecked(number: Self::Primitive) -> Self
unsafe fn from_unchecked(number: Self::Primitive) -> Self
👎Deprecated since 0.6.0: Prefer to use
unchecked_transmute_from
, from_unchecked
will be removed in a future release.Transmutes into an enum from its primitive. Read more
impl Copy for Mut
impl Eq for Mut
impl StructuralPartialEq for Mut
Auto Trait Implementations§
impl Freeze for Mut
impl RefUnwindSafe for Mut
impl Send for Mut
impl Sync for Mut
impl Unpin for Mut
impl UnwindSafe for Mut
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more