pub struct EnumMut<'a, T>{ /* private fields */ }
Expand description
Access enum metadata mutably.
Implementations§
Source§impl<T> EnumMut<'_, T>
impl<T> EnumMut<'_, T>
Sourcepub fn docs<I>(self, docs: I) -> Result<Self, ContextError>
pub fn docs<I>(self, docs: I) -> Result<Self, ContextError>
Set documentation for an inserted type.
This completely replaces any existing documentation.
Sourcepub fn static_docs(
self,
docs: &'static [&'static str],
) -> Result<Self, ContextError>
pub fn static_docs( self, docs: &'static [&'static str], ) -> Result<Self, ContextError>
Set static documentation.
This completely replaces any existing documentation.
Sourcepub fn variant_mut(
&mut self,
index: usize,
) -> Result<VariantMut<'_, T>, ContextError>
pub fn variant_mut( &mut self, index: usize, ) -> Result<VariantMut<'_, T>, ContextError>
Get the given variant mutably.
Auto Trait Implementations§
impl<'a, T> Freeze for EnumMut<'a, T>where
T: ?Sized,
impl<'a, T> !RefUnwindSafe for EnumMut<'a, T>
impl<'a, T> Send for EnumMut<'a, T>
impl<'a, T> Sync for EnumMut<'a, T>
impl<'a, T> Unpin for EnumMut<'a, T>
impl<'a, T> !UnwindSafe for EnumMut<'a, T>
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