pub trait Freeze: Sized + Clone {
    fn is_clone_cheap(&self) -> bool;
    fn freeze(&mut self);

    fn freezed(self) -> Self { ... }
}

Required Methods

Returns true if `Clone::clone is cheap.

Make `Clone::clone cheap.

Provided Methods

Call Self::freeze and return self.

Implementations on Foreign Types

TODO(kdy1): This can be confusing.

Implementors