[−][src]Struct ckb_std::since::EpochNumberWithFraction
Methods
impl EpochNumberWithFraction[src]
pub const NUMBER_OFFSET: usize[src]
pub const NUMBER_BITS: usize[src]
pub const NUMBER_MAXIMUM_VALUE: u64[src]
pub const NUMBER_MASK: u64[src]
pub const INDEX_OFFSET: usize[src]
pub const INDEX_BITS: usize[src]
pub const INDEX_MAXIMUM_VALUE: u64[src]
pub const INDEX_MASK: u64[src]
pub const LENGTH_OFFSET: usize[src]
pub const LENGTH_BITS: usize[src]
pub const LENGTH_MAXIMUM_VALUE: u64[src]
pub const LENGTH_MASK: u64[src]
pub fn new(number: u64, index: u64, length: u64) -> EpochNumberWithFraction[src]
pub const fn new_unchecked(number: u64, index: u64, length: u64) -> Self[src]
pub fn number(self) -> u64[src]
pub fn index(self) -> u64[src]
pub fn length(self) -> u64[src]
pub fn full_value(self) -> u64[src]
pub fn from_full_value(value: u64) -> Self[src]
Trait Implementations
impl Clone for EpochNumberWithFraction[src]
fn clone(&self) -> EpochNumberWithFraction[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for EpochNumberWithFraction[src]
impl Debug for EpochNumberWithFraction[src]
impl Default for EpochNumberWithFraction[src]
fn default() -> EpochNumberWithFraction[src]
impl Eq for EpochNumberWithFraction[src]
impl Hash for EpochNumberWithFraction[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl PartialEq<EpochNumberWithFraction> for EpochNumberWithFraction[src]
fn eq(&self, other: &EpochNumberWithFraction) -> bool[src]
fn ne(&self, other: &EpochNumberWithFraction) -> bool[src]
impl StructuralEq for EpochNumberWithFraction[src]
impl StructuralPartialEq for EpochNumberWithFraction[src]
Auto Trait Implementations
impl Send for EpochNumberWithFraction
impl Sync for EpochNumberWithFraction
impl Unpin for EpochNumberWithFraction
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,