• Home
  • Raw
  • Download

Lines Matching refs:shelf

98     shelf: Option<Shelf>,  field
129 shelf: None, in new()
205 let mut shelf = state.lock().unwrap().shelf.take().unwrap_or_default(); in spawn_thread() localVariable
232 state.shelf = Some(shelf); in spawn_thread()
243 f(&mut shelf); in spawn_thread()
248 idle_fn(&mut shelf); in spawn_thread()
271 let mut shelf = Shelf::default(); in test_shelf() localVariable
274 assert_eq!(shelf.put(s), None); in test_shelf()
277 assert_eq!(shelf.put(s2), Some("A string".to_string())); in test_shelf()
285 assert_eq!(shelf.put(e1), None); in test_shelf()
288 let s3 = shelf.get_downcast_ref::<String>().unwrap(); in test_shelf()
293 let e2 = shelf.get_downcast_mut::<Elf>().unwrap(); in test_shelf()
299 let e3 = shelf.remove_downcast_ref::<Elf>().unwrap(); in test_shelf()
302 assert_eq!(shelf.remove_downcast_ref::<Elf>(), None); in test_shelf()
306 let i = shelf.get_mut::<u64>(); in test_shelf()
310 let i2 = shelf.get_downcast_ref::<u64>().unwrap(); in test_shelf()
314 assert_eq!(shelf.get_downcast_ref::<i32>(), None); in test_shelf()
315 assert_eq!(shelf.get_downcast_mut::<i32>(), None); in test_shelf()
316 assert_eq!(shelf.remove_downcast_ref::<i32>(), None); in test_shelf()
326 at.queue_hi(move |shelf| { in test_async_task()
329 shelf.put(Vec::<String>::new()); in test_async_task()
335 at.queue_lo(move |shelf| { in test_async_task()
336 let trace = shelf.get_mut::<Vec<String>>(); in test_async_task()
340 at.queue_hi(move |shelf| { in test_async_task()
341 let trace = shelf.get_mut::<Vec<String>>(); in test_async_task()
348 at.queue_lo(move |shelf| { in test_async_task()
349 let trace = shelf.get_downcast_ref::<Vec<String>>().unwrap(); in test_async_task()
482 at.add_idle(move |shelf| { in test_async_task_idle_queues_job()
487 let i = shelf.get_mut::<i32>(); in test_async_task_idle_queues_job()