pub struct NoopDispatcher;Expand description
No-op dispatcher (useful for tests where only generic box decoration is exercised).
Trait Implementations§
Source§impl PaintDispatcher for NoopDispatcher
impl PaintDispatcher for NoopDispatcher
Source§fn dispatch(
&self,
_canvas: &Canvas,
_payload: &(dyn Any + Send + Sync),
_css: &CssStyle,
_layout: &BoxLayout,
_frame: &PaintFrame,
)
fn dispatch( &self, _canvas: &Canvas, _payload: &(dyn Any + Send + Sync), _css: &CssStyle, _layout: &BoxLayout, _frame: &PaintFrame, )
Called for
BoxKind::Component(payload). Implementations downcast
payload to the concrete component type and paint into canvas.
The canvas is already translated to the content-box origin and
clipped if overflow: hidden.Auto Trait Implementations§
impl Freeze for NoopDispatcher
impl RefUnwindSafe for NoopDispatcher
impl Send for NoopDispatcher
impl Sync for NoopDispatcher
impl Unpin for NoopDispatcher
impl UnsafeUnpin for NoopDispatcher
impl UnwindSafe for NoopDispatcher
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more