Struct substreams::store::StoreGetProto
source · pub struct StoreGetProto<T> { /* private fields */ }
Implementations§
source§impl<T: Default + Message> StoreGetProto<T>
impl<T: Default + Message> StoreGetProto<T>
pub fn must_get_last<K: AsRef<str>>(&self, key: K) -> T
Trait Implementations§
source§impl<T> StoreGet<T> for StoreGetProto<T>
impl<T> StoreGet<T> for StoreGetProto<T>
source§fn new(idx: u32) -> StoreGetProto<T>
fn new(idx: u32) -> StoreGetProto<T>
Return a StoreGet object with a store index set
fn get_at<K: AsRef<str>>(&self, ord: u64, key: K) -> Option<T>
fn get_last<K: AsRef<str>>(&self, key: K) -> Option<T>
fn get_first<K: AsRef<str>>(&self, key: K) -> Option<T>
fn has_at<K: AsRef<str>>(&self, ord: u64, key: K) -> bool
fn has_last<K: AsRef<str>>(&self, key: K) -> bool
fn has_first<K: AsRef<str>>(&self, key: K) -> bool
Auto Trait Implementations§
impl<T> Freeze for StoreGetProto<T>
impl<T> RefUnwindSafe for StoreGetProto<T>where
T: RefUnwindSafe,
impl<T> Send for StoreGetProto<T>where
T: Send,
impl<T> Sync for StoreGetProto<T>where
T: Sync,
impl<T> Unpin for StoreGetProto<T>where
T: Unpin,
impl<T> UnwindSafe for StoreGetProto<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