Struct 命令行

Source
pub struct 命令行 {
    pub 参数: 命令行参数,
    pub 输出目录: PathBuf,
}
Expand description

通过命令行来使用 libchai 的入口,实现了界面特征

Fields§

§参数: 命令行参数§输出目录: PathBuf

Implementations§

Source§

impl 命令行

Source

pub fn 新建(args: 命令行参数, maybe_output_dir: Option<PathBuf>) -> Self

Source

pub fn 读取(name: &str) -> 数据

Source

pub fn 准备数据(&self) -> 数据

Source

pub fn 输出编码结果(&self, entries: Vec<码表项>)

Source

pub fn 输出评测指标<M: Display + Serialize>(&self, metric: M)

Source

pub fn 生成子命令行(&self, index: usize) -> 命令行

Trait Implementations§

Source§

impl 界面 for 命令行

Source§

fn 发送(&self, message: 消息)

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V