pub struct FormatCache<const N: usize, const B: usize> { /* private fields */ }Expand description
A fixed-size cache of N layouts of at most B bytes, replacing the oldest: enough
for the handful of meters a firmware listens to, without an allocator.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<const N: usize, const B: usize> Forget for FormatCache<N, B>
impl<const N: usize, const B: usize> Freeze for FormatCache<N, B>
impl<const N: usize, const B: usize> Move for FormatCache<N, B>
impl<const N: usize, const B: usize> RefUnwindSafe for FormatCache<N, B>
impl<const N: usize, const B: usize> Send for FormatCache<N, B>
impl<const N: usize, const B: usize> Sync for FormatCache<N, B>
impl<const N: usize, const B: usize> Unpin for FormatCache<N, B>
impl<const N: usize, const B: usize> UnsafeUnpin for FormatCache<N, B>
impl<const N: usize, const B: usize> UnwindSafe for FormatCache<N, B>
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