light_clone 0.4.1

Compile-time enforcement for O(1) clone operations
Documentation
1
2
3
4
5
6
7
8
9
use crate::LightClone;

impl<T: ?Sized> LightClone for std::sync::Arc<T> {}

impl<T: ?Sized> LightClone for std::rc::Rc<T> {}

impl<T: ?Sized> LightClone for std::sync::Weak<T> {}

impl<T: ?Sized> LightClone for std::rc::Weak<T> {}