pub struct SectionBuilder { /* private fields */ }Expand description
Builder for one Section. Same vocabulary as Doc plus subsection.
Implementations§
Source§impl SectionBuilder
impl SectionBuilder
pub fn bullet(self, text: impl Into<String>) -> Self
pub fn kv(self, key: impl Into<String>, value: impl Into<String>) -> Self
pub fn kv_block<I, K, V>(self, pairs: I) -> Self
pub fn status(self, role: Role, subject: impl Into<String>) -> Self
pub fn status_with( self, role: Role, subject: impl Into<String>, build: impl FnOnce(StatusFields) -> StatusFields, ) -> Self
pub fn hint(self, text: impl Into<String>) -> Self
pub fn note(self, text: impl Into<String>) -> Self
pub fn table(self, t: Table) -> Self
pub fn empty_state(self, text: impl Into<String>) -> Self
pub fn subsection<F>(self, name: impl Into<String>, build: F) -> Self
pub fn subsection_if_nonempty<T, F>( self, name: impl Into<String>, items: &[T], build: F, ) -> Self
Auto Trait Implementations§
impl Freeze for SectionBuilder
impl RefUnwindSafe for SectionBuilder
impl Send for SectionBuilder
impl Sync for SectionBuilder
impl Unpin for SectionBuilder
impl UnsafeUnpin for SectionBuilder
impl UnwindSafe for SectionBuilder
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