pub struct HelpContent {
pub short: String,
pub long: Option<String>,
pub keybindings: Vec<Keybinding>,
pub see_also: Vec<HelpId>,
}Expand description
Structured help content for a widget.
Fields§
§short: StringShort tooltip-length description (one line).
long: Option<String>Optional longer description shown in a detail panel.
keybindings: Vec<Keybinding>Keybindings available when this widget is focused.
see_also: Vec<HelpId>Related widget help IDs for “see also” links.
Implementations§
Trait Implementations§
Source§impl Clone for HelpContent
impl Clone for HelpContent
Source§fn clone(&self) -> HelpContent
fn clone(&self) -> HelpContent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HelpContent
impl Debug for HelpContent
Source§impl PartialEq for HelpContent
impl PartialEq for HelpContent
impl Eq for HelpContent
impl StructuralPartialEq for HelpContent
Auto Trait Implementations§
impl Freeze for HelpContent
impl RefUnwindSafe for HelpContent
impl Send for HelpContent
impl Sync for HelpContent
impl Unpin for HelpContent
impl UnwindSafe for HelpContent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.