pub struct WriteOptions { /* private fields */ }
Expand description
Options that can be passed to the writer to customize written output
Implementations§
Source§impl WriteOptions
impl WriteOptions
Sourcepub fn set_size_byte_count(len: usize) -> WriteOptions
pub fn set_size_byte_count(len: usize) -> WriteOptions
Specifies the byte length for the element’s “size”
This function generates WriteOptions
that will force the Element Data Size to be a specific number of bytes for the written tag.
§Panics
This method asserts that len
is within 1-8 (inclusive). Values outside this range will cause a panic.
Sourcepub fn is_unknown_sized_element() -> WriteOptions
pub fn is_unknown_sized_element() -> WriteOptions
Specifies that the element has an Unknown Data Size.
The WriteOptions
generated by this function allow you to start a tag that doesn’t have a known size. Useful for streaming, or when the data is expected to be too large to fit into memory. This should only be used with Master type tags.
Auto Trait Implementations§
impl Freeze for WriteOptions
impl RefUnwindSafe for WriteOptions
impl Send for WriteOptions
impl Sync for WriteOptions
impl Unpin for WriteOptions
impl UnwindSafe for WriteOptions
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