Emptyable

Trait Emptyable 

Source
pub unsafe trait Emptyable: Slice { }
Expand description

A slice that can be empty.

§Safety

Slice::try_from_slice(&[])/Slice::try_from_slice_mut(&mut []) must be ok.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Emptyable for str

Source§

impl Emptyable for BStr

Available on crate feature bstr only.
Source§

impl<T: Send + Sync + 'static> Emptyable for [T]

Implementors§