Range

Trait Range 

Source
pub trait Range<'a, K, T>
where T: Serialize + DeserializeOwned + 'a, K: PrimaryKey<'a> + KeyDeserialize<Output = K>,
{ // Required method fn range<'c>( &self, store: &'c dyn Storage, min: Option<Bound<'a, K>>, max: Option<Bound<'a, K>>, order: Order, ) -> Box<dyn Iterator<Item = StdResult<(K::Output, T)>> + 'c> where T: 'c, K::Output: 'static; }

Required Methods§

Source

fn range<'c>( &self, store: &'c dyn Storage, min: Option<Bound<'a, K>>, max: Option<Bound<'a, K>>, order: Order, ) -> Box<dyn Iterator<Item = StdResult<(K::Output, T)>> + 'c>
where T: 'c, K::Output: 'static,

Implementations on Foreign Types§

Source§

impl<'a, K, T> Range<'a, K, T> for Map<'a, K, T>
where T: Serialize + DeserializeOwned + 'a, K: PrimaryKey<'a> + KeyDeserialize<Output = K>,

Source§

fn range<'c>( &self, store: &'c dyn Storage, min: Option<Bound<'a, K>>, max: Option<Bound<'a, K>>, order: Order, ) -> Box<dyn Iterator<Item = StdResult<(K::Output, T)>> + 'c>
where T: 'c, K::Output: 'static,

Source§

impl<'a, K, T> Range<'a, K, T> for Prefix<K, T, K>
where T: Serialize + DeserializeOwned + 'a, K: PrimaryKey<'a> + KeyDeserialize<Output = K>,

Source§

fn range<'c>( &self, store: &'c dyn Storage, min: Option<Bound<'a, K>>, max: Option<Bound<'a, K>>, order: Order, ) -> Box<dyn Iterator<Item = StdResult<(K::Output, T)>> + 'c>
where T: 'c, K::Output: 'static,

Implementors§