[][src]Struct untyped_bytes::UntypedBytes

pub struct UntypedBytes { /* fields omitted */ }

Methods

impl UntypedBytes[src]

pub fn new() -> Self[src]

pub fn with_capacity(capacity: usize) -> Self[src]

pub fn from_vec<T: Copy + 'static>(value: Vec<T>) -> Self[src]

Effectively a mem::transmute.

pub fn from_slice<T, V>(value: V) -> Self where
    T: Copy + 'static,
    V: Borrow<[T]>, 
[src]

pub fn is_empty(&self) -> bool[src]

pub fn len(&self) -> usize[src]

pub fn clear(&mut self)[src]

pub fn push<T: Copy + 'static>(&mut self, value: T)[src]

pub fn extend_from_slice<T, V>(&mut self, value: V) where
    T: Copy + 'static,
    V: Borrow<[T]>, 
[src]

pub unsafe fn as_slice(&self) -> &[u8][src]

Returns a slice that is unsafe to inspect in the presence of padding bytes, but is safe to memcpy.

Trait Implementations

impl<A: Copy + 'static> Extend<A> for UntypedBytes[src]

impl Default for UntypedBytes[src]

impl Clone for UntypedBytes[src]

impl<T: Copy + 'static> From<T> for UntypedBytes[src]

impl Debug for UntypedBytes[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]