pub struct TermOccurrence<T> {
pub term: T,
pub root: [T; 3],
pub parent: [T; 3],
pub role: LiteralRole,
pub path: OccurrencePath,
}Expand description
An actual term appearance, retaining its selected root, path and semantic role.
Fields§
§term: TExact term key, including scoped blanks and triple terms themselves.
root: [T; 3]Original selected root; nested triple contents are not asserted roots.
parent: [T; 3]Actual enclosing triple; a nested parent is not an asserted RDF premise.
role: LiteralRoleSource and target appearances must remain separate capabilities.
path: OccurrencePathNonempty path through actual triple structure, never literal metadata.
Implementations§
Source§impl<T> TermOccurrence<T>
impl<T> TermOccurrence<T>
Sourcepub fn is_predicate(&self) -> bool
pub fn is_predicate(&self) -> bool
Whether this occurrence occupies a root or nested predicate position.
Trait Implementations§
Source§impl<T: Clone> Clone for TermOccurrence<T>
impl<T: Clone> Clone for TermOccurrence<T>
Source§impl<T: Debug> Debug for TermOccurrence<T>
impl<T: Debug> Debug for TermOccurrence<T>
Source§impl<'de, T> Deserialize<'de> for TermOccurrence<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for TermOccurrence<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<T: Eq> Eq for TermOccurrence<T>
Source§impl<T: PartialEq> PartialEq for TermOccurrence<T>
impl<T: PartialEq> PartialEq for TermOccurrence<T>
Source§impl<T> Serialize for TermOccurrence<T>where
T: Serialize,
impl<T> Serialize for TermOccurrence<T>where
T: Serialize,
impl<T: PartialEq> StructuralPartialEq for TermOccurrence<T>
Auto Trait Implementations§
impl<T> Forget for TermOccurrence<T>
impl<T> Freeze for TermOccurrence<T>
impl<T> Move for TermOccurrence<T>
impl<T> RefUnwindSafe for TermOccurrence<T>where
T: RefUnwindSafe,
impl<T> Send for TermOccurrence<T>
impl<T> Sync for TermOccurrence<T>
impl<T> Unpin for TermOccurrence<T>
impl<T> UnsafeUnpin for TermOccurrence<T>
impl<T> UnwindSafe for TermOccurrence<T>where
T: UnwindSafe,
RawVecInner: 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