Enum sofa::types::DocumentRef [−][src]
pub enum DocumentRef<T> { Ref(DocumentId), Populated(T), }
DocumentRef
Variants
Ref(DocumentId)
Populated(T)
Trait Implementations
impl<T: PartialEq> PartialEq for DocumentRef<T>
[src]
impl<T: PartialEq> PartialEq for DocumentRef<T>
fn eq(&self, other: &DocumentRef<T>) -> bool
[src]
fn eq(&self, other: &DocumentRef<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &DocumentRef<T>) -> bool
[src]
fn ne(&self, other: &DocumentRef<T>) -> bool
This method tests for !=
.
impl<T: Eq> Eq for DocumentRef<T>
[src]
impl<T: Eq> Eq for DocumentRef<T>
impl<T: Debug> Debug for DocumentRef<T>
[src]
impl<T: Debug> Debug for DocumentRef<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: Clone> Clone for DocumentRef<T>
[src]
impl<T: Clone> Clone for DocumentRef<T>
fn clone(&self) -> DocumentRef<T>
[src]
fn clone(&self) -> DocumentRef<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<T> Send for DocumentRef<T> where
T: Send,
impl<T> Send for DocumentRef<T> where
T: Send,
impl<T> Sync for DocumentRef<T> where
T: Sync,
impl<T> Sync for DocumentRef<T> where
T: Sync,