pub struct MeshImage { /* private fields */ }Expand description
A single-level linear-premultiplied image produced by MeshGradient::rasterize.
Trait Implementations§
Source§impl ImagePixels for MeshImage
impl ImagePixels for MeshImage
Source§fn level_count(&self) -> usize
fn level_count(&self) -> usize
Number of immutable mip levels.
Source§fn texel(&self, _level: usize, column: usize, row: usize) -> [f32; 4]
fn texel(&self, _level: usize, column: usize, row: usize) -> [f32; 4]
One in-bounds finite linear-premultiplied texel.
Source§fn content_eq(&self, other: &dyn ImagePixels) -> bool
fn content_eq(&self, other: &dyn ImagePixels) -> bool
Whether another implementation owns the same immutable pixel content.
impl StructuralPartialEq for MeshImage
Auto Trait Implementations§
impl Forget for MeshImage
impl Freeze for MeshImage
impl Move for MeshImage
impl RefUnwindSafe for MeshImage
impl Send for MeshImage
impl Sync for MeshImage
impl Unpin for MeshImage
impl UnsafeUnpin for MeshImage
impl UnwindSafe for MeshImage
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