Struct EscapeOptions

pub(crate) struct EscapeOptions { pub escape_single_quote: bool, pub escape_double_quote: bool, pub escape_nonascii: bool }

Fields

escape_single_quote: bool

Produce '.

escape_double_quote: bool

Produce ".

escape_nonascii: bool

Produce \x escapes for non-ASCII, and use \x rather than \u for ASCII control characters.

Trait Implementations

impl Clone for EscapeOptions

fn clone(&self) -> EscapeOptions

impl Copy for EscapeOptions

impl TrivialClone for EscapeOptions

Auto Trait Implementations

impl Freeze for EscapeOptions

impl RefUnwindSafe for EscapeOptions

impl Send for EscapeOptions

impl Sync for EscapeOptions

impl Unpin for EscapeOptions

impl UnsafeUnpin for EscapeOptions

impl UnwindSafe for EscapeOptions

Blanket Implementations

impl<T> Any for EscapeOptions where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for EscapeOptions where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for EscapeOptions where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for EscapeOptions where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for EscapeOptions

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> SizeHint for EscapeOptions where T: ?Sized,

fn lower_bound(&self) -> usize
fn upper_bound(&self) -> Option<usize>

impl<T> SizedTypeProperties for EscapeOptions

impl<T> ToOwned for EscapeOptions where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for EscapeOptions where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for EscapeOptions where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for EscapeOptions where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>