Struct scell::SCell [] [src]

pub struct SCell<T: ?Sized>(_);

A smart container for objects in recursive data structures

This container contains Rc and therefore clone() will create a new reference to the same instance.

Methods

impl<T> SCell<T>
[src]

impl<T: ?Sized> SCell<T>
[src]

Trait Implementations

impl<T: Default + ?Sized> Default for SCell<T>
[src]

Returns the "default value" for a type. Read more

impl<T: ?Sized> Clone for SCell<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: ?Sized> Pointer for SCell<T>
[src]

Formats the value using the given formatter.

impl<T: ?Sized> PartialEq for SCell<T> where
    T: PartialEq
[src]

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

This method tests for !=.

impl<T: ?Sized> Eq for SCell<T> where
    T: Eq
[src]

impl<T: ?Sized> PartialOrd for SCell<T> where
    T: PartialOrd
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<T: ?Sized> Ord for SCell<T> where
    T: Ord
[src]

This method returns an Ordering between self and other. Read more

impl<T: ?Sized> Hash for SCell<T> where
    T: Hash
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<T: ?Sized> Display for SCell<T> where
    T: Display
[src]

Formats the value using the given formatter. Read more

impl<T: ?Sized> Debug for SCell<T> where
    T: Debug
[src]

Formats the value using the given formatter.

impl<T> From<T> for SCell<T>
[src]

Performs the conversion.