-
Notifications
You must be signed in to change notification settings - Fork 70
Open
Labels
enhancementNew feature or requestNew feature or request
Description
While rs-matter is no_std and no-alloc, the user app might not be and might be using the allocator.
Therefore, it might be useful to have (behind a #[cfg(feature = "alloc")]) blanket trait impls of all our public traits for the alloc types:
impl<T> MyTrait for Box<T> where T: MyTrait { ... }- this for all traitsimpl<T> MyTrait for Rc<T> where T: MyTrait { ... }- this for traits which have only&selfmethodsimpl<T> MyTrait for Arc<T> where T: MyTrait { ... }- this for traits which have only&selfmethods; needs to additionally be protected to only execute on targets that do havecore::sync::atomicimpl<T> MyTrait for portable_atomic::Arc<T> where T: MyTrait { ... }- this for traits which have only&selfmethods; and only if we decide to keep theportable-atomicdependency around; perhaps behind a#[cfg(feature = "portable-atomic")]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request