pub struct GraphQuery<'a>(_);
Expand description

A wrapper for ascertaining the structure of the underlying FheProgram. This type is used in FheProgram::forward_traverse and FheProgram::reverse_traverse callbacks.

Implementations

Creates a new GraphQuery from a reference to an FheProgram.

Returns the NodeInfo for the graph node with the given index x.

Returns the children or parents of the node with index x. If direction is [Direction::Outgoing], this will return the children. If the direction is [Direction::Incoming`], this will return the parents.

Typically, you want children writing forward traversal compiler passes and parents when writing reverse traversal compiler passes.

Returns incoming our outgoing edges for the node with index x.`

Typically, you want outgoing writing forward traversal compiler passes and incoming when writing reverse traversal compiler passes.

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.