Enum GGufFileType

Source
#[repr(u32)]
pub enum GGufFileType {
Show 36 variants AllF32 = 0, MostlyF16 = 1, MostlyQ4_0 = 2, MostlyQ4_1 = 3, MostlyQ4_1SomeF16 = 4, MostlyQ4_2 = 5, MostlyQ4_3 = 6, MostlyQ8_0 = 7, MostlyQ5_0 = 8, MostlyQ51 = 9, MostlyQ2K = 10, MostlyQ3KS = 11, MostlyQ3KM = 12, MostlyQ3KL = 13, MostlyQ4KS = 14, MostlyQ4KM = 15, MostlyQ5KS = 16, MostlyQ5KM = 17, MostlyQ6K = 18, MostlyIQ2XXS = 19, MostlyIQ2XS = 20, MostlyQ2KS = 21, MostlyIQ3XS = 22, MostlyIQ3XXS = 23, MostlyIQ1S = 24, MostlyIQ4NL = 25, MostlyIQ3S = 26, MostlyIQ3M = 27, MostlyIQ2S = 28, MostlyIQ2M = 29, MostlyIQ4XS = 30, MostlyIQ1M = 31, MostlyBF16 = 32, MostlyQ4_0_4_4 = 33, MostlyQ4_0_4_8 = 34, MostlyQ4_0_8_8 = 35,
}
Expand description

GGUF 文件类型枚举。

表示 GGUF 文件中使用的主要数据类型。

Variants§

§

AllF32 = 0

§

MostlyF16 = 1

§

MostlyQ4_0 = 2

§

MostlyQ4_1 = 3

§

MostlyQ4_1SomeF16 = 4

§

MostlyQ4_2 = 5

👎Deprecated: support removed
§

MostlyQ4_3 = 6

👎Deprecated: support removed
§

MostlyQ8_0 = 7

§

MostlyQ5_0 = 8

§

MostlyQ51 = 9

§

MostlyQ2K = 10

§

MostlyQ3KS = 11

§

MostlyQ3KM = 12

§

MostlyQ3KL = 13

§

MostlyQ4KS = 14

§

MostlyQ4KM = 15

§

MostlyQ5KS = 16

§

MostlyQ5KM = 17

§

MostlyQ6K = 18

§

MostlyIQ2XXS = 19

§

MostlyIQ2XS = 20

§

MostlyQ2KS = 21

§

MostlyIQ3XS = 22

§

MostlyIQ3XXS = 23

§

MostlyIQ1S = 24

§

MostlyIQ4NL = 25

§

MostlyIQ3S = 26

§

MostlyIQ3M = 27

§

MostlyIQ2S = 28

§

MostlyIQ2M = 29

§

MostlyIQ4XS = 30

§

MostlyIQ1M = 31

§

MostlyBF16 = 32

§

MostlyQ4_0_4_4 = 33

§

MostlyQ4_0_4_8 = 34

§

MostlyQ4_0_8_8 = 35

Trait Implementations§

Source§

impl Clone for GGufFileType

Source§

fn clone(&self) -> GGufFileType

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for GGufFileType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for GGufFileType

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for GGufFileType

Source§

fn eq(&self, other: &GGufFileType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<u32> for GGufFileType

Source§

type Error = TryFromPrimitiveError<GGufFileType>

The type returned in the event of a conversion error.
Source§

fn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>

Performs the conversion.
Source§

impl TryFromPrimitive for GGufFileType

Source§

impl Copy for GGufFileType

Source§

impl Eq for GGufFileType

Source§

impl StructuralPartialEq for GGufFileType

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.