pub struct VarIntMapper;Expand description
Mapper for converting between Bitcoin variable-length integers and their internal representations
Trait Implementations§
Source§impl<'x> PartialIso<'x> for VarIntMapper
impl<'x> PartialIso<'x> for VarIntMapper
Source§impl SpecPartialIso for VarIntMapper
impl SpecPartialIso for VarIntMapper
Source§impl SpecPartialIsoProof for VarIntMapper
impl SpecPartialIsoProof for VarIntMapper
Source§impl View for VarIntMapper
impl View for VarIntMapper
Auto Trait Implementations§
impl Freeze for VarIntMapper
impl RefUnwindSafe for VarIntMapper
impl Send for VarIntMapper
impl Sync for VarIntMapper
impl Unpin for VarIntMapper
impl UnwindSafe for VarIntMapper
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
§impl<T, VERUS_SPEC__A> FromSpec<T> for VERUS_SPEC__Awhere
VERUS_SPEC__A: From<T>,
impl<T, VERUS_SPEC__A> FromSpec<T> for VERUS_SPEC__Awhere
VERUS_SPEC__A: From<T>,
fn obeys_from_spec() -> bool
fn from_spec(v: T) -> VERUS_SPEC__A
§impl<T, VERUS_SPEC__A> IntoSpec<T> for VERUS_SPEC__Awhere
VERUS_SPEC__A: Into<T>,
impl<T, VERUS_SPEC__A> IntoSpec<T> for VERUS_SPEC__Awhere
VERUS_SPEC__A: Into<T>,
fn obeys_into_spec() -> bool
fn into_spec(self) -> T
§impl<T, U> IntoSpecImpl<U> for Twhere
U: From<T>,
impl<T, U> IntoSpecImpl<U> for Twhere
U: From<T>,
fn obeys_into_spec() -> bool
fn into_spec(self) -> U
Source§impl<T> SpecPartialIsoFn for Twhere
T: SpecPartialIso,
impl<T> SpecPartialIsoFn for Twhere
T: SpecPartialIso,
Source§open spec fn spec_apply(
s: <T as SpecPartialIso>::Src,
) -> Result<<T as SpecPartialIso>::Dst, <<T as SpecPartialIso>::Dst as SpecTryFrom<<T as SpecPartialIso>::Src>>::Error>
open spec fn spec_apply( s: <T as SpecPartialIso>::Src, ) -> Result<<T as SpecPartialIso>::Dst, <<T as SpecPartialIso>::Dst as SpecTryFrom<<T as SpecPartialIso>::Src>>::Error>
{ Self::Dst::spec_try_from(s) }Source§open spec fn spec_rev_apply(
s: <T as SpecPartialIso>::Dst,
) -> Result<<T as SpecPartialIso>::Src, <<T as SpecPartialIso>::Src as SpecTryFrom<<T as SpecPartialIso>::Dst>>::Error>
open spec fn spec_rev_apply( s: <T as SpecPartialIso>::Dst, ) -> Result<<T as SpecPartialIso>::Src, <<T as SpecPartialIso>::Src as SpecTryFrom<<T as SpecPartialIso>::Dst>>::Error>
{ Self::Src::spec_try_from(s) }Source§impl<T, U> SpecTryInto<U> for Twhere
U: SpecTryFrom<T>,
impl<T, U> SpecTryInto<U> for Twhere
U: SpecTryFrom<T>,
Source§open spec fn spec_try_into(self) -> Result<U, <U as SpecTryFrom<T>>::Error>
open spec fn spec_try_into(self) -> Result<U, <U as SpecTryFrom<T>>::Error>
{ U::spec_try_from(self) }Source§type Error = <U as SpecTryFrom<T>>::Error
type Error = <U as SpecTryFrom<T>>::Error
The type returned in the event of a conversion error.