pub fn first(&self) -> Option<T>
	where
		T: Clone + Measure + PartialEnum + Bounded,
	{
		if self.is_empty() {
			None
		} else {
			match self.start_bound() {
				Bound::Included(a) => Some(a.clone()),
				Bound::Excluded(a) => a.succ(),
				Bound::Unbounded => Some(T::MIN),
			}
		}
	}
/// Get the first element of the range if there is one.
Get the first element of the range if there is one.
Get the first element of the range if there is one .
pub fn first(&self) -> Option<T>
	where
		T: Clone + Measure + PartialEnum + Bounded,
	{
		if self.is_empty() {
			None
		} else {
			match self.start_bound() {
				Bound::Included(a) => Some(a.clone()),
				Bound::Excluded(a) => a.succ(),
				Bound::Unbounded => Some(T::MIN),
			}
		}
	}
pub fn first ( & self ) -> Option < T > where T : Clone + Measure + PartialEnum + Bounded , { if self . is_empty ( ) { None } else { match self . start_bound ( ) { Bound :: Included ( a ) => Some ( a . clone ( ) ) , Bound :: Excluded ( a ) => a . succ ( ) , Bound :: Unbounded => Some ( T :: MIN ) , } } }
Get the first element of the range if there is one.
Get the first element of the range if there is one .
&self
&self