pub enum CodecOp {
Scalar(ScalarKind),
Named(String),
Option(Box<CodecOp>),
List(Box<CodecOp>),
}Expand description
How to read or write a single value. Recurses for options and lists; a
CodecOp::Named defers to another CodecDef’s codec by source name.
Variants§
Scalar(ScalarKind)
A primitive scalar.
Named(String)
A reference to another emitted type (enum or struct), by source name.
Option(Box<CodecOp>)
A nullable value: a presence tag, then the inner value when present.
List(Box<CodecOp>)
A list: a u32 element count, then each element in turn.
Trait Implementations§
impl Eq for CodecOp
impl StructuralPartialEq for CodecOp
Auto Trait Implementations§
impl Freeze for CodecOp
impl RefUnwindSafe for CodecOp
impl Send for CodecOp
impl Sync for CodecOp
impl Unpin for CodecOp
impl UnsafeUnpin for CodecOp
impl UnwindSafe for CodecOp
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§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.