pub trait AsVariantMut<T> {
// Required method
fn as_variant_mut(&mut self) -> Option<&mut T>;
}Expand description
Provides mutable borrowed access to the current variant’s field.
Required Methods§
Sourcefn as_variant_mut(&mut self) -> Option<&mut T>
fn as_variant_mut(&mut self) -> Option<&mut T>
Returns a the inner value as &mut T if it is of type T, or None if it isn’t.