fdt_rs/common/
item.rs

1use crate::prelude::*;
2
3pub trait UnwrappableDevTreeItem<'dt> {
4    type TreeProp: PropReader<'dt>;
5    // TODO lands this should be defined to Self::TreeProp::NodeType.
6    // feature(associated_type_defaults)
7    // https://github.com/rust-lang/rust/issues/29661
8    type TreeNode;
9
10    fn node(self) -> Option<Self::TreeNode>;
11    fn prop(self) -> Option<Self::TreeProp>;
12}