Trait enso_prelude::CloneRef [−][src]
Expand description
Clone for internal-mutable structures. This trait can be implemented only if mutating one
structure will be reflected in all of its clones. Please note that it does not mean that all the
fields needs to provide internal mutability as well. For example, a structure can remember it’s
creation time and store it as f32
. As long as it cannot be mutated, the structure can
implement CloneRef
. In order to guide the auto-deriving mechanism, it is advised to wrap all
immutable fields in the Immutable
newtype.
Required methods
Implementations on Foreign Types
impl CloneRef for HtmlDivElement
[src]
impl CloneRef for HtmlDivElement
[src]impl CloneRef for HtmlElement
[src]
impl CloneRef for HtmlElement
[src]impl CloneRef for Performance
[src]
impl CloneRef for Performance
[src]impl CloneRef for WebGl2RenderingContext
[src]
impl CloneRef for WebGl2RenderingContext
[src]impl CloneRef for HtmlCanvasElement
[src]
impl CloneRef for HtmlCanvasElement
[src]impl CloneRef for EventTarget
[src]
impl CloneRef for EventTarget
[src]Implementors
impl CloneRef for TraceCopies
[src]
impl CloneRef for TraceCopies
[src]impl<T> CloneRef for PhantomData<T>
[src]
impl<T> CloneRef for PhantomData<T>
[src]