pub(crate) enum VariantCastMode {
Shred,
Get,
}Expand description
Controls the conversions allowed when extracting a typed value from a variant.
Variants§
Shred
Use the conversions permitted by the variant shredding specification.
Get
Allow casts when extracting a value with variant_get.
Trait Implementations§
Source§impl Clone for VariantCastMode
impl Clone for VariantCastMode
impl Copy for VariantCastMode
Auto Trait Implementations§
impl Freeze for VariantCastMode
impl RefUnwindSafe for VariantCastMode
impl Send for VariantCastMode
impl Sync for VariantCastMode
impl Unpin for VariantCastMode
impl UnsafeUnpin for VariantCastMode
impl UnwindSafe for VariantCastMode
Blanket Implementations§
impl<T> Allocation for T
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