pub enum Directive<F> {
    Prefix(Loc<String, F>, Loc<IriRefBuf, F>),
    Base(Loc<IriRefBuf, F>),
    SparqlPrefix(Loc<String, F>, Loc<IriRefBuf, F>),
    SparqlBase(Loc<IriRefBuf, F>),
}
Expand description

A directive.

Variants

Prefix(Loc<String, F>, Loc<IriRefBuf, F>)

@prefix directive.

Base(Loc<IriRefBuf, F>)

@base directive.

SparqlPrefix(Loc<String, F>, Loc<IriRefBuf, F>)

SPARQL PREFIX directive.

SparqlBase(Loc<IriRefBuf, F>)

SPARQL BASE directive.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Wraps self inside a Loc<Self, F> using the given location. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.