Skip to main content

ImmutableActiveSingularWeave

Trait ImmutableActiveSingularWeave 

Source
pub trait ImmutableActiveSingularWeave<K, N, T>: ImmutableWeave<K, N, T>
where K: Hash + Copy + Eq + Ord, N: Node<K, T>,
{ // Required method fn active(&self) -> Option<K>; }
Expand description

An ImmutableWeave where only one Node can be considered active at a time.

Required Methods§

Source

fn active(&self) -> Option<K>

Returns the active node’s identifier, if any.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<K, T, M, S> ImmutableActiveSingularWeave<<K as Archive>::Archived, ArchivedDependentNode<K, T, S>, <T as Archive>::Archived> for ArchivedDependentWeave<K, T, M, S>
where K: Archive + Hash + Copy + Eq + Ord, <K as Archive>::Archived: Hash + Copy + Eq + Ord + 'static, T: Archive, M: Archive, S: BuildHasher + Default + Clone,

Available on crate feature rkyv only.