pub trait AsBStrOpt {
// Required method
fn as_bstr_opt(&self) -> Option<&BStr>;
}Available on crate feature
bstr only.Expand description
Provide an optional borrowed byte-string view of common string and byte containers.
Required Methods§
Sourcefn as_bstr_opt(&self) -> Option<&BStr>
fn as_bstr_opt(&self) -> Option<&BStr>
Return this value as a borrowed byte string, or None if it is absent.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".