Struct freya::prelude::ProgressBarProps
pub struct ProgressBarProps {
pub progress: f32,
/* private fields */
}
Expand description
ProgressBar
component properties.
Fields§
§progress: f32
Percentage of the progress bar.
Implementations§
§impl ProgressBarProps
impl ProgressBarProps
pub fn builder() -> ProgressBarPropsBuilder<((), (), (), ())>
pub fn builder() -> ProgressBarPropsBuilder<((), (), (), ())>
Create a builder for building ProgressBarProps
.
On the builder, call .show_progress(...)
(optional), .width(...)
(optional), .height(...)
(optional), .progress(...)
to set the values of the fields.
Finally, call .build()
to create the instance of ProgressBarProps
.
Trait Implementations§
§impl PartialEq<ProgressBarProps> for ProgressBarProps
impl PartialEq<ProgressBarProps> for ProgressBarProps
§fn eq(&self, other: &ProgressBarProps) -> bool
fn eq(&self, other: &ProgressBarProps) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Properties for ProgressBarProps
impl Properties for ProgressBarProps
§type Builder = ProgressBarPropsBuilder<((), (), (), ())>
type Builder = ProgressBarPropsBuilder<((), (), (), ())>
The type of the builder for this component.
Used to create “in-progress” versions of the props.
§fn builder() -> <ProgressBarProps as Properties>::Builder
fn builder() -> <ProgressBarProps as Properties>::Builder
Create a builder for this component.
§unsafe fn memoize(&self, other: &ProgressBarProps) -> bool
unsafe fn memoize(&self, other: &ProgressBarProps) -> bool
Memoization can only happen if the props are valid for the ’static lifetime Read more
impl StructuralPartialEq for ProgressBarProps
Auto Trait Implementations§
impl RefUnwindSafe for ProgressBarProps
impl Send for ProgressBarProps
impl Sync for ProgressBarProps
impl Unpin for ProgressBarProps
impl UnwindSafe for ProgressBarProps
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