pub struct CodecOptions {
pub map_length_with_delimiter: bool,
}Expand description
The one framing question the layout plan does not answer.
Fields§
§map_length_with_delimiter: boolWhether a delimited map also carries its entry count.
XTypes 1.3 says it twice and differently: §7.4.1.1.4 defines a
map by equivalence to a sequence, which has both a DHEADER and
an O.length, while rule (15) of §7.4.3.5.3 writes the
DHEADER and the pairs with no count. Both are decodable, so
neither can be ruled out from the stream alone, and the caller
chooses. true is the equivalence reading.
Trait Implementations§
Source§impl Clone for CodecOptions
impl Clone for CodecOptions
impl Copy for CodecOptions
Source§impl Debug for CodecOptions
impl Debug for CodecOptions
Source§impl Default for CodecOptions
impl Default for CodecOptions
impl Eq for CodecOptions
Source§impl PartialEq for CodecOptions
impl PartialEq for CodecOptions
impl StructuralPartialEq for CodecOptions
Auto Trait Implementations§
impl Freeze for CodecOptions
impl RefUnwindSafe for CodecOptions
impl Send for CodecOptions
impl Sync for CodecOptions
impl Unpin for CodecOptions
impl UnsafeUnpin for CodecOptions
impl UnwindSafe for CodecOptions
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