pub enum RlpToken {
List(Vec<RlpToken>),
String(Vec<u8>),
SingleByte(u8),
}
Expand description
Intermediate representation for RLP serialization and deserialization
Variants§
List(Vec<RlpToken>)
String(Vec<u8>)
conceptually a string is just an arbitrary set of data, many trings are 64 bytes long and represent a 256bit integer or 8 bytes long for a 64 bit integer
SingleByte(u8)
A single byte value, often just a length or offset, sometimes small numbers like a nonce may get folded into this
Implementations§
Trait Implementations§
source§impl PartialEq for RlpToken
impl PartialEq for RlpToken
impl Eq for RlpToken
impl StructuralPartialEq for RlpToken
Auto Trait Implementations§
impl Freeze for RlpToken
impl RefUnwindSafe for RlpToken
impl Send for RlpToken
impl Sync for RlpToken
impl Unpin for RlpToken
impl UnwindSafe for RlpToken
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