Struct html5_picture::core::State[][src]

pub struct State {
    pub config: Config,
    pub file_names_to_convert: Vec<PathBuf>,
    pub current_step: usize,
    pub max_progress_steps: usize,
}

Contains the application state and config.

Fields

config: Configfile_names_to_convert: Vec<PathBuf>current_step: usizemax_progress_steps: usize

Implementations

impl State[src]

pub fn new(config: Config, max_progress_steps: usize) -> Self[src]

Creates a new instance of the application state.

pub fn dequeue(
    &mut self,
    queue: &mut Queue<fn(_: &mut State)>
) -> Option<fn(_: &mut State)>
[src]

Small wrapper around the original dequeue function that automatically calculates the current application step.

pub fn get_prefix(&self) -> String[src]

Returns the prefix that is used in the ProgressBars.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.