Struct bitcoin_scripting::ScriptNum
source · pub struct ScriptNum { /* private fields */ }
Expand description
Implementations§
Trait Implementations§
source§impl AddAssign<&ScriptNum> for ScriptNum
impl AddAssign<&ScriptNum> for ScriptNum
source§fn add_assign(&mut self, other: &ScriptNum)
fn add_assign(&mut self, other: &ScriptNum)
Performs the
+=
operation. Read moresource§impl AddAssign<i64> for ScriptNum
impl AddAssign<i64> for ScriptNum
source§fn add_assign(&mut self, other: i64)
fn add_assign(&mut self, other: i64)
Performs the
+=
operation. Read moresource§impl BitAndAssign<&ScriptNum> for ScriptNum
impl BitAndAssign<&ScriptNum> for ScriptNum
source§fn bitand_assign(&mut self, rhs: &ScriptNum)
fn bitand_assign(&mut self, rhs: &ScriptNum)
Performs the
&=
operation. Read moresource§impl BitAndAssign<i64> for ScriptNum
impl BitAndAssign<i64> for ScriptNum
source§fn bitand_assign(&mut self, rhs: i64)
fn bitand_assign(&mut self, rhs: i64)
Performs the
&=
operation. Read moresource§impl From<i64> for ScriptNum
impl From<i64> for ScriptNum
source§fn from(n: i64) -> Self
fn from(n: i64) -> Self
| Numeric opcodes (OP_1ADD, etc) are | restricted to operating on 4-byte integers. | | The semantics are subtle, though: operands | must be in the range [-2^31 +1…2^31 -1], | but results may overflow (and are valid as | long as they are not used in a subsequent | numeric operation). | | CScriptNum enforces those semantics by | storing results as an int64 and allowing | out-of-range values to be returned as | a vector of bytes but throwing an | exception if arithmetic is done or the | result is interpreted as an integer. |
source§impl Ord for ScriptNum
impl Ord for ScriptNum
source§impl PartialEq<ScriptNum> for ScriptNum
impl PartialEq<ScriptNum> for ScriptNum
source§impl PartialOrd<ScriptNum> for ScriptNum
impl PartialOrd<ScriptNum> for ScriptNum
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd<i64> for ScriptNum
impl PartialOrd<i64> for ScriptNum
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl SubAssign<&ScriptNum> for ScriptNum
impl SubAssign<&ScriptNum> for ScriptNum
source§fn sub_assign(&mut self, other: &ScriptNum)
fn sub_assign(&mut self, other: &ScriptNum)
Performs the
-=
operation. Read moresource§impl SubAssign<i64> for ScriptNum
impl SubAssign<i64> for ScriptNum
source§fn sub_assign(&mut self, other: i64)
fn sub_assign(&mut self, other: i64)
Performs the
-=
operation. Read moreimpl Eq for ScriptNum
Auto Trait Implementations§
impl RefUnwindSafe for ScriptNum
impl Send for ScriptNum
impl Sync for ScriptNum
impl Unpin for ScriptNum
impl UnwindSafe for ScriptNum
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