pub struct Example {
pub code: &'static str,
pub header: &'static str,
pub help: &'static str,
}Expand description
A command line to try.
Fields§
§code: &'static strThe line, as typed: prog build --release.
header: &'static strWhat it is an example of, on a line of its own above; empty for none.
help: &'static strWhat it does, for --help; empty for none.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Example
impl RefUnwindSafe for Example
impl Send for Example
impl Sync for Example
impl Unpin for Example
impl UnsafeUnpin for Example
impl UnwindSafe for Example
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