pub struct BoundedLogSafeDisplay<'a> { /* private fields */ }Expand description
A byte-bounded rendering of text that is already safe for a log boundary.
§Type Parameters
'a- Lifetime of the borrowed log-safe text.
Trait Implementations§
Source§impl Display for BoundedLogSafeDisplay<'_>
impl Display for BoundedLogSafeDisplay<'_>
Source§fn fmt(&self, formatter: &mut Formatter<'_>) -> Result
fn fmt(&self, formatter: &mut Formatter<'_>) -> Result
Writes the escaped source text without exceeding the output limit.
§Parameters
formatter- Destination formatting context.
§Returns
The formatter result after writing bounded escaped text.
§Errors
Returns fmt::Error when the destination formatter rejects output.
Auto Trait Implementations§
impl<'a> Freeze for BoundedLogSafeDisplay<'a>
impl<'a> RefUnwindSafe for BoundedLogSafeDisplay<'a>
impl<'a> Send for BoundedLogSafeDisplay<'a>
impl<'a> Sync for BoundedLogSafeDisplay<'a>
impl<'a> Unpin for BoundedLogSafeDisplay<'a>
impl<'a> UnsafeUnpin for BoundedLogSafeDisplay<'a>
impl<'a> UnwindSafe for BoundedLogSafeDisplay<'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