pub trait IsAlignment:
Sealed
+ Sized
+ Copy
+ Clone
+ Sync
+ Send
+ Unpin
+ RefUnwindSafe
+ UnwindSafe
+ 'static {
type Marker: Send + Sync + Unpin + Clone + Copy + RefUnwindSafe + UnwindSafe + 'static;
const MARKER_INSTANCE: Self::Marker;
const VALUE: usize;
}Expand description
Marker only implemented for Alignment.
Alignment values with a power of two from 1 up to 2²⁹ are allowed as given by the rust reference.
This trait is sealed and cannot be implemented by external types.
Required Associated Constants§
Sourceconst MARKER_INSTANCE: Self::Marker
const MARKER_INSTANCE: Self::Marker
Instance of the associated Self::Marker.
Sourceconst VALUE: usize
const VALUE: usize
Alignment of the associated Self::Marker.
Required Associated Types§
Sourcetype Marker: Send + Sync + Unpin + Clone + Copy + RefUnwindSafe + UnwindSafe + 'static
type Marker: Send + Sync + Unpin + Clone + Copy + RefUnwindSafe + UnwindSafe + 'static
Type of alignment marker.
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.