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§

source

type UserData

Data type which is wrapped to get synchronized access.

Required Methods§

source

fn borrow_data_cell(&self) -> &DataCell<Self::UserData>

Get a reference to a DataCell structure.

Implementors§