Struct send_cell::Ref [] [src]

pub struct Ref<'a, T: 'a> { /* fields omitted */ }

Wraps a borrowed reference to a value in a SendCell box.

Trait Implementations

impl<'a, T: Debug + 'a> Debug for Ref<'a, T>
[src]

[src]

Formats the value using the given formatter. Read more

impl<'a, T: PartialEq + 'a> PartialEq for Ref<'a, 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<'a, T: Eq + 'a> Eq for Ref<'a, T>
[src]

impl<'a, T: PartialOrd + 'a> PartialOrd for Ref<'a, T>
[src]

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

impl<'a, T: Ord + 'a> Ord for Ref<'a, T>
[src]

[src]

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

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl<'a, T: Hash + 'a> Hash for Ref<'a, T>
[src]

[src]

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

1.3.0
[src]

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

impl<'a, T: 'a> Deref for Ref<'a, T>
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

Auto Trait Implementations

impl<'a, T> Send for Ref<'a, T> where
    T: Sync

impl<'a, T> Sync for Ref<'a, T> where
    T: Sync