matchmaker/aliases.rs
1use std::ops::{Index, Range};
2
3pub trait PickerItem: Sync + Send + 'static {}
4impl<T: Sync + Send + 'static> PickerItem for T {}
5
6pub trait Selection: Send + PartialEq +'static {}
7impl<T: Send + PartialEq + 'static> Selection for T {}
8
9pub trait SegmentableItem: PickerItem + Index<Range<usize>, Output = str> {}
10impl<T: PickerItem + Index<Range<usize>, Output = str>> SegmentableItem for T {}
11
12// pub trait HashSetLike {}
13
14// pub trait HashMapLike {}