Skip to main content

UnderlyingBytes

Trait UnderlyingBytes 

Source
pub trait UnderlyingBytes:
    AsRef<[u8]>
    + Send
    + Sync
    + 'static { }
Expand description

The underlying bytes that the Bytes object references.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl UnderlyingBytes for Box<[u8]>

Source§

impl UnderlyingBytes for String

Source§

impl UnderlyingBytes for Vec<u8>

Implementors§