pub struct ProgressBarRangeInfo {
pub current: f32,
pub start: f32,
pub end: f32,
pub steps: u32,
}Expand description
Re-export the UI crate so applications can depend on a single crate. The value a control holds inside a range, for a slider, a dial or a progress bar.
This is Compose’s ProgressBarRangeInfo (Modifier.progressSemantics(value, range, steps)). A control without it reads as plain text: a screen reader
user hears “47 percent” and has no way to change it, because nothing tells
the platform the control is adjustable.
Fields§
§current: f32§start: f32§end: f32§steps: u32How many stops sit between start and end, as Compose counts them.
Zero means the value moves without stops.
Implementations§
Source§impl ProgressBarRangeInfo
impl ProgressBarRangeInfo
Trait Implementations§
Source§impl Clone for ProgressBarRangeInfo
impl Clone for ProgressBarRangeInfo
Source§fn clone(&self) -> ProgressBarRangeInfo
fn clone(&self) -> ProgressBarRangeInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ProgressBarRangeInfo
Source§impl Debug for ProgressBarRangeInfo
impl Debug for ProgressBarRangeInfo
Source§impl PartialEq for ProgressBarRangeInfo
impl PartialEq for ProgressBarRangeInfo
impl StructuralPartialEq for ProgressBarRangeInfo
Auto Trait Implementations§
impl Freeze for ProgressBarRangeInfo
impl RefUnwindSafe for ProgressBarRangeInfo
impl Send for ProgressBarRangeInfo
impl Sync for ProgressBarRangeInfo
impl Unpin for ProgressBarRangeInfo
impl UnsafeUnpin for ProgressBarRangeInfo
impl UnwindSafe for ProgressBarRangeInfo
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.