Struct tc_value::ValueCollator [−][src]
pub struct ValueCollator { /* fields omitted */ }
Trait Implementations
impl Clone for ValueCollator
[src]
impl Clone for ValueCollator
[src]fn clone(&self) -> ValueCollator
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Collate for ValueCollator
[src]
impl Collate for ValueCollator
[src]type Value = Value
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
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 ValueCollator
[src]
impl Default for ValueCollator
[src]fn default() -> ValueCollator
[src]
Auto Trait Implementations
impl RefUnwindSafe for ValueCollator
impl RefUnwindSafe for ValueCollator
impl Send for ValueCollator
impl Send for ValueCollator
impl Sync for ValueCollator
impl Sync for ValueCollator
impl Unpin for ValueCollator
impl Unpin for ValueCollator
impl UnwindSafe for ValueCollator
impl UnwindSafe for ValueCollator
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,