Type Alias soroban_sdk::xdr::Uint64

pub type Uint64 = u64;

Trait Implementations§

source§

impl<'a> Arbitrary<'a> for u64

source§

fn arbitrary(u: &mut Unstructured<'a>) -> Result<u64, Error>

Generate an arbitrary value of Self from the given unstructured data. Read more
source§

fn size_hint(_depth: usize) -> (usize, Option<usize>)

Get a size hint for how many bytes out of an Unstructured this type needs to construct itself. Read more
source§

fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>

Generate an arbitrary value of Self from the entirety of the given unstructured data. Read more
§

impl AsI256 for u64

§

fn as_i256(self) -> I256

Perform an as conversion to a I256.
§

impl AsU256 for u64

§

fn as_u256(self) -> U256

Perform an as conversion to a U256.
§

impl ReadXdr for u64

§

fn read_xdr<R>(r: &mut DepthLimitedRead<R>) -> Result<u64, Error>where R: Read,

Read the XDR and construct the type. Read more
§

fn read_xdr_base64<R>(r: &mut DepthLimitedRead<R>) -> Result<Self, Error>where R: Read,

Construct the type from the XDR bytes base64 encoded. Read more
§

fn read_xdr_to_end<R>(r: &mut DepthLimitedRead<R>) -> Result<Self, Error>where R: Read,

Read the XDR and construct the type, and consider it an error if the read does not completely consume the read implementation. Read more
§

fn read_xdr_base64_to_end<R>(r: &mut DepthLimitedRead<R>) -> Result<Self, Error>where R: Read,

Construct the type from the XDR bytes base64 encoded. Read more
§

fn read_xdr_into<R>(&mut self, r: &mut DepthLimitedRead<R>) -> Result<(), Error>where R: Read,

Read the XDR and construct the type. Read more
§

fn read_xdr_into_to_end<R>( &mut self, r: &mut DepthLimitedRead<R> ) -> Result<(), Error>where R: Read,

Read the XDR into the existing value, and consider it an error if the read does not completely consume the read implementation. Read more
§

fn read_xdr_iter<R>(r: &mut DepthLimitedRead<R>) -> ReadXdrIter<&mut R, Self> where R: Read,

Create an iterator that reads the read implementation as a stream of values that are read into the implementing type. Read more
§

fn read_xdr_base64_iter<R>( r: &mut DepthLimitedRead<R> ) -> ReadXdrIter<DecoderReader<'_, R>, Self> where R: Read,

Create an iterator that reads the read implementation as a stream of values that are read into the implementing type.
§

fn from_xdr_with_depth_limit( bytes: impl AsRef<[u8]>, depth_limit: u32 ) -> Result<Self, Error>

Construct the type from the XDR bytes, specifying a depth limit. Read more
§

fn from_xdr(bytes: impl AsRef<[u8]>) -> Result<Self, Error>

Construct the type from the XDR bytes, using the default depth limit. Read more
§

fn from_xdr_base64_with_depth_limit( b64: impl AsRef<[u8]>, depth_limit: u32 ) -> Result<Self, Error>

Construct the type from the XDR bytes base64 encoded, specifying a depth limit. Read more
§

fn from_xdr_base64(b64: impl AsRef<[u8]>) -> Result<Self, Error>

Construct the type from the XDR bytes base64 encoded, using the default depth limit. Read more
source§

impl SorobanArbitrary for u64

Available on crate feature testutils only.
§

type Prototype = u64

A type that implements Arbitrary and can be converted to this SorobanArbitrary type.
§

impl<E> TryFromVal<E, DurationVal> for u64where E: Env,

§

type Error = Error

§

fn try_from_val( env: &E, val: &DurationVal ) -> Result<u64, <u64 as TryFromVal<E, DurationVal>>::Error>

§

impl<E> TryFromVal<E, TimepointVal> for u64where E: Env,

§

type Error = Error

§

fn try_from_val( env: &E, val: &TimepointVal ) -> Result<u64, <u64 as TryFromVal<E, TimepointVal>>::Error>

§

impl<E> TryFromVal<E, U64Val> for u64where E: Env,

§

type Error = Error

§

fn try_from_val( env: &E, val: &U64Val ) -> Result<u64, <u64 as TryFromVal<E, U64Val>>::Error>

§

impl<E> TryFromVal<E, Val> for u64where E: Env,

§

type Error = Error

§

fn try_from_val( env: &E, val: &Val ) -> Result<u64, <u64 as TryFromVal<E, Val>>::Error>

source§

impl TryFromVal<Env, u64> for u64

§

type Error = ConversionError

source§

fn try_from_val(_env: &Env, v: &u64) -> Result<Self, Self::Error>

§

impl WasmiMarshal for u64

§

fn try_marshal_from_value(v: Value) -> Option<u64>

§

fn marshal_from_self(self) -> Value

§

impl WriteXdr for u64

§

fn write_xdr<W>(&self, w: &mut DepthLimitedWrite<W>) -> Result<(), Error>where W: Write,

§

fn to_xdr_with_depth_limit( &self, depth_limit: u32 ) -> Result<Vec<u8, Global>, Error>

§

fn to_xdr(&self) -> Result<Vec<u8, Global>, Error>

§

fn to_xdr_base64_with_depth_limit( &self, depth_limit: u32 ) -> Result<String, Error>

§

fn to_xdr_base64(&self) -> Result<String, Error>