Struct EscapeDebugExtArgs

pub(crate) struct EscapeDebugExtArgs { pub(crate) escape_grapheme_extender: bool, pub(crate) escape_single_quote: bool, pub(crate) escape_double_quote: bool }

Fields

escape_grapheme_extender: bool

Escape Grapheme Extender codepoints?

Note that this excludes U+FF9E HALFWIDTH KATAKANA VOICED SOUND MARK and U+FF9F HALFWIDTH KATAKANA SEMI-VOICED SOUND MARK, which are never escaped, as graphically they are not combining. See https://github.com/microsoft/terminal/issues/18087 for background on these characters.

escape_single_quote: bool

Escape single quotes?

escape_double_quote: bool

Escape double quotes?

Implementations

impl EscapeDebugExtArgs

const ESCAPE_ALL: Self = _;

Auto Trait Implementations

impl Freeze for EscapeDebugExtArgs

impl RefUnwindSafe for EscapeDebugExtArgs

impl Send for EscapeDebugExtArgs

impl Sync for EscapeDebugExtArgs

impl Unpin for EscapeDebugExtArgs

impl UnsafeUnpin for EscapeDebugExtArgs

impl UnwindSafe for EscapeDebugExtArgs

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

impl<T> From<T> for EscapeDebugExtArgs

fn from(t: T) -> T

Returns the argument unchanged.

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

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

impl<T> SizedTypeProperties for EscapeDebugExtArgs

impl<T, U> Into<U> for EscapeDebugExtArgs 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 EscapeDebugExtArgs where U: Into<T>,

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

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

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