pub struct NativeGgufFile { /* private fields */ }Implementations§
Source§impl NativeGgufFile
impl NativeGgufFile
pub fn open(path: impl AsRef<Path>) -> Result<Self>
pub fn architecture(&self) -> Result<&str>
pub fn quantization_version(&self) -> Option<u64>
pub fn hadamard(&self) -> Option<&GgufHadamard>
pub fn tensor_count(&self) -> usize
pub fn tensor_names(&self) -> impl Iterator<Item = &str>
pub fn tensor_info(&self, name: &str) -> Option<&NativeGgufTensor>
pub fn has_tensor(&self, name: &str) -> bool
pub fn mmap_bytes(&self) -> &[u8] ⓘ
pub fn tensor_byte_slice(&self, name: &str) -> Option<&[u8]>
pub fn tensor_byte_range(&self, name: &str) -> Option<(usize, usize)>
Trait Implementations§
Source§impl Debug for NativeGgufFile
impl Debug for NativeGgufFile
Source§impl StableHostMemory for NativeGgufFile
impl StableHostMemory for NativeGgufFile
fn stable_bytes(&self) -> &[u8] ⓘ
Auto Trait Implementations§
impl Freeze for NativeGgufFile
impl RefUnwindSafe for NativeGgufFile
impl Send for NativeGgufFile
impl Sync for NativeGgufFile
impl Unpin for NativeGgufFile
impl UnsafeUnpin for NativeGgufFile
impl UnwindSafe for NativeGgufFile
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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