pub struct DevTools<P>where
P: Program,{ /* private fields */ }Expand description
The state of the devtools.
Implementations§
Source§impl<P> DevTools<P>
impl<P> DevTools<P>
pub fn new(state: P::State) -> (Self, Task<Message>)
pub fn title(&self, program: &P, window: Id) -> String
pub fn update(&mut self, program: &P, event: Event<P>) -> Task<Event<P>>
pub fn view( &self, program: &P, window: Id, ) -> Element<'_, Event<P>, P::Theme, P::Renderer>
pub fn subscription(&self, program: &P) -> Subscription<Event<P>>
pub fn theme(&self, program: &P, window: Id) -> Option<P::Theme>
pub fn style(&self, program: &P, theme: &P::Theme) -> Style
pub fn scale_factor(&self, program: &P, window: Id) -> f32
pub fn state(&self) -> &P::State
Auto Trait Implementations§
impl<P> Freeze for DevTools<P>
impl<P> RefUnwindSafe for DevTools<P>
impl<P> Send for DevTools<P>
impl<P> Sync for DevTools<P>
impl<P> Unpin for DevTools<P>
impl<P> UnwindSafe for DevTools<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