Struct bardecoder::DecoderBuilder
source · pub struct DecoderBuilder<IMG, PREPD, RESULT> { /* private fields */ }
Expand description
Builder struct to create a Decoder
Required elements are:
- Prepare
- Detect
- Extract
- Decode
Implementations§
source§impl<IMG, PREPD, RESULT> DecoderBuilder<IMG, PREPD, RESULT>
impl<IMG, PREPD, RESULT> DecoderBuilder<IMG, PREPD, RESULT>
sourcepub fn new() -> DecoderBuilder<IMG, PREPD, RESULT>
pub fn new() -> DecoderBuilder<IMG, PREPD, RESULT>
Constructor; all fields initialized as None
sourcepub fn prepare(
&mut self,
prepare: Box<dyn Prepare<IMG, PREPD>>
) -> &mut DecoderBuilder<IMG, PREPD, RESULT>
pub fn prepare( &mut self, prepare: Box<dyn Prepare<IMG, PREPD>> ) -> &mut DecoderBuilder<IMG, PREPD, RESULT>
Set the prepare implementation for this Decoder
sourcepub fn detect(
&mut self,
detect: Box<dyn Detect<PREPD>>
) -> &mut DecoderBuilder<IMG, PREPD, RESULT>
pub fn detect( &mut self, detect: Box<dyn Detect<PREPD>> ) -> &mut DecoderBuilder<IMG, PREPD, RESULT>
Set the detect implementation for this Decoder
Auto Trait Implementations§
impl<IMG, PREPD, RESULT> !RefUnwindSafe for DecoderBuilder<IMG, PREPD, RESULT>
impl<IMG, PREPD, RESULT> !Send for DecoderBuilder<IMG, PREPD, RESULT>
impl<IMG, PREPD, RESULT> !Sync for DecoderBuilder<IMG, PREPD, RESULT>
impl<IMG, PREPD, RESULT> Unpin for DecoderBuilder<IMG, PREPD, RESULT>
impl<IMG, PREPD, RESULT> !UnwindSafe for DecoderBuilder<IMG, PREPD, RESULT>
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