pub struct DecoderWorkspace { /* private fields */ }Expand description
Lifetime-free allocation owner that can be moved between borrowing decoder contexts.
Parsed packet and tile graphs remain in DecoderContext and are always
released before this value is recovered. Decoded component, Tier-1, and
IDWT allocations are retained for reuse with unrelated encoded inputs.
Implementations§
Source§impl DecoderWorkspace
impl DecoderWorkspace
Sourcepub const fn stats(&self) -> DecoderWorkspaceStats
pub const fn stats(&self) -> DecoderWorkspaceStats
Return reuse counters and retained allocation sizes.
Trait Implementations§
Source§impl Default for DecoderWorkspace
impl Default for DecoderWorkspace
Source§fn default() -> DecoderWorkspace
fn default() -> DecoderWorkspace
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DecoderWorkspace
impl RefUnwindSafe for DecoderWorkspace
impl Send for DecoderWorkspace
impl Sync for DecoderWorkspace
impl Unpin for DecoderWorkspace
impl UnsafeUnpin for DecoderWorkspace
impl UnwindSafe for DecoderWorkspace
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