pub struct Owned<T>(/* private fields */);Expand description
Represents owned T.
Useful to pass T to a function when used as Into<Owned<T>>.
It is defined in this crate, so the From trait can be implemented for foreigin types.
Trait Implementations§
Source§impl<P: Paint> From<ColorSource<<P as Paint>::Texture, <P as Paint>::ColorSourceFragment>> for Owned<P>
impl<P: Paint> From<ColorSource<<P as Paint>::Texture, <P as Paint>::ColorSourceFragment>> for Owned<P>
Source§fn from(value: ColorSource<P::Texture, P::ColorSourceFragment>) -> Self
fn from(value: ColorSource<P::Texture, P::ColorSourceFragment>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for Owned<T>where
T: Freeze,
impl<T> RefUnwindSafe for Owned<T>where
T: RefUnwindSafe,
impl<T> Send for Owned<T>where
T: Send,
impl<T> Sync for Owned<T>where
T: Sync,
impl<T> Unpin for Owned<T>where
T: Unpin,
impl<T> UnwindSafe for Owned<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more