Struct cairo_lang_utils::bigint::BigIntAsHex
source · pub struct BigIntAsHex {
pub value: BigInt,
}
Fields§
§value: BigInt
A field element that encodes the signature of the called function.
Trait Implementations§
source§impl Clone for BigIntAsHex
impl Clone for BigIntAsHex
source§fn clone(&self) -> BigIntAsHex
fn clone(&self) -> BigIntAsHex
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 BigIntAsHex
impl Debug for BigIntAsHex
source§impl Decode for BigIntAsHex
impl Decode for BigIntAsHex
source§fn decode<I: Input>(input: &mut I) -> Result<Self, Error>
fn decode<I: Input>(input: &mut I) -> Result<Self, Error>
Attempt to deserialise the value from input.
source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
source§impl Default for BigIntAsHex
impl Default for BigIntAsHex
source§fn default() -> BigIntAsHex
fn default() -> BigIntAsHex
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for BigIntAsHex
impl<'de> Deserialize<'de> for BigIntAsHex
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Encode for BigIntAsHex
impl Encode for BigIntAsHex
source§fn encode_to<T: Output + ?Sized>(&self, dest: &mut T)
fn encode_to<T: Output + ?Sized>(&self, dest: &mut T)
/!\ Warning this function panics if the number encoded is too big (>= 2**504)
source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
source§impl JsonSchema for BigIntAsHex
impl JsonSchema for BigIntAsHex
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§impl PartialEq for BigIntAsHex
impl PartialEq for BigIntAsHex
source§fn eq(&self, other: &BigIntAsHex) -> bool
fn eq(&self, other: &BigIntAsHex) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BigIntAsHex
impl Serialize for BigIntAsHex
impl Eq for BigIntAsHex
impl StructuralEq for BigIntAsHex
impl StructuralPartialEq for BigIntAsHex
Auto Trait Implementations§
impl RefUnwindSafe for BigIntAsHex
impl Send for BigIntAsHex
impl Sync for BigIntAsHex
impl Unpin for BigIntAsHex
impl UnwindSafe for BigIntAsHex
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> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere
T: Decode,
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.