Struct ambient_api::prelude::ambient_element::ShareableElementTree
source · pub struct ShareableElementTree(pub Arc<Mutex<RawMutex, ElementTree>>);
Expand description
A shareable element tree. This is used to share the same tree between multiple contexts.
Tuple Fields§
§0: Arc<Mutex<RawMutex, ElementTree>>
Implementations§
Trait Implementations§
source§fn clone(&self) -> ShareableElementTree
fn clone(&self) -> ShareableElementTree
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 moresource§fn from(tree: ElementTree) -> ShareableElementTree
fn from(tree: ElementTree) -> ShareableElementTree
Converts to this type from the input type.
Auto Trait Implementations§
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> Downcast for T
impl<T> Downcast for T
source§impl<T> ElementComponentName for T
impl<T> ElementComponentName for T
source§fn element_component_name(&self) -> &'static str
fn element_component_name(&self) -> &'static str
Returns the name of the type implementing ElementComponent.