pub struct ImageStretch {
pub from: f32,
pub to: f32,
}Expand description
A range of image pixels, from from to to, that stretches to fit text.
See mln_image_stretch in the
C API reference.
Fields§
§from: f32§to: f32Implementations§
Trait Implementations§
Source§impl Clone for ImageStretch
impl Clone for ImageStretch
Source§fn clone(&self) -> ImageStretch
fn clone(&self) -> ImageStretch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ImageStretch
Source§impl Debug for ImageStretch
impl Debug for ImageStretch
Source§impl Default for ImageStretch
impl Default for ImageStretch
Source§fn default() -> ImageStretch
fn default() -> ImageStretch
Returns the “default value” for a type. Read more
Source§impl PartialEq for ImageStretch
impl PartialEq for ImageStretch
impl StructuralPartialEq for ImageStretch
Auto Trait Implementations§
impl Freeze for ImageStretch
impl RefUnwindSafe for ImageStretch
impl Send for ImageStretch
impl Sync for ImageStretch
impl Unpin for ImageStretch
impl UnsafeUnpin for ImageStretch
impl UnwindSafe for ImageStretch
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more