pub struct EncoderBuilder<'a> { /* private fields */ }
Expand description
Builds an Encoder
.
Implementations§
Source§impl<'a> EncoderBuilder<'a>
impl<'a> EncoderBuilder<'a>
Sourcepub fn new(destination: impl Into<Location>, settings: Settings) -> Self
pub fn new(destination: impl Into<Location>, settings: Settings) -> Self
Create an encoder with the specified destination and settings.
destination
- Where to encode to.settings
- Encoding settings.
Sourcepub fn with_options(self, options: &'a Options) -> Self
pub fn with_options(self, options: &'a Options) -> Self
Sourcepub fn with_format(self, format: &'a str) -> Self
pub fn with_format(self, format: &'a str) -> Self
Sourcepub fn interleaved(self) -> Self
pub fn interleaved(self) -> Self
Set interleaved. This will cause the encoder to use interleaved write instead of normal write.
Auto Trait Implementations§
impl<'a> Freeze for EncoderBuilder<'a>
impl<'a> RefUnwindSafe for EncoderBuilder<'a>
impl<'a> Send for EncoderBuilder<'a>
impl<'a> Sync for EncoderBuilder<'a>
impl<'a> Unpin for EncoderBuilder<'a>
impl<'a> UnwindSafe for EncoderBuilder<'a>
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