Struct toolshed::cell::CopyCell [] [src]

pub struct CopyCell<T: Copy> { /* fields omitted */ }

This should be identical to the Cell implementation in the standard library, but always require that the internal type implements Copy and implements Copy itself.

Methods

impl<T: Copy> CopyCell<T>
[src]

[src]

Creates a new CopyCell containing the given value.

[src]

Returns a copy of the contained value.

[src]

Returns a mutable reference to the underlying data.

This call borrows CopyCell mutably (at compile-time) which guarantees that we possess the only reference.

[src]

Sets the contained value.

Trait Implementations

impl<T: PartialEq + Copy> PartialEq for CopyCell<T>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<T: Copy + Eq> Eq for CopyCell<T>
[src]

impl<T: Copy> Clone for CopyCell<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Copy> Copy for CopyCell<T>
[src]

impl<T: Debug + Copy> Debug for CopyCell<T>
[src]

[src]

Formats the value using the given formatter.