pub enum GgmlTypeError {
Removed {
id: u32,
name: &'static str,
},
Unknown {
id: u32,
},
}Expand description
Why an id is not a GgmlType.
The distinction is the point: 4 is not an unknown id, it is Q4_2, which
upstream removed. A loader that says “unknown tensor type 4” sends its
reader looking for a type that was deleted in 2023.
Variants§
Removed
The id names a type upstream has removed.
Unknown
The id is not in 0..GGML_TYPE_COUNT at the pinned commit.
Trait Implementations§
Source§impl Clone for GgmlTypeError
impl Clone for GgmlTypeError
impl Copy for GgmlTypeError
Source§impl Debug for GgmlTypeError
impl Debug for GgmlTypeError
Source§impl Display for GgmlTypeError
impl Display for GgmlTypeError
impl Eq for GgmlTypeError
Source§impl Error for GgmlTypeError
impl Error for GgmlTypeError
1.30.0 · 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 PartialEq for GgmlTypeError
impl PartialEq for GgmlTypeError
impl StructuralPartialEq for GgmlTypeError
Auto Trait Implementations§
impl Forget for GgmlTypeError
impl Freeze for GgmlTypeError
impl Move for GgmlTypeError
impl RefUnwindSafe for GgmlTypeError
impl Send for GgmlTypeError
impl Sync for GgmlTypeError
impl Unpin for GgmlTypeError
impl UnsafeUnpin for GgmlTypeError
impl UnwindSafe for GgmlTypeError
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