pub unsafe trait Unit{
type Item: ArrayType<Self> + Copy + From<Self> + Send + Sync + 'static;
}Expand description
A marker trait for unit types.
It is derived automatically for types without fields that have NullArray
as ArrayType, and used as a trait bound on the methods that are used to
support deriving Array for these types.
§Safety
This trait is unsafe because the compiler can’t verify that it only gets implemented by unit types.
Required Associated Types§
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.