pub enum SearchTextRole {
Plain,
Document,
Coordinate,
Path,
Heading,
Definition(DefinitionRole),
Match,
Muted,
}Expand description
Semantic roles in the grep-like search presentation.
Variants§
Plain
Ordinary prose and punctuation.
Document
The logical document label.
Coordinate
A rendered Markdown coordinate or result count.
Path
A stable semantic-node path.
Heading
A document, section, or tldr node title.
Definition(DefinitionRole)
A semantic entry title.
Match
Text that matched the search query.
Muted
Secondary guides and context markers.
Trait Implementations§
Source§impl Clone for SearchTextRole
impl Clone for SearchTextRole
Source§fn clone(&self) -> SearchTextRole
fn clone(&self) -> SearchTextRole
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SearchTextRole
Source§impl Debug for SearchTextRole
impl Debug for SearchTextRole
impl Eq for SearchTextRole
Source§impl PartialEq for SearchTextRole
impl PartialEq for SearchTextRole
impl StructuralPartialEq for SearchTextRole
Auto Trait Implementations§
impl Freeze for SearchTextRole
impl RefUnwindSafe for SearchTextRole
impl Send for SearchTextRole
impl Sync for SearchTextRole
impl Unpin for SearchTextRole
impl UnsafeUnpin for SearchTextRole
impl UnwindSafe for SearchTextRole
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