Skip to main content

ComputedRead

Enum ComputedRead 

Source
#[doc(hidden)]
pub enum ComputedRead<T, E> { Value(T), Null, Err(E), }
Expand description

What a computed field’s getter gave, as the generated getter reads it. Sorted by the autoref probe on ComputedProbe, since the derive sees the getter’s path, not its return type.

Variants§

§

Value(T)

A value to convert with IntoR: the getter’s value, or its Ok.

§

Null

Err(()) of a Result<T, ()>: the field reads NULL, as a function’s Result<T, ()> return does.

§

Err(E)

Err(e) of any other Result<T, E>: raised as a classed R error.

Layout§

Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.