Enum RowLeading
pub enum RowLeading<'a> {
Avatar(AvatarFace<'a>),
Icon(Icon),
Badge(&'a str),
Thumbnail(&'a ImageData),
Media(MediaArt<'a>, MediaAspect),
Checkbox {
checked: bool,
},
Swatch(AlphaColor<Srgb>),
Paint(&'a dyn Fn(&mut PaintCtx<'_>, Rect)),
}Expand description
What sits in a row’s leading column.
Variants§
Avatar(AvatarFace<'a>)
A person or an account (AvatarFace::square() for an account or a
site).
Icon(Icon)
A kind of thing (a folder, a device, a setting).
Badge(&'a str)
A short code that classifies the row: an HTTP method, a file
extension, a log level. Set in Caption.strong() on a quiet pill.
Thumbnail(&'a ImageData)
A decoded picture, cover-fitted in a square tile (a document’s first page, a photo).
Media(MediaArt<'a>, MediaAspect)
Media art at its aspect (a video’s frame, an album cover); missing art shows the generated placeholder seeded with the title’s initials.
Checkbox
A selection checkbox (a multi-select list). Hit-test it with
ListRowFace::leading_rect.
Swatch(AlphaColor<Srgb>)
A colour that is the row’s content (a calendar’s colour, a label).
Paint(&'a dyn Fn(&mut PaintCtx<'_>, Rect))
A painter for a leading mark no other kind covers (a font sample, a waveform), given the leading slot.
Trait Implementations§
§impl<'a> Clone for RowLeading<'a>
impl<'a> Clone for RowLeading<'a>
§fn clone(&self) -> RowLeading<'a>
fn clone(&self) -> RowLeading<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for RowLeading<'_>
impl Debug for RowLeading<'_>
impl<'a> Copy for RowLeading<'a>
Auto Trait Implementations§
impl<'a> Freeze for RowLeading<'a>
impl<'a> !RefUnwindSafe for RowLeading<'a>
impl<'a> !Send for RowLeading<'a>
impl<'a> !Sync for RowLeading<'a>
impl<'a> Unpin for RowLeading<'a>
impl<'a> UnsafeUnpin for RowLeading<'a>
impl<'a> !UnwindSafe for RowLeading<'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> 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