#[repr(u32)]pub enum GGUFValueType {
Show 13 variants
Uint8 = 0,
Int8 = 1,
Uint16 = 2,
Int16 = 3,
Uint32 = 4,
Int32 = 5,
Float32 = 6,
Bool = 7,
String = 8,
Array = 9,
Uint64 = 10,
Int64 = 11,
Float64 = 12,
}Expand description
GGUF metadata value types (gguf_metadata_value_type).
Variants§
Uint8 = 0
Int8 = 1
Uint16 = 2
Int16 = 3
Uint32 = 4
Int32 = 5
Float32 = 6
Bool = 7
String = 8
Array = 9
Uint64 = 10
Int64 = 11
Float64 = 12
Trait Implementations§
Source§impl Clone for GGUFValueType
impl Clone for GGUFValueType
Source§fn clone(&self) -> GGUFValueType
fn clone(&self) -> GGUFValueType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GGUFValueType
Source§impl Debug for GGUFValueType
impl Debug for GGUFValueType
impl Eq for GGUFValueType
Source§impl PartialEq for GGUFValueType
impl PartialEq for GGUFValueType
Source§fn eq(&self, other: &GGUFValueType) -> bool
fn eq(&self, other: &GGUFValueType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GGUFValueType
Auto Trait Implementations§
impl Freeze for GGUFValueType
impl RefUnwindSafe for GGUFValueType
impl Send for GGUFValueType
impl Sync for GGUFValueType
impl Unpin for GGUFValueType
impl UnsafeUnpin for GGUFValueType
impl UnwindSafe for GGUFValueType
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