Enum caribon::Word [] [src]

#[repr(C)]
pub enum Word { Untracked(String), Ignored(String), Tracked(StringStringf32Option<&'static str>), }

Word type: some inner representation used by Parser.

You probably should not use this type directly.

Variants

A String which is not part of the text (typically whitespace, HTML formatting, ...)

A word that is ignored, either because it is in parser.ignored or because it is a proper noun and ignore_proper has been set to true.

Tracked string, containing the string, the stemmed variant of the string, some value corresponding to the degree of repetitions and an option to a highlighting colour

Methods

impl Word
[src]

Sets the stemmed value of a word.

Sets the repetition value of a word.

Trait Implementations

impl Debug for Word
[src]

Formats the value using the given formatter.

impl Clone for Word
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more