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> !RefUnwindSafe for EnumMut<'a, T>
impl<'a, T: ?Sized> Send for EnumMut<'a, T>where
T: Send,
impl<'a, T: ?Sized> Sync for EnumMut<'a, T>where
T: Sync,
impl<'a, T: ?Sized> Unpin for EnumMut<'a, T>where
T: Unpin,
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