Type Alias basic_dsp_vector::TransRes

source ·
pub type TransRes<T> = Result<T, (ErrorReason, T)>;
Expand description

Result for operations which transform a type (most commonly the type is a vector). On success the transformed type is returned. On failure it contains an error reason and the original type with with invalid data which still can be used in order to avoid memory allocation.

Aliased Type§

enum TransRes<T> {
    Ok(T),
    Err((ErrorReason, T)),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err((ErrorReason, T))

Contains the error value