pub enum Kind {
Scalar,
Id,
Object(&'static str),
ScalarArray(ArrayBounds),
IdArray(ArrayBounds),
ObjectArray(&'static str, ArrayBounds),
}Expand description
What a property holds.
Variants§
Scalar
A number, string, boolean or enumeration.
Id
An S2 Id.
A scalar as far as the decoder is concerned, and distinguished here because a tool that walks a message often wants to follow identifiers: to rewrite them, to link them, to see which of them a message introduces. Telling them apart by property name would be a hand-maintained list of forty-odd spellings, which is the thing this table exists to avoid.
Object(&'static str)
Another object type, named here so a walk can recurse into it.
ScalarArray(ArrayBounds)
An array of scalars.
IdArray(ArrayBounds)
An array of Ids.
ObjectArray(&'static str, ArrayBounds)
An array of another object type.
Implementations§
Trait Implementations§
impl Copy for Kind
impl Eq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.