pub enum Doc<Value> {
Hidden,
Inline,
NoInline,
Alias(Value),
Test(Value),
}Expand description
A doc attribute on an item.
The generic argument of this enum is not used in all variants. Consider using the constructor functions Self::hidden, Self::inline, and Self::no_inline if applicable
Variants§
Hidden
The #[doc(hidden)] attribute
Inline
The #[doc(inline)] attribute
NoInline
The #[doc(no_inline)] attribute
Alias(Value)
Creates an alias to another item with #[doc(alias = "Value")]
Test(Value)
Creates a documentation test attribute with #[doc(test(Value))]
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<Value> Freeze for Doc<Value>where
Value: Freeze,
impl<Value> RefUnwindSafe for Doc<Value>where
Value: RefUnwindSafe,
impl<Value> Send for Doc<Value>where
Value: Send,
impl<Value> Sync for Doc<Value>where
Value: Sync,
impl<Value> Unpin for Doc<Value>where
Value: Unpin,
impl<Value> UnwindSafe for Doc<Value>where
Value: UnwindSafe,
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