Lines Matching defs:V
25 impl<A: Aliasing, AA: Alignment, V: Validity> Invariants for (A, AA, V) {
28 type Validity = V;
58 /// In this section, we will use `Ptr<T, V>` as a shorthand for `Ptr<T, I:
59 /// Invariants<Validity = V>>` for brevity.
61 /// Each `V: Validity` defines a set of bit values which may appear in the
62 /// referent of a `Ptr<T, V>`, denoted `S(T, V)`. Each `V: Validity`, in its
63 /// documentation, provides a definition of `S(T, V)` which must be valid for
64 /// all `T: ?Sized`. Any `V: Validity` must guarantee that this set is only a
66 /// other property of `T`. As a consequence, given `V: Validity`, `T`, and `U`
67 /// where `T` and `U` have the same bit validity, `S(T, V) = S(U, V)`.
69 /// It is guaranteed that the referent of any `ptr: Ptr<T, V>` is a member of
70 /// `S(T, V)`. Unsafe code must ensure that this guarantee will be upheld for
76 /// byte range. In particular, given `src: Ptr<T, V>` and `dst: Ptr<U, W>` which
79 /// - If `S(T, V) = S(U, W)`, then no additional validity-preservation
83 /// `S(T, V) ⊇ S(U, W)` - in other words, the reinterpretation must not expand
86 /// V)`, which would violate the guarantee that `src`'s referent may only
87 /// contain values in `S(T, V)`.
90 /// reference), then it must hold that `S(T, V) ⊆ S(U, W)` - in other words,
94 /// where `x ∈ S(T, V)` but `x ∉ S(U, W)`, which would violate the guarantee
305 impl<A: Sealed, AA: Sealed, V: Sealed> Sealed for (A, AA, V) {}