pub struct OutputFormatter { /* private fields */ }Expand description
Output formatter for converting decoded frames.
Implementations§
Source§impl OutputFormatter
impl OutputFormatter
Sourcepub fn with_config(config: OutputConfig) -> Self
pub fn with_config(config: OutputConfig) -> Self
Create with configuration.
Sourcepub fn set_config(&mut self, config: OutputConfig)
pub fn set_config(&mut self, config: OutputConfig)
Set configuration.
Sourcepub fn config(&self) -> &OutputConfig
pub fn config(&self) -> &OutputConfig
Get current configuration.
Sourcepub fn format(&mut self, frame: &FrameBuffer) -> ReconstructResult<OutputBuffer>
pub fn format(&mut self, frame: &FrameBuffer) -> ReconstructResult<OutputBuffer>
Trait Implementations§
Source§impl Debug for OutputFormatter
impl Debug for OutputFormatter
Auto Trait Implementations§
impl Freeze for OutputFormatter
impl RefUnwindSafe for OutputFormatter
impl Send for OutputFormatter
impl Sync for OutputFormatter
impl Unpin for OutputFormatter
impl UnsafeUnpin for OutputFormatter
impl UnwindSafe for OutputFormatter
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