pub struct EncodeResult { /* private fields */ }Expand description
Result of an encode operation. Holds encoded data and metrics.
After encode(), data() returns the JXL bytes. After encode_into()
or encode_to(), data() returns None (data already delivered).
Use take_data() to move the vec out without cloning.
Implementations§
Trait Implementations§
Source§impl Clone for EncodeResult
impl Clone for EncodeResult
Source§fn clone(&self) -> EncodeResult
fn clone(&self) -> EncodeResult
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 moreAuto Trait Implementations§
impl Freeze for EncodeResult
impl RefUnwindSafe for EncodeResult
impl Send for EncodeResult
impl Sync for EncodeResult
impl Unpin for EncodeResult
impl UnwindSafe for EncodeResult
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