Struct ArrivalFace
pub struct ArrivalFace<'a> { /* private fields */ }Expand description
The placeholder steps of a read, painted in a rect: the immediate-mode
counterpart of ArrivingView, for a painter that draws its own rows.
Implementations§
§impl<'a> ArrivalFace<'a>
impl<'a> ArrivalFace<'a>
pub fn new(
shape: SkeletonShape,
clock: &'a ArrivalClock,
now: Instant,
) -> ArrivalFace<'a>
pub fn new( shape: SkeletonShape, clock: &'a ArrivalClock, now: Instant, ) -> ArrivalFace<'a>
What clock’s read shows at now, in shape.
pub fn at_step(
shape: SkeletonShape,
step: Step,
source: &'a Source,
) -> ArrivalFace<'a>
pub fn at_step( shape: SkeletonShape, step: Step, source: &'a Source, ) -> ArrivalFace<'a>
The face of step itself, for the placeholder an arrival fades out.
pub fn with_progress(self, progress: Option<Progress>) -> ArrivalFace<'a>
pub fn with_progress(self, progress: Option<Progress>) -> ArrivalFace<'a>
Say how much of the data has come, when what it waits on measures itself: from the skeleton on, a line says the amount, over a bar when the whole is known, under the skeleton.
pub fn naming(self, names: bool) -> ArrivalFace<'a>
pub fn naming(self, names: bool) -> ArrivalFace<'a>
Whether this placeholder says where its data comes from, once it would: a region names each source once.
pub fn named_once(self, region: &mut NamedOnce) -> ArrivalFace<'a>
pub fn named_once(self, region: &mut NamedOnce) -> ArrivalFace<'a>
Name the source here only if no placeholder before it in region
named it: one line per source per region.
pub fn height(&self, text: &mut TextRenderer, theme: &Theme, width: f64) -> f64
pub fn height(&self, text: &mut TextRenderer, theme: &Theme, width: f64) -> f64
The height the content will take at width: the space a painter
reserves for it.
pub fn caption(&self) -> Option<String>
pub fn caption(&self) -> Option<String>
What it says about where the data comes from, once it says it.
pub fn description(&self) -> String
pub fn description(&self) -> String
What it says, for a screen reader: where the data comes from and how much of it has come, or that it is loading.
pub fn paint(&self, ctx: &mut PaintCtx<'_>, rect: Rect)
pub fn paint(&self, ctx: &mut PaintCtx<'_>, rect: Rect)
Paint the step in rect: nothing on the ground; the skeleton, with a
line saying where the data comes from in a place the shape keeps for
it; under it how much has come, over its bar. A shape of nothing
(SkeletonShape::Ground) keeps its first line for the source
whenever the source has a name. All of it inside rect, so a step
never moves anything.
Trait Implementations§
§impl<'a> Clone for ArrivalFace<'a>
impl<'a> Clone for ArrivalFace<'a>
§fn clone(&self) -> ArrivalFace<'a>
fn clone(&self) -> ArrivalFace<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for ArrivalFace<'a>
impl<'a> RefUnwindSafe for ArrivalFace<'a>
impl<'a> Send for ArrivalFace<'a>
impl<'a> Sync for ArrivalFace<'a>
impl<'a> Unpin for ArrivalFace<'a>
impl<'a> UnsafeUnpin for ArrivalFace<'a>
impl<'a> UnwindSafe for ArrivalFace<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more