use std::sync::Arc; /// An `Arc<[u8]>` that is transitive over `AsRef<[u8]>`. pub struct TransitiveArc(pub Arc); impl> AsRef<[u8]> for TransitiveArc { fn as_ref(&self) -> &[u8] { self.0.as_ref().as_ref() } } impl Clone for TransitiveArc { fn clone(&self) -> TransitiveArc { TransitiveArc(self.0.clone()) } }