Trait sorted::SearchableByOrder
[−]
[src]
pub trait SearchableByOrder<O>: Collection where
O: SortOrder<Self::Item>, {
fn search(&self, _: &Self::Item) -> Result<usize, usize>;
}
Defines an interface for collections that can be searched when sorted.
Required Methods
Implementors
impl<'a, T, O> SearchableByOrder<O> for &'a mut [T] where
O: SortOrder<T>,impl<'a, T, O> SearchableByOrder<O> for &'a [T] where
O: SortOrder<T>,impl<T, O> SearchableByOrder<O> for [T] where
O: SortOrder<T>,impl<T, O> SearchableByOrder<O> for [T; 1] where
O: SortOrder<T>,impl<T, O> SearchableByOrder<O> for [T; 2] where
O: SortOrder<T>,impl<T, O> SearchableByOrder<O> for [T; 3] where
O: SortOrder<T>,impl<T, O> SearchableByOrder<O> for [T; 4] where
O: SortOrder<T>,impl<T, O> SearchableByOrder<O> for [T; 5] where
O: SortOrder<T>,impl<T, O> SearchableByOrder<O> for [T; 6] where
O: SortOrder<T>,impl<T, O> SearchableByOrder<O> for [T; 7] where
O: SortOrder<T>,impl<T, O> SearchableByOrder<O> for [T; 8] where
O: SortOrder<T>,impl<T, O> SearchableByOrder<O> for [T; 9] where
O: SortOrder<T>,impl<T, O> SearchableByOrder<O> for [T; 10] where
O: SortOrder<T>,impl<T, O> SearchableByOrder<O> for [T; 11] where
O: SortOrder<T>,impl<T, O> SearchableByOrder<O> for [T; 12] where
O: SortOrder<T>,impl<T, O> SearchableByOrder<O> for [T; 13] where
O: SortOrder<T>,impl<T, O> SearchableByOrder<O> for [T; 14] where
O: SortOrder<T>,impl<T, O> SearchableByOrder<O> for [T; 15] where
O: SortOrder<T>,impl<T, O> SearchableByOrder<O> for [T; 16] where
O: SortOrder<T>,impl<T, O> SearchableByOrder<O> for [T; 17] where
O: SortOrder<T>,impl<T, O> SearchableByOrder<O> for [T; 18] where
O: SortOrder<T>,impl<T, O> SearchableByOrder<O> for [T; 19] where
O: SortOrder<T>,impl<T, O> SearchableByOrder<O> for [T; 20] where
O: SortOrder<T>,impl<T, O> SearchableByOrder<O> for [T; 21] where
O: SortOrder<T>,impl<T, O> SearchableByOrder<O> for [T; 22] where
O: SortOrder<T>,impl<T, O> SearchableByOrder<O> for [T; 23] where
O: SortOrder<T>,impl<T, O> SearchableByOrder<O> for [T; 24] where
O: SortOrder<T>,impl<T, O> SearchableByOrder<O> for [T; 25] where
O: SortOrder<T>,impl<T, O> SearchableByOrder<O> for [T; 26] where
O: SortOrder<T>,impl<T, O> SearchableByOrder<O> for [T; 27] where
O: SortOrder<T>,impl<T, O> SearchableByOrder<O> for [T; 28] where
O: SortOrder<T>,impl<T, O> SearchableByOrder<O> for [T; 29] where
O: SortOrder<T>,impl<T, O> SearchableByOrder<O> for [T; 30] where
O: SortOrder<T>,impl<T, O> SearchableByOrder<O> for [T; 31] where
O: SortOrder<T>,impl<T, O> SearchableByOrder<O> for [T; 32] where
O: SortOrder<T>,impl<T, O> SearchableByOrder<O> for Vec<T> where
O: SortOrder<T>,