Skip to main content

LinearTriplePattern

Type Alias LinearTriplePattern 

Source
pub type LinearTriplePattern<T> = Triple<Option<T>>;
Expand description

Linear triple pattern, with each component either a ground resource (Some) or unconstrained (None).

Unlike TriplePattern, a linear pattern cannot bind the same variable to more than one component, hence the name: it does not encode a general Pattern graph, only affine constraints on each component independently.

Aliased Type§

pub struct LinearTriplePattern<T>(pub Option<T>, pub Option<T>, pub Option<T>);

Tuple Fields§

§0: Option<T>§1: Option<T>§2: Option<T>

Trait Implementations§

Source§

impl<T> From<Triple<T>> for LinearTriplePattern<T>

Source§

fn from(value: Triple<T>) -> Self

Turns a triple into the linear pattern matching only that triple.