Struct rhai::TokenizeState [−][src]
pub struct TokenizeState { pub max_string_size: Option<NonZeroUsize>, pub non_unary: bool, pub comment_level: usize, pub include_comments: bool, pub is_within_text_terminated_by: Option<char>, }
Expand description
(INTERNALS) State of the tokenizer.
Exported under the internals
feature only.
Volatile Data Structure
This type is volatile and may change.
Fields
max_string_size: Option<NonZeroUsize>
Maximum length of a string.
non_unary: bool
Can the next token be a unary operator?
comment_level: usize
Is the tokenizer currently inside a block comment?
include_comments: bool
Include comments?
is_within_text_terminated_by: Option<char>
Is the current tokenizer position within the text stream of an interpolated string?
Trait Implementations
impl Clone for TokenizeState
[src]
impl Clone for TokenizeState
[src]fn clone(&self) -> TokenizeState
[src]
fn clone(&self) -> TokenizeState
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for TokenizeState
[src]
impl Debug for TokenizeState
[src]impl Default for TokenizeState
[src]
impl Default for TokenizeState
[src]fn default() -> TokenizeState
[src]
fn default() -> TokenizeState
[src]Returns the “default value” for a type. Read more
impl PartialEq<TokenizeState> for TokenizeState
[src]
impl PartialEq<TokenizeState> for TokenizeState
[src]fn eq(&self, other: &TokenizeState) -> bool
[src]
fn eq(&self, other: &TokenizeState) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &TokenizeState) -> bool
[src]
fn ne(&self, other: &TokenizeState) -> bool
[src]This method tests for !=
.
impl Eq for TokenizeState
[src]
impl StructuralEq for TokenizeState
[src]
impl StructuralPartialEq for TokenizeState
[src]
Auto Trait Implementations
impl RefUnwindSafe for TokenizeState
impl Send for TokenizeState
impl Sync for TokenizeState
impl Unpin for TokenizeState
impl UnwindSafe for TokenizeState
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more