Trait enumcapsulate::AsVariantMut
source · pub trait AsVariantMut<T> {
// Required method
fn as_variant_mut(&mut self) -> Option<&mut T>;
}Expand description
Used to do a cheap mutable-to-mutable reference conversion between an outer enum’s and its inner variant’s type.
Required Methods§
sourcefn as_variant_mut(&mut self) -> Option<&mut T>
fn as_variant_mut(&mut self) -> Option<&mut T>
Returns some mutable reference to the inner value if it is of type T, or None if it isn’t.