Trait DeepViewClone

Source
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§

Source

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

Source§

exec fn deep_clone(&self) -> Self

Source§

impl DeepViewClone for char

Source§

exec fn deep_clone(&self) -> Self

Source§

impl DeepViewClone for i8

Source§

exec fn deep_clone(&self) -> Self

Source§

impl DeepViewClone for i16

Source§

exec fn deep_clone(&self) -> Self

Source§

impl DeepViewClone for i32

Source§

exec fn deep_clone(&self) -> Self

Source§

impl DeepViewClone for i64

Source§

exec fn deep_clone(&self) -> Self

Source§

impl DeepViewClone for i128

Source§

exec fn deep_clone(&self) -> Self

Source§

impl DeepViewClone for isize

Source§

exec fn deep_clone(&self) -> Self

Source§

impl DeepViewClone for u8

Source§

exec fn deep_clone(&self) -> Self

Source§

impl DeepViewClone for u16

Source§

exec fn deep_clone(&self) -> Self

Source§

impl DeepViewClone for u32

Source§

exec fn deep_clone(&self) -> Self

Source§

impl DeepViewClone for u64

Source§

exec fn deep_clone(&self) -> Self

Source§

impl DeepViewClone for u128

Source§

exec fn deep_clone(&self) -> Self

Source§

impl DeepViewClone for usize

Source§

exec fn deep_clone(&self) -> Self

Source§

impl DeepViewClone for String

Source§

exec fn deep_clone(&self) -> Self

Source§

impl<T1: DeepViewClone, T2: DeepViewClone> DeepViewClone for (T1, T2)

Source§

exec fn deep_clone(&self) -> Self

Source§

impl<T: DeepViewClone> DeepViewClone for Option<T>

Source§

exec fn deep_clone(&self) -> Self

Source§

impl<T: DeepViewClone> DeepViewClone for Vec<T>

Source§

exec fn deep_clone(&self) -> Self

TODO: verify this

Implementors§