#[repr(u32)]pub enum MetadataValueType {
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
The type tag attached to a GGUF metadata value.
Variants§
UInt8 = 0
Unsigned 8-bit integer.
Int8 = 1
Signed 8-bit integer.
UInt16 = 2
Unsigned 16-bit integer.
Int16 = 3
Signed 16-bit integer.
UInt32 = 4
Unsigned 32-bit integer.
Int32 = 5
Signed 32-bit integer.
Float32 = 6
32-bit floating-point number.
Bool = 7
Boolean value.
String = 8
UTF-8 string.
Array = 9
Homogeneous array.
UInt64 = 10
Unsigned 64-bit integer.
Int64 = 11
Signed 64-bit integer.
Float64 = 12
64-bit floating-point number.
Trait Implementations§
Source§impl Clone for MetadataValueType
impl Clone for MetadataValueType
impl Copy for MetadataValueType
Source§impl Debug for MetadataValueType
impl Debug for MetadataValueType
impl Eq for MetadataValueType
Source§impl PartialEq for MetadataValueType
impl PartialEq for MetadataValueType
impl StructuralPartialEq for MetadataValueType
Auto Trait Implementations§
impl Forget for MetadataValueType
impl Freeze for MetadataValueType
impl Move for MetadataValueType
impl RefUnwindSafe for MetadataValueType
impl Send for MetadataValueType
impl Sync for MetadataValueType
impl Unpin for MetadataValueType
impl UnsafeUnpin for MetadataValueType
impl UnwindSafe for MetadataValueType
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