Enum TooltipElement
pub enum TooltipElement {
Text(Text, u32),
Image(TooltipImage),
}Expand description
One element of an item’s tooltip as render_tooltip_gather_components
hands it over, before any wrapping
(Either<FormattedText, TooltipComponent>). Text deeper than 512 nodes
refuses tooltip conversion before any changed element is drawn.
Variants§
Text(Text, u32)
A line (FormattedText) with its colour as rgba packs it
(u32::MAX keeps the text’s own).
Image(TooltipImage)
An image component (TooltipComponent).
Trait Implementations§
§impl Clone for TooltipElement
impl Clone for TooltipElement
§fn clone(&self) -> TooltipElement
fn clone(&self) -> TooltipElement
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 more§impl PartialEq for TooltipElement
impl PartialEq for TooltipElement
impl StructuralPartialEq for TooltipElement
Auto Trait Implementations§
impl Freeze for TooltipElement
impl RefUnwindSafe for TooltipElement
impl Send for TooltipElement
impl Sync for TooltipElement
impl Unpin for TooltipElement
impl UnsafeUnpin for TooltipElement
impl UnwindSafe for TooltipElement
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