pub enum MetalCodegenError {
MissingConfig,
Io(Error),
Fmt(Error),
}Expand description
Errors during Metal code generation.
Variants§
MissingConfig
The computation graph has no attached ModelConfig.
Io(Error)
An I/O error during file creation.
Fmt(Error)
A formatting error while building source strings.
Trait Implementations§
Source§impl Debug for MetalCodegenError
impl Debug for MetalCodegenError
Source§impl Display for MetalCodegenError
impl Display for MetalCodegenError
Source§impl Error for MetalCodegenError
impl Error for MetalCodegenError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for MetalCodegenError
impl From<Error> for MetalCodegenError
Auto Trait Implementations§
impl Freeze for MetalCodegenError
impl !RefUnwindSafe for MetalCodegenError
impl Send for MetalCodegenError
impl Sync for MetalCodegenError
impl Unpin for MetalCodegenError
impl UnsafeUnpin for MetalCodegenError
impl !UnwindSafe for MetalCodegenError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more