Skip to main content

ShapeGuardResult

Type Alias ShapeGuardResult 

Source
pub type ShapeGuardResult<T> = Result<T, ShapeGuardFailure>;
Expand description

Result type used by shape-guard metadata queries.

The error side preserves a ShapeGuardFailure wrapper so an AD callback can retain the original ShapeGuardError even when a foreign callback protocol accepts only a rendered message.

§Examples

use tenferro_ops::ShapeGuardResult;

let result: ShapeGuardResult<()> = Ok(());
assert!(result.is_ok());

Aliased Type§

pub enum ShapeGuardResult<T> {
    Ok(T),
    Err(ShapeGuardFailure),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(ShapeGuardFailure)

Contains the error value