Enum gad::error::Error[][src]

pub enum Error {
    Dimensions {
        name: String,
        dimensions: String,
        trace: String,
    },
    ReducedDimensions {
        name: String,
        dimensions: String,
        reduced_dimensions: String,
        trace: String,
    },
    Lengths {
        name: String,
        lengths: String,
        trace: String,
    },
    Empty {
        name: String,
        trace: String,
    },
    MissingId {
        name: String,
        trace: String,
    },
    MissingGradient {
        name: String,
        trace: String,
    },
    MissingNode {
        name: String,
        trace: String,
    },
}

Default error type for the crate.

Variants

Dimensions
Show fields

Fields of Dimensions

name: Stringdimensions: Stringtrace: String
ReducedDimensions
Show fields

Fields of ReducedDimensions

name: Stringdimensions: Stringreduced_dimensions: Stringtrace: String
Lengths
Show fields

Fields of Lengths

name: Stringlengths: Stringtrace: String
Empty
Show fields

Fields of Empty

name: Stringtrace: String
MissingId
Show fields

Fields of MissingId

name: Stringtrace: String
MissingGradient
Show fields

Fields of MissingGradient

name: Stringtrace: String
MissingNode
Show fields

Fields of MissingNode

name: Stringtrace: String

Implementations

impl Error[src]

pub fn dimensions<D>(name: &str, dims: D) -> Self where
    D: Debug
[src]

Report incompatible dimensions.

pub fn reduced_dimensions<D>(name: &str, dims: D, rdims: D) -> Self where
    D: Debug
[src]

Report incorrect reduced dimensions.

pub fn lengths<L>(name: &str, lengths: L) -> Self where
    L: Debug
[src]

Report incompatible lengths.

pub fn empty(name: &str) -> Self[src]

Report an empty input.

pub fn missing_id(name: &str) -> Self[src]

Report a missing id.

pub fn missing_gradient(name: &str) -> Self[src]

Report a missing gradient.

pub fn missing_node(name: &str) -> Self[src]

Report a missing node.

Trait Implementations

impl Clone for Error[src]

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

Auto Trait Implementations

impl RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl UnwindSafe for Error

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.