Struct json_ld::Environment
source · [−]pub struct Environment<'n, M, N, G>where
N: Vocabulary,{ /* private fields */ }
Implementations
sourceimpl<'n, M, N, G> Environment<'n, M, N, G>where
N: Vocabulary,
impl<'n, M, N, G> Environment<'n, M, N, G>where
N: Vocabulary,
pub fn new(vocabulary: &'n mut N, generator: G) -> Environment<'n, M, N, G>
sourceimpl<'n, M, V, G> Environment<'n, M, V, G>where
M: Clone,
V: Vocabulary,
G: MetaGenerator<V, M>,
<V as IriVocabulary>::Iri: Clone,
<V as BlankIdVocabulary>::BlankId: Clone + Hash + Eq,
impl<'n, M, V, G> Environment<'n, M, V, G>where
M: Clone,
V: Vocabulary,
G: MetaGenerator<V, M>,
<V as IriVocabulary>::Iri: Clone,
<V as BlankIdVocabulary>::BlankId: Clone + Hash + Eq,
pub fn assign(
&mut self,
blank_id: <V as BlankIdVocabulary>::BlankId
) -> Meta<Subject<<V as IriVocabulary>::Iri, <V as BlankIdVocabulary>::BlankId>, M>
pub fn assign_node_id(
&mut self,
r: Option<&Meta<Id<<V as IriVocabulary>::Iri, <V as BlankIdVocabulary>::BlankId>, M>>
) -> Meta<Id<<V as IriVocabulary>::Iri, <V as BlankIdVocabulary>::BlankId>, M>
pub fn next(
&mut self
) -> Meta<Subject<<V as IriVocabulary>::Iri, <V as BlankIdVocabulary>::BlankId>, M>
Auto Trait Implementations
impl<'n, M, N, G> RefUnwindSafe for Environment<'n, M, N, G>where
G: RefUnwindSafe,
M: RefUnwindSafe,
N: RefUnwindSafe,
<N as BlankIdVocabulary>::BlankId: RefUnwindSafe,
<N as IriVocabulary>::Iri: RefUnwindSafe,
impl<'n, M, N, G> Send for Environment<'n, M, N, G>where
G: Send,
M: Send,
N: Send,
<N as BlankIdVocabulary>::BlankId: Send,
<N as IriVocabulary>::Iri: Send,
impl<'n, M, N, G> Sync for Environment<'n, M, N, G>where
G: Sync,
M: Sync,
N: Sync,
<N as BlankIdVocabulary>::BlankId: Sync,
<N as IriVocabulary>::Iri: Sync,
impl<'n, M, N, G> Unpin for Environment<'n, M, N, G>where
G: Unpin,
M: Unpin,
<N as BlankIdVocabulary>::BlankId: Unpin,
<N as IriVocabulary>::Iri: Unpin,
impl<'n, M, N, G> !UnwindSafe for Environment<'n, M, N, G>
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