pub enum Error {
Show 22 variants
EmptyInput,
MissingIdentifier,
InvalidFlatbuffer,
UnsupportedVersion {
major: i32,
minor: i32,
patch: i32,
draft: bool,
},
LimitExceeded {
resource: Resource,
limit: usize,
},
AllocationFailed(Resource),
MissingName(NameKind),
EmptyName(NameKind),
DuplicateName(NameKind),
UnknownDataType(u32),
UnsupportedDataType(u32),
RankedTensorWithoutShape,
UnrankedTensorWithDimensions,
InvalidDimension(i32),
InvalidShapeData,
ExternalDataRange,
UnknownOperator(u32),
UnsupportedOperator(u32),
MissingAttribute(Op),
AttributeMismatch {
op: Op,
attribute: u8,
},
UnknownSymbol,
MultipleProducers,
}Expand description
Failure returned for malformed, unsupported, or over-budget input.
Variants§
EmptyInput
MissingIdentifier
InvalidFlatbuffer
UnsupportedVersion
LimitExceeded
AllocationFailed(Resource)
MissingName(NameKind)
EmptyName(NameKind)
DuplicateName(NameKind)
UnknownDataType(u32)
UnsupportedDataType(u32)
RankedTensorWithoutShape
UnrankedTensorWithDimensions
InvalidDimension(i32)
InvalidShapeData
ExternalDataRange
UnknownOperator(u32)
UnsupportedOperator(u32)
MissingAttribute(Op)
AttributeMismatch
UnknownSymbol
MultipleProducers
Trait Implementations§
impl Copy for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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