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
Show fields
Implementations
impl Error
[src]
impl Error
[src]pub fn dimensions<D>(name: &str, dims: D) -> Self where
D: Debug,
[src]
D: Debug,
Report incompatible dimensions.
pub fn reduced_dimensions<D>(name: &str, dims: D, rdims: D) -> Self where
D: Debug,
[src]
D: Debug,
Report incorrect reduced dimensions.
pub fn lengths<L>(name: &str, lengths: L) -> Self where
L: Debug,
[src]
L: Debug,
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
Auto Trait Implementations
impl RefUnwindSafe for Error
impl RefUnwindSafe for Error
impl UnwindSafe for Error
impl UnwindSafe for Error