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

fn clone_ref(&self) -> Self[src]

Loading content...

Implementations on Foreign Types

impl CloneRef for i64[src]

pub fn clone_ref(&self) -> i64[src]

impl CloneRef for WebGl2RenderingContext[src]

impl CloneRef for u64[src]

pub fn clone_ref(&self) -> u64[src]

impl CloneRef for u32[src]

pub fn clone_ref(&self) -> u32[src]

impl CloneRef for TypeId[src]

pub fn clone_ref(&self) -> TypeId[src]

impl CloneRef for usize[src]

pub fn clone_ref(&self) -> usize[src]

impl CloneRef for i32[src]

pub fn clone_ref(&self) -> i32[src]

impl CloneRef for JsValue[src]

pub fn clone_ref(&self) -> JsValue[src]

impl CloneRef for HtmlElement[src]

pub fn clone_ref(&self) -> HtmlElement[src]

impl CloneRef for f64[src]

pub fn clone_ref(&self) -> f64[src]

impl CloneRef for Performance[src]

pub fn clone_ref(&self) -> Performance[src]

impl CloneRef for f32[src]

pub fn clone_ref(&self) -> f32[src]

impl CloneRef for HtmlCanvasElement[src]

impl CloneRef for HtmlDivElement[src]

impl CloneRef for EventTarget[src]

pub fn clone_ref(&self) -> EventTarget[src]

impl CloneRef for ()[src]

pub fn clone_ref(&self)[src]

Loading content...

Implementors

impl CloneRef for ImString[src]

pub fn clone_ref(&self) -> ImString[src]

impl CloneRef for TraceCopies[src]

pub fn clone_ref(&self) -> TraceCopies[src]

impl<Filter, Processor, Levels> CloneRef for Logger<Filter, Processor, Levels>[src]

pub fn clone_ref(&self) -> Logger<Filter, Processor, Levels>[src]

impl<T> CloneRef for CloneRefCell<T> where
    T: CloneRef
[src]

pub fn clone_ref(&self) -> CloneRefCell<T>[src]

impl<T> CloneRef for Immutable<T> where
    T: Clone
[src]

pub fn clone_ref(&self) -> Immutable<T>[src]

impl<T> CloneRef for PhantomData<T>[src]

pub fn clone_ref(&self) -> PhantomData<T>[src]

impl<T> CloneRef for Rc<T> where
    T: ?Sized
[src]

pub fn clone_ref(&self) -> Rc<T>[src]

impl<T> CloneRef for Weak<T> where
    T: ?Sized
[src]

pub fn clone_ref(&self) -> Weak<T>[src]

Loading content...