pub trait Bitfield {
type Storage;
// Required methods
fn from_storage(storage: Self::Storage) -> Self;
fn into_storage(self) -> Self::Storage;
fn storage(&self) -> &Self::Storage;
fn storage_mut(&mut self) -> &mut Self::Storage;
}
Required Associated Types§
Required Methods§
fn from_storage(storage: Self::Storage) -> Self
fn into_storage(self) -> Self::Storage
fn storage(&self) -> &Self::Storage
fn storage_mut(&mut self) -> &mut Self::Storage
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.