Struct tc_value::FloatCollator [−][src]
pub struct FloatCollator;
Defines a collation order for Float
.
Trait Implementations
impl Clone for FloatCollator
[src]
impl Clone for FloatCollator
[src]pub fn clone(&self) -> FloatCollator
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Collate for FloatCollator
[src]
impl Collate for FloatCollator
[src]type Value = Float
pub fn compare(
&self,
left: &<FloatCollator as Collate>::Value,
right: &<FloatCollator as Collate>::Value
) -> Ordering
[src]
&self,
left: &<FloatCollator as Collate>::Value,
right: &<FloatCollator as Collate>::Value
) -> Ordering
pub fn bisect<V, B>(
&self,
slice: &[V],
range: &Range<Self::Value, B>
) -> (usize, usize) where
V: AsRef<[Self::Value]>,
B: Borrow<[Self::Value]>,
[src]
&self,
slice: &[V],
range: &Range<Self::Value, B>
) -> (usize, usize) where
V: AsRef<[Self::Value]>,
B: Borrow<[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]
impl Default for FloatCollator
[src]pub fn default() -> FloatCollator
[src]
Auto Trait Implementations
impl RefUnwindSafe for FloatCollator
impl RefUnwindSafe for FloatCollator
impl Send for FloatCollator
impl Send for FloatCollator
impl Sync for FloatCollator
impl Sync for FloatCollator
impl Unpin for FloatCollator
impl Unpin for FloatCollator
impl UnwindSafe for FloatCollator
impl UnwindSafe for FloatCollator
Blanket Implementations
impl<F, T> TryCastFrom<F> for T where
T: CastFrom<F>,
[src]
impl<F, T> TryCastFrom<F> for T where
T: CastFrom<F>,
[src]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]
impl<F, T> TryCastInto<T> for F where
T: TryCastFrom<F>,
[src]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,