[][src]Struct makepad_render::ElementsCounted

pub struct ElementsCounted<T> where
    T: Clone
{ pub counter: u64, pub elements: Elements<u64, T, T>, }

Fields

counter: u64elements: Elements<u64, T, T>

Methods

impl<T> ElementsCounted<T> where
    T: Clone
[src]

pub fn new(template: T) -> ElementsCounted<T> where
    T: Clone
[src]

Important traits for ElementsIterator<'a, ID, T, TEMPL>
pub fn iter<'a>(&'a mut self) -> ElementsIterator<'a, u64, T, T> where
    T: Clone
[src]

Important traits for ElementsIteratorNamed<'a, ID, T, TEMPL>
pub fn enumerate<'a>(&'a mut self) -> ElementsIteratorNamed<'a, u64, T, T> where
    T: Clone
[src]

pub fn get<'a>(&'a mut self, index: u64) -> Option<&mut T> where
    T: Clone
[src]

pub fn template(&mut self) -> &mut T[src]

pub fn get_draw(&mut self, cx: &mut Cx) -> &mut T where
    T: Clone
[src]

Trait Implementations

impl<T: Clone> Clone for ElementsCounted<T> where
    T: Clone
[src]

impl<T: Default> Default for ElementsCounted<T> where
    T: Clone
[src]

Auto Trait Implementations

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

impl<T> RefUnwindSafe for ElementsCounted<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]