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