[][src]Struct i3status_rs::formatting::value::Value

pub struct Value {
    unit: Unit,
    min_width: usize,
    icon: Option<String>,
    value: InternalValue,
}

Fields

unit: Unitmin_width: usizeicon: Option<String>value: InternalValue

Implementations

impl Value[src]

pub fn from_string(text: String) -> Self[src]

pub fn from_integer(value: i64) -> Self[src]

pub fn from_float(value: f64) -> Self[src]

pub fn icon(self, icon: String) -> Self[src]

pub fn bytes(self) -> Self[src]

pub fn bits(self) -> Self[src]

pub fn degrees(self) -> Self[src]

pub fn percents(self) -> Self[src]

pub fn seconds(self) -> Self[src]

pub fn watts(self) -> Self[src]

pub fn hertz(self) -> Self[src]

pub fn format(&self, var: &Placeholder) -> Result<String, Error>[src]

Trait Implementations

impl Clone for Value[src]

impl Debug for Value[src]

Auto Trait Implementations

impl RefUnwindSafe for Value[src]

impl Send for Value[src]

impl Sync for Value[src]

impl Unpin for Value[src]

impl UnwindSafe for Value[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.