Enum MultiProgressAlignment

pub enum MultiProgressAlignment

Vertical alignment of a multi progress.

The alignment controls how the multi progress is aligned if some of its progress bars get removed. E.g. Top alignment (default), when progress bar 2 is removed:

[0/100] progress bar 1        [0/100] progress bar 1
[0/100] progress bar 2   =>   [0/100] progress bar 3
[0/100] progress bar 3

Bottom alignment

[0/100] progress bar 1
[0/100] progress bar 2   =>   [0/100] progress bar 1
[0/100] progress bar 3        [0/100] progress bar 3

Variants

Top
Bottom

Trait Implementations

impl Clone for MultiProgressAlignment

fn clone(&self) -> MultiProgressAlignment

impl Copy for MultiProgressAlignment

impl Debug for MultiProgressAlignment

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Default for MultiProgressAlignment

fn default() -> MultiProgressAlignment

Auto Trait Implementations

impl Freeze for MultiProgressAlignment

impl RefUnwindSafe for MultiProgressAlignment

impl Send for MultiProgressAlignment

impl Sync for MultiProgressAlignment

impl Unpin for MultiProgressAlignment

impl UnsafeUnpin for MultiProgressAlignment

impl UnwindSafe for MultiProgressAlignment

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

impl<T> CloneToUninit for MultiProgressAlignment where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for MultiProgressAlignment

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for MultiProgressAlignment where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

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

fn into(self) -> U

Calls U::from(self).

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

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

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

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