Skip to main content

Module sorted_map

Module sorted_map 

Source

Re-exportsยง

use std::borrow::Borrow; ๐Ÿ”’
use std::cmp::Ordering; ๐Ÿ”’
use std::fmt::Debug; ๐Ÿ”’
use std::fmt::Debug; ๐Ÿ”’
use std::iter::TrustedLen; ๐Ÿ”’ Experimental
use std::mem; ๐Ÿ”’
use std::ops::Bound; ๐Ÿ”’
use std::ops::Index; ๐Ÿ”’
use std::ops::IndexMut; ๐Ÿ”’
use std::ops::RangeBounds; ๐Ÿ”’
use rustc_macros::Decodable_NoContext; ๐Ÿ”’
use rustc_macros::Encodable_NoContext; ๐Ÿ”’
use crate::stable_hash::StableHash; ๐Ÿ”’
use crate::stable_hash::StableHashCtxt; ๐Ÿ”’
use crate::stable_hash::StableHasher; ๐Ÿ”’
use crate::stable_hash::StableOrd; ๐Ÿ”’
pub use index_map::SortedIndexMultiMap;

Modulesยง

index_map ๐Ÿ”’
A variant of SortedMap that preserves insertion order.

Structsยง

SortedMap
SortedMap is a data structure with similar characteristics as BTreeMap but slightly different trade-offs: lookup is O(log(n)), insertion and removal are O(n) but elements can be iterated in order cheaply.