pub struct BTreeGraph<S = Term, P = S, O = S> { /* private fields */ }
Expand description

Graph implementation based on BTreeMap and BTreeSet.

Implementations

Create a new empty BTreeGraph.

Create a new BTreeGraph from another graph by consuming its triples.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Extends a collection with the contents of an iterator. Read more

🔬 This is a nightly-only experimental API. (extend_one)

Extends a collection with exactly one element.

🔬 This is a nightly-only experimental API. (extend_one)

Reserves capacity in a collection for the given number of additional elements. Read more

Creates a value from an iterator. Read more

Objects iterator. Read more

Subject predicates iterator. Read more

Graph subjects iterator. Read more

Triple iterators.

Iterate through all the subjects of the graph.

Iterate through all the predicates associated to the given subject.

Iterate through all the objects associated to the given subject and predicate. Read more

Checks if the given triple is defined in the graph.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

Which kind of iterator are we turning this into?

The type of the elements being iterated over.

Creates an iterator from a value. Read more

Which kind of iterator are we turning this into?

The type of the elements being iterated over.

Creates an iterator from a value. Read more

Insert the given triple into the graph.

Absorb the given other graph. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Consuming objects iterator.

Consuming predicates iterator.

Consuming subjects iterator.

Consuming triples iterator.

Consumes the graph and returns an iterator over its triples.

Consumes the graph and returns an iterator over its subjects.

Consumes the graph and returns an iterator over the predicates of the given subject. Read more

Consumes the graph and returns an iterator over the objects of the given subject and predicate. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. 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.