pub struct FormatBuffer { /* private fields */ }Expand description
Stack-resident UTF-8 buffer for one log record’s formatted body.
Write impl truncates + appends a single … (3 bytes) on
overflow; subsequent writes drop silently. The truncated content
is still valid UTF-8 (… is 3 bytes; we shrink first to make
room rather than splitting a multi-byte sequence).
Implementations§
Trait Implementations§
Source§impl Default for FormatBuffer
impl Default for FormatBuffer
Auto Trait Implementations§
impl Freeze for FormatBuffer
impl RefUnwindSafe for FormatBuffer
impl Send for FormatBuffer
impl Sync for FormatBuffer
impl Unpin for FormatBuffer
impl UnsafeUnpin for FormatBuffer
impl UnwindSafe for FormatBuffer
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