#[repr(C)]pub struct TokenizerInventoryEntry {
pub id: u32,
pub piece_kind: TokenizerPieceKind,
pub bytes: ByteSlice,
}Expand description
Borrowed ABI view of one immutable native token. The referenced bytes are
valid only for the duration of activate; a plugin must copy or transform
them before it returns.
Fields§
§id: u32§piece_kind: TokenizerPieceKind§bytes: ByteSliceTrait Implementations§
Source§impl Clone for TokenizerInventoryEntry
impl Clone for TokenizerInventoryEntry
Source§fn clone(&self) -> TokenizerInventoryEntry
fn clone(&self) -> TokenizerInventoryEntry
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 TokenizerInventoryEntry
Auto Trait Implementations§
impl !Send for TokenizerInventoryEntry
impl !Sync for TokenizerInventoryEntry
impl Freeze for TokenizerInventoryEntry
impl RefUnwindSafe for TokenizerInventoryEntry
impl Unpin for TokenizerInventoryEntry
impl UnsafeUnpin for TokenizerInventoryEntry
impl UnwindSafe for TokenizerInventoryEntry
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