[−][src]Struct i3status_rs::formatting::value::Value
Fields
unit: Unit
min_width: usize
icon: 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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,