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<'a>(&'a self) -> NodeDataContainerRef<'a, T>
pub fn as_ref_mut<'a>(&'a mut self) -> NodeDataContainerRefMut<'a, 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 · 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 · 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§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