MCPcopy Create free account
hub / github.com/derekbanas/Rust-Tutorial / TreeNode

Class TreeNode

main.rs:923–927  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

921 // a fixed size
922
923 struct TreeNode<T> {
924 pub left: Option<Box<TreeNode<T>>>,
925 pub right: Option<Box<TreeNode<T>>>,
926 pub key: T,
927 }
928
929 // Create functions for creating nodes and adding left & right
930 impl<T> TreeNode<T> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected