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
impl HasWorkers for DummyManager
Source§type WorkerPool = Workers
type WorkerPool = Workers
Type of the worker pool
Source§fn workers(&self) -> &Self::WorkerPool
fn workers(&self) -> &Self::WorkerPool
Get the worker pool
Source§impl Manager for DummyManager
impl Manager for DummyManager
Source§type TerminalRef<'a> = &'a ()
type TerminalRef<'a> = &'a ()
References to
Self::Terminals Read moreSource§type Rules = DummyRules
type Rules = DummyRules
Diagram rules, see
DiagramRules for more detailsSource§type TerminalIterator<'a> = Empty<DummyEdge>
where
Self: 'a
type TerminalIterator<'a> = Empty<DummyEdge> where Self: 'a
Iterator over all terminals Read more
Source§type LevelView<'a> = DummyLevelView
where
Self: 'a
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
type LevelIterator<'a> = Empty<DummyLevelView> where Self: 'a
Iterator over levels
Source§fn get_node(&self, _edge: &Self::Edge) -> Node<'_, Self>
fn get_node(&self, _edge: &Self::Edge) -> Node<'_, Self>
Get a reference to the node to which
edge pointsSource§fn clone_edge(&self, edge: &Self::Edge) -> Self::Edge
fn clone_edge(&self, edge: &Self::Edge) -> Self::Edge
Clone
edgeSource§fn try_remove_node(&self, edge: Self::Edge, _level: LevelNo) -> bool
fn try_remove_node(&self, edge: Self::Edge, _level: LevelNo) -> bool
Drop
edge and try to remove the node it points to Read moreSource§fn num_inner_nodes(&self) -> usize
fn num_inner_nodes(&self) -> usize
Get the count of inner nodes
Source§fn num_levels(&self) -> LevelNo
fn num_levels(&self) -> LevelNo
Get the number of levels Read more
Source§fn num_named_vars(&self) -> VarNo
fn num_named_vars(&self) -> VarNo
Get the number of named variables
Source§fn add_vars(&mut self, _additional: VarNo) -> Range<VarNo>
fn add_vars(&mut self, _additional: VarNo) -> Range<VarNo>
Add
additional unnamed variables to the decision diagram Read moreSource§fn add_named_vars<S: Into<String>>(
&mut self,
_names: impl IntoIterator<Item = S>,
) -> Result<Range<VarNo>, DuplicateVarName>
fn add_named_vars<S: Into<String>>( &mut self, _names: impl IntoIterator<Item = S>, ) -> Result<Range<VarNo>, DuplicateVarName>
Add named variables to the decision diagram Read more
Source§fn set_var_name(
&mut self,
_var: VarNo,
_name: impl Into<String>,
) -> Result<(), DuplicateVarName>
fn set_var_name( &mut self, _var: VarNo, _name: impl Into<String>, ) -> Result<(), DuplicateVarName>
Source§fn name_to_var(&self, _name: impl AsRef<str>) -> Option<VarNo>
fn name_to_var(&self, _name: impl AsRef<str>) -> Option<VarNo>
Get the variable number for the given variable name, if present Read more
Source§fn level_to_var(&self, _level: LevelNo) -> VarNo
fn level_to_var(&self, _level: LevelNo) -> VarNo
Get the variable for the given level Read more
Source§unsafe fn level_unchecked(&self, _no: LevelNo) -> Self::LevelView<'_>
unsafe fn level_unchecked(&self, _no: LevelNo) -> Self::LevelView<'_>
Source§fn levels(&self) -> Self::LevelIterator<'_>
fn levels(&self) -> Self::LevelIterator<'_>
Iterate over the levels from top to bottom
Source§fn get_terminal(&self, _terminal: Self::Terminal) -> AllocResult<Self::Edge>
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
fn num_terminals(&self) -> usize
Get the number of terminals Read more
Source§fn terminals(&self) -> Self::TerminalIterator<'_>
fn terminals(&self) -> Self::TerminalIterator<'_>
Iterator over all terminals Read more
Source§fn reorder<T>(&mut self, f: impl FnOnce(&mut Self) -> T) -> T
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 moreSource§fn reorder_count(&self) -> u64
fn reorder_count(&self) -> u64
Get the count of reordering operations Read more
Source§fn approx_num_inner_nodes(&self) -> usize
fn approx_num_inner_nodes(&self) -> usize
Get an approximate count of inner nodes Read more
Source§fn add_named_vars_from_map(
&mut self,
map: VarNameMap,
) -> Result<Range<u32>, DuplicateVarName>
fn add_named_vars_from_map( &mut self, map: VarNameMap, ) -> Result<Range<u32>, DuplicateVarName>
Add named variables to the decision diagram Read more
Auto Trait Implementations§
impl Freeze for DummyManager
impl RefUnwindSafe for DummyManager
impl Send for DummyManager
impl Sync for DummyManager
impl Unpin for DummyManager
impl UnsafeUnpin for DummyManager
impl UnwindSafe for DummyManager
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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