Type Alias IndexMap

Source
pub type IndexMap<K, V, S = RandomState> = IndexMap<K, V, S>;

Aliased Type§

struct IndexMap<K, V, S = RandomState> { /* private fields */ }

Trait Implementations§

Source§

impl<X: CustomValueKind, K, V> Categorize<X> for IndexMap<K, V>

Source§

impl<X: CustomValueKind, D: Decoder<X>, K: Decode<X, D> + Categorize<X> + Hash + Eq, V: Decode<X, D> + Categorize<X>> Decode<X, D> for IndexMap<K, V>

Source§

fn decode_body_with_value_kind( decoder: &mut D, value_kind: ValueKind<X>, ) -> Result<Self, DecodeError>

Decodes the type from the decoder, which should match a preloaded value kind. Read more
Source§

impl<C: CustomTypeKind<RustTypeId>, K: Describe<C>, V: Describe<C>> Describe<C> for IndexMap<K, V>

Source§

const TYPE_ID: RustTypeId = BTreeMap<K, V>::TYPE_ID

The TYPE_ID should give a unique identifier for its SBOR schema type. An SBOR schema type capture details about the SBOR payload, how it should be interpreted, validated and displayed. Read more
Source§

fn type_data() -> TypeData<C, RustTypeId>

Returns the local schema for the given type. Read more
Source§

fn add_all_dependencies(aggregator: &mut TypeAggregator<C>)

For each type referenced in get_local_type_data, we need to ensure that the type and all of its own references get added to the aggregator. Read more
Source§

impl<X: CustomValueKind, E: Encoder<X>, K: Encode<X, E> + Categorize<X> + Hash + Eq + PartialEq, V: Encode<X, E> + Categorize<X>> Encode<X, E> for IndexMap<K, V>

Source§

fn encode_value_kind(&self, encoder: &mut E) -> Result<(), EncodeError>

Encodes the SBOR value’s kind to the encoder
Source§

fn encode_body(&self, encoder: &mut E) -> Result<(), EncodeError>

Encodes the SBOR body of the type to the encoder. Read more