#[non_exhaustive]pub struct Multiline {
pub single: bool,
pub double: bool,
pub backtick: bool,
}Expand description
Independently enabled multiline quote forms.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.single: boolPermit line endings inside single quotes.
double: boolPermit line endings inside double quotes.
backtick: boolPermit line endings inside backticks.
Implementations§
Source§impl Multiline
impl Multiline
Sourcepub const fn with_single(self, value: bool) -> Self
pub const fn with_single(self, value: bool) -> Self
Permit or forbid line endings inside single quotes.
Sourcepub const fn with_double(self, value: bool) -> Self
pub const fn with_double(self, value: bool) -> Self
Permit or forbid line endings inside double quotes.
Sourcepub const fn with_backtick(self, value: bool) -> Self
pub const fn with_backtick(self, value: bool) -> Self
Permit or forbid line endings inside backticks.
Trait Implementations§
impl Copy for Multiline
impl Eq for Multiline
impl StructuralPartialEq for Multiline
Auto Trait Implementations§
impl Freeze for Multiline
impl RefUnwindSafe for Multiline
impl Send for Multiline
impl Sync for Multiline
impl Unpin for Multiline
impl UnsafeUnpin for Multiline
impl UnwindSafe for Multiline
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