Struct ResultCacheKey

pub struct ResultCacheKey<'a> { /* private fields */ }

A key used for the result cache.

The capabilities of this structure are currently quite limited; all one can do with safe code is get the &dyn Debug of the test input value. This may improve in the future, particularly at such a time that specialisation becomes stable.

Implementations

impl<'a> ResultCacheKey<'a>

fn value_debug(&self) -> &dyn Debug

Return the test input value as an &dyn Debug.

Trait Implementations

impl<'a> Debug for ResultCacheKey<'a>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl<'a> !RefUnwindSafe for ResultCacheKey<'a>

impl<'a> !Send for ResultCacheKey<'a>

impl<'a> !Sync for ResultCacheKey<'a>

impl<'a> !UnwindSafe for ResultCacheKey<'a>

impl<'a> Freeze for ResultCacheKey<'a>

impl<'a> Unpin for ResultCacheKey<'a>

impl<'a> UnsafeUnpin for ResultCacheKey<'a>

Blanket Implementations

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for ResultCacheKey<'a> where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for ResultCacheKey<'a> where ST: ?Sized, DT: ?Sized,

impl<T> Any for ResultCacheKey<'a> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for ResultCacheKey<'a> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for ResultCacheKey<'a> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for ResultCacheKey<'a>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Read<Exclusive, BecauseExclusive> for ResultCacheKey<'a> where T: ?Sized,

impl<T, U> Into<U> for ResultCacheKey<'a> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for ResultCacheKey<'a> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for ResultCacheKey<'a> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

impl<V, T> VZip<V> for ResultCacheKey<'a> where V: MultiLane<T>,

fn vzip(self) -> V