Struct soroban_env_guest::BytesObject
source · pub struct BytesObject(/* private fields */);
Implementations§
source§impl BytesObject
impl BytesObject
source§impl BytesObject
impl BytesObject
pub const unsafe fn from_handle(handle: u32) -> BytesObject
pub const fn get_handle(&self) -> u32
Trait Implementations§
source§impl AsMut<Val> for BytesObject
impl AsMut<Val> for BytesObject
source§impl AsRef<Val> for BytesObject
impl AsRef<Val> for BytesObject
source§impl CheckedEnvArg for BytesObject
impl CheckedEnvArg for BytesObject
fn check_env_arg<E>(self, e: &E) -> Result<BytesObject, <E as EnvBase>::Error>where
E: Env,
source§impl Clone for BytesObject
impl Clone for BytesObject
source§fn clone(&self) -> BytesObject
fn clone(&self) -> BytesObject
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<E> Compare<BytesObject> for Ewhere
E: Env,
impl<E> Compare<BytesObject> for Ewhere
E: Env,
type Error = <E as EnvBase>::Error
fn compare( &self, a: &BytesObject, b: &BytesObject ) -> Result<Ordering, <E as Compare<BytesObject>>::Error>
source§impl Debug for BytesObject
impl Debug for BytesObject
source§impl From<&BytesObject> for Val
impl From<&BytesObject> for Val
source§fn from(b: &BytesObject) -> Val
fn from(b: &BytesObject) -> Val
Converts to this type from the input type.
source§impl From<BytesObject> for Object
impl From<BytesObject> for Object
source§fn from(x: BytesObject) -> Object
fn from(x: BytesObject) -> Object
Converts to this type from the input type.
source§impl From<BytesObject> for Val
impl From<BytesObject> for Val
source§fn from(b: BytesObject) -> Val
fn from(b: BytesObject) -> Val
Converts to this type from the input type.
source§impl Hash for BytesObject
impl Hash for BytesObject
source§impl TryFrom<&Val> for BytesObject
impl TryFrom<&Val> for BytesObject
§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
source§fn try_from(
v: &Val
) -> Result<BytesObject, <BytesObject as TryFrom<&Val>>::Error>
fn try_from( v: &Val ) -> Result<BytesObject, <BytesObject as TryFrom<&Val>>::Error>
Performs the conversion.
source§impl TryFrom<Object> for BytesObject
impl TryFrom<Object> for BytesObject
§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
source§fn try_from(
x: Object
) -> Result<BytesObject, <BytesObject as TryFrom<Object>>::Error>
fn try_from( x: Object ) -> Result<BytesObject, <BytesObject as TryFrom<Object>>::Error>
Performs the conversion.
source§impl TryFrom<Val> for BytesObject
impl TryFrom<Val> for BytesObject
§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
source§fn try_from(v: Val) -> Result<BytesObject, <BytesObject as TryFrom<Val>>::Error>
fn try_from(v: Val) -> Result<BytesObject, <BytesObject as TryFrom<Val>>::Error>
Performs the conversion.
source§impl<E> TryFromVal<E, &[u8]> for BytesObjectwhere
E: Env,
impl<E> TryFromVal<E, &[u8]> for BytesObjectwhere
E: Env,
type Error = Error
fn try_from_val( env: &E, v: &&[u8] ) -> Result<BytesObject, <BytesObject as TryFromVal<E, &[u8]>>::Error>
source§impl<E, const N: usize> TryFromVal<E, [u8; N]> for BytesObjectwhere
E: Env,
impl<E, const N: usize> TryFromVal<E, [u8; N]> for BytesObjectwhere
E: Env,
type Error = Error
fn try_from_val( env: &E, v: &[u8; N] ) -> Result<BytesObject, <BytesObject as TryFromVal<E, [u8; N]>>::Error>
source§impl<E, const N: usize> TryFromVal<E, BytesObject> for [u8; N]where
E: Env,
impl<E, const N: usize> TryFromVal<E, BytesObject> for [u8; N]where
E: Env,
type Error = Error
fn try_from_val( env: &E, val: &BytesObject ) -> Result<[u8; N], <[u8; N] as TryFromVal<E, BytesObject>>::Error>
source§impl<E> TryFromVal<E, BytesObject> for Valwhere
E: Env,
impl<E> TryFromVal<E, BytesObject> for Valwhere
E: Env,
type Error = ConversionError
fn try_from_val( _env: &E, val: &BytesObject ) -> Result<Val, <Val as TryFromVal<E, BytesObject>>::Error>
source§impl<E> TryFromVal<E, Val> for BytesObjectwhere
E: Env,
impl<E> TryFromVal<E, Val> for BytesObjectwhere
E: Env,
type Error = ConversionError
fn try_from_val( _env: &E, val: &Val ) -> Result<BytesObject, <BytesObject as TryFromVal<E, Val>>::Error>
impl Copy for BytesObject
Auto Trait Implementations§
impl RefUnwindSafe for BytesObject
impl Send for BytesObject
impl Sync for BytesObject
impl Unpin for BytesObject
impl UnwindSafe for BytesObject
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