[][src]Struct swym::tcell::Ref

#[must_use = "Acquiring a Ref without using it unnecessarily increases the chance of transaction failure"]
pub struct Ref<'tx, T> { /* fields omitted */ }

A snapshot of a TCell valid for the duration of the current transaction.

A Ref can be obtained using TCell::borrow.

Methods

impl<'tx, T> Ref<'tx, T>[src]

pub unsafe fn upcast<'tcell>(
    this: Self,
    _: &'tx impl RW<'tcell>
) -> Ref<'tcell, T>
[src]

Trait Implementations

impl<'tx, T: PartialEq> PartialEq<Ref<'tx, T>> for Ref<'tx, T>[src]

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

impl<'tx, T: Eq> Eq for Ref<'tx, T>[src]

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

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl<'tx, T: Borrow> From<&'tx T> for Ref<'tx, T>[src]

impl<'tx, T: Borrow> From<&'tx mut T> for Ref<'tx, T>[src]

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

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

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

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

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

type Target = T

The resulting type after dereferencing.

impl<'tx, T> Borrow<T> for Ref<'tx, T>[src]

Auto Trait Implementations

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

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

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.