pub struct EncodedJpeg {
pub data: Vec<u8>,
pub backend: JpegBackend,
}Expand description
Encoded baseline JPEG bytes and the backend that produced them.
The retained codestream can approach the shared host-allocation cap, so this owner is intentionally move-only rather than exposing infallible full-payload cloning.
Fields§
§data: Vec<u8>Complete JPEG codestream.
backend: JpegBackendBackend used to encode the codestream.
Trait Implementations§
Source§impl Debug for EncodedJpeg
impl Debug for EncodedJpeg
impl Eq for EncodedJpeg
Source§impl PartialEq for EncodedJpeg
impl PartialEq for EncodedJpeg
impl StructuralPartialEq for EncodedJpeg
Auto Trait Implementations§
impl Freeze for EncodedJpeg
impl RefUnwindSafe for EncodedJpeg
impl Send for EncodedJpeg
impl Sync for EncodedJpeg
impl Unpin for EncodedJpeg
impl UnsafeUnpin for EncodedJpeg
impl UnwindSafe for EncodedJpeg
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