Struct StyleImageOptions
#[non_exhaustive]pub struct StyleImageOptions {
pub pixel_ratio: Option<f32>,
pub sdf: Option<bool>,
}Expand description
Options for adding or replacing a 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.pixel_ratio: Option<f32>§sdf: Option<bool>Implementations§
§impl StyleImageOptions
impl StyleImageOptions
pub fn new() -> StyleImageOptions
pub fn with_pixel_ratio(self, pixel_ratio: f32) -> StyleImageOptions
pub fn with_sdf(self, sdf: bool) -> StyleImageOptions
Trait Implementations§
§impl Clone for StyleImageOptions
impl Clone for StyleImageOptions
§fn clone(&self) -> StyleImageOptions
fn clone(&self) -> StyleImageOptions
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 StyleImageOptions
impl Debug for StyleImageOptions
§impl Default for StyleImageOptions
impl Default for StyleImageOptions
§fn default() -> StyleImageOptions
fn default() -> StyleImageOptions
Returns the “default value” for a type. Read more
§impl PartialEq for StyleImageOptions
impl PartialEq for StyleImageOptions
impl StructuralPartialEq for StyleImageOptions
Auto Trait Implementations§
impl Freeze for StyleImageOptions
impl RefUnwindSafe for StyleImageOptions
impl Send for StyleImageOptions
impl Sync for StyleImageOptions
impl Unpin for StyleImageOptions
impl UnsafeUnpin for StyleImageOptions
impl UnwindSafe for StyleImageOptions
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