pub struct CacheLast<T> { /* private fields */ }Implementations§
Source§impl<T> CacheLast<T>where
T: Clone + 'static,
impl<T> CacheLast<T>where
T: Clone + 'static,
pub fn new(iter: Box<dyn Iterator<Item = Result<T, Error>>>) -> CacheLast<T>
pub fn iter(&mut self) -> Box<dyn Iterator<Item = Result<T, Error>>>
pub fn iter_with_emit_first( &mut self, ) -> Box<dyn Iterator<Item = Result<T, Error>>>
pub fn insert_last_to_head(&mut self)
pub fn is_empty(&self) -> bool
pub fn is_finished(&self) -> bool
pub fn get_last_item(&self) -> Option<Result<T, Error>>
Auto Trait Implementations§
impl<T> Freeze for CacheLast<T>
impl<T> !RefUnwindSafe for CacheLast<T>
impl<T> !Send for CacheLast<T>
impl<T> !Sync for CacheLast<T>
impl<T> Unpin for CacheLast<T>
impl<T> !UnwindSafe for CacheLast<T>
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