[][src]Struct algorithms_edu::algo::graph::tree::with_parent::UnsafeTreeNode

pub struct UnsafeTreeNode {
    pub id: usize,
    pub parent: *const UnsafeTreeNode,
    pub children: Vec<Box<UnsafeTreeNode>>,
}

Fields

id: usizeparent: *const UnsafeTreeNodechildren: Vec<Box<UnsafeTreeNode>>

Implementations

impl UnsafeTreeNode[src]

pub fn from_adjacency_list(
    graph: &UnweightedAdjacencyList,
    root: usize
) -> Box<Self>
[src]

impl UnsafeTreeNode[src]

pub fn new(id: usize, parent: *const UnsafeTreeNode) -> Self[src]

Trait Implementations

impl Debug for UnsafeTreeNode[src]

impl Eq for UnsafeTreeNode[src]

impl PartialEq<UnsafeTreeNode> for UnsafeTreeNode[src]

impl StructuralEq for UnsafeTreeNode[src]

impl StructuralPartialEq for UnsafeTreeNode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,