Struct rhai::TokenizerControlBlock
source · pub struct TokenizerControlBlock {
pub is_within_text: bool,
pub global_comments: String,
pub compressed: Option<String>,
}
Expand description
(internals) A type containing commands to control the tokenizer.
Fields§
§is_within_text: bool
Is the current tokenizer position within an interpolated text string?
This flag allows switching the tokenizer back to text parsing after an interpolation stream.
global_comments: String
Global comments.
compressed: Option<String>
Whitespace-compressed version of the script (if any).
Set to Some
in order to collect a compressed script.
Implementations§
Trait Implementations§
source§impl Clone for TokenizerControlBlock
impl Clone for TokenizerControlBlock
source§fn clone(&self) -> TokenizerControlBlock
fn clone(&self) -> TokenizerControlBlock
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TokenizerControlBlock
impl Debug for TokenizerControlBlock
source§impl Default for TokenizerControlBlock
impl Default for TokenizerControlBlock
source§fn default() -> TokenizerControlBlock
fn default() -> TokenizerControlBlock
Returns the “default value” for a type. Read more
source§impl Hash for TokenizerControlBlock
impl Hash for TokenizerControlBlock
source§impl PartialEq for TokenizerControlBlock
impl PartialEq for TokenizerControlBlock
source§fn eq(&self, other: &TokenizerControlBlock) -> bool
fn eq(&self, other: &TokenizerControlBlock) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TokenizerControlBlock
impl StructuralPartialEq for TokenizerControlBlock
Auto Trait Implementations§
impl Freeze for TokenizerControlBlock
impl RefUnwindSafe for TokenizerControlBlock
impl Send for TokenizerControlBlock
impl Sync for TokenizerControlBlock
impl Unpin for TokenizerControlBlock
impl UnwindSafe for TokenizerControlBlock
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Variant for T
impl<T> Variant for T
source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert this
Variant
trait object to &mut dyn Any
.source§fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
Convert this
Variant
trait object to Box<dyn Any>
.