pub trait AsBitStringRef {
// Required method
fn as_bit_string_ref(&self) -> BitStringRef<'_>;
}Expand description
AsBitStringRef marks object that will act like a BitString.
It will allow to get a BitStringRef that points back to the underlying bytes.
Note: this trait does not simplify to AsRef<BitStringRef>, because BIT STRING
contains unused bits prefix and therefore cannot be a simple &'a BitStringRef slice.
Required Methods§
Sourcefn as_bit_string_ref(&self) -> BitStringRef<'_>
fn as_bit_string_ref(&self) -> BitStringRef<'_>
Borrows the owned or ref BIT STRING as BitStringRef
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".