pub struct Summary { /* private fields */ }Implementations§
Source§impl Summary
impl Summary
Sourcepub fn new(title: impl Into<String>) -> Self
pub fn new(title: impl Into<String>) -> Self
title is plain text: escape sequences and cursor movement in it break
that contract, and debug builds panic on them.
Sourcepub fn field(self, label: impl Into<String>, value: impl Into<String>) -> Self
pub fn field(self, label: impl Into<String>, value: impl Into<String>) -> Self
Appends one labelled field, whose label and value are plain text.
pub fn title(&self) -> &str
pub fn fields(&self) -> &[SummaryField]
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 UnsafeUnpin 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