pub struct Uint128Traits;
Trait Implementations§
source§impl Default for Uint128Traits
impl Default for Uint128Traits
source§fn default() -> Uint128Traits
fn default() -> Uint128Traits
Returns the “default value” for a type. Read more
source§impl IntTraits for Uint128Traits
impl IntTraits for Uint128Traits
source§const GENERIC_TYPE_ID: GenericTypeId = _
const GENERIC_TYPE_ID: GenericTypeId = _
The generic type id for this type.
source§const IS_SMALL: bool = false
const IS_SMALL: bool = false
Is the type smaller than 128 bits.
Relevant since some implementations are different due to range check being 128 bits based.
source§const CONST: &'static str = "u128_const"
const CONST: &'static str = "u128_const"
The generic libfunc id for getting a const of this type.
source§const TO_FELT252: &'static str = "u128_to_felt252"
const TO_FELT252: &'static str = "u128_to_felt252"
The generic libfunc id for conversion to felt252.
source§const TRY_FROM_FELT252: &'static str = "u128_try_from_felt252"
const TRY_FROM_FELT252: &'static str = "u128_try_from_felt252"
The generic libfunc id for conversion from felt252.
source§impl IsZeroTraits for Uint128Traits
impl IsZeroTraits for Uint128Traits
source§const GENERIC_TYPE_ID: GenericTypeId = <Uint128Type as NamedType>::ID
const GENERIC_TYPE_ID: GenericTypeId = <Uint128Type as NamedType>::ID
The id of the generic type to implement the library functions for.
source§impl UintTraits for Uint128Traits
impl UintTraits for Uint128Traits
source§const OVERFLOWING_ADD: &'static str = "u128_overflowing_add"
const OVERFLOWING_ADD: &'static str = "u128_overflowing_add"
The generic libfunc id for addition.
source§const OVERFLOWING_SUB: &'static str = "u128_overflowing_sub"
const OVERFLOWING_SUB: &'static str = "u128_overflowing_sub"
The generic libfunc id for subtraction.
source§const SQUARE_ROOT: &'static str = "u128_sqrt"
const SQUARE_ROOT: &'static str = "u128_sqrt"
The generic libfunc id for calculating the integer square root.
source§const SQUARE_ROOT_TYPE_ID: GenericTypeId = <Uint64Type as NamedType>::ID
const SQUARE_ROOT_TYPE_ID: GenericTypeId = <Uint64Type as NamedType>::ID
The generic type id for the type’s square root.
Auto Trait Implementations§
impl Freeze for Uint128Traits
impl RefUnwindSafe for Uint128Traits
impl Send for Uint128Traits
impl Sync for Uint128Traits
impl Unpin for Uint128Traits
impl UnwindSafe for Uint128Traits
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more