Struct leetgo_rs::BinaryTree
source · pub struct BinaryTree(_);
Trait Implementations§
source§impl Debug for BinaryTree
impl Debug for BinaryTree
source§impl<'de> Deserialize<'de> for BinaryTree
impl<'de> Deserialize<'de> for BinaryTree
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<BinaryTree> for Option<Rc<RefCell<TreeNode>>>
impl From<BinaryTree> for Option<Rc<RefCell<TreeNode>>>
source§fn from(tree: BinaryTree) -> Self
fn from(tree: BinaryTree) -> Self
Converts to this type from the input type.
source§impl Ord for BinaryTree
impl Ord for BinaryTree
source§fn cmp(&self, other: &BinaryTree) -> Ordering
fn cmp(&self, other: &BinaryTree) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<BinaryTree> for BinaryTree
impl PartialEq<BinaryTree> for BinaryTree
source§fn eq(&self, other: &BinaryTree) -> bool
fn eq(&self, other: &BinaryTree) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<BinaryTree> for BinaryTree
impl PartialOrd<BinaryTree> for BinaryTree
source§fn partial_cmp(&self, other: &BinaryTree) -> Option<Ordering>
fn partial_cmp(&self, other: &BinaryTree) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more