Type Definition soroban_sdk::xdr::Uint64

pub type Uint64 = u64;

Trait Implementations§

§

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: &mut impl Read) -> Result<u64, Error>

Read the XDR and construct the type. Read more
§

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

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

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

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: &mut impl Read) -> Result<Self, Error>

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

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

Read the XDR and construct the type. Read more
§

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

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 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 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(bytes: impl AsRef<[u8]>) -> Result<Self, Error>

Construct the type from the XDR bytes. Read more
§

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

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

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

§

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

§

type Error = ConversionError

§

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

§

impl WriteXdr for u64

§

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

§

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

§

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