pub struct LlamaVocab {
pub backend: Arc<LlamaLib>,
pub handle: *const llama_vocab,
}Fields§
§backend: Arc<LlamaLib>§handle: *const llama_vocabImplementations§
Source§impl LlamaVocab
impl LlamaVocab
pub fn bos(&self) -> llama_token
pub fn eos(&self) -> llama_token
pub fn is_eog(&self, token: llama_token) -> bool
Auto Trait Implementations§
impl Freeze for LlamaVocab
impl RefUnwindSafe for LlamaVocab
impl !Send for LlamaVocab
impl !Sync for LlamaVocab
impl Unpin for LlamaVocab
impl UnsafeUnpin for LlamaVocab
impl UnwindSafe for LlamaVocab
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