pub trait DeepViewClone: Sized + DeepView {
// Required method
exec fn deep_clone(&self) -> res : Self;
}
Expand description
Cloned objects have the same deep view
Required Methods§
Sourceexec fn deep_clone(&self) -> res : Self
exec fn deep_clone(&self) -> res : Self
ensures
res.deep_view() == self.deep_view(),
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl DeepViewClone for bool
impl DeepViewClone for bool
Source§exec fn deep_clone(&self) -> Self
exec fn deep_clone(&self) -> Self
Source§impl DeepViewClone for char
impl DeepViewClone for char
Source§exec fn deep_clone(&self) -> Self
exec fn deep_clone(&self) -> Self
Source§impl DeepViewClone for i8
impl DeepViewClone for i8
Source§exec fn deep_clone(&self) -> Self
exec fn deep_clone(&self) -> Self
Source§impl DeepViewClone for i16
impl DeepViewClone for i16
Source§exec fn deep_clone(&self) -> Self
exec fn deep_clone(&self) -> Self
Source§impl DeepViewClone for i32
impl DeepViewClone for i32
Source§exec fn deep_clone(&self) -> Self
exec fn deep_clone(&self) -> Self
Source§impl DeepViewClone for i64
impl DeepViewClone for i64
Source§exec fn deep_clone(&self) -> Self
exec fn deep_clone(&self) -> Self
Source§impl DeepViewClone for i128
impl DeepViewClone for i128
Source§exec fn deep_clone(&self) -> Self
exec fn deep_clone(&self) -> Self
Source§impl DeepViewClone for isize
impl DeepViewClone for isize
Source§exec fn deep_clone(&self) -> Self
exec fn deep_clone(&self) -> Self
Source§impl DeepViewClone for u8
impl DeepViewClone for u8
Source§exec fn deep_clone(&self) -> Self
exec fn deep_clone(&self) -> Self
Source§impl DeepViewClone for u16
impl DeepViewClone for u16
Source§exec fn deep_clone(&self) -> Self
exec fn deep_clone(&self) -> Self
Source§impl DeepViewClone for u32
impl DeepViewClone for u32
Source§exec fn deep_clone(&self) -> Self
exec fn deep_clone(&self) -> Self
Source§impl DeepViewClone for u64
impl DeepViewClone for u64
Source§exec fn deep_clone(&self) -> Self
exec fn deep_clone(&self) -> Self
Source§impl DeepViewClone for u128
impl DeepViewClone for u128
Source§exec fn deep_clone(&self) -> Self
exec fn deep_clone(&self) -> Self
Source§impl DeepViewClone for usize
impl DeepViewClone for usize
Source§exec fn deep_clone(&self) -> Self
exec fn deep_clone(&self) -> Self
Source§impl DeepViewClone for String
impl DeepViewClone for String
Source§exec fn deep_clone(&self) -> Self
exec fn deep_clone(&self) -> Self
Source§impl<T1: DeepViewClone, T2: DeepViewClone> DeepViewClone for (T1, T2)
impl<T1: DeepViewClone, T2: DeepViewClone> DeepViewClone for (T1, T2)
Source§exec fn deep_clone(&self) -> Self
exec fn deep_clone(&self) -> Self
Source§impl<T: DeepViewClone> DeepViewClone for Option<T>
impl<T: DeepViewClone> DeepViewClone for Option<T>
Source§exec fn deep_clone(&self) -> Self
exec fn deep_clone(&self) -> Self
Source§impl<T: DeepViewClone> DeepViewClone for Vec<T>
impl<T: DeepViewClone> DeepViewClone for Vec<T>
Source§exec fn deep_clone(&self) -> Self
exec fn deep_clone(&self) -> Self
TODO: verify this