[−][src]Struct finalfrontier::io::TrainInfo
Meta information about training.
Methods
impl TrainInfo
[src]
pub fn new(corpus: String, output: String, n_threads: usize) -> Self
[src]
Construct new TrainInfo.
Constructs TrainInfo with start_datetime
set to the current datetime. end_datetime
is
set to None
and can be set through TrainInfo::set_end
.
pub fn corpus(&self) -> &str
[src]
Get the corpus path.
pub fn output(&self) -> &str
[src]
Get the output file.
pub fn n_threads(&self) -> usize
[src]
Get the number of threads.
pub fn start_datetime(&self) -> &str
[src]
Get the start datetime.
pub fn end_datetime(&self) -> Option<&str>
[src]
Get the end datetime.
pub fn set_end(&mut self)
[src]
Set the end datetime to current datetime.
Trait Implementations
Auto Trait Implementations
impl Send for TrainInfo
impl Sync for TrainInfo
impl Unpin for TrainInfo
impl UnwindSafe for TrainInfo
impl RefUnwindSafe for TrainInfo
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,