pub unsafe trait NonZeroBitArray:
Copy
+ Display
+ Debug
+ Eq
+ Hash
+ 'static {
type Base: BitArray<NonZero = Self>;
// Required methods
fn new(n: Self::Base) -> Option<Self>;
unsafe fn new_unchecked(n: Self::Base) -> Self;
fn get(self) -> Self::Base;
}Expand description
Required Associated Types§
Required Methods§
fn new(n: Self::Base) -> Option<Self>
Sourceunsafe fn new_unchecked(n: Self::Base) -> Self
unsafe fn new_unchecked(n: Self::Base) -> Self
§Safety
The provided value n must be nonzero.
fn get(self) -> Self::Base
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.