[−][src]Struct runestick::Bytes
A vector of bytes.
Implementations
impl Bytes
[src]
pub const fn new() -> Self
[src]
Construct a new bytes container.
pub fn with_capacity(cap: usize) -> Self
[src]
Construct a new bytes container with the specified capacity.
pub fn into_vec(self) -> Vec<u8>
[src]
Convert into vector.
pub fn from_vec(bytes: Vec<u8>) -> Self
[src]
Construct from a byte vector.
pub fn extend(&mut self, other: &Self)
[src]
Do something with the bytes.
pub fn extend_str(&mut self, s: &str)
[src]
Do something with the bytes.
pub fn is_empty(&self) -> bool
[src]
Test if the collection is empty.
pub fn len(&self) -> usize
[src]
Get the length of the bytes collection.
pub fn capacity(&self) -> usize
[src]
Get the capacity of the bytes collection.
pub fn clear(&mut self)
[src]
Get the bytes collection.
pub fn reserve(&mut self, additional: usize)
[src]
Reserve additional space.
The exact amount is unspecified.
pub fn reserve_exact(&mut self, additional: usize)
[src]
Resever additional space to the exact amount specified.
pub fn shrink_to_fit(&mut self)
[src]
Shrink to fit the amount of bytes in the container.
pub fn pop(&mut self) -> Option<u8>
[src]
Pop the last byte.
pub fn last(&mut self) -> Option<u8>
[src]
Access the last byte.
Trait Implementations
impl Clone for Bytes
[src]
impl Debug for Bytes
[src]
impl Deref for Bytes
[src]
impl DerefMut for Bytes
[src]
impl Eq for Bytes
[src]
impl From<Bytes> for Value
[src]
impl FromValue for Bytes
[src]
fn from_value(value: Value) -> Result<Self, VmError>
[src]
impl Hash for Bytes
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Bytes
[src]
fn cmp(&self, other: &Bytes) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Bytes> for Bytes
[src]
impl PartialOrd<Bytes> for Bytes
[src]
fn partial_cmp(&self, other: &Bytes) -> Option<Ordering>
[src]
fn lt(&self, other: &Bytes) -> bool
[src]
fn le(&self, other: &Bytes) -> bool
[src]
fn gt(&self, other: &Bytes) -> bool
[src]
fn ge(&self, other: &Bytes) -> bool
[src]
impl StructuralEq for Bytes
[src]
impl StructuralPartialEq for Bytes
[src]
impl<'a> UnsafeFromValue for &'a Bytes
[src]
type Output = *const Bytes
The output type from the unsafe coercion.
type Guard = RawOwnedRef
The raw guard returned. Read more
unsafe fn unsafe_from_value(
value: Value
) -> Result<(Self::Output, Self::Guard), VmError>
[src]
value: Value
) -> Result<(Self::Output, Self::Guard), VmError>
unsafe fn to_arg(output: Self::Output) -> Self
[src]
impl<'a> UnsafeFromValue for &'a mut Bytes
[src]
type Output = *mut Bytes
The output type from the unsafe coercion.
type Guard = RawOwnedMut
The raw guard returned. Read more
unsafe fn unsafe_from_value(
value: Value
) -> Result<(Self::Output, Self::Guard), VmError>
[src]
value: Value
) -> Result<(Self::Output, Self::Guard), VmError>
unsafe fn to_arg(output: Self::Output) -> Self
[src]
impl ValueType for Bytes
[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>,