pub struct Encoding {
pub input_ids: Vec<u32>,
pub attention_mask: Vec<u8>,
pub special_tokens_mask: Vec<u8>,
}Fields§
§input_ids: Vec<u32>§attention_mask: Vec<u8>§special_tokens_mask: Vec<u8>Auto Trait Implementations§
impl Freeze for Encoding
impl RefUnwindSafe for Encoding
impl Send for Encoding
impl Sync for Encoding
impl Unpin for Encoding
impl UnwindSafe for Encoding
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