Struct necsim_core_bond::OpenClosedUnitF64 
source · pub struct OpenClosedUnitF64(/* private fields */);Implementations§
source§impl OpenClosedUnitF64
 
impl OpenClosedUnitF64
sourcepub const fn new(value: f64) -> Result<Self, OpenClosedUnitF64Error>
 
pub const fn new(value: f64) -> Result<Self, OpenClosedUnitF64Error>
§Errors
Returns OpenClosedUnitF64Error if not 0.0 < value <= 1.0
sourcepub const unsafe fn new_unchecked(value: f64) -> Self
 
pub const unsafe fn new_unchecked(value: f64) -> Self
§Safety
Only safe iff 0.0 < value <= 1.0
pub const fn get(self) -> f64
pub fn ln<M: MathsCore>(self) -> NonPositiveF64
Trait Implementations§
source§impl Clone for OpenClosedUnitF64
 
impl Clone for OpenClosedUnitF64
source§fn clone(&self) -> OpenClosedUnitF64
 
fn clone(&self) -> OpenClosedUnitF64
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 ComputeTypeSet for OpenClosedUnitF64
 
impl ComputeTypeSet for OpenClosedUnitF64
source§impl Debug for OpenClosedUnitF64
 
impl Debug for OpenClosedUnitF64
source§impl<'de> Deserialize<'de> for OpenClosedUnitF64
 
impl<'de> Deserialize<'de> for OpenClosedUnitF64
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 Display for OpenClosedUnitF64
 
impl Display for OpenClosedUnitF64
source§impl From<OpenClosedUnitF64> for ClosedUnitF64
 
impl From<OpenClosedUnitF64> for ClosedUnitF64
source§fn from(value: OpenClosedUnitF64) -> Self
 
fn from(value: OpenClosedUnitF64) -> Self
Converts to this type from the input type.
source§impl From<OpenClosedUnitF64> for NonNegativeF64
 
impl From<OpenClosedUnitF64> for NonNegativeF64
source§fn from(value: OpenClosedUnitF64) -> Self
 
fn from(value: OpenClosedUnitF64) -> Self
Converts to this type from the input type.
source§impl From<OpenClosedUnitF64> for f64
 
impl From<OpenClosedUnitF64> for f64
source§fn from(val: OpenClosedUnitF64) -> Self
 
fn from(val: OpenClosedUnitF64) -> Self
Converts to this type from the input type.
source§impl Hash for OpenClosedUnitF64
 
impl Hash for OpenClosedUnitF64
source§impl Mul<OpenClosedUnitF64> for ClosedUnitF64
 
impl Mul<OpenClosedUnitF64> for ClosedUnitF64
§type Output = OpenClosedUnitF64
 
type Output = OpenClosedUnitF64
The resulting type after applying the 
* operator.source§fn mul(self, other: OpenClosedUnitF64) -> OpenClosedUnitF64
 
fn mul(self, other: OpenClosedUnitF64) -> OpenClosedUnitF64
Performs the 
* operation. Read moresource§impl Ord for OpenClosedUnitF64
 
impl Ord for OpenClosedUnitF64
source§impl PartialEq<f64> for OpenClosedUnitF64
 
impl PartialEq<f64> for OpenClosedUnitF64
source§impl PartialEq for OpenClosedUnitF64
 
impl PartialEq for OpenClosedUnitF64
source§impl PartialOrd<f64> for OpenClosedUnitF64
 
impl PartialOrd<f64> for OpenClosedUnitF64
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
 
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for 
self and other) and is used by the <=
operator. Read moresource§impl PartialOrd for OpenClosedUnitF64
 
impl PartialOrd for OpenClosedUnitF64
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
 
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for 
self and other) and is used by the <=
operator. Read moresource§impl Serialize for OpenClosedUnitF64
 
impl Serialize for OpenClosedUnitF64
source§impl TryFrom<f64> for OpenClosedUnitF64
 
impl TryFrom<f64> for OpenClosedUnitF64
source§impl TypeLayout for OpenClosedUnitF64
 
impl TypeLayout for OpenClosedUnitF64
§type Inhabited = <And<<f64 as TypeLayout>::Inhabited, Inhabited> as ComputeInhabited>::Output
 
type Inhabited = <And<<f64 as TypeLayout>::Inhabited, Inhabited> as ComputeInhabited>::Output
Marker type for whether the type is
inhabited or
uninhabited.
The associated type must be either [
inhabited::Inhabited]
or [inhabited::Uninhabited].source§const TYPE_LAYOUT: TypeLayoutInfo<'static> = _
 
const TYPE_LAYOUT: TypeLayoutInfo<'static> = _
Shallow layout of the type.
impl Copy for OpenClosedUnitF64
impl Eq for OpenClosedUnitF64
Auto Trait Implementations§
impl Freeze for OpenClosedUnitF64
impl RefUnwindSafe for OpenClosedUnitF64
impl Send for OpenClosedUnitF64
impl Sync for OpenClosedUnitF64
impl Unpin for OpenClosedUnitF64
impl UnwindSafe for OpenClosedUnitF64
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
§impl<T> ExtractDiscriminant for T
 
impl<T> ExtractDiscriminant for T
§type Discriminant = <T as ExtractDiscriminantSpec<<T as DiscriminantKind>::Discriminant>>::Ty
 
type Discriminant = <T as ExtractDiscriminantSpec<<T as DiscriminantKind>::Discriminant>>::Ty
The type of the discriminant, which must satisfy the trait bounds
required by 
core::mem::Discriminant. Read more§impl<T> TypeGraphLayout for Twhere
    T: TypeLayout + ComputeTypeSet,
 
impl<T> TypeGraphLayout for Twhere
    T: TypeLayout + ComputeTypeSet,
§const TYPE_GRAPH: TypeLayoutGraph<'static> = _
 
const TYPE_GRAPH: TypeLayoutGraph<'static> = _
Shallow layout of the type.