Trait cushy::widgets::progress::ProgressValue
source · pub trait ProgressValue: 'static {
type Value;
// Required method
fn to_progress(
&self,
range: Option<RangeInclusive<&Self::Value>>,
) -> Progress;
}
Expand description
A value that can be used in a progress indicator.
Required Associated Types§
Required Methods§
sourcefn to_progress(&self, range: Option<RangeInclusive<&Self::Value>>) -> Progress
fn to_progress(&self, range: Option<RangeInclusive<&Self::Value>>) -> Progress
Converts this value to a progress using the range given, if provided. If no range is provided, the full range of the type should be considered.