pub struct RawFormatter { /* private fields */ }
Expand description
Allows formatting of fmt::Arguments
into a raw buffer.
It does not fail if callers write past the end of the buffer so that they can calculate the size required to fit everything.
§Invariants
The memory region between pos
(inclusive) and end
(exclusive) is valid for writes if pos
is less than end
.
Implementations§
Source§impl RawFormatter
impl RawFormatter
Sourcepub fn bytes_written(&self) -> usize
pub fn bytes_written(&self) -> usize
Returns the number of bytes written to the formatter.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RawFormatter
impl RefUnwindSafe for RawFormatter
impl Send for RawFormatter
impl Sync for RawFormatter
impl Unpin for RawFormatter
impl UnwindSafe for RawFormatter
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> PinInit<T> for T
impl<T> PinInit<T> for T
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
Initializes
slot
. Read more