Struct libpna::WriteOption
source · pub struct WriteOption { /* private fields */ }Implementations§
source§impl WriteOption
impl WriteOption
sourcepub const fn store() -> Self
pub const fn store() -> Self
A new WriteOption to simply store.
Examples
use libpna::{EntryBuilder, WriteOption};
EntryBuilder::new_file("example.txt".try_into().unwrap(), WriteOption::store()).unwrap();sourcepub const fn builder() -> WriteOptionBuilder
pub const fn builder() -> WriteOptionBuilder
Returns a builder for WriteOption.
Returns
WriteOptionBuilder Builder object for WriteOption.
Examples
use libpna::WriteOption;
let builder = WriteOption::builder();sourcepub fn into_builder(self) -> WriteOptionBuilder
pub fn into_builder(self) -> WriteOptionBuilder
Converts WriteOption into a WriteOptionBuilder.
Returns
WriteOptionBuilder: Builder object for WriteOption.
Examples
use libpna::WriteOption;
let write_option = WriteOption::builder().build();
let builder = write_option.into_builder();Trait Implementations§
source§impl Clone for WriteOption
impl Clone for WriteOption
source§fn clone(&self) -> WriteOption
fn clone(&self) -> WriteOption
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for WriteOption
impl Debug for WriteOption
source§impl From<WriteOption> for WriteOptionBuilder
impl From<WriteOption> for WriteOptionBuilder
source§fn from(value: WriteOption) -> Self
fn from(value: WriteOption) -> Self
Converts to this type from the input type.
source§impl Hash for WriteOption
impl Hash for WriteOption
source§impl Ord for WriteOption
impl Ord for WriteOption
source§fn cmp(&self, other: &WriteOption) -> Ordering
fn cmp(&self, other: &WriteOption) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for WriteOption
impl PartialEq for WriteOption
source§fn eq(&self, other: &WriteOption) -> bool
fn eq(&self, other: &WriteOption) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for WriteOption
impl PartialOrd for WriteOption
source§fn partial_cmp(&self, other: &WriteOption) -> Option<Ordering>
fn partial_cmp(&self, other: &WriteOption) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for WriteOption
impl StructuralEq for WriteOption
impl StructuralPartialEq for WriteOption
Auto Trait Implementations§
impl RefUnwindSafe for WriteOption
impl Send for WriteOption
impl Sync for WriteOption
impl Unpin for WriteOption
impl UnwindSafe for WriteOption
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