#[repr(C)]pub struct TokenizerInventoryView {
pub struct_size: usize,
pub schema_version: u32,
pub entries: *const TokenizerInventoryEntry,
pub entry_count: usize,
}Expand description
Borrowed ABI view of the complete vocabulary. The host owns the entries and their bytes and passes them only while activating the plugin.
Fields§
§struct_size: usize§schema_version: u32§entries: *const TokenizerInventoryEntry§entry_count: usizeTrait Implementations§
Source§impl Clone for TokenizerInventoryView
impl Clone for TokenizerInventoryView
Source§fn clone(&self) -> TokenizerInventoryView
fn clone(&self) -> TokenizerInventoryView
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TokenizerInventoryView
Auto Trait Implementations§
impl !Send for TokenizerInventoryView
impl !Sync for TokenizerInventoryView
impl Freeze for TokenizerInventoryView
impl RefUnwindSafe for TokenizerInventoryView
impl Unpin for TokenizerInventoryView
impl UnsafeUnpin for TokenizerInventoryView
impl UnwindSafe for TokenizerInventoryView
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