Lines Matching refs:OutOfMemory
17 Context, Error, OutOfMemory, Result, bail, ensure, format_err,
177 assert!(!e.is::<OutOfMemory>()); in is()
183 assert!(!e.is::<OutOfMemory>()); in is()
190 assert!(!e.is::<OutOfMemory>()); in is()
196 assert!(!e.is::<OutOfMemory>()); in is()
199 let e = Error::from(OutOfMemory::new(5)); in is()
200 assert!(e.is::<OutOfMemory>()); in is()
217 let e = Error::from(OutOfMemory::new(5)); in backtrace()
420 let error = error.downcast::<OutOfMemory>().unwrap_err(); in downcast()
426 let error = error.downcast::<OutOfMemory>().unwrap_err(); in downcast()
430 let error = Error::from(OutOfMemory::new(5)); in downcast()
433 assert!(error.downcast::<OutOfMemory>().is_ok()); in downcast()
438 .context(OutOfMemory::new(5)); in downcast()
440 assert!(error.downcast::<OutOfMemory>().is_ok()); in downcast()
445 .context(OutOfMemory::new(5)); in downcast()
452 .context(OutOfMemory::new(5)); in downcast()
492 assert!(e.downcast_ref::<OutOfMemory>().is_none()); in downcast_ref()
498 assert!(e.downcast_ref::<OutOfMemory>().is_none()); in downcast_ref()
504 assert!(e.downcast_ref::<OutOfMemory>().is_none()); in downcast_ref()
510 assert!(e.downcast_ref::<OutOfMemory>().is_none()); in downcast_ref()
513 let e = Error::from(OutOfMemory::new(5)); in downcast_ref()
514 assert!(e.downcast_ref::<OutOfMemory>().is_some()); in downcast_ref()
524 assert!(e.downcast_mut::<OutOfMemory>().is_none()); in downcast_mut()
530 assert!(e.downcast_mut::<OutOfMemory>().is_none()); in downcast_mut()
545 assert!(e.downcast_mut::<OutOfMemory>().is_none()); in downcast_mut()
550 let mut e = Error::from(OutOfMemory::new(5)); in downcast_mut()
551 assert!(e.downcast_mut::<OutOfMemory>().is_some()); in downcast_mut()
558 let error = Error::new(OutOfMemory::new(5)); in context_on_oom()
560 assert!(error.is::<OutOfMemory>()); in context_on_oom()
756 let error = Error::new(OutOfMemory::new(5)); in fmt_debug_alternate_with_oom()
897 let oom = OutOfMemory::new(bytes); in oom_requested_allocation_size()
901 let oom = OutOfMemory::new(bytes); in oom_requested_allocation_size()
905 let oom = OutOfMemory::new(bytes); in oom_requested_allocation_size()
911 let oom = OutOfMemory::new(usize::MAX); in oom_requested_allocation_size()