pub struct Fields { /* private fields */ }Available on crate feature
document only.Expand description
A record: label and value rows, aligned by the renderer.
The record style (boxed, keys right, or keys left) comes from the render options.
Implementations§
Source§impl Fields
impl Fields
Sourcepub fn row(self, label: impl Into<String>, value: impl Into<Text>) -> Self
pub fn row(self, label: impl Into<String>, value: impl Into<Text>) -> Self
Append a row. The label is a Role::Token span; the value keeps
the roles it has.
Trait Implementations§
impl Eq for Fields
impl StructuralPartialEq for Fields
Auto Trait Implementations§
impl Forget for Fields
impl Freeze for Fields
impl RefUnwindSafe for Fields
impl Send for Fields
impl Sync for Fields
impl Unpin for Fields
impl UnsafeUnpin for Fields
impl UnwindSafe for Fields
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