pub struct Painter { /* private fields */ }Implementations§
Source§impl Painter
impl Painter
pub fn from_bitmap(bitmap: ImageBitmap) -> Self
pub fn intrinsic_size(&self) -> Size
pub fn bitmap(&self) -> &ImageBitmap
Trait Implementations§
Source§impl From<ImageBitmap> for Painter
impl From<ImageBitmap> for Painter
Source§fn from(value: ImageBitmap) -> Self
fn from(value: ImageBitmap) -> Self
Converts to this type from the input type.
impl Eq for Painter
impl StructuralPartialEq for Painter
Auto Trait Implementations§
impl Freeze for Painter
impl RefUnwindSafe for Painter
impl Send for Painter
impl Sync for Painter
impl Unpin for Painter
impl UnwindSafe for Painter
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.