pub struct Fields<'a> {
pub rows: Vec<(&'a str, String)>,
}Available on crate feature
terminal only.Expand description
A record printed as aligned Label: value lines.
Values start two spaces past the colon of the longest label. A value
spanning several lines continues under its first line, and an empty
one leaves its label alone. Values print as given: an untrusted one
is sanitized first with sanitize::text.
Fields§
§rows: Vec<(&'a str, String)>The labels and their rendered values, in print order.
Implementations§
Trait Implementations§
impl<'a> Eq for Fields<'a>
impl<'a> StructuralPartialEq for Fields<'a>
Auto Trait Implementations§
impl<'a> Forget for Fields<'a>
impl<'a> Freeze for Fields<'a>
impl<'a> Move for Fields<'a>
impl<'a> RefUnwindSafe for Fields<'a>
impl<'a> Send for Fields<'a>
impl<'a> Sync for Fields<'a>
impl<'a> Unpin for Fields<'a>
impl<'a> UnsafeUnpin for Fields<'a>
impl<'a> UnwindSafe for Fields<'a>
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