pub struct BtcVarInt(pub u64);Expand description
A Bitcoin variable-length integer as defined in the Bitcoin protocol. Values 0-0xfc are a single byte; larger values use a prefix byte (0xfd, 0xfe, 0xff) followed by 2, 4, or 8 little-endian bytes.
Tuple Fields§
§0: u64Implementations§
Trait Implementations§
impl Copy for BtcVarInt
impl Eq for BtcVarInt
Source§impl Ord for BtcVarInt
impl Ord for BtcVarInt
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for BtcVarInt
impl PartialOrd for BtcVarInt
impl StructuralPartialEq for BtcVarInt
Auto Trait Implementations§
impl Freeze for BtcVarInt
impl RefUnwindSafe for BtcVarInt
impl Send for BtcVarInt
impl Sync for BtcVarInt
impl Unpin for BtcVarInt
impl UnsafeUnpin for BtcVarInt
impl UnwindSafe for BtcVarInt
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