dairy 0.2.2

A more compact, user friendly clone-on-write smart pointer.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Restrict [`Dairy`](crate::Dairy) implementations to this crate.

pub trait Sealed {}

impl Sealed for str {}

impl<T: Clone> Sealed for [T] {}

#[cfg(feature = "std")]
impl Sealed for std::ffi::CStr {}

#[cfg(feature = "std")]
impl Sealed for std::ffi::OsStr {}

#[cfg(feature = "std")]
impl Sealed for std::path::Path {}