pub unsafe trait Immutable { }Expand description
Types whose values are devoid of inner mutability.
Note that [T; 0] implements this marker trait even when T does not.
This trait is safely derivable with #[derive(Immutable)] when the
derive feature is enabled.
§Safety
It is undefined behaviour to implement this trait for any type that provides inner mutability.