pub struct B256(/* private fields */);
Expand description
Maximum 256-bit byte-array that does not require heap allocation.
Implementations§
Trait Implementations§
Source§impl Decodable for B256
impl Decodable for B256
Source§fn decode(rlp: &UntrustedRlp<'_>) -> Result<Self, DecoderError>
fn decode(rlp: &UntrustedRlp<'_>) -> Result<Self, DecoderError>
Decode a value from RLP bytes
Source§impl Encodable for B256
impl Encodable for B256
Source§fn rlp_append(&self, s: &mut RlpStream)
fn rlp_append(&self, s: &mut RlpStream)
Append a value to the stream
Source§fn rlp_bytes(&self) -> ElasticArray1024<u8>
fn rlp_bytes(&self) -> ElasticArray1024<u8>
Get rlp-encoded bytes for this instance
impl Copy for B256
impl Eq for B256
impl StructuralPartialEq for B256
Auto Trait Implementations§
impl Freeze for B256
impl RefUnwindSafe for B256
impl Send for B256
impl Sync for B256
impl Unpin for B256
impl UnwindSafe for B256
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