pub trait ImmutableBytes: StringToFromBytes { }Expand description
Marker trait for string types that don’t provide conversion from bytes to mutable string reference
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 ImmutableBytes for CStr
Available on crate feature
cstr only.impl ImmutableBytes for OsStr
Available on crate features
std and osstr only.impl ImmutableBytes for Path
Available on crate features
std and path only.