Struct variance::Invariant
[−]
[src]
pub struct Invariant<T>(_);
A marker for forcing T to be considered invariant.
Methods
impl<T> Invariant<T>
fn new() -> Self
Create a new Invariant marker instance.
All instances of Invariant with the same T are equivalent.