#[non_exhaustive]pub struct HelpTopicEntry {
pub aliases: Vec<Option<String>>,
pub name: HelpTopicText,
pub title: HelpTopicText,
pub file: HelpTopicText,
}Expand description
One row of Meta/Rd.rds, in stored order.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.aliases: Vec<Option<String>>Aliases in stored order, including duplicates and R NA as None.
name: HelpTopicTextThe optional Name value, preserved exactly as decoded.
title: HelpTopicTextThe optional Title value. No whitespace normalization is applied.
file: HelpTopicTextThe optional File value, preserved exactly as decoded.
Implementations§
Source§impl HelpTopicEntry
impl HelpTopicEntry
Sourcepub fn topic_key(&self) -> Option<&str>
pub fn topic_key(&self) -> Option<&str>
Derives the help-database key from the basename of Self::file,
removing one trailing .Rd or .rd suffix as R does. Trailing path
separators are ignored. The stored file value is unchanged, and an
empty basename yields an empty key. This does not establish that a
corresponding topic exists in the help database.
Trait Implementations§
Source§impl Clone for HelpTopicEntry
impl Clone for HelpTopicEntry
Source§impl Debug for HelpTopicEntry
impl Debug for HelpTopicEntry
impl Eq for HelpTopicEntry
Source§impl PartialEq for HelpTopicEntry
impl PartialEq for HelpTopicEntry
impl StructuralPartialEq for HelpTopicEntry
Auto Trait Implementations§
impl Freeze for HelpTopicEntry
impl RefUnwindSafe for HelpTopicEntry
impl Send for HelpTopicEntry
impl Sync for HelpTopicEntry
impl Unpin for HelpTopicEntry
impl UnsafeUnpin for HelpTopicEntry
impl UnwindSafe for HelpTopicEntry
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