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§
impl Emptyable for str
impl Emptyable for BStr
Available on crate feature
bstr only.