Struct conrod::IndexSlot
[−]
[src]
pub struct IndexSlot { // some fields omitted }
A small cache for a single unique NodeIndex.
This should be used by Widgets within their unique State for instantiating their own unique widgets.
This should reduce the need for users to directly call UiCell::new_unique_node_index
and in
turn reduce related mistakes (i.e. accidentally calling it and growing the graph unnecessarily).
Methods
impl IndexSlot
[src]
fn new() -> Self
Construct a new empty IndexSlot.
fn get<B>(&self, ui: &mut UiCell<B>) -> NodeIndex where B: Backend
Returns the NodeIndex held by the IndexSlot.
If the IndexSlot does not yet hold a NodeIndex, the UiCell will be used to
produce a new_unique_node_index
.
Trait Implementations
impl PartialEq for IndexSlot
[src]
fn eq(&self, __arg_0: &IndexSlot) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &IndexSlot) -> bool
This method tests for !=
.
impl Debug for IndexSlot
[src]
impl Clone for IndexSlot
[src]
fn clone(&self) -> IndexSlot
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more