pub struct Record { /* private fields */ }Expand description
Labelled values, one pair to a row.
Two rows draw as:
version 1.4.0
channel stableA record is a two-column Table with no header. It shares the table’s
column widths, so a long value wraps under its own column and a long word
keeps its line. A record with no rows draws nothing.
Implementations§
Source§impl Record
impl Record
Sourcepub fn new() -> Self
pub fn new() -> Self
A record with no rows, drawn in the default RecordStyle: keys
right-aligned and no frame.
Sourcepub fn style(self, style: RecordStyle) -> Self
pub fn style(self, style: RecordStyle) -> Self
Sets how the record is drawn, replacing the default
RecordStyle::KeysRight.
Trait Implementations§
Source§impl Renderable for Record
impl Renderable for Record
Auto Trait Implementations§
impl Forget for Record
impl Freeze for Record
impl Move for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnsafeUnpin for Record
impl UnwindSafe for Record
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