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 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.
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> 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> 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 more