pub struct Instance<P>{ /* private fields */ }
Implementations§
Source§impl<P> Instance<P>
impl<P> Instance<P>
pub fn new( renderer: Rc<Renderer<P>>, parent: Option<Rc<Instance<P>>>, element: Element<P>, container: P::ContainerID, ) -> Instance<P>
pub fn renderer(&self) -> &Rc<Renderer<P>>
pub fn container(&self) -> P::ContainerID
pub fn context(&self) -> &ContextTree
pub fn topology(&self) -> Ref<'_, Topology<P>>
pub fn topology_mut(&self) -> RefMut<'_, Topology<P>>
pub fn memory(&self) -> Ref<'_, Memory>
pub fn memory_mut(&self) -> RefMut<'_, Memory>
Auto Trait Implementations§
impl<P> !Freeze for Instance<P>
impl<P> !RefUnwindSafe for Instance<P>
impl<P> !Send for Instance<P>
impl<P> !Sync for Instance<P>
impl<P> Unpin for Instance<P>
impl<P> !UnwindSafe for Instance<P>
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