pub struct Summary { /* private fields */ }Implementations§
Source§impl Summary
impl Summary
pub fn new() -> Self
pub fn write(&mut self) -> Result<&mut Self, Box<dyn Error>>
pub fn write_with_options( &mut self, options: &SummaryWriteOptions, ) -> Result<&mut Self, Box<dyn Error>>
pub fn clear(&mut self) -> Result<&mut Self, Box<dyn Error>>
pub fn stringify(&self) -> String
pub fn is_empty_buffer(&self) -> bool
pub fn empty_buffer(&mut self) -> &mut Self
pub fn add_raw(&mut self, text: impl AsRef<str>) -> &mut Self
pub fn add_raw_with_add_eol( &mut self, text: impl AsRef<str>, add_eol: bool, ) -> &mut Self
pub fn add_eol(&mut self) -> &mut Self
pub fn add_code_block(&mut self, code: impl AsRef<str>) -> &mut Self
pub fn add_code_block_with_lang( &mut self, code: impl AsRef<str>, lang: impl AsRef<str>, ) -> &mut Self
pub fn add_list(&mut self, items: &[impl AsRef<str>]) -> &mut Self
pub fn add_list_with_ordered( &mut self, items: &[impl AsRef<str>], ordered: bool, ) -> &mut Self
pub fn add_table<'a>( &mut self, rows: impl AsRef<[SummaryTableRow<'a>]>, ) -> &mut Self
pub fn add_details( &mut self, label: impl AsRef<str>, content: impl AsRef<str>, ) -> &mut Self
pub fn add_image( &mut self, src: impl AsRef<str>, alt: impl AsRef<str>, ) -> &mut Self
pub fn add_image_with_options( &mut self, src: impl AsRef<str>, alt: impl AsRef<str>, options: &SummaryImageOptions<'_>, ) -> &mut Self
pub fn add_heading(&mut self, text: impl AsRef<str>) -> &mut Self
pub fn add_heading_with_level( &mut self, text: impl AsRef<str>, level: u8, ) -> &mut Self
pub fn add_separator(&mut self) -> &mut Self
pub fn add_break(&mut self) -> &mut Self
pub fn add_quote(&mut self, text: impl AsRef<str>) -> &mut Self
pub fn add_quote_with_cite( &mut self, text: impl AsRef<str>, cite: impl AsRef<str>, ) -> &mut Self
pub fn add_link( &mut self, text: impl AsRef<str>, href: impl AsRef<str>, ) -> &mut Self
Trait Implementations§
impl Eq for Summary
impl StructuralPartialEq for Summary
Auto Trait Implementations§
impl Freeze for Summary
impl RefUnwindSafe for Summary
impl Send for Summary
impl Sync for Summary
impl Unpin for Summary
impl UnwindSafe for Summary
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.