pub struct FloatSet(/* private fields */);Expand description
A fixed union of closed float ranges, ordered and nonoverlapping by exact bounds.
Implementations§
Source§impl FloatSet
impl FloatSet
pub fn from_ranges(ranges: Vec<(FiniteFloat, FiniteFloat)>) -> Self
pub fn ranges(&self) -> &[(FiniteFloat, FiniteFloat)]
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FloatSet
impl<'de> Deserialize<'de> for FloatSet
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
impl Eq for FloatSet
impl StructuralPartialEq for FloatSet
Auto Trait Implementations§
impl Freeze for FloatSet
impl RefUnwindSafe for FloatSet
impl Send for FloatSet
impl Sync for FloatSet
impl Unpin for FloatSet
impl UnsafeUnpin for FloatSet
impl UnwindSafe for FloatSet
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