#[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§
Trait Implementations§
Source§impl<T, E> ComputedReadResult for &ComputedProbe<Result<T, E>>
impl<T, E> ComputedReadResult for &ComputedProbe<Result<T, E>>
Source§impl<V> ComputedReadValue for ComputedProbe<V>
impl<V> ComputedReadValue for ComputedProbe<V>
type Value = V
fn __mx_computed_read(&self, value: V) -> ComputedRead<V, Infallible>
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