Enum sofa::types::DocumentRef[][src]

pub enum DocumentRef<T> {
    Ref(DocumentId),
    Populated(T),
}

DocumentRef is an abstraction over populated/unpopulated data fields

Variants

Trait Implementations

impl<T: PartialEq> PartialEq for DocumentRef<T>
[src]

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

This method tests for !=.

impl<T: Eq> Eq for DocumentRef<T>
[src]

impl<T: Debug> Debug for DocumentRef<T>
[src]

Formats the value using the given formatter. Read more

impl<T: Clone> Clone for DocumentRef<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<T> Send for DocumentRef<T> where
    T: Send

impl<T> Sync for DocumentRef<T> where
    T: Sync