try_clone_to_owned

Function try_clone_to_owned 

Source
pub fn try_clone_to_owned<T: TryCloneToOwned>(
    o: &T,
) -> Result<T::Owned, T::Error>
Expand description

Creates an owned version of a borrowed value fallibly.

This is a convenience wrapper around TryCloneToOwned::try_clone_to_owned.

ยงErrors

Returns an error if the conversion to an owned type fails.