pub struct Leb128(/* private fields */);Expand description
A canonical unsigned LEB128 nonce, with no redundant trailing zero byte.
Trait Implementations§
impl Copy for Leb128
Source§impl FromNarg for Leb128
impl FromNarg for Leb128
Source§fn from_narg(reader: &NargReader<'_>) -> Result<Self, VerificationError>
fn from_narg(reader: &NargReader<'_>) -> Result<Self, VerificationError>
This map must compute the inverse of
Encoding::encode,
or return an error if a pre-image does not exist. Read moreSource§fn from_narg_array<const N: usize>(
reader: &NargReader<'_>,
) -> Result<[Self; N], VerificationError>
fn from_narg_array<const N: usize>( reader: &NargReader<'_>, ) -> Result<[Self; N], VerificationError>
Auto Trait Implementations§
impl Forget for Leb128
impl Freeze for Leb128
impl Move for Leb128
impl RefUnwindSafe for Leb128
impl Send for Leb128
impl Sync for Leb128
impl Unpin for Leb128
impl UnsafeUnpin for Leb128
impl UnwindSafe for Leb128
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more