Struct ckb_sdk::traits::ValueRangeOption
source · Expand description
The value range option: start <= value < end
Fields§
§start: u64§end: u64Implementations§
source§impl ValueRangeOption
impl ValueRangeOption
pub fn new(start: u64, end: u64) -> ValueRangeOption
pub fn new_exact(value: u64) -> ValueRangeOption
pub fn new_min(start: u64) -> ValueRangeOption
pub fn match_value(&self, value: u64) -> bool
Trait Implementations§
source§impl Clone for ValueRangeOption
impl Clone for ValueRangeOption
source§fn clone(&self) -> ValueRangeOption
fn clone(&self) -> ValueRangeOption
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ValueRangeOption
impl Debug for ValueRangeOption
source§impl Hash for ValueRangeOption
impl Hash for ValueRangeOption
source§impl PartialEq<ValueRangeOption> for ValueRangeOption
impl PartialEq<ValueRangeOption> for ValueRangeOption
source§fn eq(&self, other: &ValueRangeOption) -> bool
fn eq(&self, other: &ValueRangeOption) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for ValueRangeOption
impl Eq for ValueRangeOption
impl StructuralEq for ValueRangeOption
impl StructuralPartialEq for ValueRangeOption
Auto Trait Implementations§
impl RefUnwindSafe for ValueRangeOption
impl Send for ValueRangeOption
impl Sync for ValueRangeOption
impl Unpin for ValueRangeOption
impl UnwindSafe for ValueRangeOption
Blanket Implementations§
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.