pub struct Definitions { /* private fields */ }Expand description
Entries, each a line of labels over indented lines of description.
An entry with two labels and one description line draws as:
-f --format
Output representationIt is the form of a table of flags or commands for a narrow width, where
the columns no longer fit side by side. Put it in a
Breakpoint beside the table.
The labels of an entry share one line, separated by a space. Its description lines go below, wrapped at spaces to the width that is left. An entry whose labels or description are empty skips that part.
Implementations§
Source§impl Definitions
impl Definitions
Sourcepub fn entry<L, D>(
self,
labels: impl IntoIterator<Item = L>,
description: impl IntoIterator<Item = D>,
) -> Self
pub fn entry<L, D>( self, labels: impl IntoIterator<Item = L>, description: impl IntoIterator<Item = D>, ) -> Self
Adds an entry: its labels on a line indented by 2, and its
description below them, indented by 4. Each label and description
line converts to a Text, and one with no text adds nothing.
Trait Implementations§
Source§impl Clone for Definitions
impl Clone for Definitions
Source§impl Debug for Definitions
impl Debug for Definitions
Source§impl Default for Definitions
impl Default for Definitions
Source§impl Renderable for Definitions
impl Renderable for Definitions
Auto Trait Implementations§
impl Forget for Definitions
impl Freeze for Definitions
impl RefUnwindSafe for Definitions
impl Send for Definitions
impl Sync for Definitions
impl Unpin for Definitions
impl UnsafeUnpin for Definitions
impl UnwindSafe for Definitions
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