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 is_empty(&self) -> bool
pub fn as_ref(&self) -> NodeDataContainerRef<'_, T>
pub fn as_ref_mut(&mut self) -> NodeDataContainerRefMut<'_, T>
pub fn len(&self) -> usize
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 duplicate of the value. Read more
1.0.0 (const: unstable) · 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> From<Vec<T>> for NodeDataContainer<T>
impl<T> From<Vec<T>> for NodeDataContainer<T>
Source§fn from(v: Vec<T>) -> NodeDataContainer<T>
fn from(v: Vec<T>) -> NodeDataContainer<T>
Converts to this type from the input type.
Source§impl<T: Hash> Hash for NodeDataContainer<T>
impl<T: Hash> Hash 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 (const: unstable) · 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§fn eq(&self, other: &NodeDataContainer<T>) -> bool
fn eq(&self, other: &NodeDataContainer<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.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> UnsafeUnpin for NodeDataContainer<T>
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