[][src]Enum asn1rs_model::parser::Token

pub enum Token {
    Text(LocationString),
    Separator(Locationchar),
}

Variants

Separator(Locationchar)

Implementations

impl Token[src]

pub fn location(&self) -> Location[src]

pub fn eq_text(&self, text: &str) -> bool[src]

pub fn eq_text_ignore_ascii_case(&self, text: &str) -> bool[src]

pub fn eq_separator(&self, separator: char) -> bool[src]

pub fn text(&self) -> Option<&str>[src]

pub fn separator(&self) -> Option<char>[src]

pub fn is_text(&self) -> bool[src]

pub fn is_separator(&self) -> bool[src]

pub fn into_text(self) -> Option<String>[src]

pub fn into_text_or_else<E, F: Fn(Token) -> E>(self, f: F) -> Result<String, E>[src]

pub fn into_separator_or_else<E, F: Fn(Token) -> E>(
    self,
    f: F
) -> Result<char, E>
[src]

Trait Implementations

impl Debug for Token[src]

impl Display for Token[src]

impl From<String> for Token[src]

impl From<char> for Token[src]

impl PartialEq<Token> for Token[src]

impl PartialOrd<Token> for Token[src]

impl StructuralPartialEq for Token[src]

Auto Trait Implementations

impl RefUnwindSafe for Token

impl Send for Token

impl Sync for Token

impl Unpin for Token

impl UnwindSafe for Token

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.