pub struct StringKind {
pub delimiter: StringDelimiter,
pub indented: bool,
}
Fieldsยง
ยงdelimiter: StringDelimiter
ยงindented: bool
Implementationsยง
Sourceยงimpl StringKind
impl StringKind
pub fn delimiter(self) -> &'static str
pub fn delimiter_len(self) -> usize
pub fn token_kind(self) -> TokenKind
pub fn unterminated_error_kind(self) -> CompileErrorKind<'static>
pub fn processes_escape_sequences(self) -> bool
pub fn indented(self) -> bool
pub fn from_string_or_backtick( token: Token<'_>, ) -> Result<Self, CompileError<'_>>
pub fn from_token_start(token_start: &str) -> Option<Self>
Trait Implementationsยง
Sourceยงimpl Clone for StringKind
impl Clone for StringKind
Sourceยงfn clone(&self) -> StringKind
fn clone(&self) -> StringKind
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 StringKind
impl Debug for StringKind
Sourceยงimpl Ord for StringKind
impl Ord for StringKind
Sourceยงfn cmp(&self, other: &StringKind) -> Ordering
fn cmp(&self, other: &StringKind) -> 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 StringKind
impl PartialEq for StringKind
Sourceยงimpl PartialOrd for StringKind
impl PartialOrd for StringKind
impl Copy for StringKind
impl Eq for StringKind
impl StructuralPartialEq for StringKind
Auto Trait Implementationsยง
impl Freeze for StringKind
impl RefUnwindSafe for StringKind
impl Send for StringKind
impl Sync for StringKind
impl Unpin for StringKind
impl UnwindSafe for StringKind
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