pub struct AnonymousGraph<T>(pub T);Expand description
Wrapper serializing its value as an anonymous graph.
Tuple Fields§
§0: TTrait Implementations§
Source§impl<I: Interpretation, T: LinkedDataGraph<I>> LinkedData<I> for AnonymousGraph<T>
impl<I: Interpretation, T: LinkedDataGraph<I>> LinkedData<I> for AnonymousGraph<T>
Source§impl<I: Interpretation, T: LinkedDataGraph<I>> LinkedDataGraph<I> for AnonymousGraph<T>
impl<I: Interpretation, T: LinkedDataGraph<I>> LinkedDataGraph<I> for AnonymousGraph<T>
Source§fn visit_graph<S>(&self, visitor: S) -> Result<S::Ok, S::Error>where
S: GraphVisitor<I>,
fn visit_graph<S>(&self, visitor: S) -> Result<S::Ok, S::Error>where
S: GraphVisitor<I>,
Visits the subjects of the graph represented by this value.
Source§impl<I: Interpretation, T: LinkedDataGraph<I>> LinkedDataPredicateObjects<I> for AnonymousGraph<T>
impl<I: Interpretation, T: LinkedDataGraph<I>> LinkedDataPredicateObjects<I> for AnonymousGraph<T>
Source§fn visit_objects<S>(&self, visitor: S) -> Result<S::Ok, S::Error>where
S: PredicateObjectsVisitor<I>,
fn visit_objects<S>(&self, visitor: S) -> Result<S::Ok, S::Error>where
S: PredicateObjectsVisitor<I>,
Visits the objects this predicate points at.
Source§impl<I: Interpretation, T> LinkedDataResource<I> for AnonymousGraph<T>
impl<I: Interpretation, T> LinkedDataResource<I> for AnonymousGraph<T>
Source§fn interpretation(
&self,
_interpretation: &mut I,
) -> ResourceInterpretation<'_, I>
fn interpretation( &self, _interpretation: &mut I, ) -> ResourceInterpretation<'_, I>
Returns the interpretation of this resource, inserting it into
interpretation if required.Source§fn lexical_representation<'a>(
&'a self,
interpretation: &'a mut I,
) -> Option<CowRdfTerm<'a>>where
I: ReverseInterpretation + ReverseLocalInterpretation,
fn lexical_representation<'a>(
&'a self,
interpretation: &'a mut I,
) -> Option<CowRdfTerm<'a>>where
I: ReverseInterpretation + ReverseLocalInterpretation,
Returns the lexical term representing this resource, if any.
Source§fn reference_interpretation(
&self,
interpretation: &mut I,
) -> ResourceInterpretation<'_, I>
fn reference_interpretation( &self, interpretation: &mut I, ) -> ResourceInterpretation<'_, I>
Returns the interpretation to use when this resource appears as a
reference rather than as a subject with properties.
Source§impl<I: Interpretation, T: LinkedDataGraph<I>> LinkedDataSubject<I> for AnonymousGraph<T>
impl<I: Interpretation, T: LinkedDataGraph<I>> LinkedDataSubject<I> for AnonymousGraph<T>
Source§fn visit_subject<S>(&self, serializer: S) -> Result<S::Ok, S::Error>where
S: SubjectVisitor<I>,
fn visit_subject<S>(&self, serializer: S) -> Result<S::Ok, S::Error>where
S: SubjectVisitor<I>,
Visits the properties of the subject represented by this value.
Auto Trait Implementations§
impl<T> Freeze for AnonymousGraph<T>where
T: Freeze,
impl<T> RefUnwindSafe for AnonymousGraph<T>where
T: RefUnwindSafe,
impl<T> Send for AnonymousGraph<T>where
T: Send,
impl<T> Sync for AnonymousGraph<T>where
T: Sync,
impl<T> Unpin for AnonymousGraph<T>where
T: Unpin,
impl<T> UnsafeUnpin for AnonymousGraph<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for AnonymousGraph<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
Source§fn as_unordered(&self) -> &Unordered<T>
fn as_unordered(&self) -> &Unordered<T>
Views this value as an
Unordered reference.