Struct sst::SstOptions
source · pub struct SstOptions { /* private fields */ }
Expand description
Options for working with Ssts.
Implementations§
source§impl SstOptions
impl SstOptions
sourcepub fn block(self, block: BlockBuilderOptions) -> Self
pub fn block(self, block: BlockBuilderOptions) -> Self
Set the block options.
sourcepub fn block_compression(self, block_compression: BlockCompression) -> Self
pub fn block_compression(self, block_compression: BlockCompression) -> Self
Set the block compression.
sourcepub fn target_block_size(self, target_block_size: u32) -> Self
pub fn target_block_size(self, target_block_size: u32) -> Self
Set the target block size.
sourcepub fn target_file_size(self, target_file_size: u32) -> Self
pub fn target_file_size(self, target_file_size: u32) -> Self
Set the target file size.
sourcepub fn minimum_file_size(self, minimum_file_size: u32) -> Self
pub fn minimum_file_size(self, minimum_file_size: u32) -> Self
Set the minimum file size.
Trait Implementations§
source§impl Clone for SstOptions
impl Clone for SstOptions
source§fn clone(&self) -> SstOptions
fn clone(&self) -> SstOptions
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 CommandLine for SstOptions
impl CommandLine for SstOptions
source§fn add_opts(&self, prefix: Option<&str>, opts: &mut Options)
fn add_opts(&self, prefix: Option<&str>, opts: &mut Options)
Add options to the getopts parser.
source§fn matches(&mut self, prefix: Option<&str>, matches: &Matches)
fn matches(&mut self, prefix: Option<&str>, matches: &Matches)
Assign values to self using the provided getopts matches.
source§fn canonical_command_line(&self, prefix: Option<&str>) -> Vec<String>
fn canonical_command_line(&self, prefix: Option<&str>) -> Vec<String>
Return the canonical command line for this CommandLine.
source§fn from_command_line(usage: &str) -> (Self, Vec<String>)
fn from_command_line(usage: &str) -> (Self, Vec<String>)
Parse from the command line. This function will panic if a non-canonical command line is
provided.
source§fn from_command_line_relaxed(usage: &str) -> (Self, Vec<String>)
fn from_command_line_relaxed(usage: &str) -> (Self, Vec<String>)
Parse from the command line. This function will allow a non-canonical command line to
execute.
source§fn from_arguments(usage: &str, args: &[&str]) -> (Self, Vec<String>)
fn from_arguments(usage: &str, args: &[&str]) -> (Self, Vec<String>)
Parse from the provided arguments. This function will panic if a non-canonical command
line is provided.
source§impl Debug for SstOptions
impl Debug for SstOptions
source§impl Default for SstOptions
impl Default for SstOptions
source§fn default() -> SstOptions
fn default() -> SstOptions
Returns the “default value” for a type. Read more
source§impl PartialEq for SstOptions
impl PartialEq for SstOptions
source§fn eq(&self, other: &SstOptions) -> bool
fn eq(&self, other: &SstOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SstOptions
impl StructuralPartialEq for SstOptions
Auto Trait Implementations§
impl RefUnwindSafe for SstOptions
impl Send for SstOptions
impl Sync for SstOptions
impl Unpin for SstOptions
impl UnwindSafe for SstOptions
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