Struct ublox::FixedLinearBuffer
source · pub struct FixedLinearBuffer<'a> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<'a> Index<usize> for FixedLinearBuffer<'a>
impl<'a> Index<usize> for FixedLinearBuffer<'a>
source§impl<'a> UnderlyingBuffer for FixedLinearBuffer<'a>
impl<'a> UnderlyingBuffer for FixedLinearBuffer<'a>
source§fn max_capacity(&self) -> usize
fn max_capacity(&self) -> usize
Returns the maximum capacity of this buffer. This value should be a minimum max
capacity - that is,
extend_from_slice
should succeed if max_capacity bytes are
passed to it. Read moresource§fn extend_from_slice(&mut self, other: &[u8]) -> usize
fn extend_from_slice(&mut self, other: &[u8]) -> usize
Returns the number of bytes not copied over due to buffer size constraints. Read more
source§fn drain(&mut self, count: usize)
fn drain(&mut self, count: usize)
Removes the first
count
elements from the buffer. Cannot fail.Auto Trait Implementations§
impl<'a> RefUnwindSafe for FixedLinearBuffer<'a>
impl<'a> Send for FixedLinearBuffer<'a>
impl<'a> Sync for FixedLinearBuffer<'a>
impl<'a> Unpin for FixedLinearBuffer<'a>
impl<'a> !UnwindSafe for FixedLinearBuffer<'a>
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