Trait pargraph::BorrowDataCell
source · pub trait BorrowDataCell {
type UserData;
// Required method
fn borrow_data_cell(&self) -> &DataCell<Self::UserData>;
}
Expand description
This trait is used to allow using arbitrary data types for node weights
as long as it is possible to use a DataCell
from them.
Required Associated Types§
Required Methods§
sourcefn borrow_data_cell(&self) -> &DataCell<Self::UserData>
fn borrow_data_cell(&self) -> &DataCell<Self::UserData>
Get a reference to a DataCell
structure.