Trait is_tree::traits::has_parent::HasParent

source ·
pub trait HasParent: Sized {
    // Required method
    fn parent(&self) -> Option<Self>;
}
Expand description

A trait for objects that have a parent.

Required Methods§

source

fn parent(&self) -> Option<Self>

Gets the parent of the object.

Object Safety§

This trait is not object safe.

Implementors§