TransitiveRelationBuilder in rustc_data_structures::transitive_relation - Rust (original) (raw)

Struct TransitiveRelationBuilder

Source

pub struct TransitiveRelationBuilder<T> {
    elements: FxIndexSet<T>,
    edges: FxHashSet<Edge>,
}

Source§

Source

Source

Source

Source

Source

Applies the (partial) function to each edge and returns a new relation builder. If f returns None for any end-point, returns None.

Source

Indicate that a < b (where < is this relation)

Source

Compute the transitive closure derived from the edges, and converted to the final result. After this, all elements will be immutable to maintain the correctness of the result.

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 88 bytes