Struct egg_mode::entities::HashtagEntity [] [src]

pub struct HashtagEntity {
    pub range: (usize, usize),
    pub text: String,
}

Represents a hashtag or symbol extracted from another piece of text.

Fields

The byte offsets where the hashtag is located. The first index is the location of the # or $ character; the second is the location of the first character following the hashtag.

The text of the hashtag, without the leading # or $ character.

Trait Implementations

impl Debug for HashtagEntity
[src]

[src]

Formats the value using the given formatter.

impl Clone for HashtagEntity
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more