#[repr(C)]pub struct ArchivedDependentNode<K, T, S>where
K: Hash + Copy + Eq + Ord + Archive,
S: BuildHasher + Default + Clone,
Option<K>: Archive,
IndexSet<K, S>: Archive,
bool: Archive,
T: Archive,{
pub id: <K as Archive>::Archived,
pub from: <Option<K> as Archive>::Archived,
pub to: <IndexSet<K, S> as Archive>::Archived,
pub active: <bool as Archive>::Archived,
pub bookmarked: <bool as Archive>::Archived,
pub contents: <T as Archive>::Archived,
}Expand description
An archived DependentNode
Fields§
§id: <K as Archive>::ArchivedThe archived counterpart of DependentNode::id
from: <Option<K> as Archive>::ArchivedThe archived counterpart of DependentNode::from
to: <IndexSet<K, S> as Archive>::ArchivedThe archived counterpart of DependentNode::to
active: <bool as Archive>::ArchivedThe archived counterpart of DependentNode::active
bookmarked: <bool as Archive>::ArchivedThe archived counterpart of DependentNode::bookmarked
contents: <T as Archive>::ArchivedThe archived counterpart of DependentNode::contents
Trait Implementations§
Source§impl<K, T, S, __C: Fallible + ?Sized> CheckBytes<__C> for ArchivedDependentNode<K, T, S>where
K: Hash + Copy + Eq + Ord + Archive,
S: BuildHasher + Default + Clone,
Option<K>: Archive,
IndexSet<K, S>: Archive,
bool: Archive,
T: Archive,
<__C as Fallible>::Error: Trace,
<K as Archive>::Archived: CheckBytes<__C>,
<Option<K> as Archive>::Archived: CheckBytes<__C>,
<IndexSet<K, S> as Archive>::Archived: CheckBytes<__C>,
<bool as Archive>::Archived: CheckBytes<__C>,
<T as Archive>::Archived: CheckBytes<__C>,
impl<K, T, S, __C: Fallible + ?Sized> CheckBytes<__C> for ArchivedDependentNode<K, T, S>where
K: Hash + Copy + Eq + Ord + Archive,
S: BuildHasher + Default + Clone,
Option<K>: Archive,
IndexSet<K, S>: Archive,
bool: Archive,
T: Archive,
<__C as Fallible>::Error: Trace,
<K as Archive>::Archived: CheckBytes<__C>,
<Option<K> as Archive>::Archived: CheckBytes<__C>,
<IndexSet<K, S> as Archive>::Archived: CheckBytes<__C>,
<bool as Archive>::Archived: CheckBytes<__C>,
<T as Archive>::Archived: CheckBytes<__C>,
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>
Available on crate feature rkyv only.
impl<K, T, M, S> ImmutableActiveSingularWeave<<K as Archive>::Archived, ArchivedDependentNode<K, T, S>, <T as Archive>::Archived> for ArchivedDependentWeave<K, T, M, S>
Available on crate feature
rkyv only.Source§impl<K, T, M, S> ImmutableBookmarkableWeave<<K as Archive>::Archived, ArchivedDependentNode<K, T, S>, <T as Archive>::Archived> for ArchivedDependentWeave<K, T, M, S>
Available on crate feature rkyv only.
impl<K, T, M, S> ImmutableBookmarkableWeave<<K as Archive>::Archived, ArchivedDependentNode<K, T, S>, <T as Archive>::Archived> for ArchivedDependentWeave<K, T, M, S>
Available on crate feature
rkyv only.Source§impl<K, T, M, S> ImmutableMetadataWeave<<K as Archive>::Archived, ArchivedDependentNode<K, T, S>, <T as Archive>::Archived, <M as Archive>::Archived> for ArchivedDependentWeave<K, T, M, S>
Available on crate feature rkyv only.
impl<K, T, M, S> ImmutableMetadataWeave<<K as Archive>::Archived, ArchivedDependentNode<K, T, S>, <T as Archive>::Archived, <M as Archive>::Archived> for ArchivedDependentWeave<K, T, M, S>
Available on crate feature
rkyv only.Source§impl<K, T, M, S> ImmutableSortableWeave<<K as Archive>::Archived, ArchivedDependentNode<K, T, S>, <T as Archive>::Archived> for ArchivedDependentWeave<K, T, M, S>
Available on crate feature rkyv only.
impl<K, T, M, S> ImmutableSortableWeave<<K as Archive>::Archived, ArchivedDependentNode<K, T, S>, <T as Archive>::Archived> for ArchivedDependentWeave<K, T, M, S>
Available on crate feature
rkyv only.Source§impl<K, T, M, S> ImmutableWeave<<K as Archive>::Archived, ArchivedDependentNode<K, T, S>, <T as Archive>::Archived> for ArchivedDependentWeave<K, T, M, S>
Available on crate feature rkyv only.
impl<K, T, M, S> ImmutableWeave<<K as Archive>::Archived, ArchivedDependentNode<K, T, S>, <T as Archive>::Archived> for ArchivedDependentWeave<K, T, M, S>
Available on crate feature
rkyv only.Source§type Nodes = ArchivedHashMap<<K as Archive>::Archived, ArchivedDependentNode<K, T, S>>
type Nodes = ArchivedHashMap<<K as Archive>::Archived, ArchivedDependentNode<K, T, S>>
Mapping between identifiers and nodes.
Source§type Roots = ArchivedIndexSet<<K as Archive>::Archived>
type Roots = ArchivedIndexSet<<K as Archive>::Archived>
Identifiers of “root” nodes (nodes which do not have any parents).
Source§fn roots(&self) -> &Self::Roots
fn roots(&self) -> &Self::Roots
Returns a reference to the identifiers of “root” nodes (nodes which do not have any parents).
Source§fn contains(&self, id: &K::Archived) -> bool
fn contains(&self, id: &K::Archived) -> bool
Returns
true if the Weave contains a node with the specified identifier.Source§fn contains_active(&self, id: &K::Archived) -> bool
fn contains_active(&self, id: &K::Archived) -> bool
Returns
true if the Weave contains an “active” node (node.is_active() == true) with the specified identifier. Read moreSource§fn get_node(&self, id: &K::Archived) -> Option<&ArchivedDependentNode<K, T, S>>
fn get_node(&self, id: &K::Archived) -> Option<&ArchivedDependentNode<K, T, S>>
Returns a reference to the node corresponding to the identifier.
Source§fn get_ordered_node_identifiers(&self, output: &mut Vec<K::Archived>)
fn get_ordered_node_identifiers(&self, output: &mut Vec<K::Archived>)
Builds a list of all node identifiers ordered by their positions in the Weave.
Source§fn get_ordered_node_identifiers_from(
&self,
id: &K::Archived,
output: &mut Vec<K::Archived>,
)
fn get_ordered_node_identifiers_from( &self, id: &K::Archived, output: &mut Vec<K::Archived>, )
Recursively builds a list of all children of the specified node ordered by their positions in the Weave.
Source§fn get_active_path(&self, output: &mut Vec<K::Archived>)
fn get_active_path(&self, output: &mut Vec<K::Archived>)
Builds the longest contiguous path of active nodes which ends at a root node.
Source§impl<K, T, S> Node<<K as Archive>::Archived, <T as Archive>::Archived> for ArchivedDependentNode<K, T, S>
Available on crate feature rkyv only.
impl<K, T, S> Node<<K as Archive>::Archived, <T as Archive>::Archived> for ArchivedDependentNode<K, T, S>
Available on crate feature
rkyv only.Source§type From = ArchivedOption<<K as Archive>::Archived>
type From = ArchivedOption<<K as Archive>::Archived>
Identifiers corresponding to the node’s parents.
Source§type To = ArchivedIndexSet<<K as Archive>::Archived>
type To = ArchivedIndexSet<<K as Archive>::Archived>
Identifiers corresponding to the node’s children.
Source§fn from(&self) -> &Self::From
fn from(&self) -> &Self::From
Returns a reference to the identifiers corresponding to the node’s parents.
impl<K, T, S> Portable for ArchivedDependentNode<K, T, S>where
K: Hash + Copy + Eq + Ord + Archive,
S: BuildHasher + Default + Clone,
Option<K>: Archive,
IndexSet<K, S>: Archive,
bool: Archive,
T: Archive,
<K as Archive>::Archived: Portable,
<Option<K> as Archive>::Archived: Portable,
<IndexSet<K, S> as Archive>::Archived: Portable,
<bool as Archive>::Archived: Portable,
<T as Archive>::Archived: Portable,
Auto Trait Implementations§
impl<K, T, S> !Freeze for ArchivedDependentNode<K, T, S>
impl<K, T, S> !RefUnwindSafe for ArchivedDependentNode<K, T, S>
impl<K, T, S> !Send for ArchivedDependentNode<K, T, S>
impl<K, T, S> !Sync for ArchivedDependentNode<K, T, S>
impl<K, T, S> !Unpin for ArchivedDependentNode<K, T, S>
impl<K, T, S> !UnsafeUnpin for ArchivedDependentNode<K, T, S>
impl<K, T, S> !UnwindSafe for ArchivedDependentNode<K, T, S>
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.