[][src]Struct i3status_rs::formatting::placeholder::Placeholder

pub struct Placeholder {
    pub name: String,
    pub min_width: Option<usize>,
    pub max_width: Option<usize>,
    pub pad_with: Option<char>,
    pub min_prefix: Option<Prefix>,
    pub unit: Option<Unit>,
    pub unit_hidden: bool,
    pub bar_max_value: Option<f64>,
}

Fields

name: Stringmin_width: Option<usize>max_width: Option<usize>pad_with: Option<char>min_prefix: Option<Prefix>unit: Option<Unit>unit_hidden: boolbar_max_value: Option<f64>

Trait Implementations

impl Clone for Placeholder[src]

impl Debug for Placeholder[src]

impl PartialEq<Placeholder> for Placeholder[src]

impl StructuralPartialEq for Placeholder[src]

impl TryInto<Placeholder> for &str[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Placeholder[src]

impl Send for Placeholder[src]

impl Sync for Placeholder[src]

impl Unpin for Placeholder[src]

impl UnwindSafe for Placeholder[src]

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.