pub struct UnicodeEscape<'a> { /* private fields */ }Implementations§
Source§impl<'a> UnicodeEscape<'a>
impl<'a> UnicodeEscape<'a>
Source§impl UnicodeEscape<'_>
impl UnicodeEscape<'_>
pub fn repr_layout(source: &Wtf8, preferred_quote: Quote) -> EscapeLayout
Trait Implementations§
Source§impl Escape for UnicodeEscape<'_>
impl Escape for UnicodeEscape<'_>
fn source_len(&self) -> usize
fn layout(&self) -> &EscapeLayout
Source§unsafe fn write_source(&self, formatter: &mut impl Write) -> Result
unsafe fn write_source(&self, formatter: &mut impl Write) -> Result
Write the body of the string directly to the formatter. Read more
fn write_body_slow(&self, formatter: &mut impl Write) -> Result
fn changed(&self) -> bool
fn write_body(&self, formatter: &mut impl Write) -> Result
Auto Trait Implementations§
impl<'a> Freeze for UnicodeEscape<'a>
impl<'a> RefUnwindSafe for UnicodeEscape<'a>
impl<'a> Send for UnicodeEscape<'a>
impl<'a> Sync for UnicodeEscape<'a>
impl<'a> Unpin for UnicodeEscape<'a>
impl<'a> UnsafeUnpin for UnicodeEscape<'a>
impl<'a> UnwindSafe for UnicodeEscape<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more