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