pub struct ElementsCounted<T>where
T: Clone,{
pub counter: u64,
pub elements: Elements<u64, T, T>,
}
Fields§
§counter: u64
§elements: Elements<u64, T, T>
Implementations§
Source§impl<T> ElementsCounted<T>where
T: Clone,
impl<T> ElementsCounted<T>where
T: Clone,
pub fn new(template: T) -> ElementsCounted<T>where
T: Clone,
pub fn iter<'a>(&'a mut self) -> ElementsIterator<'a, u64, T, T> ⓘwhere
T: Clone,
pub fn enumerate<'a>(&'a mut self) -> ElementsIteratorNamed<'a, u64, T, T> ⓘwhere
T: Clone,
pub fn get<'a>(&'a mut self, index: u64) -> Option<&mut T>where
T: Clone,
pub fn template(&mut self) -> &mut T
pub fn get_draw(&mut self, cx: &mut Cx) -> &mut Twhere
T: Clone,
Trait Implementations§
Source§impl<T> Clone for ElementsCounted<T>
impl<T> Clone for ElementsCounted<T>
Source§fn clone(&self) -> ElementsCounted<T>
fn clone(&self) -> ElementsCounted<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 moreAuto Trait Implementations§
impl<T> Freeze for ElementsCounted<T>where
T: Freeze,
impl<T> RefUnwindSafe for ElementsCounted<T>where
T: RefUnwindSafe,
impl<T> Send for ElementsCounted<T>where
T: Send,
impl<T> Sync for ElementsCounted<T>where
T: Sync,
impl<T> Unpin for ElementsCounted<T>where
T: Unpin,
impl<T> UnwindSafe for ElementsCounted<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