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
Source§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
Source§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
Source§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> 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, 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 Freeze for BytesObject
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