pub trait Bytes {
// Required methods
fn as_slice(&self) -> &[u8] ⓘ;
fn len(&self) -> usize;
fn is_empty(&self) -> bool;
}Expand description
Arbitrary-length array of bytes.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Implementors§
impl Bytes for HeapBytes
Available on crate feature
protected only.impl<A: Zeroize + Bytes, LM: LockMode> Bytes for Protected<A, ReadOnly, LM>
Available on crate feature
protected only.impl<A: Zeroize + Bytes, LM: LockMode> Bytes for Protected<A, ReadWrite, LM>
Available on crate feature
protected only.impl<InnerKey: ByteArray<CRYPTO_BOX_BEFORENMBYTES> + Bytes + Zeroize> Bytes for PrecalcSecretKey<InnerKey>
impl<const LENGTH: usize> Bytes for HeapByteArray<LENGTH>
Available on crate feature
protected only.