[−][src]Struct stk::packages::bytes::Bytes
A bytes container.
Implementations
impl Bytes
[src]
pub fn into_inner(self) -> Vec<u8>
[src]
Convert into inner byte array.
pub fn from_bytes(bytes: Vec<u8>) -> Self
[src]
Construct from a byte array.
Trait Implementations
impl Clone for Bytes
[src]
impl Debug for Bytes
[src]
impl Deref for Bytes
[src]
impl FromValue for Bytes
[src]
fn from_value(value: ValuePtr, vm: &mut Vm) -> Result<Self, StackError>
[src]
impl ReflectValueType for Bytes
[src]
fn value_type() -> ValueType
[src]
fn value_type_info() -> ValueTypeInfo
[src]
impl<'a> ReflectValueType for &'a Bytes
[src]
fn value_type() -> ValueType
[src]
fn value_type_info() -> ValueTypeInfo
[src]
impl<'a> ReflectValueType for &'a mut Bytes
[src]
fn value_type() -> ValueType
[src]
fn value_type_info() -> ValueTypeInfo
[src]
impl ToValue for Bytes
[src]
impl<'a> UnsafeFromValue for &'a Bytes
[src]
type Guard = RawRefGuard
The raw guard returned. Read more
unsafe fn unsafe_from_value(
value: ValuePtr,
vm: &mut Vm
) -> Result<(Self, Self::Guard), StackError>
[src]
value: ValuePtr,
vm: &mut Vm
) -> Result<(Self, Self::Guard), StackError>
impl<'a> UnsafeFromValue for &'a mut Bytes
[src]
type Guard = RawMutGuard
The raw guard returned. Read more
unsafe fn unsafe_from_value(
value: ValuePtr,
vm: &mut Vm
) -> Result<(Self, Self::Guard), StackError>
[src]
value: ValuePtr,
vm: &mut Vm
) -> Result<(Self, Self::Guard), StackError>
impl<'a> UnsafeToValue for &'a Bytes
[src]
unsafe fn unsafe_to_value(self, vm: &mut Vm) -> Result<ValuePtr, StackError>
[src]
impl<'a> UnsafeToValue for &'a mut Bytes
[src]
unsafe fn unsafe_to_value(self, vm: &mut Vm) -> Result<ValuePtr, StackError>
[src]
Auto Trait Implementations
impl RefUnwindSafe for Bytes
impl Send for Bytes
impl Sync for Bytes
impl Unpin for Bytes
impl UnwindSafe for Bytes
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,