Struct konst_kernel::type_eq::TypeEq
source · Implementations
sourceimpl<L, R> TypeEq<L, R>
impl<L, R> TypeEq<L, R>
sourcepub const fn reachability_hint<T>(self, val: T) -> T
pub const fn reachability_hint<T>(self, val: T) -> T
Hints to the compiler that a TypeEq<L, R>
can only be constructed if L == R
.
This function takes and returns val
unmodified.
This allows returning some value from an expression
while hinting that L == R
.
Trait Implementations
impl<L: ?Sized, R: ?Sized> Copy for TypeEq<L, R>
Auto Trait Implementations
impl<L: ?Sized, R: ?Sized> RefUnwindSafe for TypeEq<L, R>
impl<L: ?Sized, R: ?Sized> Send for TypeEq<L, R>
impl<L: ?Sized, R: ?Sized> Sync for TypeEq<L, R>
impl<L: ?Sized, R: ?Sized> Unpin for TypeEq<L, R>
impl<L: ?Sized, R: ?Sized> UnwindSafe for TypeEq<L, R>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more