Lines Matching defs:V

123     /// - Let `S(T, V)` be the set of bit values permitted to appear in the
124 /// referent of a `Ptr<T, I: Invariants<Validity = V>>`. Since this copy
433 /// Reinterprets the same byte region as `U` with validity `V`.
439 pub fn transmute<U, V, R>(self) -> Ptr<'a, U, (I::Aliasing, Unaligned, V)>
441 V: Validity,
442 U: TransmuteFromPtr<T, I::Aliasing, I::Validity, V, <U as SizeEq<T>>::CastFrom, R>
446 self.transmute_with::<U, V, <U as SizeEq<T>>::CastFrom, R>()
449 /// Reinterprets the same byte region as `U` with validity `V` using
457 pub fn transmute_with<U, V, C, R>(self) -> Ptr<'a, U, (I::Aliasing, Unaligned, V)>
459 V: Validity,
460 U: TransmuteFromPtr<T, I::Aliasing, I::Validity, V, C, R> + ?Sized,
474 // - By `U: TransmuteFromPtr<T, I::Aliasing, I::Validity, V, C>`, it
479 /// Changes only the validity invariant to `V`.
485 pub fn recall_validity<V, R>(self) -> Ptr<'a, T, (I::Aliasing, I::Alignment, V)>
487 V: Validity,
488 T: TransmuteFromPtr<T, I::Aliasing, I::Validity, V, IdCast, R>,
490 let ptr = self.transmute_with::<T, V, IdCast, R>();
514 /// type `U` with aliasing `I::Aliasing` and validity `V`. This is a
516 /// `I::Aliasing`, `I::Validity`, and `V`, and may depend upon the
522 pub unsafe fn project_transmute_unchecked<U: ?Sized, V, P>(
524 ) -> Ptr<'a, U, (I::Aliasing, Unaligned, V)>
526 V: Validity,
558 // validity invariant `V` with respect to its referent type, `U`.
589 // referent of a `Ptr<X, (_, _, V)>` is only a function of the
590 // validity of `X` and of `V`. Thus, the set of bit patterns
738 /// of `V`.
743 /// requirement of `V`.
746 pub unsafe fn assume_validity<V: Validity>(
748 ) -> Ptr<'a, T, (I::Aliasing, I::Alignment, V)> {
750 // the validity requirement of `V`.
1269 // in the referent of a `Ptr<T, (_, _, V)>` is the same as the set
1271 // _, V)>`. Thus, neither `self` nor `ptr` may be used to write a