Enum erl_tokenize::HiddenToken
[−]
[src]
pub enum HiddenToken { Comment(CommentToken), Whitespace(WhitespaceToken), }
Hidden token.
"Hidden" means it has no lexical meanings.
Variants
Comment(CommentToken)
Whitespace(WhitespaceToken)
Methods
impl HiddenToken
[src]
fn text(&self) -> &str
Returns the original textual representation of this token.
fn as_comment_token(&self) -> Option<&CommentToken>
Tries to return the reference to the inner CommentToken
.
fn as_whitespace_token(&self) -> Option<&WhitespaceToken>
Tries to return the reference to the inner WhitespaceToken
.
fn into_comment_token(self) -> Result<CommentToken, Self>
Tries to return the inner CommentToken
.
fn into_whitespace_token(self) -> Result<WhitespaceToken, Self>
Tries to return the inner WhitespaceToken
.
Trait Implementations
impl Debug for HiddenToken
[src]
impl Clone for HiddenToken
[src]
fn clone(&self) -> HiddenToken
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl From<CommentToken> for HiddenToken
[src]
fn from(f: CommentToken) -> Self
Performs the conversion.
impl From<WhitespaceToken> for HiddenToken
[src]
fn from(f: WhitespaceToken) -> Self
Performs the conversion.
impl PositionRange for HiddenToken
[src]
fn start_position(&self) -> Position
Returns the (inclusive) start position of this.
fn end_position(&self) -> Position
Returns the (exclusive) end position of this.