Cargo Features
[dependencies]
borrow_trait = { version = "0.1.1", default-features = false, features = ["std", "alloc", "atomic_refcell", "cell"] }
- default = std
-
The
std
feature is set by default wheneverborrow_trait
is added without
somewhere in the dependency tree.default-features = false - std default = alloc
- alloc std
-
Provide BorrowRef and BorrowRefMut impls for types, that require an allocator like Box<T>, Arc<T> and Rc<T>. This is a subset of std but may be enabled without depending on all of std.
Features from optional dependencies
- atomic_refcell implicit feature
-
Enables atomic_refcell
atomic_refcell:
Threadsafe RefCell
- cell implicit feature
-
Enables cell
cell:
A replacement of std::cell::RefCell adding advanced support for mapping borrows