Struct tokenizers::utils::padding::PaddingParams
source · pub struct PaddingParams {
pub strategy: PaddingStrategy,
pub direction: PaddingDirection,
pub pad_to_multiple_of: Option<usize>,
pub pad_id: u32,
pub pad_type_id: u32,
pub pad_token: String,
}
Fields§
§strategy: PaddingStrategy
§direction: PaddingDirection
§pad_to_multiple_of: Option<usize>
§pad_id: u32
§pad_type_id: u32
§pad_token: String
Trait Implementations§
source§impl Clone for PaddingParams
impl Clone for PaddingParams
source§fn clone(&self) -> PaddingParams
fn clone(&self) -> PaddingParams
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PaddingParams
impl Debug for PaddingParams
source§impl Default for PaddingParams
impl Default for PaddingParams
source§impl<'de> Deserialize<'de> for PaddingParams
impl<'de> Deserialize<'de> for PaddingParams
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PaddingParams
impl RefUnwindSafe for PaddingParams
impl Send for PaddingParams
impl Sync for PaddingParams
impl Unpin for PaddingParams
impl UnwindSafe for PaddingParams
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