pub struct OpenClosedUnit<T: FloatExt>(/* private fields */);
Expand description
Floating point number in (0.0, 1.0]
Trait Implementations§
Source§impl<T: Clone + FloatExt> Clone for OpenClosedUnit<T>
impl<T: Clone + FloatExt> Clone for OpenClosedUnit<T>
Source§fn clone(&self) -> OpenClosedUnit<T>
fn clone(&self) -> OpenClosedUnit<T>
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<'de> Deserialize<'de> for OpenClosedUnit<f64>
impl<'de> Deserialize<'de> for OpenClosedUnit<f64>
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for OpenClosedUnit<f64>
impl JsonSchema for OpenClosedUnit<f64>
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(_gen: &mut SchemaGenerator) -> Schema
fn json_schema(_gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§fn always_inline_schema() -> bool
fn always_inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref
keyword. Read moreSource§impl<T: PartialOrd + FloatExt> PartialOrd for OpenClosedUnit<T>
impl<T: PartialOrd + FloatExt> PartialOrd for OpenClosedUnit<T>
Source§impl Serialize for OpenClosedUnit<f64>
impl Serialize for OpenClosedUnit<f64>
impl<T: Copy + FloatExt> Copy for OpenClosedUnit<T>
impl<T: FloatExt> StructuralPartialEq for OpenClosedUnit<T>
Auto Trait Implementations§
impl<T> Freeze for OpenClosedUnit<T>where
T: Freeze,
impl<T> RefUnwindSafe for OpenClosedUnit<T>where
T: RefUnwindSafe,
impl<T> Send for OpenClosedUnit<T>where
T: Send,
impl<T> Sync for OpenClosedUnit<T>where
T: Sync,
impl<T> Unpin for OpenClosedUnit<T>where
T: Unpin,
impl<T> UnwindSafe for OpenClosedUnit<T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)