pub enum RootNodeCandidate<Key: NodeKey> {
Valid(Key),
None,
}
Expand description
Contains the best Root node candidate from where to start measuring
Variants§
Implementations§
Source§impl<Key: NodeKey> RootNodeCandidate<Key>
impl<Key: NodeKey> RootNodeCandidate<Key>
pub fn take(&mut self) -> Self
Sourcepub fn propose_new_candidate(
&mut self,
proposed_candidate: &Key,
dom_adapter: &mut impl DOMAdapter<Key>,
)
pub fn propose_new_candidate( &mut self, proposed_candidate: &Key, dom_adapter: &mut impl DOMAdapter<Key>, )
Propose a new root candidate
Trait Implementations§
Source§impl<Key: Clone + NodeKey> Clone for RootNodeCandidate<Key>
impl<Key: Clone + NodeKey> Clone for RootNodeCandidate<Key>
Source§fn clone(&self) -> RootNodeCandidate<Key>
fn clone(&self) -> RootNodeCandidate<Key>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl<Key: NodeKey> StructuralPartialEq for RootNodeCandidate<Key>
Auto Trait Implementations§
impl<Key> Freeze for RootNodeCandidate<Key>where
Key: Freeze,
impl<Key> RefUnwindSafe for RootNodeCandidate<Key>where
Key: RefUnwindSafe,
impl<Key> Send for RootNodeCandidate<Key>where
Key: Send,
impl<Key> Sync for RootNodeCandidate<Key>where
Key: Sync,
impl<Key> Unpin for RootNodeCandidate<Key>where
Key: Unpin,
impl<Key> UnwindSafe for RootNodeCandidate<Key>where
Key: UnwindSafe,
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