Struct compt::Flip

source · []
pub struct Flip<T: Visitor>(_);
Expand description

Flips left and right children.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

The common item produced for both leafs and non leafs.

Consume this visitor, and produce the element it was pointing to along with it’s children visitors. Read more

Return the levels remaining including the one that will be produced by consuming this iterator. So if you first made this object from the root for a tree of size 5, it should return 5. Think of is as height-depth. This is used to make good allocations when doing dfs and bfs. Defaults to (0,None) Read more

Iterator Adapter to also produce the depth each iteration.

Combine two tree visitors.

Map iterator adapter

Only produce children up to num.

Flips left and right children.

Provides a dfs preorder iterator. Unlike the callback version, This one relies on dynamic allocation for its stack. Read more

Calls the closure in dfs preorder (root,left,right). Takes advantage of the callstack to do dfs. Read more

Calls the closure in dfs preorder (left,right,root). Takes advantage of the callstack to do dfs. Read more

Calls the closure in dfs preorder (left,right,root). Takes advantage of the callstack to do dfs. 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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

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

Uses borrowed data to replace owned data, usually by cloning. Read more

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.