pub struct RustBackend;Expand description
Pure Rust backend using the image crate ecosystem.
See the module docs for the crate-to-operation mapping.
Implementations§
Source§impl RustBackend
impl RustBackend
Trait Implementations§
Source§impl Default for RustBackend
impl Default for RustBackend
Source§impl ImageBackend for RustBackend
impl ImageBackend for RustBackend
Source§fn identify(&self, path: &Path) -> Result<Dimensions, BackendError>
fn identify(&self, path: &Path) -> Result<Dimensions, BackendError>
Get image dimensions.
Source§fn read_metadata(&self, path: &Path) -> Result<ImageMetadata, BackendError>
fn read_metadata(&self, path: &Path) -> Result<ImageMetadata, BackendError>
Read embedded IPTC/EXIF metadata (title, description).
Source§fn resize(&self, params: &ResizeParams) -> Result<(), BackendError>
fn resize(&self, params: &ResizeParams) -> Result<(), BackendError>
Execute a resize operation.
Source§fn thumbnail(&self, params: &ThumbnailParams) -> Result<(), BackendError>
fn thumbnail(&self, params: &ThumbnailParams) -> Result<(), BackendError>
Execute a thumbnail operation (resize + center crop).
Auto Trait Implementations§
impl Freeze for RustBackend
impl RefUnwindSafe for RustBackend
impl Send for RustBackend
impl Sync for RustBackend
impl Unpin for RustBackend
impl UnsafeUnpin for RustBackend
impl UnwindSafe for RustBackend
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> 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