Enum bitcoin_serialize::VarIntMode
source · pub enum VarIntMode {
DEFAULT,
NONNEGATIVE_SIGNED,
}
Expand description
| Mode for encoding VarInts. | | Currently there is no support for signed | encodings. The default mode will not | compile with signed values, and the | legacy “nonnegative signed” mode will | accept signed values, but improperly | encode and decode them if they are negative. | In the future, the DEFAULT mode could | be extended to support negative numbers | in a backwards compatible way, and additional | modes could be added to support different | varint formats (e.g. zigzag encoding). |
Variants§
Trait Implementations§
source§impl PartialEq<VarIntMode> for VarIntMode
impl PartialEq<VarIntMode> for VarIntMode
source§fn eq(&self, other: &VarIntMode) -> bool
fn eq(&self, other: &VarIntMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for VarIntMode
impl StructuralEq for VarIntMode
impl StructuralPartialEq for VarIntMode
Auto Trait Implementations§
impl RefUnwindSafe for VarIntMode
impl Send for VarIntMode
impl Sync for VarIntMode
impl Unpin for VarIntMode
impl UnwindSafe for VarIntMode
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more