pub struct ConcreteTriple<R>where
R: Rdf,{ /* private fields */ }Expand description
A concrete implementation of an RDF triple for a specific RDF model.
§Type Parameters
R- The RDF implementation type that defines the specific types for subjects, predicates, and objects through its associated types
Implementations§
Source§impl<R> ConcreteTriple<R>where
R: Rdf,
impl<R> ConcreteTriple<R>where
R: Rdf,
Sourcepub fn new(subj: R::Subject, pred: R::IRI, obj: R::Term) -> Self
pub fn new(subj: R::Subject, pred: R::IRI, obj: R::Term) -> Self
Creates a new concrete triple from owned components.
§Parameters
subj- The subject component from the RDF modelRpred- The predicate component from the RDF modelRobj- The object component from the RDF modelR
Sourcepub fn cnv<T: Rdf>(self) -> ConcreteTriple<T>
pub fn cnv<T: Rdf>(self) -> ConcreteTriple<T>
Converts this triple from one RDF implementation to another.
§Type Parameters
T- The target RDF implementation type
§Trait Bounds
Requires that the target RDF model’s types can be converted from the source RDF model’s types:
T::Subject: From<R::Subject>- Subject conversionT::Term: From<R::Term>- Term conversionT::IRI: From<R::IRI>- IRI conversion
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for ConcreteTriple<R>
impl<R> RefUnwindSafe for ConcreteTriple<R>where
<R as Rdf>::Subject: RefUnwindSafe,
<R as Rdf>::IRI: RefUnwindSafe,
<R as Rdf>::Term: RefUnwindSafe,
impl<R> Send for ConcreteTriple<R>
impl<R> Sync for ConcreteTriple<R>
impl<R> Unpin for ConcreteTriple<R>
impl<R> UnsafeUnpin for ConcreteTriple<R>where
<R as Rdf>::Subject: UnsafeUnpin,
<R as Rdf>::IRI: UnsafeUnpin,
<R as Rdf>::Term: UnsafeUnpin,
impl<R> UnwindSafe for ConcreteTriple<R>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.