pub trait DeepClone { fn deep_clone(&self) -> Self; }
A trait distinct from Clone
which represents "deep copies" of things like
managed boxes which would otherwise not be copied.
fn deep_clone(&self) -> Self
Return a deep copy of the value. Unlike Clone
, the contents of shared pointer types
are copied.
Cell<T>
OptionIterator<A>
Option<T>
Repeat<A>
RangeStepInclusive<A>
RangeStep<A>
RangeInclusive<A>
Range<A>
Fuse<T>
SendStr
impl<A: DeepClone> DeepClone for ~[A]
impl DeepClone for ~str
impl DeepClone for @str
impl<T: DeepClone> DeepClone for ~T
impl<T: Freeze + DeepClone + 'static> DeepClone for @T
impl<T: Freeze + DeepClone + 'static> DeepClone for @mut T
impl DeepClone for int
impl DeepClone for i8
impl DeepClone for i16
impl DeepClone for i32
impl DeepClone for i64
impl DeepClone for uint
impl DeepClone for u8
impl DeepClone for u16
impl DeepClone for u32
impl DeepClone for u64
impl DeepClone for float
impl DeepClone for f32
impl DeepClone for f64
impl DeepClone for ()
impl DeepClone for bool
impl DeepClone for char
impl<ReturnType> DeepClone for fn() -> ReturnType
impl<A, ReturnType> DeepClone for fn(A) -> ReturnType
impl<A, B, ReturnType> DeepClone for fn(A, B) -> ReturnType
impl<A, B, C, ReturnType> DeepClone for fn(A, B, C) -> ReturnType
impl<A, B, C, D, ReturnType> DeepClone for fn(A, B, C, D) -> ReturnType
impl<A, B, C, D, E, ReturnType> DeepClone for fn(A, B, C, D, E) -> ReturnType
impl<A, B, C, D, E, F, ReturnType> DeepClone for fn(A, B, C, D, E, F) -> ReturnType
impl<A, B, C, D, E, F, G, ReturnType> DeepClone for fn(A, B, C, D, E, F, G) -> ReturnType
impl<A, B, C, D, E, F, G, H, ReturnType> DeepClone for fn(A, B, C, D, E, F, G, H) -> ReturnType
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).