Struct minicbor::bytes::ByteSlice [−][src]
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]
fn borrow_mut(&mut self) -> &mut ByteSlice[src]
impl BorrowMut<ByteSlice> for ByteVec[src]
fn borrow_mut(&mut self) -> &mut ByteSlice[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]
fn decode_bytes(d: &mut Decoder<'b>) -> Result<Self, Error>[src]
impl Deref for ByteSlice[src]
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]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,