pub struct ItemMut<'a> { /* private fields */ }
Expand description
Handle to a an item inserted into a module which allows for mutation of item metadata.
Implementations§
Source§impl ItemMut<'_>
impl ItemMut<'_>
Sourcepub fn docs(
self,
docs: impl IntoIterator<Item: AsRef<str>>,
) -> Result<Self, ContextError>
pub fn docs( self, docs: impl IntoIterator<Item: AsRef<str>>, ) -> Result<Self, ContextError>
Set documentation for an inserted item.
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 deprecated<S>(self, deprecated: S) -> Result<Self, ContextError>
pub fn deprecated<S>(self, deprecated: S) -> Result<Self, ContextError>
Mark the given item as deprecated.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ItemMut<'a>
impl<'a> RefUnwindSafe for ItemMut<'a>
impl<'a> Send for ItemMut<'a>
impl<'a> Sync for ItemMut<'a>
impl<'a> Unpin for ItemMut<'a>
impl<'a> !UnwindSafe for ItemMut<'a>
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