[][src]Struct rhai::TokenizeState

pub struct TokenizeState {
    pub max_string_size: usize,
    pub non_unary: bool,
    pub comment_level: usize,
    pub end_with_none: bool,
    pub include_comments: bool,
}

[INTERNALS] State of the tokenizer. Exported under the internals feature only.

WARNING

This type is volatile and may change.

Fields

max_string_size: usize

Maximum length of a string (0 = unlimited).

non_unary: bool

Can the next token be a unary operator?

comment_level: usize

Is the tokenizer currently inside a block comment?

end_with_none: bool

Return None at the end of the stream instead of Some(Token::EOF)?

include_comments: bool

Include comments?

Trait Implementations

impl Clone for TokenizeState[src]

impl Debug for TokenizeState[src]

impl Default for TokenizeState[src]

impl Eq for TokenizeState[src]

impl PartialEq<TokenizeState> for TokenizeState[src]

impl StructuralEq for TokenizeState[src]

impl StructuralPartialEq for TokenizeState[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.