#[non_exhaustive]pub struct SpongeBuilder { /* private fields */ }Expand description
Builder for Sponge. All chain methods are #[must_use].
Implementations§
Source§impl SpongeBuilder
impl SpongeBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Construct a new builder defaulting to Target::Stdout, no-append,
128 MiB spill threshold, Default mode.
Sourcepub fn append(self, append: bool) -> Self
pub fn append(self, append: bool) -> Self
Enable -a append mode. Reads existing file contents into the buffer
before stdin. Requires Target::File; otherwise build() returns
Error::InvalidBuilderConfiguration.
Sourcepub fn spill_threshold(self, bytes: usize) -> Self
pub fn spill_threshold(self, bytes: usize) -> Self
Set the spill threshold in bytes.
Sourcepub fn compat(self, compat: CompatibilityMode) -> Self
pub fn compat(self, compat: CompatibilityMode) -> Self
Set the compatibility mode.
Trait Implementations§
Source§impl Clone for SpongeBuilder
impl Clone for SpongeBuilder
Source§fn clone(&self) -> SpongeBuilder
fn clone(&self) -> SpongeBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SpongeBuilder
impl Debug for SpongeBuilder
Auto Trait Implementations§
impl Freeze for SpongeBuilder
impl RefUnwindSafe for SpongeBuilder
impl Send for SpongeBuilder
impl Sync for SpongeBuilder
impl Unpin for SpongeBuilder
impl UnsafeUnpin for SpongeBuilder
impl UnwindSafe for SpongeBuilder
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