pub struct RlpScalar<'a> { /* private fields */ }Expand description
Borrowed RLP scalar byte string.
Implementations§
Source§impl<'a> RlpScalar<'a>
impl<'a> RlpScalar<'a>
Sourcepub const fn encoded_len(self) -> usize
pub const fn encoded_len(self) -> usize
Returns the total encoded item length in bytes.
Sourcepub const fn header_len(self) -> usize
pub const fn header_len(self) -> usize
Returns the RLP header length in bytes.
Sourcepub const fn form(self) -> RlpScalarForm
pub const fn form(self) -> RlpScalarForm
Returns the canonical scalar form that was decoded.
Trait Implementations§
impl<'a> Copy for RlpScalar<'a>
impl<'a> Eq for RlpScalar<'a>
Source§impl<'a> PartialEq for RlpScalar<'a>
impl<'a> PartialEq for RlpScalar<'a>
impl<'a> StructuralPartialEq for RlpScalar<'a>
Auto Trait Implementations§
impl<'a> Freeze for RlpScalar<'a>
impl<'a> RefUnwindSafe for RlpScalar<'a>
impl<'a> Send for RlpScalar<'a>
impl<'a> Sync for RlpScalar<'a>
impl<'a> Unpin for RlpScalar<'a>
impl<'a> UnsafeUnpin for RlpScalar<'a>
impl<'a> UnwindSafe for RlpScalar<'a>
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