pub struct Canvas { /* private fields */ }Implementations§
Source§impl Canvas
impl Canvas
pub fn new( layout_style: LayoutStyle, draw_fn: impl Fn(Rect) -> RenderNode + 'static, ) -> Result<Self, LayoutError>
Source§impl Canvas
impl Canvas
pub fn with_intrinsic_height( height: f32, draw_fn: impl Fn(Rect) -> RenderNode + 'static, ) -> Result<Self, LayoutError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Canvas
impl !Send for Canvas
impl !Sync for Canvas
impl !UnwindSafe for Canvas
impl Freeze for Canvas
impl Unpin for Canvas
impl UnsafeUnpin for Canvas
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