pub struct LlamaBackend {}Implementations§
Source§impl LlamaBackend
impl LlamaBackend
Sourcepub fn init_numa(strategy: NumaStrategy) -> Result<Self>
pub fn init_numa(strategy: NumaStrategy) -> Result<Self>
§Errors
Returns an error if the backend was already initialized.
pub fn supports_gpu_offload(&self) -> bool
pub fn supports_mmap(&self) -> bool
pub fn supports_mlock(&self) -> bool
pub fn void_logs(&mut self)
Trait Implementations§
Source§impl Debug for LlamaBackend
impl Debug for LlamaBackend
Source§impl Drop for LlamaBackend
impl Drop for LlamaBackend
Source§impl PartialEq for LlamaBackend
impl PartialEq for LlamaBackend
Source§fn eq(&self, other: &LlamaBackend) -> bool
fn eq(&self, other: &LlamaBackend) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LlamaBackend
impl StructuralPartialEq for LlamaBackend
Auto Trait Implementations§
impl Freeze for LlamaBackend
impl RefUnwindSafe for LlamaBackend
impl Send for LlamaBackend
impl Sync for LlamaBackend
impl Unpin for LlamaBackend
impl UnsafeUnpin for LlamaBackend
impl UnwindSafe for LlamaBackend
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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