ContainsNoRefs

Trait ContainsNoRefs 

Source
pub trait ContainsNoRefs:
    Send
    + Sync
    + 'static { }
Expand description

A type that can be garbage collected that cannot contain any Ref<T>s.

Types that implement this trait automatically implement Collectable. This trait reduces the boilerplate for implementing Collectable for self-contained types.

Implementors§

Source§

impl<T> ContainsNoRefs for T
where T: SimpleType,