pub struct QuoterOptions {
pub quote_pairs: Vec<(String, String)>,
pub quoted_syntax: Vec<Syntax>,
pub unquoted_syntax: Vec<Syntax>,
pub on_quote: Arc<dyn Fn(Quotable<'_>) -> String>,
pub on_quote_expansion: Arc<dyn Fn(Quotable<'_>) -> String>,
}Expand description
Options for Quoter.
Fields§
§quote_pairs: Vec<(String, String)>List of start and end quotes for strings.
quoted_syntax: Vec<Syntax>List of syntax and characters that must be quoted for expansion.
unquoted_syntax: Vec<Syntax>List of syntax and characters that must not be quoted.
on_quote: Arc<dyn Fn(Quotable<'_>) -> String>Handler to apply quoting.
on_quote_expansion: Arc<dyn Fn(Quotable<'_>) -> String>Handler to apply quoting for expansion.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QuoterOptions
impl !RefUnwindSafe for QuoterOptions
impl !Send for QuoterOptions
impl !Sync for QuoterOptions
impl Unpin for QuoterOptions
impl !UnwindSafe for QuoterOptions
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