AllocOwnedSelf

Trait AllocOwnedSelf 

Source
pub trait AllocOwnedSelf<T: ToOwned + ?Sized>: for<'a> AllocOwned<'a, 'a, T> { }
Expand description

Allocates values implementing ToOwned into itself.

This is merely a marker trait that you should not implement yourself. It is implemented automatically on anything that supports AllocOwned<'a, 'a, T> for any 'a. The allocated values have the same lifetime as &self.

Implementors§

Source§

impl<T, A> AllocOwnedSelf<T> for A
where T: ToOwned + ?Sized, A: for<'a> AllocOwned<'a, 'a, T>,