Struct irox_tools::FixedBuf
source · pub struct FixedBuf<const N: usize, T: Sized> { /* private fields */ }Implementations§
Trait Implementations§
source§impl<const N: usize, T: Sized> Buffer<T> for FixedBuf<N, T>
impl<const N: usize, T: Sized> Buffer<T> for FixedBuf<N, T>
fn get(&self, index: usize) -> Option<&T>
fn get_mut(&mut self, index: usize) -> Option<&mut T>
fn capacity(&self) -> usize
fn len(&self) -> usize
fn clear(&mut self)
fn front(&self) -> Option<&T>
fn front_mut(&mut self) -> Option<&mut T>
fn back(&self) -> Option<&T>
fn back_mut(&mut self) -> Option<&mut T>
fn pop_front(&mut self) -> Option<T>
fn pop_back(&mut self) -> Option<T>
fn push_front(&mut self, value: T) -> Result<(), T>
fn push_back(&mut self, value: T) -> Result<(), T>
fn push(&mut self, value: T) -> Result<(), T>
fn is_empty(&self) -> bool
source§impl<const N: usize> Write for FixedBuf<N, char>
impl<const N: usize> Write for FixedBuf<N, char>
Auto Trait Implementations§
impl<const N: usize, T> Freeze for FixedBuf<N, T>where
T: Freeze,
impl<const N: usize, T> RefUnwindSafe for FixedBuf<N, T>where
T: RefUnwindSafe,
impl<const N: usize, T> Send for FixedBuf<N, T>where
T: Send,
impl<const N: usize, T> Sync for FixedBuf<N, T>where
T: Sync,
impl<const N: usize, T> Unpin for FixedBuf<N, T>where
T: Unpin,
impl<const N: usize, T> UnwindSafe for FixedBuf<N, T>where
T: UnwindSafe,
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