ggus

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,
}

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 copy 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, dst: *mut u8)

๐Ÿ”ฌThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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.