ImmutableBytes

Trait ImmutableBytes 

Source
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§

Source§

impl ImmutableBytes for CStr

Available on crate feature cstr only.
Source§

impl ImmutableBytes for OsStr

Available on crate features std and osstr only.
Source§

impl ImmutableBytes for Path

Available on crate features std and path only.

Implementors§