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<I>(self, docs: I) -> Result<Self, ContextError>
pub fn docs<I>(self, docs: I) -> 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> 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