pub struct LeafRange<BorrowType, K, V> {
front: Option<Handle<NodeRef<BorrowType, K, V, Leaf>, Edge>>,
back: Option<Handle<NodeRef<BorrowType, K, V, Leaf>, Edge>>,
}
Fields§
§front: Option<Handle<NodeRef<BorrowType, K, V, Leaf>, Edge>>
§back: Option<Handle<NodeRef<BorrowType, K, V, Leaf>, Edge>>
Implementations§
source§impl<'a, K, V> LeafRange<Immut<'a>, K, V>
impl<'a, K, V> LeafRange<Immut<'a>, K, V>
pub fn next_checked(&mut self) -> Option<(&'a K, &'a V)>
pub fn next_back_checked(&mut self) -> Option<(&'a K, &'a V)>
source§impl<'a, K, V> LeafRange<ValMut<'a>, K, V>
impl<'a, K, V> LeafRange<ValMut<'a>, K, V>
pub fn next_checked(&mut self) -> Option<(&'a K, &'a mut V)>
pub fn next_back_checked(&mut self) -> Option<(&'a K, &'a mut V)>
source§impl<BorrowType: BorrowType, K, V> LeafRange<BorrowType, K, V>
impl<BorrowType: BorrowType, K, V> LeafRange<BorrowType, K, V>
sourcefn perform_next_checked<F, R>(&mut self, f: F) -> Option<R>where
F: Fn(&Handle<NodeRef<BorrowType, K, V, LeafOrInternal>, KV>) -> R,
fn perform_next_checked<F, R>(&mut self, f: F) -> Option<R>where F: Fn(&Handle<NodeRef<BorrowType, K, V, LeafOrInternal>, KV>) -> R,
If possible, extract some result from the following KV and move to the edge beyond it.
sourcefn perform_next_back_checked<F, R>(&mut self, f: F) -> Option<R>where
F: Fn(&Handle<NodeRef<BorrowType, K, V, LeafOrInternal>, KV>) -> R,
fn perform_next_back_checked<F, R>(&mut self, f: F) -> Option<R>where F: Fn(&Handle<NodeRef<BorrowType, K, V, LeafOrInternal>, KV>) -> R,
If possible, extract some result from the preceding KV and move to the edge beyond it.
Trait Implementations§
Auto Trait Implementations§
impl<BorrowType, K, V> RefUnwindSafe for LeafRange<BorrowType, K, V>where BorrowType: RefUnwindSafe, K: RefUnwindSafe, V: RefUnwindSafe,
impl<BorrowType, K, V> !Send for LeafRange<BorrowType, K, V>
impl<BorrowType, K, V> Sync for LeafRange<BorrowType, K, V>where K: Sync, V: Sync,
impl<BorrowType, K, V> Unpin for LeafRange<BorrowType, K, V>where BorrowType: Unpin,
impl<BorrowType, K, V> UnwindSafe for LeafRange<BorrowType, K, V>where BorrowType: UnwindSafe, K: RefUnwindSafe, V: RefUnwindSafe,
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