Lines Matching refs:OutOfRangeError
278 pub fn from_std(duration: StdDuration) -> Result<Duration, OutOfRangeError> { in from_std() argument
281 return Err(OutOfRangeError(())); in from_std()
285 return Err(OutOfRangeError(())); in from_std()
294 pub fn to_std(&self) -> Result<StdDuration, OutOfRangeError> { in to_std() argument
296 return Err(OutOfRangeError(())); in to_std()
413 pub struct OutOfRangeError(()); struct
415 impl fmt::Display for OutOfRangeError { implementation
422 impl Error for OutOfRangeError { implementation
458 use super::{Duration, OutOfRangeError, MAX, MIN};
657 assert_eq!(Duration::seconds(-1).to_std(), Err(OutOfRangeError(()))); in test_to_std()
658 assert_eq!(Duration::milliseconds(-1).to_std(), Err(OutOfRangeError(()))); in test_to_std()
677 Err(OutOfRangeError(())) in test_from_std()
681 Err(OutOfRangeError(())) in test_from_std()