pub enum RlpScalarForm {
SingleByte,
ShortString,
LongString,
}Expand description
Canonical RLP scalar form used by the decoder.
Variants§
SingleByte
A single byte in 0x00..=0x7f, encoded as itself.
ShortString
A byte string with a one-byte RLP header.
LongString
A byte string with a length-of-length RLP header.
Trait Implementations§
Source§impl Clone for RlpScalarForm
impl Clone for RlpScalarForm
Source§fn clone(&self) -> RlpScalarForm
fn clone(&self) -> RlpScalarForm
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 RlpScalarForm
Source§impl Debug for RlpScalarForm
impl Debug for RlpScalarForm
impl Eq for RlpScalarForm
Source§impl PartialEq for RlpScalarForm
impl PartialEq for RlpScalarForm
Source§fn eq(&self, other: &RlpScalarForm) -> bool
fn eq(&self, other: &RlpScalarForm) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RlpScalarForm
Auto Trait Implementations§
impl Freeze for RlpScalarForm
impl RefUnwindSafe for RlpScalarForm
impl Send for RlpScalarForm
impl Sync for RlpScalarForm
impl Unpin for RlpScalarForm
impl UnsafeUnpin for RlpScalarForm
impl UnwindSafe for RlpScalarForm
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