[−][src]Trait fallible_collections::TryClone
trait for trying to clone an elem, return an error instead of panic if allocation failed
Examples
use fallible_collections::TryClone; let mut vec = vec![42, 100]; assert_eq!(vec.try_clone().unwrap(), vec)
Required methods
pub fn try_clone(&self) -> Result<Self, TryReserveError> where
Self: Sized,
[src]
Self: Sized,
try clone method, (Self must be sized because of Result constraint)
Implementations on Foreign Types
impl<T: TryClone> TryClone for Box<T>
[src]
pub fn try_clone(&self) -> Result<Self, TryReserveError>
[src]
impl<T: TryClone> TryClone for Vec<T>
[src]
pub fn try_clone(&self) -> Result<Self, TryReserveError> where
Self: Sized,
[src]
Self: Sized,
impl<T: ?Sized> TryClone for Arc<T>
[src]
Just a TryClone boilerplate for Arc
pub fn try_clone(&self) -> Result<Self, TryReserveError>
[src]
impl<T: TryClone> TryClone for Option<T>
[src]
pub fn try_clone(&self) -> Result<Self, TryReserveError>
[src]
Implementors
impl TryClone for bool
[src]
pub fn try_clone(&self) -> Result<Self, TryReserveError> where
Self: Sized,
[src]
Self: Sized,
impl TryClone for i8
[src]
pub fn try_clone(&self) -> Result<Self, TryReserveError> where
Self: Sized,
[src]
Self: Sized,
impl TryClone for i16
[src]
pub fn try_clone(&self) -> Result<Self, TryReserveError> where
Self: Sized,
[src]
Self: Sized,
impl TryClone for i32
[src]
pub fn try_clone(&self) -> Result<Self, TryReserveError> where
Self: Sized,
[src]
Self: Sized,
impl TryClone for i64
[src]
pub fn try_clone(&self) -> Result<Self, TryReserveError> where
Self: Sized,
[src]
Self: Sized,
impl TryClone for isize
[src]
pub fn try_clone(&self) -> Result<Self, TryReserveError> where
Self: Sized,
[src]
Self: Sized,
impl TryClone for u8
[src]
pub fn try_clone(&self) -> Result<Self, TryReserveError> where
Self: Sized,
[src]
Self: Sized,
impl TryClone for u16
[src]
pub fn try_clone(&self) -> Result<Self, TryReserveError> where
Self: Sized,
[src]
Self: Sized,
impl TryClone for u32
[src]
pub fn try_clone(&self) -> Result<Self, TryReserveError> where
Self: Sized,
[src]
Self: Sized,
impl TryClone for u64
[src]
pub fn try_clone(&self) -> Result<Self, TryReserveError> where
Self: Sized,
[src]
Self: Sized,
impl TryClone for usize
[src]
pub fn try_clone(&self) -> Result<Self, TryReserveError> where
Self: Sized,
[src]
Self: Sized,
impl<K, V> TryClone for TryHashMap<K, V> where
K: Eq + Hash + TryClone,
V: TryClone,
[src]
K: Eq + Hash + TryClone,
V: TryClone,