pub struct Uint8Traits;
Trait Implementations§
Source§impl Default for Uint8Traits
impl Default for Uint8Traits
Source§fn default() -> Uint8Traits
fn default() -> Uint8Traits
Returns the “default value” for a type. Read more
Source§impl IntMulTraits for Uint8Traits
impl IntMulTraits for Uint8Traits
Source§const WIDE_MUL: &'static str = "u8_wide_mul"
const WIDE_MUL: &'static str = "u8_wide_mul"
The generic libfunc id that multiplies two integers.
Source§const WIDE_MUL_RES_TYPE_ID: GenericTypeId = <Uint16Type as NamedType>::ID
const WIDE_MUL_RES_TYPE_ID: GenericTypeId = <Uint16Type as NamedType>::ID
The generic type id for this type multiplication result.
Source§impl IntTraits for Uint8Traits
impl IntTraits for Uint8Traits
Source§const GENERIC_TYPE_ID: GenericTypeId = _
const GENERIC_TYPE_ID: GenericTypeId = _
The generic type id for this type.
Source§const IS_SMALL: bool = true
const IS_SMALL: bool = true
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 = "u8_const"
const CONST: &'static str = "u8_const"
The generic libfunc id for getting a const of this type.
Source§const TO_FELT252: &'static str = "u8_to_felt252"
const TO_FELT252: &'static str = "u8_to_felt252"
The generic libfunc id for conversion to felt252.
Source§const TRY_FROM_FELT252: &'static str = "u8_try_from_felt252"
const TRY_FROM_FELT252: &'static str = "u8_try_from_felt252"
The generic libfunc id for conversion from felt252.
Source§impl IsZeroTraits for Uint8Traits
impl IsZeroTraits for Uint8Traits
Source§const GENERIC_TYPE_ID: GenericTypeId = <Uint8Type as NamedType>::ID
const GENERIC_TYPE_ID: GenericTypeId = <Uint8Type as NamedType>::ID
The id of the generic type to implement the library functions for.
Source§impl UintTraits for Uint8Traits
impl UintTraits for Uint8Traits
Source§const OVERFLOWING_ADD: &'static str = "u8_overflowing_add"
const OVERFLOWING_ADD: &'static str = "u8_overflowing_add"
The generic libfunc id for addition.
Source§const OVERFLOWING_SUB: &'static str = "u8_overflowing_sub"
const OVERFLOWING_SUB: &'static str = "u8_overflowing_sub"
The generic libfunc id for subtraction.
Source§const SQUARE_ROOT: &'static str = "u8_sqrt"
const SQUARE_ROOT: &'static str = "u8_sqrt"
The generic libfunc id for calculating the integer square root.
Source§const SQUARE_ROOT_TYPE_ID: GenericTypeId = <Self as IntTraits>::GENERIC_TYPE_ID
const SQUARE_ROOT_TYPE_ID: GenericTypeId = <Self as IntTraits>::GENERIC_TYPE_ID
The generic type id for the type’s square root.
Auto Trait Implementations§
impl Freeze for Uint8Traits
impl RefUnwindSafe for Uint8Traits
impl Send for Uint8Traits
impl Sync for Uint8Traits
impl Unpin for Uint8Traits
impl UnwindSafe for Uint8Traits
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