pub struct NodeDataContainer<T> {
pub internal: Vec<T>,
}
Fields§
§internal: Vec<T>
Implementations§
Source§impl<T> NodeDataContainer<T>
impl<T> NodeDataContainer<T>
pub const fn new(data: Vec<T>) -> Self
pub fn len(&self) -> usize
pub fn transform<U, F>(&self, closure: F) -> NodeDataContainer<U>
pub fn get(&self, id: NodeId) -> Option<&T>
pub fn iter(&self) -> Iter<'_, T>
pub fn iter_mut(&mut self) -> IterMut<'_, T>
pub fn linear_iter(&self) -> LinearIterator ⓘ
Trait Implementations§
Source§impl<T: Clone> Clone for NodeDataContainer<T>
impl<T: Clone> Clone for NodeDataContainer<T>
Source§fn clone(&self) -> NodeDataContainer<T>
fn clone(&self) -> NodeDataContainer<T>
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 moreSource§impl<T: Debug> Debug for NodeDataContainer<T>
impl<T: Debug> Debug for NodeDataContainer<T>
Source§impl<T> Default for NodeDataContainer<T>
impl<T> Default for NodeDataContainer<T>
Source§impl<T: Hash> Hash for NodeDataContainer<T>
impl<T: Hash> Hash for NodeDataContainer<T>
Source§impl<T> Index<NodeId> for NodeDataContainer<T>
impl<T> Index<NodeId> for NodeDataContainer<T>
Source§impl<T> IndexMut<NodeId> for NodeDataContainer<T>
impl<T> IndexMut<NodeId> for NodeDataContainer<T>
Source§impl<T: Ord> Ord for NodeDataContainer<T>
impl<T: Ord> Ord for NodeDataContainer<T>
Source§fn cmp(&self, other: &NodeDataContainer<T>) -> Ordering
fn cmp(&self, other: &NodeDataContainer<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<T: PartialEq> PartialEq for NodeDataContainer<T>
impl<T: PartialEq> PartialEq for NodeDataContainer<T>
Source§impl<T: PartialOrd> PartialOrd for NodeDataContainer<T>
impl<T: PartialOrd> PartialOrd for NodeDataContainer<T>
impl<T: Eq> Eq for NodeDataContainer<T>
impl<T> StructuralPartialEq for NodeDataContainer<T>
Auto Trait Implementations§
impl<T> Freeze for NodeDataContainer<T>
impl<T> RefUnwindSafe for NodeDataContainer<T>where
T: RefUnwindSafe,
impl<T> Send for NodeDataContainer<T>where
T: Send,
impl<T> Sync for NodeDataContainer<T>where
T: Sync,
impl<T> Unpin for NodeDataContainer<T>where
T: Unpin,
impl<T> UnwindSafe for NodeDataContainer<T>where
T: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)