pub enum GGUFMetadataValue {
}Expand description
GGUF metadata value.
Maps one-to-one onto the GGUF file format metadata types
(TYPE_INT8 .. TYPE_UINT64, TYPE_F32, TYPE_F64, TYPE_BOOL,
TYPE_STRING), plus GGUF_ARRAY, whose elements are recursively
GGUFMetadataValues.
Variants§
Uint8(u8)
Unsigned 8-bit integer
Int8(i8)
Signed 8-bit integer
Uint16(u16)
Unsigned 16-bit integer
Int16(i16)
Signed 16-bit integer
Uint32(u32)
Unsigned 32-bit integer
Int32(i32)
Signed 32-bit integer
Uint64(u64)
Unsigned 64-bit integer
Int64(i64)
Signed 64-bit integer
Float32(f32)
32-bit floating-point number
Float64(f64)
64-bit floating-point number
Bool(bool)
Boolean value
String(String)
UTF-8 string
Array(Box<[GGUFMetadataValue]>)
Array of arbitrary metadata values
Auto Trait Implementations§
impl Freeze for GGUFMetadataValue
impl RefUnwindSafe for GGUFMetadataValue
impl Send for GGUFMetadataValue
impl Sync for GGUFMetadataValue
impl Unpin for GGUFMetadataValue
impl UnsafeUnpin for GGUFMetadataValue
impl UnwindSafe for GGUFMetadataValue
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