Trait OrderedCandidate

Source
pub trait OrderedCandidate: Ord + Subproblem {
    type Node: Subproblem;

    // Required methods
    fn new(root: Self::Node) -> Self;
    fn node(&self) -> &Self::Node;
    fn into_node(self) -> Self::Node;
}
Expand description

OrderedCandidate encapsulates a Node (which has to be Subproblem) and defines an order on it.

Required Associated Types§

Required Methods§

Source

fn new(root: Self::Node) -> Self

Create an OrderedCandidate. This method should be used for the root node.

Source

fn node(&self) -> &Self::Node

Peeks at the encapsulated node

Source

fn into_node(self) -> Self::Node

Consumes the candidate and returns the node

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§