(data: T)
| 15 | |
| 16 | impl Resource { |
| 17 | pub fn new<T: AsRef<[u8]> + Send + Sync + 'static>(data: T) -> Self { |
| 18 | let hash = ResourceHash::from(data.as_ref()); |
| 19 | Self { inner: Arc::new(data), hash } |
| 20 | } |
| 21 | |
| 22 | pub fn new_unchecked<T: AsRef<[u8]> + Send + Sync + 'static>(data: T, hash: ResourceHash) -> Self { |
| 23 | Self { inner: Arc::new(data), hash } |
nothing calls this directly
no test coverage detected