DummyManager

Struct DummyManager 

Source
pub struct DummyManager;
Expand description

Dummy manager that does not actually manage anything. It is only useful to clone and drop edges.

Trait Implementations§

Source§

impl HasWorkers for DummyManager

Source§

type WorkerPool = Workers

Type of the worker pool
Source§

fn workers(&self) -> &Self::WorkerPool

Get the worker pool
Source§

impl Manager for DummyManager

Source§

type Edge = DummyEdge

Type of edge
Source§

type EdgeTag = ()

Type of edge tags
Source§

type InnerNode = DummyNode

Type of inner nodes
Source§

type Terminal = ()

Type of terminals
Source§

type TerminalRef<'a> = &'a ()

References to Self::Terminals Read more
Source§

type TerminalIterator<'a> = Empty<DummyEdge> where Self: 'a

Iterator over all terminals Read more
Source§

type Rules = DummyRules

Diagram rules, see DiagramRules for more details
Source§

type NodeSet = HashSet<usize>

Node set type, possibly more efficient than a HashSet<NodeID>
Source§

type LevelView<'a> = DummyLevelView where Self: 'a

A view on a single level of the unique table.
Source§

type LevelIterator<'a> = Empty<DummyLevelView> where Self: 'a

Iterator over levels
Source§

fn get_node(&self, _edge: &Self::Edge) -> Node<'_, Self>

Get a reference to the node to which edge points
Source§

fn clone_edge(&self, edge: &Self::Edge) -> Self::Edge

Clone edge
Source§

fn drop_edge(&self, edge: Self::Edge)

Drop edge
Source§

fn num_inner_nodes(&self) -> usize

Get the count of inner nodes
Source§

fn num_levels(&self) -> LevelNo

Get the number of levels
Source§

fn add_level( &mut self, _f: impl FnOnce(LevelNo) -> Self::InnerNode, ) -> AllocResult<Self::Edge>

Add a level with the given node to the unique table. Read more
Source§

fn level(&self, _no: LevelNo) -> Self::LevelView<'_>

Get the level given by no Read more
Source§

fn levels(&self) -> Self::LevelIterator<'_>

Iterate over the levels from top to bottom
Source§

fn get_terminal(&self, _terminal: Self::Terminal) -> AllocResult<Self::Edge>

Get an edge for the given terminal Read more
Source§

fn num_terminals(&self) -> usize

Get the number of terminals Read more
Source§

fn terminals(&self) -> Self::TerminalIterator<'_>

Iterator over all terminals Read more
Source§

fn gc(&self) -> usize

Perform garbage collection Read more
Source§

fn reorder<T>(&mut self, f: impl FnOnce(&mut Self) -> T) -> T

Prepare and postprocess a reordering operation. The reordering itself is performed in f. Read more
Source§

fn gc_count(&self) -> u64

Get the count of garbage collections Read more
Source§

fn reorder_count(&self) -> u64

Get the count of reordering operations Read more
Source§

fn approx_num_inner_nodes(&self) -> usize

Get an approximate count of inner nodes Read more

Auto Trait Implementations§

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.