pub struct MyQuad<'a> {
pub subject: MyTerm<'a>,
pub predicate: MyTerm<'a>,
pub object: MyTerm<'a>,
pub span: Range<usize>,
}Fields§
§subject: MyTerm<'a>§predicate: MyTerm<'a>§object: MyTerm<'a>§span: Range<usize>Implementations§
Trait Implementations§
Source§impl<'a> Quad for MyQuad<'a>
impl<'a> Quad for MyQuad<'a>
Source§fn s(&self) -> QBorrowTerm<'_, Self>
fn s(&self) -> QBorrowTerm<'_, Self>
The subject of this quad.
Source§fn p(&self) -> QBorrowTerm<'_, Self>
fn p(&self) -> QBorrowTerm<'_, Self>
The predicate of this quad.
Source§fn o(&self) -> QBorrowTerm<'_, Self>
fn o(&self) -> QBorrowTerm<'_, Self>
The object of this quad.
Source§fn to_spog(self) -> Spog<Self::Term>
fn to_spog(self) -> Spog<Self::Term>
Consume this quad, returning all its components. Read more
Source§fn spog(
&self,
) -> ([<Self::Term as Term>::BorrowTerm<'_>; 3], Option<<Self::Term as Term>::BorrowTerm<'_>>)
fn spog( &self, ) -> ([<Self::Term as Term>::BorrowTerm<'_>; 3], Option<<Self::Term as Term>::BorrowTerm<'_>>)
The four components of this quad, as a quad of borrowed terms. Read more
Source§fn to_g(self) -> Option<Self::Term>where
Self: Sized,
fn to_g(self) -> Option<Self::Term>where
Self: Sized,
Consume this quad, returning its graph name.
Source§fn matched_by<S, P, O, G>(&self, sm: S, pm: P, om: O, gm: G) -> bool
fn matched_by<S, P, O, G>(&self, sm: S, pm: P, om: O, gm: G) -> bool
Checks that the constituents terms of this quad match the respective matchers.
Source§impl Triple<MyTerm<'static>, MyTerm<'static>, MyTerm<'static>> for MyQuad<'static>
impl Triple<MyTerm<'static>, MyTerm<'static>, MyTerm<'static>> for MyQuad<'static>
Source§fn new(
subject: impl Into<MyTerm<'static>>,
predicate: impl Into<MyTerm<'static>>,
object: impl Into<MyTerm<'static>>,
) -> Self
fn new( subject: impl Into<MyTerm<'static>>, predicate: impl Into<MyTerm<'static>>, object: impl Into<MyTerm<'static>>, ) -> Self
Constructs a new RDF triple from the given components. Read more
Source§fn into_components(self) -> (MyTerm<'static>, MyTerm<'static>, MyTerm<'static>)
fn into_components(self) -> (MyTerm<'static>, MyTerm<'static>, MyTerm<'static>)
Consumes the triple and returns its components as a tuple. Read more
Source§fn into_subject(self) -> S
fn into_subject(self) -> S
Consumes the triple and returns only the subject.
Source§fn into_predicate(self) -> P
fn into_predicate(self) -> P
Consumes the triple and returns only the predicate.
Source§fn into_object(self) -> O
fn into_object(self) -> O
Consumes the triple and returns only the object.
Auto Trait Implementations§
impl<'a> Freeze for MyQuad<'a>
impl<'a> RefUnwindSafe for MyQuad<'a>
impl<'a> Send for MyQuad<'a>
impl<'a> Sync for MyQuad<'a>
impl<'a> Unpin for MyQuad<'a>
impl<'a> UnsafeUnpin for MyQuad<'a>
impl<'a> UnwindSafe for MyQuad<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.
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.
Source§impl<T> TypeData for T
impl<T> TypeData for T
Source§fn clone_type_data(&self) -> Box<dyn TypeData>
fn clone_type_data(&self) -> Box<dyn TypeData>
Creates a type-erased clone of this value.