Struct minicbor::bytes::ByteSlice[][src]

#[repr(transparent)]pub struct ByteSlice(_);

Newtype for [u8].

Used to implement Encode and Decode which translate to CBOR bytes instead of arrays for u8s.

Trait Implementations

impl AsMut<[u8]> for ByteSlice[src]

impl AsRef<[u8]> for ByteSlice[src]

impl Borrow<ByteSlice> for Vec<u8>[src]

impl Borrow<ByteSlice> for ByteVec[src]

impl BorrowMut<ByteSlice> for Vec<u8>[src]

impl BorrowMut<ByteSlice> for ByteVec[src]

impl Debug for ByteSlice[src]

impl<'a, 'b: 'a> Decode<'b> for &'a ByteSlice[src]

impl<'a, 'b: 'a> DecodeBytes<'b> for &'a ByteSlice[src]

impl Deref for ByteSlice[src]

type Target = [u8]

The resulting type after dereferencing.

impl DerefMut for ByteSlice[src]

impl Encode for ByteSlice[src]

impl EncodeBytes for ByteSlice[src]

impl Eq for ByteSlice[src]

impl<'a> From<&'a [u8]> for &'a ByteSlice[src]

impl<'a> From<&'a mut [u8]> for &'a mut ByteSlice[src]

impl Hash for ByteSlice[src]

impl Ord for ByteSlice[src]

impl PartialEq<ByteSlice> for ByteSlice[src]

impl PartialOrd<ByteSlice> for ByteSlice[src]

impl StructuralEq for ByteSlice[src]

impl StructuralPartialEq for ByteSlice[src]

impl ToOwned for ByteSlice[src]

type Owned = ByteVec

The resulting type after obtaining ownership.

Auto Trait Implementations

impl RefUnwindSafe for ByteSlice

impl Send for ByteSlice

impl !Sized for ByteSlice

impl Sync for ByteSlice

impl Unpin for ByteSlice

impl UnwindSafe for ByteSlice

Blanket Implementations

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

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

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