pub enum Tree<T> {
Leaf(T),
Node(Vec<Tree<T>>),
}Expand description
A node of a tree built by build_n_ary_tree: a leaf, or a list of nodes
(fontTools uses plain nested lists).
Variants§
Trait Implementations§
impl<T: Eq> Eq for Tree<T>
impl<T: PartialEq> StructuralPartialEq for Tree<T>
Auto Trait Implementations§
impl<T> Forget for Tree<T>
impl<T> Freeze for Tree<T>
impl<T> Move for Tree<T>
impl<T> RefUnwindSafe for Tree<T>where
T: RefUnwindSafe,
impl<T> Send for Tree<T>
impl<T> Sync for Tree<T>
impl<T> Unpin for Tree<T>
impl<T> UnsafeUnpin for Tree<T>
impl<T> UnwindSafe for Tree<T>where
T: UnwindSafe,
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.