Struct i3status_rs::formatting::value::Value
source · pub struct Value {
pub inner: ValueInner,
pub metadata: Metadata,
}
Fields§
§inner: ValueInner
§metadata: Metadata
Implementations§
source§impl Value
impl Value
Constructors
pub fn new(val: ValueInner) -> Self
pub fn flag() -> Self
pub fn datetime(datetime: DateTime<Utc>, tz: Option<Tz>) -> Self
pub fn icon<S>(name: S) -> Self
pub fn icon_progression<S>(name: S, value: f64) -> Self
pub fn icon_progression_bound<S>( name: S, value: f64, low: f64, high: f64 ) -> Self
pub fn text(text: String) -> Self
pub fn number_unit(val: impl IntoF64, unit: Unit) -> Self
pub fn bytes(val: impl IntoF64) -> Self
pub fn bits(val: impl IntoF64) -> Self
pub fn percents(val: impl IntoF64) -> Self
pub fn degrees(val: impl IntoF64) -> Self
pub fn seconds(val: impl IntoF64) -> Self
pub fn watts(val: impl IntoF64) -> Self
pub fn hertz(val: impl IntoF64) -> Self
pub fn number(val: impl IntoF64) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more