pub struct StringDelimiter {
pub start: String,
pub end: String,
pub escape: Option<String>,
pub multiline: bool,
}Expand description
A string form the scan skips over, so a comment token inside one is text.
Fields§
§start: StringThe opening token.
end: StringThe closing token, which may be the same as start.
escape: Option<String>A token that protects the byte after it, such as \\.
multiline: boolWhether the string may cross a line terminator. When it may not, a
line terminator ends it and an unterminated-profile-string
diagnostic is raised.
Trait Implementations§
Source§impl Clone for StringDelimiter
impl Clone for StringDelimiter
Source§fn clone(&self) -> StringDelimiter
fn clone(&self) -> StringDelimiter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StringDelimiter
impl Debug for StringDelimiter
Source§impl<'de> Deserialize<'de> for StringDelimiter
impl<'de> Deserialize<'de> for StringDelimiter
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for StringDelimiter
Source§impl PartialEq for StringDelimiter
impl PartialEq for StringDelimiter
Source§impl Serialize for StringDelimiter
impl Serialize for StringDelimiter
impl StructuralPartialEq for StringDelimiter
Auto Trait Implementations§
impl Freeze for StringDelimiter
impl RefUnwindSafe for StringDelimiter
impl Send for StringDelimiter
impl Sync for StringDelimiter
impl Unpin for StringDelimiter
impl UnsafeUnpin for StringDelimiter
impl UnwindSafe for StringDelimiter
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