pub enum DocBlock {
Heading {
level: u8,
text: String,
},
Prose(String),
Fixture {
id: String,
},
Props,
Controls,
Source,
Callout {
tone: CalloutTone,
title: String,
body: String,
},
Custom {
id: String,
payload: String,
},
}Variants§
Implementations§
Source§impl DocBlock
impl DocBlock
pub fn heading(level: u8, text: impl Into<String>) -> Self
pub fn prose(text: impl Into<String>) -> Self
pub fn fixture(id: impl Into<String>) -> Self
pub const fn props() -> Self
pub const fn controls() -> Self
pub const fn source() -> Self
pub fn custom(id: impl Into<String>, payload: impl Into<String>) -> Self
pub fn callout( tone: CalloutTone, title: impl Into<String>, body: impl Into<String>, ) -> Self
Trait Implementations§
impl Eq for DocBlock
impl StructuralPartialEq for DocBlock
Auto Trait Implementations§
impl Freeze for DocBlock
impl RefUnwindSafe for DocBlock
impl Send for DocBlock
impl Sync for DocBlock
impl Unpin for DocBlock
impl UnsafeUnpin for DocBlock
impl UnwindSafe for DocBlock
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