pub trait BorrowPessimize: PessimizeCast {
type BorrowedPessimize: Pessimize;
// Required methods
fn with_pessimize(&self, f: impl FnOnce(&Self::BorrowedPessimize));
fn assume_accessed_impl(&mut self);
}Expand description
Extract references to Pessimize values from references to Self (Pessimize impl helper)
Required Associated Types§
Sourcetype BorrowedPessimize: Pessimize
type BorrowedPessimize: Pessimize
Pessimize type to which a reference can be extracted from &self
Required Methods§
Sourcefn with_pessimize(&self, f: impl FnOnce(&Self::BorrowedPessimize))
fn with_pessimize(&self, f: impl FnOnce(&Self::BorrowedPessimize))
Extract an &Pessimized from &self and all the provided operation
on it.
In the common case where Self: Copy, you can implement this by calling
pessimize::impl_with_pessimize_via_copy.
Sourcefn assume_accessed_impl(&mut self)
fn assume_accessed_impl(&mut self)
Extract an &mut Pessimized from &mut self, call assume_accessed
on it, and propagate any “changes” back to the original &mut self.
In the common case where there is a cheap way to go from an &mut Self
to a Self or Self::Pessimized, you can implement this by calling
one of the pessimize::impl_assume_accessed_via_xyz functions.
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.
Implementations on Foreign Types§
Source§impl BorrowPessimize for bool
impl BorrowPessimize for bool
type BorrowedPessimize = u8
fn with_pessimize(&self, f: impl FnOnce(&u8))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for char
impl BorrowPessimize for char
type BorrowedPessimize = u32
fn with_pessimize(&self, f: impl FnOnce(&u32))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for String
Available on crate feature alloc only.
impl BorrowPessimize for String
alloc only.Source§impl BorrowPessimize for Layout
impl BorrowPessimize for Layout
type BorrowedPessimize = (usize, usize)
fn with_pessimize(&self, f: impl FnOnce(&(usize, usize)))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for float64x1x2_t
Available with target feature neon only.
impl BorrowPessimize for float64x1x2_t
neon only.type BorrowedPessimize = (float64x1_t, float64x1_t)
fn with_pessimize(&self, f: impl FnOnce(&(float64x1_t, float64x1_t)))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for float64x1x3_t
Available with target feature neon only.
impl BorrowPessimize for float64x1x3_t
neon only.type BorrowedPessimize = (float64x1_t, float64x1_t, float64x1_t)
fn with_pessimize( &self, f: impl FnOnce(&(float64x1_t, float64x1_t, float64x1_t)), )
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for float64x1x4_t
Available with target feature neon only.
impl BorrowPessimize for float64x1x4_t
neon only.type BorrowedPessimize = (float64x1_t, float64x1_t, float64x1_t, float64x1_t)
fn with_pessimize( &self, f: impl FnOnce(&(float64x1_t, float64x1_t, float64x1_t, float64x1_t)), )
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for float64x2x2_t
Available with target feature neon only.
impl BorrowPessimize for float64x2x2_t
neon only.type BorrowedPessimize = (float64x2_t, float64x2_t)
fn with_pessimize(&self, f: impl FnOnce(&(float64x2_t, float64x2_t)))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for float64x2x3_t
Available with target feature neon only.
impl BorrowPessimize for float64x2x3_t
neon only.type BorrowedPessimize = (float64x2_t, float64x2_t, float64x2_t)
fn with_pessimize( &self, f: impl FnOnce(&(float64x2_t, float64x2_t, float64x2_t)), )
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for float64x2x4_t
Available with target feature neon only.
impl BorrowPessimize for float64x2x4_t
neon only.type BorrowedPessimize = (float64x2_t, float64x2_t, float64x2_t, float64x2_t)
fn with_pessimize( &self, f: impl FnOnce(&(float64x2_t, float64x2_t, float64x2_t, float64x2_t)), )
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for Simd<f64, 1>
Available on crate feature nightly and target feature neon only.
impl BorrowPessimize for Simd<f64, 1>
nightly and target feature neon only.type BorrowedPessimize = float64x1_t
fn with_pessimize(&self, f: impl FnOnce(&float64x1_t))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for Simd<f64, 2>
Available on crate feature nightly and target feature neon only.
impl BorrowPessimize for Simd<f64, 2>
nightly and target feature neon only.type BorrowedPessimize = float64x2_t
fn with_pessimize(&self, f: impl FnOnce(&float64x2_t))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for Error
impl BorrowPessimize for Error
type BorrowedPessimize = ()
fn with_pessimize(&self, f: impl FnOnce(&()))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for PhantomPinned
impl BorrowPessimize for PhantomPinned
type BorrowedPessimize = ()
fn with_pessimize(&self, f: impl FnOnce(&()))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for Ipv4Addr
Available on crate feature std only.
impl BorrowPessimize for Ipv4Addr
std only.type BorrowedPessimize = u32
fn with_pessimize(&self, f: impl FnOnce(&u32))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for SocketAddrV4
Available on crate feature std only.
impl BorrowPessimize for SocketAddrV4
std only.type BorrowedPessimize = (Ipv4Addr, u16)
fn with_pessimize(&self, f: impl FnOnce(&(Ipv4Addr, u16)))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for RangeFull
impl BorrowPessimize for RangeFull
type BorrowedPessimize = ()
fn with_pessimize(&self, f: impl FnOnce(&()))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for AtomicBool
Available on target_has_atomic=8 only.
impl BorrowPessimize for AtomicBool
target_has_atomic=8 only.type BorrowedPessimize = *const AtomicBool
fn with_pessimize(&self, f: impl FnOnce(&Self::BorrowedPessimize))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for AtomicI8
Available on target_has_atomic=8 only.
impl BorrowPessimize for AtomicI8
target_has_atomic=8 only.type BorrowedPessimize = *const AtomicI8
fn with_pessimize(&self, f: impl FnOnce(&Self::BorrowedPessimize))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for AtomicI16
Available on target_has_atomic=16 only.
impl BorrowPessimize for AtomicI16
target_has_atomic=16 only.type BorrowedPessimize = *const AtomicI16
fn with_pessimize(&self, f: impl FnOnce(&Self::BorrowedPessimize))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for AtomicI32
Available on target_has_atomic=32 only.
impl BorrowPessimize for AtomicI32
target_has_atomic=32 only.type BorrowedPessimize = *const AtomicI32
fn with_pessimize(&self, f: impl FnOnce(&Self::BorrowedPessimize))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for AtomicI64
Available on target_has_atomic=64 and 64-bit only.
impl BorrowPessimize for AtomicI64
target_has_atomic=64 and 64-bit only.type BorrowedPessimize = *const AtomicI64
fn with_pessimize(&self, f: impl FnOnce(&Self::BorrowedPessimize))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for AtomicIsize
Available on target_has_atomic=ptr only.
impl BorrowPessimize for AtomicIsize
target_has_atomic=ptr only.type BorrowedPessimize = *const AtomicIsize
fn with_pessimize(&self, f: impl FnOnce(&Self::BorrowedPessimize))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for AtomicU8
Available on target_has_atomic=8 only.
impl BorrowPessimize for AtomicU8
target_has_atomic=8 only.type BorrowedPessimize = *const AtomicU8
fn with_pessimize(&self, f: impl FnOnce(&Self::BorrowedPessimize))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for AtomicU16
Available on target_has_atomic=16 only.
impl BorrowPessimize for AtomicU16
target_has_atomic=16 only.type BorrowedPessimize = *const AtomicU16
fn with_pessimize(&self, f: impl FnOnce(&Self::BorrowedPessimize))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for AtomicU32
Available on target_has_atomic=32 only.
impl BorrowPessimize for AtomicU32
target_has_atomic=32 only.type BorrowedPessimize = *const AtomicU32
fn with_pessimize(&self, f: impl FnOnce(&Self::BorrowedPessimize))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for AtomicU64
Available on target_has_atomic=64 and 64-bit only.
impl BorrowPessimize for AtomicU64
target_has_atomic=64 and 64-bit only.type BorrowedPessimize = *const AtomicU64
fn with_pessimize(&self, f: impl FnOnce(&Self::BorrowedPessimize))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for AtomicUsize
Available on target_has_atomic=ptr only.
impl BorrowPessimize for AtomicUsize
target_has_atomic=ptr only.type BorrowedPessimize = *const AtomicUsize
fn with_pessimize(&self, f: impl FnOnce(&Self::BorrowedPessimize))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for OsString
Available on crate feature std and (Unix or WASI) only.
impl BorrowPessimize for OsString
std and (Unix or WASI) only.Source§impl BorrowPessimize for File
Available on crate feature std and (Unix or Windows) only.
impl BorrowPessimize for File
std and (Unix or Windows) only.type BorrowedPessimize = i32
fn with_pessimize(&self, f: impl FnOnce(&RawFd))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for Permissions
Available on crate feature std and Unix only.
impl BorrowPessimize for Permissions
std and Unix only.type BorrowedPessimize = u32
fn with_pessimize(&self, f: impl FnOnce(&u32))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for Empty
Available on crate feature std only.
impl BorrowPessimize for Empty
std only.type BorrowedPessimize = ()
fn with_pessimize(&self, f: impl FnOnce(&()))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for Repeat
Available on crate feature std only.
impl BorrowPessimize for Repeat
std only.type BorrowedPessimize = *const Repeat
fn with_pessimize(&self, f: impl FnOnce(&Self::BorrowedPessimize))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for Sink
Available on crate feature std only.
impl BorrowPessimize for Sink
std only.type BorrowedPessimize = ()
fn with_pessimize(&self, f: impl FnOnce(&()))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for TcpListener
Available on crate feature std and (Unix or Windows) only.
impl BorrowPessimize for TcpListener
std and (Unix or Windows) only.type BorrowedPessimize = i32
fn with_pessimize(&self, f: impl FnOnce(&RawFd))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for TcpStream
Available on crate feature std and (Unix or Windows) only.
impl BorrowPessimize for TcpStream
std and (Unix or Windows) only.type BorrowedPessimize = i32
fn with_pessimize(&self, f: impl FnOnce(&RawFd))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for UdpSocket
Available on crate feature std and (Unix or Windows) only.
impl BorrowPessimize for UdpSocket
std and (Unix or Windows) only.type BorrowedPessimize = i32
fn with_pessimize(&self, f: impl FnOnce(&RawFd))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for PathBuf
Available on crate feature std and (Unix or WASI) only.
impl BorrowPessimize for PathBuf
std and (Unix or WASI) only.Source§impl BorrowPessimize for ExitStatus
Available on (crate feature std or test) and Unix only.
impl BorrowPessimize for ExitStatus
std or test) and Unix only.type BorrowedPessimize = i32
fn with_pessimize(&self, f: impl FnOnce(&i32))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for Output
Available on (crate feature std or test) and Unix only.
impl BorrowPessimize for Output
std or test) and Unix only.type BorrowedPessimize = (ExitStatus, *const u8, usize, usize, *const u8, usize, usize)
fn with_pessimize(&self, f: impl FnOnce(&Self::BorrowedPessimize))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for NonZeroI8
impl BorrowPessimize for NonZeroI8
type BorrowedPessimize = i8
fn with_pessimize(&self, f: impl FnOnce(&i8))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for NonZeroI16
impl BorrowPessimize for NonZeroI16
type BorrowedPessimize = i16
fn with_pessimize(&self, f: impl FnOnce(&i16))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for NonZeroI32
impl BorrowPessimize for NonZeroI32
type BorrowedPessimize = i32
fn with_pessimize(&self, f: impl FnOnce(&i32))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for NonZeroI64
impl BorrowPessimize for NonZeroI64
type BorrowedPessimize = i64
fn with_pessimize(&self, f: impl FnOnce(&i64))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for NonZeroIsize
impl BorrowPessimize for NonZeroIsize
type BorrowedPessimize = isize
fn with_pessimize(&self, f: impl FnOnce(&isize))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for NonZeroU8
impl BorrowPessimize for NonZeroU8
type BorrowedPessimize = u8
fn with_pessimize(&self, f: impl FnOnce(&u8))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for NonZeroU16
impl BorrowPessimize for NonZeroU16
type BorrowedPessimize = u16
fn with_pessimize(&self, f: impl FnOnce(&u16))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for NonZeroU32
impl BorrowPessimize for NonZeroU32
type BorrowedPessimize = u32
fn with_pessimize(&self, f: impl FnOnce(&u32))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for NonZeroU64
impl BorrowPessimize for NonZeroU64
type BorrowedPessimize = u64
fn with_pessimize(&self, f: impl FnOnce(&u64))
fn assume_accessed_impl(&mut self)
Source§impl BorrowPessimize for NonZeroUsize
impl BorrowPessimize for NonZeroUsize
type BorrowedPessimize = usize
fn with_pessimize(&self, f: impl FnOnce(&usize))
fn assume_accessed_impl(&mut self)
Source§impl<'a, T: ?Sized> BorrowPessimize for &'a T
impl<'a, T: ?Sized> BorrowPessimize for &'a T
type BorrowedPessimize = NonNull<T>
fn with_pessimize(&self, f: impl FnOnce(&Self::BorrowedPessimize))
fn assume_accessed_impl(&mut self)
Source§impl<'a, T: ?Sized> BorrowPessimize for &'a mut T
impl<'a, T: ?Sized> BorrowPessimize for &'a mut T
type BorrowedPessimize = NonNull<T>
fn with_pessimize(&self, f: impl FnOnce(&Self::BorrowedPessimize))
fn assume_accessed_impl(&mut self)
Source§impl<Idx: Clone + Pessimize> BorrowPessimize for Range<Idx>
impl<Idx: Clone + Pessimize> BorrowPessimize for Range<Idx>
type BorrowedPessimize = (Idx, Idx)
fn with_pessimize(&self, f: impl FnOnce(&(Idx, Idx)))
fn assume_accessed_impl(&mut self)
Source§impl<Idx: Clone + Pessimize> BorrowPessimize for RangeFrom<Idx>
impl<Idx: Clone + Pessimize> BorrowPessimize for RangeFrom<Idx>
type BorrowedPessimize = Idx
fn with_pessimize(&self, f: impl FnOnce(&Idx))
fn assume_accessed_impl(&mut self)
Source§impl<Idx: Clone + Pessimize> BorrowPessimize for RangeInclusive<Idx>
impl<Idx: Clone + Pessimize> BorrowPessimize for RangeInclusive<Idx>
type BorrowedPessimize = (Idx, Idx)
fn with_pessimize(&self, f: impl FnOnce(&(Idx, Idx)))
fn assume_accessed_impl(&mut self)
Source§impl<Idx: Clone + Pessimize> BorrowPessimize for RangeTo<Idx>
impl<Idx: Clone + Pessimize> BorrowPessimize for RangeTo<Idx>
type BorrowedPessimize = Idx
fn with_pessimize(&self, f: impl FnOnce(&Idx))
fn assume_accessed_impl(&mut self)
Source§impl<Idx: Clone + Pessimize> BorrowPessimize for RangeToInclusive<Idx>
impl<Idx: Clone + Pessimize> BorrowPessimize for RangeToInclusive<Idx>
type BorrowedPessimize = Idx
fn with_pessimize(&self, f: impl FnOnce(&Idx))
fn assume_accessed_impl(&mut self)
Source§impl<R> BorrowPessimize for fn() -> R
impl<R> BorrowPessimize for fn() -> R
type BorrowedPessimize = *const ()
fn with_pessimize(&self, f: impl FnOnce(&Self::BorrowedPessimize))
fn assume_accessed_impl(&mut self)
Source§impl<R, A1, A2, A3, A4, A5, A6, A7, A8> BorrowPessimize for fn(A1, A2, A3, A4, A5, A6, A7, A8) -> R
impl<R, A1, A2, A3, A4, A5, A6, A7, A8> BorrowPessimize for fn(A1, A2, A3, A4, A5, A6, A7, A8) -> R
type BorrowedPessimize = *const ()
fn with_pessimize(&self, f: impl FnOnce(&Self::BorrowedPessimize))
fn assume_accessed_impl(&mut self)
Source§impl<R, A2, A3, A4, A5, A6, A7, A8> BorrowPessimize for fn(A2, A3, A4, A5, A6, A7, A8) -> R
impl<R, A2, A3, A4, A5, A6, A7, A8> BorrowPessimize for fn(A2, A3, A4, A5, A6, A7, A8) -> R
type BorrowedPessimize = *const ()
fn with_pessimize(&self, f: impl FnOnce(&Self::BorrowedPessimize))
fn assume_accessed_impl(&mut self)
Source§impl<R, A3, A4, A5, A6, A7, A8> BorrowPessimize for fn(A3, A4, A5, A6, A7, A8) -> R
impl<R, A3, A4, A5, A6, A7, A8> BorrowPessimize for fn(A3, A4, A5, A6, A7, A8) -> R
type BorrowedPessimize = *const ()
fn with_pessimize(&self, f: impl FnOnce(&Self::BorrowedPessimize))
fn assume_accessed_impl(&mut self)
Source§impl<R, A4, A5, A6, A7, A8> BorrowPessimize for fn(A4, A5, A6, A7, A8) -> R
impl<R, A4, A5, A6, A7, A8> BorrowPessimize for fn(A4, A5, A6, A7, A8) -> R
type BorrowedPessimize = *const ()
fn with_pessimize(&self, f: impl FnOnce(&Self::BorrowedPessimize))
fn assume_accessed_impl(&mut self)
Source§impl<R, A5, A6, A7, A8> BorrowPessimize for fn(A5, A6, A7, A8) -> R
impl<R, A5, A6, A7, A8> BorrowPessimize for fn(A5, A6, A7, A8) -> R
type BorrowedPessimize = *const ()
fn with_pessimize(&self, f: impl FnOnce(&Self::BorrowedPessimize))
fn assume_accessed_impl(&mut self)
Source§impl<R, A6, A7, A8> BorrowPessimize for fn(A6, A7, A8) -> R
impl<R, A6, A7, A8> BorrowPessimize for fn(A6, A7, A8) -> R
type BorrowedPessimize = *const ()
fn with_pessimize(&self, f: impl FnOnce(&Self::BorrowedPessimize))
fn assume_accessed_impl(&mut self)
Source§impl<R, A7, A8> BorrowPessimize for fn(A7, A8) -> R
impl<R, A7, A8> BorrowPessimize for fn(A7, A8) -> R
type BorrowedPessimize = *const ()
fn with_pessimize(&self, f: impl FnOnce(&Self::BorrowedPessimize))
fn assume_accessed_impl(&mut self)
Source§impl<R, A8> BorrowPessimize for fn(A8) -> R
impl<R, A8> BorrowPessimize for fn(A8) -> R
type BorrowedPessimize = *const ()
fn with_pessimize(&self, f: impl FnOnce(&Self::BorrowedPessimize))
fn assume_accessed_impl(&mut self)
Source§impl<T> BorrowPessimize for Vec<T>
Available on crate feature alloc only.
impl<T> BorrowPessimize for Vec<T>
alloc only.Source§impl<T> BorrowPessimize for Empty<T>
impl<T> BorrowPessimize for Empty<T>
type BorrowedPessimize = ()
fn with_pessimize(&self, f: impl FnOnce(&()))
fn assume_accessed_impl(&mut self)
Source§impl<T> BorrowPessimize for PhantomData<T>
impl<T> BorrowPessimize for PhantomData<T>
type BorrowedPessimize = ()
fn with_pessimize(&self, f: impl FnOnce(&()))
fn assume_accessed_impl(&mut self)
Source§impl<T> BorrowPessimize for AtomicPtr<T>
Available on target_has_atomic=ptr only.
impl<T> BorrowPessimize for AtomicPtr<T>
target_has_atomic=ptr only.type BorrowedPessimize = *const AtomicPtr<T>
fn with_pessimize(&self, f: impl FnOnce(&Self::BorrowedPessimize))
fn assume_accessed_impl(&mut self)
Source§impl<T: Clone + Pessimize> BorrowPessimize for Repeat<T>
impl<T: Clone + Pessimize> BorrowPessimize for Repeat<T>
type BorrowedPessimize = *const Repeat<T>
fn with_pessimize(&self, f: impl FnOnce(&Self::BorrowedPessimize))
fn assume_accessed_impl(&mut self)
Source§impl<T: Pessimize> BorrowPessimize for [T; 1]
impl<T: Pessimize> BorrowPessimize for [T; 1]
type BorrowedPessimize = T
fn with_pessimize(&self, f: impl FnOnce(&T))
fn assume_accessed_impl(&mut self)
Source§impl<T: Pessimize> BorrowPessimize for UnsafeCell<T>
impl<T: Pessimize> BorrowPessimize for UnsafeCell<T>
type BorrowedPessimize = *mut T
fn with_pessimize(&self, f: impl FnOnce(&Self::BorrowedPessimize))
fn assume_accessed_impl(&mut self)
Source§impl<T: Pessimize> BorrowPessimize for Reverse<T>
impl<T: Pessimize> BorrowPessimize for Reverse<T>
type BorrowedPessimize = T
fn with_pessimize(&self, f: impl FnOnce(&T))
fn assume_accessed_impl(&mut self)
Source§impl<T: Pessimize> BorrowPessimize for Once<T>
impl<T: Pessimize> BorrowPessimize for Once<T>
type BorrowedPessimize = *const Once<T>
fn with_pessimize(&self, f: impl FnOnce(&Self::BorrowedPessimize))
fn assume_accessed_impl(&mut self)
Source§impl<T: Pessimize> BorrowPessimize for ManuallyDrop<T>
impl<T: Pessimize> BorrowPessimize for ManuallyDrop<T>
type BorrowedPessimize = T
fn with_pessimize(&self, f: impl FnOnce(&T))
fn assume_accessed_impl(&mut self)
Source§impl<T: Pessimize> BorrowPessimize for Wrapping<T>
impl<T: Pessimize> BorrowPessimize for Wrapping<T>
type BorrowedPessimize = T
fn with_pessimize(&self, f: impl FnOnce(&T))
fn assume_accessed_impl(&mut self)
Source§impl<T: Pessimize> BorrowPessimize for AssertUnwindSafe<T>
impl<T: Pessimize> BorrowPessimize for AssertUnwindSafe<T>
type BorrowedPessimize = T
fn with_pessimize(&self, f: impl FnOnce(&T))
fn assume_accessed_impl(&mut self)
Source§impl<T: ?Sized + Unpin, P: Deref<Target = T> + DerefMut + Pessimize> BorrowPessimize for Pin<P>
impl<T: ?Sized + Unpin, P: Deref<Target = T> + DerefMut + Pessimize> BorrowPessimize for Pin<P>
type BorrowedPessimize = *const T
fn with_pessimize(&self, f: impl FnOnce(&Self::BorrowedPessimize))
fn assume_accessed_impl(&mut self)
Source§impl<T: ?Sized> BorrowPessimize for *mut T
impl<T: ?Sized> BorrowPessimize for *mut T
type BorrowedPessimize = *const T
fn with_pessimize(&self, f: impl FnOnce(&Self::BorrowedPessimize))
fn assume_accessed_impl(&mut self)
Source§impl<T: ?Sized> BorrowPessimize for Box<T>
Available on crate feature alloc only.
impl<T: ?Sized> BorrowPessimize for Box<T>
alloc only.