pub struct Renderer<B>where
B: Toolkit,{
pub kind: &'static str,
pub make: fn(&mut B, &(dyn Any + 'static), NodeId) -> <B as Toolkit>::Handle,
pub update: fn(&mut B, &<B as Toolkit>::Handle, &(dyn Any + 'static)),
pub measure: Option<fn(&mut B, &<B as Toolkit>::Handle, Proposal) -> Size>,
}Expand description
A third-party piece’s per-toolkit implementation. make receives the concrete backend
(public helper surface) and returns a native handle the backend then owns like any built-in.
Fields§
§kind: &'static str§make: fn(&mut B, &(dyn Any + 'static), NodeId) -> <B as Toolkit>::Handle§update: fn(&mut B, &<B as Toolkit>::Handle, &(dyn Any + 'static))§measure: Option<fn(&mut B, &<B as Toolkit>::Handle, Proposal) -> Size>Auto Trait Implementations§
impl<B> Freeze for Renderer<B>
impl<B> RefUnwindSafe for Renderer<B>
impl<B> Send for Renderer<B>
impl<B> Sync for Renderer<B>
impl<B> Unpin for Renderer<B>
impl<B> UnsafeUnpin for Renderer<B>
impl<B> UnwindSafe for Renderer<B>
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