pub struct CanvasProps {
pub layout: LayoutStyle,
pub cache_policy: CanvasCachePolicy,
}Expand description
A declarative leaf canvas element.
Paint handlers are registered via element-local state (not props) so the element tree can
remain Clone + Debug (see ADR 0141).
Fields§
§layout: LayoutStyle§cache_policy: CanvasCachePolicyTrait Implementations§
Source§impl Clone for CanvasProps
impl Clone for CanvasProps
Source§fn clone(&self) -> CanvasProps
fn clone(&self) -> CanvasProps
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 moreSource§impl Debug for CanvasProps
impl Debug for CanvasProps
Source§impl Default for CanvasProps
impl Default for CanvasProps
impl Copy for CanvasProps
Auto Trait Implementations§
impl Freeze for CanvasProps
impl RefUnwindSafe for CanvasProps
impl Send for CanvasProps
impl Sync for CanvasProps
impl Unpin for CanvasProps
impl UnsafeUnpin for CanvasProps
impl UnwindSafe for CanvasProps
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