pub struct FrequencyPenalty(pub f32);Expand description
Represents a frequency penalty with a value between -2 and 2.
Tuple Fields§
§0: f32Implementations§
Trait Implementations§
Source§impl Clone for FrequencyPenalty
impl Clone for FrequencyPenalty
Source§fn clone(&self) -> FrequencyPenalty
fn clone(&self) -> FrequencyPenalty
Returns a duplicate 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 FrequencyPenalty
impl Debug for FrequencyPenalty
Source§impl Default for FrequencyPenalty
impl Default for FrequencyPenalty
Source§impl<'de> Deserialize<'de> for FrequencyPenalty
impl<'de> Deserialize<'de> for FrequencyPenalty
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
Source§impl PartialEq for FrequencyPenalty
impl PartialEq for FrequencyPenalty
Source§impl Serialize for FrequencyPenalty
impl Serialize for FrequencyPenalty
impl StructuralPartialEq for FrequencyPenalty
Auto Trait Implementations§
impl Freeze for FrequencyPenalty
impl RefUnwindSafe for FrequencyPenalty
impl Send for FrequencyPenalty
impl Sync for FrequencyPenalty
impl Unpin for FrequencyPenalty
impl UnwindSafe for FrequencyPenalty
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