Struct ckb_types::packed::Uint128

source ·
pub struct Uint128(_);

Implementations§

source§

impl Uint128

source

pub const TOTAL_SIZE: usize = 16usize

source

pub const ITEM_SIZE: usize = 1usize

source

pub const ITEM_COUNT: usize = 16usize

source

pub fn nth0(&self) -> Byte

source

pub fn nth1(&self) -> Byte

source

pub fn nth2(&self) -> Byte

source

pub fn nth3(&self) -> Byte

source

pub fn nth4(&self) -> Byte

source

pub fn nth5(&self) -> Byte

source

pub fn nth6(&self) -> Byte

source

pub fn nth7(&self) -> Byte

source

pub fn nth8(&self) -> Byte

source

pub fn nth9(&self) -> Byte

source

pub fn nth10(&self) -> Byte

source

pub fn nth11(&self) -> Byte

source

pub fn nth12(&self) -> Byte

source

pub fn nth13(&self) -> Byte

source

pub fn nth14(&self) -> Byte

source

pub fn nth15(&self) -> Byte

source

pub fn raw_data(&self) -> Bytes

source

pub fn as_reader<'r>(&'r self) -> Uint128Reader<'r>

Trait Implementations§

source§

impl Clone for Uint128

source§

fn clone(&self) -> Uint128

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Uint128

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Uint128

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Display for Uint128

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Entity for Uint128

§

type Builder = Uint128Builder

source§

const NAME: &'static str = "Uint128"

source§

fn new_unchecked(data: Bytes) -> Self

source§

fn as_bytes(&self) -> Bytes

source§

fn as_slice(&self) -> &[u8]

source§

fn from_slice(slice: &[u8]) -> VerificationResult<Self>

source§

fn from_compatible_slice(slice: &[u8]) -> VerificationResult<Self>

source§

fn new_builder() -> Self::Builder

source§

fn as_builder(self) -> Self::Builder

source§

impl LowerHex for Uint128

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Pack<Uint128> for u128

source§

fn pack(&self) -> Uint128

Packs a rust type into binary data.
source§

impl Unpack<u128> for Uint128

source§

fn unpack(&self) -> u128

Unpack binary data into rust types.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V