Skip to main content

Graph

Struct Graph 

Source
pub struct Graph<M>(/* private fields */);

Implementations§

Source§

impl<M> Graph<M>

Source

pub fn new(f: M) -> Self

Source

pub fn from_parts(graph: DotGraph<'static>, f: M) -> Self

Trait Implementations§

Source§

impl<M: Debug> Debug for Graph<M>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<F: ?Sized, C: ?Sized, M: Formatter<F>> SnapshotEGraph<F, C> for Graph<M>

Source§

type ClassId = Cow<'static, str>

Source§

type EquivClass<'a> = EquivClass<'a, M> where M: 'a

Source§

type NodeId = Cow<'static, str>

Source§

type UnionFind<'a> = UnionFind<'a, M> where M: 'a

Source§

fn union_find(&mut self, name: &'static str) -> Self::UnionFind<'_>

Source§

fn equiv_class(&mut self, root: ClassId<C>) -> Self::EquivClass<'_>

Source§

fn edge( &mut self, node: &Self::NodeId, class: &Self::ClassId, op: &F, arg_idx: usize, )

Source§

fn parent_edge( &mut self, class: &Self::ClassId, parent: &Self::NodeId, parent_class: Option<&Self::ClassId>, label: Option<&str>, )

Auto Trait Implementations§

§

impl<M> Freeze for Graph<M>
where M: Freeze,

§

impl<M> RefUnwindSafe for Graph<M>
where M: RefUnwindSafe,

§

impl<M> Send for Graph<M>
where M: Send,

§

impl<M> Sync for Graph<M>
where M: Sync,

§

impl<M> Unpin for Graph<M>
where M: Unpin,

§

impl<M> UnsafeUnpin for Graph<M>
where M: UnsafeUnpin,

§

impl<M> UnwindSafe for Graph<M>
where M: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.