Struct StyleImage
#[non_exhaustive]pub struct StyleImage {
pub image: PremultipliedRgba8Image,
pub pixel_ratio: f32,
pub sdf: bool,
}Expand description
Copied runtime style image pixels with style-specific metadata.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.image: PremultipliedRgba8Image§pixel_ratio: f32§sdf: boolImplementations§
§impl StyleImage
impl StyleImage
pub fn new( image: PremultipliedRgba8Image, pixel_ratio: f32, sdf: bool, ) -> StyleImage
Trait Implementations§
§impl Clone for StyleImage
impl Clone for StyleImage
§fn clone(&self) -> StyleImage
fn clone(&self) -> StyleImage
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 more§impl Debug for StyleImage
impl Debug for StyleImage
§impl PartialEq for StyleImage
impl PartialEq for StyleImage
impl StructuralPartialEq for StyleImage
Auto Trait Implementations§
impl Freeze for StyleImage
impl RefUnwindSafe for StyleImage
impl Send for StyleImage
impl Sync for StyleImage
impl Unpin for StyleImage
impl UnsafeUnpin for StyleImage
impl UnwindSafe for StyleImage
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