Trait ZeroMapKV
trait ZeroMapKV<'a>
Trait marking types which are allowed to be keys or values in ZeroMap.
Users should not be calling methods of this trait directly, however if you are
implementing your own AsULE or VarULE type you may wish to implement
this trait.
Associated Types
type Container: TraitBound { trait_: Path { path: "MutableZeroVecLike", id: Id(188), args: Some(AngleBracketed { args: [Lifetime("'a"), Type(Generic("Self"))], constraints: [AssocItemConstraint { name: "SliceVariant", args: None, binding: Equality(Type(QualifiedPath { name: "Slice", args: None, self_type: Generic("Self"), trait_: Some(Path { path: "", id: Id(125), args: None }) })) }, AssocItemConstraint { name: "GetType", args: None, binding: Equality(Type(QualifiedPath { name: "GetType", args: None, self_type: Generic("Self"), trait_: Some(Path { path: "", id: Id(125), args: None }) })) }, AssocItemConstraint { name: "OwnedType", args: None, binding: Equality(Type(QualifiedPath { name: "OwnedType", args: None, self_type: Generic("Self"), trait_: Some(Path { path: "", id: Id(125), args: None }) })) }] }) }, generic_params: [], modifier: None } + TraitBound { trait_: Path { path: "Sized", id: Id(6), args: None }, generic_params: [], modifier: None }The container that can be used with this type:
ZeroVecorVarZeroVec.type Slice: TraitBound { trait_: Path { path: "ZeroVecLike", id: Id(190), args: Some(AngleBracketed { args: [Type(Generic("Self"))], constraints: [AssocItemConstraint { name: "GetType", args: None, binding: Equality(Type(QualifiedPath { name: "GetType", args: None, self_type: Generic("Self"), trait_: Some(Path { path: "", id: Id(125), args: None }) })) }] }) }, generic_params: [], modifier: None } + TraitBound { trait_: Path { path: "Sized", id: Id(6), args: None }, generic_params: [], modifier: Maybe }type GetType: TraitBound { trait_: Path { path: "Sized", id: Id(6), args: None }, generic_params: [], modifier: Maybe } + Outlives("'static")The type produced by
Container::get()This type will be predetermined by the choice of
Self::Container: For sized types this must beT::ULE, and for unsized types this must beTtype OwnedType: Outlives("'static")The type produced by
Container::replace()andContainer::remove(), also used during deserialization. IfSelfis human readable serialized, deserializing toSelf::OwnedTypeshould produce the same value once passed throughSelf::owned_as_self()This type will be predetermined by the choice of
Self::Container: For sized types this must beTand for unsized types this must beBox<T>
Implementors
impl<'a, T> ZeroMapKV for [T]impl<'a> ZeroMapKV for f64impl<'a, T> ZeroMapKV for ZeroSlice<T>impl<'a> ZeroMapKV for i8impl<'a, A: Ord + AsULE + 'static, B: Ord + AsULE + 'static, C: Ord + AsULE + 'static> ZeroMapKV for (A, B, C)impl<'a> ZeroMapKV for strimpl<'a> ZeroMapKV for f32impl<'a, T, N: usize> ZeroMapKV for [T; N]impl<'a> ZeroMapKV for u128impl<'a> ZeroMapKV for NonZeroU8impl<'a, T: AsULE + 'static, N: usize> ZeroMapKV for NichedOption<T, N>impl<'a, T> ZeroMapKV for OptionVarULE<T>impl<'a, A: Ord + AsULE + 'static, B: Ord + AsULE + 'static, C: Ord + AsULE + 'static, D: Ord + AsULE + 'static> ZeroMapKV for (A, B, C, D)impl<'a> ZeroMapKV for charimpl<'a> ZeroMapKV for u64impl<'a> ZeroMapKV for NonZeroI8impl<'a> ZeroMapKV for i128impl<'a, A: Ord + AsULE + 'static, B: Ord + AsULE + 'static, C: Ord + AsULE + 'static, D: Ord + AsULE + 'static, E: Ord + AsULE + 'static> ZeroMapKV for (A, B, C, D, E)impl<'a> ZeroMapKV for u32impl<'a> ZeroMapKV for i64impl<'a> ZeroMapKV for u16impl<'a, T> ZeroMapKV for Option<T>impl<'a, A: Ord + AsULE + 'static, B: Ord + AsULE + 'static, C: Ord + AsULE + 'static, D: Ord + AsULE + 'static, E: Ord + AsULE + 'static, F: Ord + AsULE + 'static> ZeroMapKV for (A, B, C, D, E, F)impl<'a> ZeroMapKV for i32impl<'a> ZeroMapKV for u8impl<'a, A: Ord + AsULE + 'static, B: Ord + AsULE + 'static> ZeroMapKV for (A, B)impl<'a> ZeroMapKV for i16