[−][src]Struct makepad_render::Elements
Fields
template: TEMPLelement_list: Vec<ID>element_map: HashMap<ID, ElementsRedraw<T>>redraw_id: u64Methods
impl<ID, T, TEMPL> Elements<ID, T, TEMPL> where
ID: Ord + Hash + Clone, [src]
ID: Ord + Hash + Clone,
pub fn new(template: TEMPL) -> Elements<ID, T, TEMPL>[src]
pub fn mark(&mut self, cx: &Cx)[src]
pub fn sweep<F>(&mut self, cx: &mut Cx, destruct_callback: F) where
F: FnMut(&mut Cx, &mut T), [src]
F: FnMut(&mut Cx, &mut T),
pub fn clear<F>(&mut self, cx: &mut Cx, destruct_callback: F) where
F: FnMut(&mut Cx, &mut T), [src]
F: FnMut(&mut Cx, &mut T),
ⓘImportant traits for ElementsIterator<'a, ID, T, TEMPL>pub fn iter<'a>(&'a mut self) -> ElementsIterator<'a, ID, T, TEMPL>[src]
ⓘImportant traits for ElementsIterator<'a, ID, T, TEMPL>
ⓘImportant traits for ElementsIteratorNamed<'a, ID, T, TEMPL>pub fn enumerate<'a>(&'a mut self) -> ElementsIteratorNamed<'a, ID, T, TEMPL>[src]
ⓘImportant traits for ElementsIteratorNamed<'a, ID, T, TEMPL>
pub fn get<'a>(&'a mut self, index: ID) -> Option<&mut T>[src]
pub fn get_draw<F>(
&mut self,
cx: &mut Cx,
index: ID,
insert_callback: F
) -> &mut T where
F: FnMut(&mut Cx, &TEMPL) -> T, [src]
&mut self,
cx: &mut Cx,
index: ID,
insert_callback: F
) -> &mut T where
F: FnMut(&mut Cx, &TEMPL) -> T,
Trait Implementations
impl<ID: Clone, T: Clone, TEMPL: Clone> Clone for Elements<ID, T, TEMPL> where
ID: Ord + Hash, [src]
ID: Ord + Hash,
impl<ID: Default, T: Default, TEMPL: Default> Default for Elements<ID, T, TEMPL> where
ID: Ord + Hash, [src]
ID: Ord + Hash,
Auto Trait Implementations
impl<ID, T, TEMPL> Send for Elements<ID, T, TEMPL> where
ID: Send,
T: Send,
TEMPL: Send,
ID: Send,
T: Send,
TEMPL: Send,
impl<ID, T, TEMPL> Sync for Elements<ID, T, TEMPL> where
ID: Sync,
T: Sync,
TEMPL: Sync,
ID: Sync,
T: Sync,
TEMPL: Sync,
impl<ID, T, TEMPL> Unpin for Elements<ID, T, TEMPL> where
ID: Unpin,
T: Unpin,
TEMPL: Unpin,
ID: Unpin,
T: Unpin,
TEMPL: Unpin,
impl<ID, T, TEMPL> UnwindSafe for Elements<ID, T, TEMPL> where
ID: UnwindSafe,
T: UnwindSafe,
TEMPL: UnwindSafe,
ID: UnwindSafe,
T: UnwindSafe,
TEMPL: UnwindSafe,
impl<ID, T, TEMPL> RefUnwindSafe for Elements<ID, T, TEMPL> where
ID: RefUnwindSafe,
T: RefUnwindSafe,
TEMPL: RefUnwindSafe,
ID: RefUnwindSafe,
T: RefUnwindSafe,
TEMPL: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,