pub enum KeyShapeKind {
IndexedCollection,
KeyedMap {
value_type: ValueType,
},
}Expand description
Discriminator for KeyShape.
Variants§
IndexedCollection
<axis>.<prefix><i>.<sub>=<v> — numeric index. The validator
confirms <i> parses as u32.
KeyedMap
<axis>.<prefix><name>=<value> — string key. The validator
accepts any non-empty <name>. value_type is the value type
of the map entries.
Trait Implementations§
Source§impl Clone for KeyShapeKind
impl Clone for KeyShapeKind
Source§fn clone(&self) -> KeyShapeKind
fn clone(&self) -> KeyShapeKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KeyShapeKind
impl Debug for KeyShapeKind
Source§impl PartialEq for KeyShapeKind
impl PartialEq for KeyShapeKind
Source§fn eq(&self, other: &KeyShapeKind) -> bool
fn eq(&self, other: &KeyShapeKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for KeyShapeKind
impl Eq for KeyShapeKind
impl StructuralPartialEq for KeyShapeKind
Auto Trait Implementations§
impl Freeze for KeyShapeKind
impl RefUnwindSafe for KeyShapeKind
impl Send for KeyShapeKind
impl Sync for KeyShapeKind
impl Unpin for KeyShapeKind
impl UnsafeUnpin for KeyShapeKind
impl UnwindSafe for KeyShapeKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.