pub enum RemoteDocumentReference<I = Index, M = Location<I>, T = Value<M>> {
Reference(I),
Loaded(RemoteDocument<I, M, T>),
}
Variants
Reference(I)
Loaded(RemoteDocument<I, M, T>)
Implementations
sourceimpl<I, M, T> RemoteDocumentReference<I, M, T>
impl<I, M, T> RemoteDocumentReference<I, M, T>
pub async fn load_with<L: Loader<I, M>>(
self,
vocabulary: &impl Sync + IriVocabulary<Iri = I>,
loader: &mut L
) -> LoadingResult<I, M, T, L::Error>where
L::Output: Into<T>,
pub async fn loaded_with<L: Loader<I, M>>(
&self,
vocabulary: &impl Sync + IriVocabulary<Iri = I>,
loader: &mut L
) -> Result<Mown<'_, RemoteDocument<I, M, T>>, L::Error>where
I: Clone,
L::Output: Into<T>,
pub async fn load_context_with<L: ContextLoader<I, M>>(
self,
vocabulary: &impl Sync + IriVocabulary<Iri = I>,
loader: &mut L
) -> LoadingResult<I, M, T, L::ContextError>where
L::Context: Into<T>,
pub async fn loaded_context_with<L: ContextLoader<I, M>>(
&self,
vocabulary: &impl Sync + IriVocabulary<Iri = I>,
loader: &mut L
) -> Result<Mown<'_, RemoteDocument<I, M, T>>, L::ContextError>where
I: Clone,
L::Context: Into<T>,
Trait Implementations
sourceimpl<I: Clone, M: Clone, T: Clone> Clone for RemoteDocumentReference<I, M, T>
impl<I: Clone, M: Clone, T: Clone> Clone for RemoteDocumentReference<I, M, T>
sourcefn clone(&self) -> RemoteDocumentReference<I, M, T>
fn clone(&self) -> RemoteDocumentReference<I, M, T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl<I, M, T> RefUnwindSafe for RemoteDocumentReference<I, M, T>where
I: RefUnwindSafe,
M: RefUnwindSafe,
T: RefUnwindSafe,
impl<I, M, T> Send for RemoteDocumentReference<I, M, T>where
I: Send,
M: Send,
T: Send,
impl<I, M, T> Sync for RemoteDocumentReference<I, M, T>where
I: Sync,
M: Sync,
T: Sync,
impl<I, M, T> Unpin for RemoteDocumentReference<I, M, T>where
I: Unpin,
M: Unpin,
T: Unpin,
impl<I, M, T> UnwindSafe for RemoteDocumentReference<I, M, T>where
I: UnwindSafe,
M: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more