Struct rust_chain::db::Iterator
source · [−]pub struct Iterator<'a, T> where
T: Packer + PrimaryValueInterface + Default, { /* private fields */ }
Expand description
Implementations
sourceimpl<'a, T> Iterator<'a, T> where
T: Packer + PrimaryValueInterface + Default,
impl<'a, T> Iterator<'a, T> where
T: Packer + PrimaryValueInterface + Default,
sourcepub fn get_primary(&self) -> Option<u64>
pub fn get_primary(&self) -> Option<u64>
get primary key of iterator
access TableI64
to extract primary key from value if primary key is not cached
pub fn set_primary(&mut self, primary: u64)
sourcepub fn is_end(&self) -> bool
pub fn is_end(&self) -> bool
return true
if it’s an end iterator, else false
use this method to check the return value of MultiIndex.end
or TableI64.end
sourcepub fn expect_not_ok(self, msg: &str) -> Self
pub fn expect_not_ok(self, msg: &str) -> Self
help function for asserting on invalid iterator
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for Iterator<'a, T> where
T: RefUnwindSafe,
impl<'a, T> Send for Iterator<'a, T> where
T: Sync,
impl<'a, T> Sync for Iterator<'a, T> where
T: Sync,
impl<'a, T> Unpin for Iterator<'a, T>
impl<'a, T> UnwindSafe for Iterator<'a, T> where
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more