(item: T)
| 37 | |
| 38 | impl<T: Clone> LazyItemRef<T> { |
| 39 | pub fn new(item: T) -> Self { |
| 40 | LazyItemRef { |
| 41 | item: Arc::new(RwLock::new(LazyItem { |
| 42 | data: Some(Arc::new(RwLock::new(item))), |
| 43 | offset: None, |
| 44 | decay_counter: 0, |
| 45 | })), |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | pub fn new_with_lock(item: Item<T>) -> Self { |
| 50 | LazyItemRef { |
nothing calls this directly
no outgoing calls
no test coverage detected