pub struct SaveOptionsBuilder { /* private fields */ }Expand description
Builder for SaveOptions
Implementations§
Source§impl SaveOptionsBuilder
impl SaveOptionsBuilder
Sourcepub fn use_object_streams(self, value: bool) -> Self
pub fn use_object_streams(self, value: bool) -> Self
Enable or disable object streams
Sourcepub fn use_xref_streams(self, value: bool) -> Self
pub fn use_xref_streams(self, value: bool) -> Self
Enable or disable cross-reference streams
Sourcepub fn max_objects_per_stream(self, value: usize) -> Self
pub fn max_objects_per_stream(self, value: usize) -> Self
Set maximum objects per stream
Sourcepub fn compression_level(self, value: u32) -> Self
pub fn compression_level(self, value: u32) -> Self
Set compression level (0-9)
Sourcepub fn build(self) -> SaveOptions
pub fn build(self) -> SaveOptions
Build the SaveOptions
Trait Implementations§
Source§impl Default for SaveOptionsBuilder
impl Default for SaveOptionsBuilder
Source§fn default() -> SaveOptionsBuilder
fn default() -> SaveOptionsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SaveOptionsBuilder
impl RefUnwindSafe for SaveOptionsBuilder
impl Send for SaveOptionsBuilder
impl Sync for SaveOptionsBuilder
impl Unpin for SaveOptionsBuilder
impl UnsafeUnpin for SaveOptionsBuilder
impl UnwindSafe for SaveOptionsBuilder
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().