Struct StyleImageInfo
#[non_exhaustive]pub struct StyleImageInfo {
pub width: u32,
pub height: u32,
pub stride: u32,
pub byte_length: usize,
pub pixel_ratio: f32,
pub sdf: bool,
}Expand description
Copied fixed metadata for one runtime style image.
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.width: u32§height: u32§stride: u32§byte_length: usize§pixel_ratio: f32§sdf: boolTrait Implementations§
§impl Clone for StyleImageInfo
impl Clone for StyleImageInfo
§fn clone(&self) -> StyleImageInfo
fn clone(&self) -> StyleImageInfo
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 StyleImageInfo
impl Debug for StyleImageInfo
§impl PartialEq for StyleImageInfo
impl PartialEq for StyleImageInfo
impl Copy for StyleImageInfo
impl StructuralPartialEq for StyleImageInfo
Auto Trait Implementations§
impl Freeze for StyleImageInfo
impl RefUnwindSafe for StyleImageInfo
impl Send for StyleImageInfo
impl Sync for StyleImageInfo
impl Unpin for StyleImageInfo
impl UnsafeUnpin for StyleImageInfo
impl UnwindSafe for StyleImageInfo
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