Struct brotli::enc::fixed_queue::FixedQueue
source · pub struct FixedQueue<T: Sized> {
data: [Option<T>; 16],
size: usize,
start: usize,
}
Fields§
§data: [Option<T>; 16]
§size: usize
§start: usize
Implementations§
source§impl<T: Sized> FixedQueue<T>
impl<T: Sized> FixedQueue<T>
pub fn new() -> Self
pub fn can_push(&self) -> bool
pub fn size(&self) -> usize
pub fn push(&mut self, item: T) -> Result<(), ()>
pub fn pop(&mut self) -> Option<T>
pub fn how_much_free_space(&self) -> usize
pub fn remove<F: Fn(&Option<T>) -> bool>(&mut self, f: F) -> Option<T>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for FixedQueue<T>where
T: Freeze,
impl<T> RefUnwindSafe for FixedQueue<T>where
T: RefUnwindSafe,
impl<T> Send for FixedQueue<T>where
T: Send,
impl<T> Sync for FixedQueue<T>where
T: Sync,
impl<T> Unpin for FixedQueue<T>where
T: Unpin,
impl<T> UnwindSafe for FixedQueue<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