Struct lay_rs::renderer::skia_image::SkiaImageRenderer
source · pub struct SkiaImageRenderer {
pub surface: Surface,
pub filename: String,
pub image_format: EncodedImageFormat,
}
Expand description
A scene renderer that renders to an image file. Image encoding is currently hard-coded to PNG.
Fields§
§surface: Surface
§filename: String
§image_format: EncodedImageFormat
Implementations§
Trait Implementations§
source§impl DrawScene for SkiaImageRenderer
impl DrawScene for SkiaImageRenderer
Auto Trait Implementations§
impl Freeze for SkiaImageRenderer
impl RefUnwindSafe for SkiaImageRenderer
impl !Send for SkiaImageRenderer
impl !Sync for SkiaImageRenderer
impl Unpin for SkiaImageRenderer
impl UnwindSafe for SkiaImageRenderer
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