Struct rune::module::InternalEnumMut
source · pub struct InternalEnumMut<'a, T>{ /* private fields */ }
Expand description
Access internal enum metadata mutably.
Implementations§
source§impl<T> InternalEnumMut<'_, T>
impl<T> InternalEnumMut<'_, 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 internal enum.
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 for an inserted internal enum.
This completely replaces any existing documentation.
sourcepub fn deprecated<S>(self, deprecated: S) -> Result<Self, ContextError>
pub fn deprecated<S>(self, deprecated: S) -> Result<Self, ContextError>
Mark the given type as deprecated.
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 InternalEnumMut<'a, T>where
T: ?Sized,
impl<'a, T> !RefUnwindSafe for InternalEnumMut<'a, T>
impl<'a, T> Send for InternalEnumMut<'a, T>
impl<'a, T> Sync for InternalEnumMut<'a, T>
impl<'a, T> Unpin for InternalEnumMut<'a, T>
impl<'a, T> !UnwindSafe for InternalEnumMut<'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