pub struct GraphView<Extra, V: GraphValue> {
pub view_query: GraphQuery<V>,
pub view_elements: Vec<(GraphClass<Extra>, Pattern<V>)>,
}Expand description
A universal graph-like interface: a query over the graph plus a list of classified elements.
view_query provides read-only access to the underlying graph structure.
view_elements is the flat list of all elements in the view, each tagged
with its GraphClass.
Transformations consume the view and produce a new one. Clone is available
because GraphQuery is cheap to clone (Rc/Arc pointer increments only).
Fields§
§view_query: GraphQuery<V>§view_elements: Vec<(GraphClass<Extra>, Pattern<V>)>Trait Implementations§
Auto Trait Implementations§
impl<Extra, V> Freeze for GraphView<Extra, V>
impl<Extra, V> !RefUnwindSafe for GraphView<Extra, V>
impl<Extra, V> !Send for GraphView<Extra, V>
impl<Extra, V> !Sync for GraphView<Extra, V>
impl<Extra, V> Unpin for GraphView<Extra, V>
impl<Extra, V> UnsafeUnpin for GraphView<Extra, V>
impl<Extra, V> !UnwindSafe for GraphView<Extra, V>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more