pub struct LLAMA_BACKEND { /* private fields */ }Methods from Deref<Target = LlamaBackend>§
Sourcepub fn supports_gpu_offload(&self) -> bool
pub fn supports_gpu_offload(&self) -> bool
Was the code built for a GPU backend & is a supported one available.
Sourcepub fn supports_mmap(&self) -> bool
pub fn supports_mmap(&self) -> bool
Does this platform support loading the model via mmap.
Sourcepub fn supports_mlock(&self) -> bool
pub fn supports_mlock(&self) -> bool
Does this platform support locking the model in RAM.
Trait Implementations§
Source§impl Deref for LLAMA_BACKEND
impl Deref for LLAMA_BACKEND
Source§type Target = LlamaBackend
type Target = LlamaBackend
The resulting type after dereferencing.
Source§fn deref(&self) -> &LlamaBackend
fn deref(&self) -> &LlamaBackend
Dereferences the value.
impl LazyStatic for LLAMA_BACKEND
Auto Trait Implementations§
impl Freeze for LLAMA_BACKEND
impl RefUnwindSafe for LLAMA_BACKEND
impl Send for LLAMA_BACKEND
impl Sync for LLAMA_BACKEND
impl Unpin for LLAMA_BACKEND
impl UnsafeUnpin for LLAMA_BACKEND
impl UnwindSafe for LLAMA_BACKEND
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