pub struct CompressArgs {
pub endianness: Option<String>,
pub compression_window: usize,
pub min_interval_length: usize,
pub max_ref_count: isize,
pub outdegrees: PrivCode,
pub references: PrivCode,
pub blocks: PrivCode,
pub residuals: PrivCode,
pub bvgraphz: bool,
pub chunk_size: usize,
}Expand description
Shared CLI arguments for compression.
Fields§
§endianness: Option<String>The endianness of the graph to write [default: same as source].
compression_window: usizeThe compression window.
min_interval_length: usizeThe minimum interval length.
max_ref_count: isizeThe maximum recursion depth for references (-1 for infinite recursion depth).
outdegrees: PrivCodeThe code to use for outdegrees.
references: PrivCodeThe code to use for reference offsets.
blocks: PrivCodeThe code to use for blocks.
residuals: PrivCodeThe code to use for residuals.
bvgraphz: boolUse Zuckerli’s reference selection algorithm (slower, more memory, but better compression and decoding speed).
chunk_size: usizeNumber of nodes per chunk with –bvgraphz.
Implementations§
Source§impl CompressArgs
impl CompressArgs
Sourcepub fn bv_comp_conf(&self, dst: impl AsRef<Path>) -> BvCompConf
pub fn bv_comp_conf(&self, dst: impl AsRef<Path>) -> BvCompConf
Returns a BvCompConf writing a graph with basename dst using the
compression parameters specified by these arguments.
Sourcepub fn target_endianness<E: Endianness>(&self) -> String
pub fn target_endianness<E: Endianness>(&self) -> String
Returns the name of the endianness of the graph to write: the one
specified by these arguments, if any, or that of E.
Trait Implementations§
Source§impl Args for CompressArgs
impl Args for CompressArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for CompressArgs
impl Clone for CompressArgs
Source§impl Debug for CompressArgs
impl Debug for CompressArgs
Source§impl From<&CompressArgs> for CompFlags
impl From<&CompressArgs> for CompFlags
Source§fn from(value: &CompressArgs) -> Self
fn from(value: &CompressArgs) -> Self
Source§impl From<CompressArgs> for CompFlags
impl From<CompressArgs> for CompFlags
Source§fn from(value: CompressArgs) -> Self
fn from(value: CompressArgs) -> Self
Source§impl FromArgMatches for CompressArgs
impl FromArgMatches for CompressArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Auto Trait Implementations§
impl Freeze for CompressArgs
impl RefUnwindSafe for CompressArgs
impl Send for CompressArgs
impl Sync for CompressArgs
impl Unpin for CompressArgs
impl UnsafeUnpin for CompressArgs
impl UnwindSafe for CompressArgs
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> EitherFullOrEpsCopy<T> for Twhere
T: ?Sized,
impl<T> FullCopyConsistent<T> for Twhere
T: ?Sized,
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> ⓘ
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> ⓘ
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 more