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

impl<T> Freeze for ArcCow<T>where
    T: Take + Clone + Freeze,

impl Freeze for FnParam

impl Freeze for Interface

impl Freeze for TsExpr

impl Freeze for Type

impl Freeze for TypeParam

impl Freeze for Key

impl Freeze for Enum

impl Freeze for ClassDef

impl Freeze for Mapped