Trait enso_flexer::prelude::CloneRef [−][src]
pub trait CloneRef { fn clone_ref(&self) -> Self; }
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
Loading content...Implementations on Foreign Types
impl CloneRef for WebGl2RenderingContext
[src]
impl CloneRef for WebGl2RenderingContext
[src]pub fn clone_ref(&self) -> WebGl2RenderingContext
[src]
impl CloneRef for HtmlElement
[src]
impl CloneRef for HtmlElement
[src]pub fn clone_ref(&self) -> HtmlElement
[src]
impl CloneRef for Performance
[src]
impl CloneRef for Performance
[src]pub fn clone_ref(&self) -> Performance
[src]
impl CloneRef for HtmlCanvasElement
[src]
impl CloneRef for HtmlCanvasElement
[src]pub fn clone_ref(&self) -> HtmlCanvasElement
[src]
impl CloneRef for HtmlDivElement
[src]
impl CloneRef for HtmlDivElement
[src]pub fn clone_ref(&self) -> HtmlDivElement
[src]
impl CloneRef for EventTarget
[src]
impl CloneRef for EventTarget
[src]pub fn clone_ref(&self) -> EventTarget
[src]
Implementors
impl CloneRef for TraceCopies
[src]
impl CloneRef for TraceCopies
[src]pub fn clone_ref(&self) -> TraceCopies
[src]
impl<T> CloneRef for CloneRefCell<T> where
T: CloneRef,
[src]
impl<T> CloneRef for CloneRefCell<T> where
T: CloneRef,
[src]pub fn clone_ref(&self) -> CloneRefCell<T>
[src]
impl<T> CloneRef for PhantomData<T>
[src]
impl<T> CloneRef for PhantomData<T>
[src]