pub struct DeterministicScore(/* private fields */);Implementations§
Source§impl DeterministicScore
impl DeterministicScore
pub const MAX: DeterministicScore
pub const NEG_INF: DeterministicScore
pub const ZERO: DeterministicScore
pub const fn from_raw(raw: i64) -> DeterministicScore
pub const fn to_raw(self) -> i64
pub fn from_f64(val: f64) -> DeterministicScore
pub fn from_f32(val: f32) -> DeterministicScore
pub fn to_f64(self) -> f64
pub const fn is_infinite(self) -> bool
Trait Implementations§
Source§impl Add for DeterministicScore
impl Add for DeterministicScore
Source§type Output = DeterministicScore
type Output = DeterministicScore
The resulting type after applying the
+ operator.Source§fn add(self, rhs: DeterministicScore) -> <DeterministicScore as Add>::Output
fn add(self, rhs: DeterministicScore) -> <DeterministicScore as Add>::Output
Performs the
+ operation. Read moreSource§impl Clone for DeterministicScore
impl Clone for DeterministicScore
Source§fn clone(&self) -> DeterministicScore
fn clone(&self) -> DeterministicScore
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 moreSource§impl Debug for DeterministicScore
impl Debug for DeterministicScore
Source§impl Default for DeterministicScore
impl Default for DeterministicScore
Source§fn default() -> DeterministicScore
fn default() -> DeterministicScore
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeterministicScore
impl<'de> Deserialize<'de> for DeterministicScore
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DeterministicScore, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DeterministicScore, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for DeterministicScore
impl Display for DeterministicScore
Source§impl Div<i64> for DeterministicScore
impl Div<i64> for DeterministicScore
Source§impl From<f32> for DeterministicScore
impl From<f32> for DeterministicScore
Source§fn from(val: f32) -> DeterministicScore
fn from(val: f32) -> DeterministicScore
Converts to this type from the input type.
Source§impl From<f64> for DeterministicScore
impl From<f64> for DeterministicScore
Source§fn from(val: f64) -> DeterministicScore
fn from(val: f64) -> DeterministicScore
Converts to this type from the input type.
Source§impl Hash for DeterministicScore
impl Hash for DeterministicScore
Source§impl Mul<f64> for DeterministicScore
impl Mul<f64> for DeterministicScore
Source§impl Mul<i64> for DeterministicScore
impl Mul<i64> for DeterministicScore
Source§impl Ord for DeterministicScore
impl Ord for DeterministicScore
Source§fn cmp(&self, other: &DeterministicScore) -> Ordering
fn cmp(&self, other: &DeterministicScore) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DeterministicScore
impl PartialEq for DeterministicScore
Source§fn eq(&self, other: &DeterministicScore) -> bool
fn eq(&self, other: &DeterministicScore) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DeterministicScore
impl PartialOrd for DeterministicScore
Source§impl Serialize for DeterministicScore
impl Serialize for DeterministicScore
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl Sub for DeterministicScore
impl Sub for DeterministicScore
Source§type Output = DeterministicScore
type Output = DeterministicScore
The resulting type after applying the
- operator.Source§fn sub(self, rhs: DeterministicScore) -> <DeterministicScore as Sub>::Output
fn sub(self, rhs: DeterministicScore) -> <DeterministicScore as Sub>::Output
Performs the
- operation. Read moreimpl Copy for DeterministicScore
impl Eq for DeterministicScore
impl StructuralPartialEq for DeterministicScore
Auto Trait Implementations§
impl Freeze for DeterministicScore
impl RefUnwindSafe for DeterministicScore
impl Send for DeterministicScore
impl Sync for DeterministicScore
impl Unpin for DeterministicScore
impl UnsafeUnpin for DeterministicScore
impl UnwindSafe for DeterministicScore
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