pub struct NodeDataContainerRef<'a, T> {
pub internal: &'a [T],
}
Fields§
§internal: &'a [T]
Implementations§
Source§impl<'a, T: Send + 'a> NodeDataContainerRef<'a, T>
impl<'a, T: Send + 'a> NodeDataContainerRef<'a, T>
pub fn transform_nodeid<U: Send, F>(&self, closure: F) -> NodeDataContainer<U>
pub fn transform_nodeid_multithreaded_optional<U: Send, F>( &self, closure: F, ) -> NodeDataContainer<U>
Source§impl<'a, T: 'a> NodeDataContainerRef<'a, T>
impl<'a, T: 'a> NodeDataContainerRef<'a, T>
pub fn get_extended_lifetime(&self, id: NodeId) -> Option<&'a T>
pub fn from_slice(data: &'a [T]) -> NodeDataContainerRef<'a, T>
pub fn len(&self) -> usize
pub fn transform_singlethread<U, F>(&self, closure: F) -> NodeDataContainer<U>
pub fn get(&self, id: NodeId) -> Option<&T>
pub fn iter(&self) -> Iter<'_, T>
pub fn linear_iter(&self) -> LinearIterator ⓘ
Source§impl<'a> NodeDataContainerRef<'a, NodeHierarchyItem>
impl<'a> NodeDataContainerRef<'a, NodeHierarchyItem>
pub fn subtree_len(&self, parent_id: NodeId) -> usize
Trait Implementations§
Source§impl<'a, T: Debug> Debug for NodeDataContainerRef<'a, T>
impl<'a, T: Debug> Debug for NodeDataContainerRef<'a, T>
Source§impl<'a, T: Hash> Hash for NodeDataContainerRef<'a, T>
impl<'a, T: Hash> Hash for NodeDataContainerRef<'a, T>
Source§impl<'a, T> Index<NodeId> for NodeDataContainerRef<'a, T>
impl<'a, T> Index<NodeId> for NodeDataContainerRef<'a, T>
Source§impl<'a, T: Ord> Ord for NodeDataContainerRef<'a, T>
impl<'a, T: Ord> Ord for NodeDataContainerRef<'a, T>
Source§fn cmp(&self, other: &NodeDataContainerRef<'a, T>) -> Ordering
fn cmp(&self, other: &NodeDataContainerRef<'a, T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a, T: PartialEq> PartialEq for NodeDataContainerRef<'a, T>
impl<'a, T: PartialEq> PartialEq for NodeDataContainerRef<'a, T>
Source§impl<'a, T: PartialOrd> PartialOrd for NodeDataContainerRef<'a, T>
impl<'a, T: PartialOrd> PartialOrd for NodeDataContainerRef<'a, T>
impl<'a, T: Eq> Eq for NodeDataContainerRef<'a, T>
impl<'a, T> StructuralPartialEq for NodeDataContainerRef<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for NodeDataContainerRef<'a, T>
impl<'a, T> RefUnwindSafe for NodeDataContainerRef<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for NodeDataContainerRef<'a, T>where
T: Sync,
impl<'a, T> Sync for NodeDataContainerRef<'a, T>where
T: Sync,
impl<'a, T> Unpin for NodeDataContainerRef<'a, T>
impl<'a, T> UnwindSafe for NodeDataContainerRef<'a, T>where
T: RefUnwindSafe,
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