[−][src]Struct number_general::FloatCollator
Defines a collation order for Float
.
Trait Implementations
impl Collate for FloatCollator
[src]
type Value = Float
pub fn compare(&self, left: &Self::Value, right: &Self::Value) -> Ordering
[src]
pub fn bisect<V, B>(
&self,
slice: &[V],
range: &Range<Self::Value, B>
) -> (usize, usize) where
B: Borrow<[Self::Value]>,
V: AsRef<[Self::Value]>,
[src]
&self,
slice: &[V],
range: &Range<Self::Value, B>
) -> (usize, usize) where
B: Borrow<[Self::Value]>,
V: AsRef<[Self::Value]>,
pub fn bisect_left<V>(&self, slice: &[V], key: &[Self::Value]) -> usize where
V: AsRef<[Self::Value]>,
[src]
V: AsRef<[Self::Value]>,
pub fn bisect_right<V>(&self, slice: &[V], key: &[Self::Value]) -> usize where
V: AsRef<[Self::Value]>,
[src]
V: AsRef<[Self::Value]>,
pub fn compare_range<B>(
&self,
key: &[Self::Value],
range: &Range<Self::Value, B>
) -> Ordering where
B: Borrow<[Self::Value]>,
[src]
&self,
key: &[Self::Value],
range: &Range<Self::Value, B>
) -> Ordering where
B: Borrow<[Self::Value]>,
pub fn compare_slice<L, R>(&self, left: L, right: R) -> Ordering where
R: AsRef<[Self::Value]>,
L: AsRef<[Self::Value]>,
[src]
R: AsRef<[Self::Value]>,
L: AsRef<[Self::Value]>,
pub fn is_sorted<V>(&self, slice: &[V]) -> bool where
V: AsRef<[Self::Value]>,
[src]
V: AsRef<[Self::Value]>,
impl Default for FloatCollator
[src]
pub fn default() -> FloatCollator
[src]
Auto Trait Implementations
impl RefUnwindSafe for FloatCollator
[src]
impl Send for FloatCollator
[src]
impl Sync for FloatCollator
[src]
impl Unpin for FloatCollator
[src]
impl UnwindSafe for FloatCollator
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<F, T> CastFrom<F> for T where
T: From<F>,
[src]
T: From<F>,
impl<T, F> CastInto<F> for T where
F: CastFrom<T>,
[src]
F: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<F> Match for F
[src]
pub fn matches<T>(&self) -> bool where
T: TryCastFrom<Self>,
[src]
T: TryCastFrom<Self>,
impl<F, T> TryCastFrom<F> for T where
T: CastFrom<F>,
[src]
T: CastFrom<F>,
pub fn can_cast_from(&F) -> bool
[src]
pub fn opt_cast_from(f: F) -> Option<T>
[src]
pub fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
[src]
OnErr: FnOnce(&T) -> Err,
impl<F, T> TryCastInto<T> for F where
T: TryCastFrom<F>,
[src]
T: TryCastFrom<F>,
pub fn can_cast_into(&self) -> bool
[src]
pub fn opt_cast_into(self) -> Option<T>
[src]
pub fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err> where
OnErr: FnOnce(&Self) -> Err,
[src]
OnErr: FnOnce(&Self) -> Err,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,