pub struct 数据参数 {
pub config: Option<PathBuf>,
pub encodables: Option<PathBuf>,
pub key_distribution: Option<PathBuf>,
pub pair_equivalence: Option<PathBuf>,
}Expand description
编码和优化共用的数据参数
Fields§
§config: Option<PathBuf>方案文件,默认为 config.yaml
encodables: Option<PathBuf>频率序列表,默认为 elements.txt
key_distribution: Option<PathBuf>单键用指分布表,默认为 assets 目录下的 distribution.txt
pair_equivalence: Option<PathBuf>双键速度当量表,默认为 assets 目录下的 equivalence.txt
Trait Implementations§
Source§impl Args for 数据参数
impl Args for 数据参数
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
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for 数据参数
impl CommandFactory for 数据参数
Source§impl FromArgMatches for 数据参数
impl FromArgMatches for 数据参数
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>
Assign values from
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>
Assign values from
ArgMatches to self.Source§impl Parser for 数据参数
impl Parser for 数据参数
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for 数据参数
impl RefUnwindSafe for 数据参数
impl Send for 数据参数
impl Sync for 数据参数
impl Unpin for 数据参数
impl UnsafeUnpin for 数据参数
impl UnwindSafe for 数据参数
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