Struct WriteBuffer
struct WriteBuffer<SIZE: usize> { ... }
A buffer for construct a string while avoiding heap allocation.
The only requirement is that the buffer is large enough to hold the formatted string.
Implementations
impl<SIZE: usize> WriteBuffer<SIZE>
const fn new() -> SelfCreates an empty buffer.
fn as_str(self: &Self) -> &strObtain the contents of the buffer as a string.
const fn remaining_capacity(self: &Self) -> usizeDetermine how many bytes are remaining in the buffer.
impl<LEFT_SIZE: usize, RIGHT_SIZE: usize> PartialEq for WriteBuffer<LEFT_SIZE>
fn eq(self: &Self, other: &WriteBuffer<RIGHT_SIZE>) -> bool
impl<LEFT_SIZE: usize, RIGHT_SIZE: usize> PartialOrd for WriteBuffer<LEFT_SIZE>
fn partial_cmp(self: &Self, other: &WriteBuffer<RIGHT_SIZE>) -> Option<Ordering>
impl<P, T> Receiver for WriteBuffer<SIZE>
impl<SIZE: usize> AsRef for WriteBuffer<SIZE>
fn as_ref(self: &Self) -> &str
impl<SIZE: usize> AsRef for WriteBuffer<SIZE>
fn as_ref(self: &Self) -> &[u8]
impl<SIZE: usize> Borrow for WriteBuffer<SIZE>
fn borrow(self: &Self) -> &str
impl<SIZE: usize> Debug for WriteBuffer<SIZE>
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl<SIZE: usize> Default for WriteBuffer<SIZE>
fn default() -> Self
impl<SIZE: usize> Deref for WriteBuffer<SIZE>
fn deref(self: &Self) -> &<Self as >::Target
impl<SIZE: usize> Display for WriteBuffer<SIZE>
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl<SIZE: usize> Eq for WriteBuffer<SIZE>
impl<SIZE: usize> Freeze for WriteBuffer<SIZE>
impl<SIZE: usize> Hash for WriteBuffer<SIZE>
fn hash<H: Hasher>(self: &Self, state: &mut H)
impl<SIZE: usize> Ord for WriteBuffer<SIZE>
fn cmp(self: &Self, other: &Self) -> Ordering
impl<SIZE: usize> RefUnwindSafe for WriteBuffer<SIZE>
impl<SIZE: usize> Send for WriteBuffer<SIZE>
impl<SIZE: usize> SmartDisplay for WriteBuffer<SIZE>
fn metadata(self: &Self, _: FormatterOptions) -> Metadata<'_, Self>fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl<SIZE: usize> Sync for WriteBuffer<SIZE>
impl<SIZE: usize> Unpin for WriteBuffer<SIZE>
impl<SIZE: usize> UnsafeUnpin for WriteBuffer<SIZE>
impl<SIZE: usize> UnwindSafe for WriteBuffer<SIZE>
impl<SIZE: usize> Write for WriteBuffer<SIZE>
fn write_str(self: &mut Self, s: &str) -> Result
impl<T> Any for WriteBuffer<SIZE>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for WriteBuffer<SIZE>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for WriteBuffer<SIZE>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> From for WriteBuffer<SIZE>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into for WriteBuffer<SIZE>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for WriteBuffer<SIZE>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for WriteBuffer<SIZE>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>