pub struct GuardedStr {
    pub n_hashes: u32,
    pub terminated: bool,
    pub token_len: u32,
}Expand description
#"abc"#, ##"a" (fewer closing), or even #"a (unterminated).
Can capture fewer closing hashes than starting hashes, for more efficient lexing and better backwards diagnostics.
Fields§
§n_hashes: u32§terminated: bool§token_len: u32Trait Implementations§
Source§impl Clone for GuardedStr
 
impl Clone for GuardedStr
Source§fn clone(&self) -> GuardedStr
 
fn clone(&self) -> GuardedStr
Returns a duplicate 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 GuardedStr
 
impl Debug for GuardedStr
Source§impl Ord for GuardedStr
 
impl Ord for GuardedStr
Source§fn cmp(&self, other: &GuardedStr) -> Ordering
 
fn cmp(&self, other: &GuardedStr) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
    Self: Sized,
 
fn max(self, other: Self) -> Selfwhere
    Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GuardedStr
 
impl PartialEq for GuardedStr
Source§impl PartialOrd for GuardedStr
 
impl PartialOrd for GuardedStr
impl Copy for GuardedStr
impl Eq for GuardedStr
impl StructuralPartialEq for GuardedStr
Auto Trait Implementations§
impl Freeze for GuardedStr
impl RefUnwindSafe for GuardedStr
impl Send for GuardedStr
impl Sync for GuardedStr
impl Unpin for GuardedStr
impl UnwindSafe for GuardedStr
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,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 12 bytes