pub struct 命令行<P: 命令行参数> {
pub 参数: P,
pub 输出目录: PathBuf,
}Expand description
通过命令行来使用 libchai 的入口,实现了界面特征
Fields§
§参数: P§输出目录: PathBufImplementations§
Source§impl<P: 命令行参数> 命令行<P>
impl<P: 命令行参数> 命令行<P>
pub fn 新建(args: P, maybe_output_dir: Option<PathBuf>) -> Self
pub fn 输出编码结果(&self, entries: Vec<码表项>) -> PathBuf
pub fn 输出指标<M: Display + Serialize>( &self, metric: &M, score: f64, ) -> PathBuf
pub fn 输出总结<O: 目标函数>( &self, results: &Vec<(usize, 优化结果<O>, Self)>, ) -> PathBuf
pub fn 输出配置文件(&self, 配置内容: &str) -> PathBuf
pub fn 生成子命令行(&self, index: usize) -> 命令行<P>
Trait Implementations§
Auto Trait Implementations§
impl<P> Freeze for 命令行<P>where
P: Freeze,
impl<P> RefUnwindSafe for 命令行<P>where
P: RefUnwindSafe,
impl<P> Send for 命令行<P>where
P: Send,
impl<P> Sync for 命令行<P>where
P: Sync,
impl<P> Unpin for 命令行<P>where
P: Unpin,
impl<P> UnsafeUnpin for 命令行<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for 命令行<P>where
P: UnwindSafe,
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