pub struct ApplyState<'a, Element: Clone + 'static, Window: Clone> {
pub state: MiddlewareState<'a, Element, Window>,
pub available_width: f64,
pub available_height: f64,
}
Expand description
State passed to SizeOptions::apply
.
Fields§
§state: MiddlewareState<'a, Element, Window>
§available_width: f64
§available_height: f64
Trait Implementations§
Source§impl<'a, Element: Clone + Clone + 'static, Window: Clone + Clone> Clone for ApplyState<'a, Element, Window>
impl<'a, Element: Clone + Clone + 'static, Window: Clone + Clone> Clone for ApplyState<'a, Element, Window>
Source§fn clone(&self) -> ApplyState<'a, Element, Window>
fn clone(&self) -> ApplyState<'a, Element, Window>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<'a, Element, Window> Freeze for ApplyState<'a, Element, Window>
impl<'a, Element, Window> !RefUnwindSafe for ApplyState<'a, Element, Window>
impl<'a, Element, Window> !Send for ApplyState<'a, Element, Window>
impl<'a, Element, Window> !Sync for ApplyState<'a, Element, Window>
impl<'a, Element, Window> Unpin for ApplyState<'a, Element, Window>
impl<'a, Element, Window> !UnwindSafe for ApplyState<'a, Element, Window>
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