pub struct Display<'a, S: ?Sized> { /* private fields */ }Expand description
Helper struct for printing wide C string values with format! and {}.
A wide C string might contain ill-formed UTF encoding. This struct implements the
Display trait in a way that decoding the string is lossy but no heap
allocations are performed, such as by to_string_lossy. It is
created by the display method on U16CStr and U32CStr.
By default, invalid Unicode data is replaced with
U+FFFD REPLACEMENT CHARACTER (�). If you wish to simply
skip any invalid Uncode data and forego the replacement, you may use the
alternate formatting with {:#}.
Trait Implementations§
Auto Trait Implementations§
impl<'a, S> Freeze for Display<'a, S>where
S: ?Sized,
impl<'a, S> RefUnwindSafe for Display<'a, S>where
S: RefUnwindSafe + ?Sized,
impl<'a, S> Send for Display<'a, S>
impl<'a, S> Sync for Display<'a, S>
impl<'a, S> Unpin for Display<'a, S>where
S: ?Sized,
impl<'a, S> UnwindSafe for Display<'a, S>where
S: RefUnwindSafe + ?Sized,
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