Struct bitcoin_test::ScriptNum10
source · pub struct ScriptNum10 { /* private fields */ }
Implementations§
source§impl ScriptNum10
impl ScriptNum10
pub fn assign_from(&mut self, rhs: &i64) -> &mut ScriptNum10
pub fn getint(&self) -> i32
pub fn getvch(&self) -> Vec<u8> ⓘ
pub fn serialize(value: &i64) -> Vec<u8> ⓘ
pub fn set_vch(vch: &Vec<u8>) -> i64
sourcepub fn new_from_n(n: &i64) -> Self
pub fn new_from_n(n: &i64) -> Self
| The ScriptNum implementation from | Bitcoin Core 0.10.0, for cross-comparison. |
pub fn new( vch: &Vec<u8>, require_minimal: bool, n_max_num_size: Option<usize> ) -> Self
Trait Implementations§
source§impl Add<ScriptNum10> for ScriptNum10
impl Add<ScriptNum10> for ScriptNum10
§type Output = ScriptNum10
type Output = ScriptNum10
The resulting type after applying the
+
operator.source§impl Add<i64> for ScriptNum10
impl Add<i64> for ScriptNum10
source§impl AddAssign<ScriptNum10> for ScriptNum10
impl AddAssign<ScriptNum10> for ScriptNum10
source§fn add_assign(&mut self, other: ScriptNum10)
fn add_assign(&mut self, other: ScriptNum10)
Performs the
+=
operation. Read moresource§impl AddAssign<i64> for ScriptNum10
impl AddAssign<i64> for ScriptNum10
source§fn add_assign(&mut self, other: i64)
fn add_assign(&mut self, other: i64)
Performs the
+=
operation. Read moresource§impl Neg for ScriptNum10
impl Neg for ScriptNum10
source§impl Ord for ScriptNum10
impl Ord for ScriptNum10
source§fn cmp(&self, other: &ScriptNum10) -> Ordering
fn cmp(&self, other: &ScriptNum10) -> Ordering
1.21.0 · 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 PartialEq<ScriptNum10> for ScriptNum10
impl PartialEq<ScriptNum10> for ScriptNum10
source§fn eq(&self, other: &ScriptNum10) -> bool
fn eq(&self, other: &ScriptNum10) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<i64> for ScriptNum10
impl PartialEq<i64> for ScriptNum10
source§impl PartialOrd<ScriptNum10> for ScriptNum10
impl PartialOrd<ScriptNum10> for ScriptNum10
source§fn partial_cmp(&self, other: &ScriptNum10) -> Option<Ordering>
fn partial_cmp(&self, other: &ScriptNum10) -> Option<Ordering>
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 ScriptNum10
impl PartialOrd<i64> for ScriptNum10
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 Sub<ScriptNum10> for ScriptNum10
impl Sub<ScriptNum10> for ScriptNum10
§type Output = ScriptNum10
type Output = ScriptNum10
The resulting type after applying the
-
operator.source§impl Sub<i64> for ScriptNum10
impl Sub<i64> for ScriptNum10
source§impl SubAssign<ScriptNum10> for ScriptNum10
impl SubAssign<ScriptNum10> for ScriptNum10
source§fn sub_assign(&mut self, other: ScriptNum10)
fn sub_assign(&mut self, other: ScriptNum10)
Performs the
-=
operation. Read moresource§impl SubAssign<i64> for ScriptNum10
impl SubAssign<i64> for ScriptNum10
source§fn sub_assign(&mut self, other: i64)
fn sub_assign(&mut self, other: i64)
Performs the
-=
operation. Read moreimpl Eq for ScriptNum10
Auto Trait Implementations§
impl RefUnwindSafe for ScriptNum10
impl Send for ScriptNum10
impl Sync for ScriptNum10
impl Unpin for ScriptNum10
impl UnwindSafe for ScriptNum10
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