Skip to main content

ComputedProbe

Struct ComputedProbe 

Source
#[doc(hidden)]
pub struct ComputedProbe<V>(PhantomData<V>);
Expand description

The autoref probe of a computed getter’s value V. The generated getter calls (&&&ComputedProbe::of(&value)).__mx_computed_read(value) with the three traits in scope; method lookup tries the receiver &&&ComputedProbe<V> first, so the impl on the deepest reference that fits V wins: ComputedReadNull for Result<T, ()>, then ComputedReadResult for any Result<T, E>, then ComputedReadValue for anything else.

Tuple Fields§

§0: PhantomData<V>

Implementations§

Source§

impl<V> ComputedProbe<V>

Source

#[doc(hidden)]
pub fn of(_value: &V) -> Self

The probe of value’s type.

Trait Implementations§

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 0 bytes