Struct PositiveF64
pub struct PositiveF64(/* private fields */);Implementations§
§impl PositiveF64
impl PositiveF64
pub fn new(value: f64) -> PositiveF64
pub fn new(value: f64) -> PositiveF64
Creates a new PositiveF64. Panics if value <= 0.0.
pub fn get(self) -> f64
Trait Implementations§
§impl Clone for PositiveF64
impl Clone for PositiveF64
§fn clone(&self) -> PositiveF64
fn clone(&self) -> PositiveF64
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 more§impl Debug for PositiveF64
impl Debug for PositiveF64
§impl<'de> Deserialize<'de> for PositiveF64
impl<'de> Deserialize<'de> for PositiveF64
§fn deserialize<D>(
deserializer: D,
) -> Result<PositiveF64, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<PositiveF64, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for PositiveF64
impl Display for PositiveF64
§impl JsonSchema for PositiveF64
impl JsonSchema for PositiveF64
§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
§fn json_schema(_generator: &mut SchemaGenerator) -> Schema
fn json_schema(_generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read more§impl PartialEq for PositiveF64
impl PartialEq for PositiveF64
§impl PartialOrd for PositiveF64
impl PartialOrd for PositiveF64
§impl Serialize for PositiveF64
impl Serialize for PositiveF64
§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
impl Copy for PositiveF64
impl StructuralPartialEq for PositiveF64
Auto Trait Implementations§
impl Freeze for PositiveF64
impl RefUnwindSafe for PositiveF64
impl Send for PositiveF64
impl Sync for PositiveF64
impl Unpin for PositiveF64
impl UnwindSafe for PositiveF64
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