//! Progress builder struct -- a horizontal progress bar.
/// A progress bar: `h-2 rounded-full bg-primary/20`.
#[must_use]pubstructProgress{pub(crate)value:f32,
}implProgress{/// Creates a new progress bar. `value` is clamped to 0.0..=1.0.
pubfnnew(value:f32)->Self{Self{
value: value.clamp(0.0,1.0),}}pubfnshow(self, ui:&mutegui::Ui)->egui::Response{
ui.add(self)}}