pub enum CodecMemberShape {
Count,
Bytes,
Text,
ClosedChoice,
Nested,
}Expand description
The wire shape one member is written under.
Five rows, every one a shape the rendering can write end to end: there is no opaque arm, because a member the rendering could not write would be a member whose bytes nobody could re-read.
Variants§
Count
A count, carried at the framing width and narrowed back at the member’s own type on the way in.
Bytes
Variable-length bytes, written length-prefixed.
Text
Variable-length text, written length-prefixed as its UTF-8 bytes and read back through a check that refuses.
ClosedChoice
One arm of a closed roster, written as that arm’s own declared position and read back by walking the roster the owner declared.
Nested
A nested value carrying its own codec, framed at its own length so the member after it stays readable.
Implementations§
Trait Implementations§
Source§impl Clone for CodecMemberShape
impl Clone for CodecMemberShape
Source§fn clone(&self) -> CodecMemberShape
fn clone(&self) -> CodecMemberShape
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 moreimpl Copy for CodecMemberShape
Source§impl Debug for CodecMemberShape
impl Debug for CodecMemberShape
impl Eq for CodecMemberShape
Source§impl Hash for CodecMemberShape
impl Hash for CodecMemberShape
Source§impl PartialEq for CodecMemberShape
impl PartialEq for CodecMemberShape
impl StructuralPartialEq for CodecMemberShape
Auto Trait Implementations§
impl Freeze for CodecMemberShape
impl RefUnwindSafe for CodecMemberShape
impl Send for CodecMemberShape
impl Sync for CodecMemberShape
impl Unpin for CodecMemberShape
impl UnsafeUnpin for CodecMemberShape
impl UnwindSafe for CodecMemberShape
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