pub struct Hyperlink { /* private fields */ }
Expand description

A clickable hyperlink, e.g. to "https://github.com/emilk/egui".

See also Ui::hyperlink and Ui::hyperlink_to.

// These are equivalent:
ui.hyperlink("https://github.com/emilk/egui");
ui.add(egui::Hyperlink::new("https://github.com/emilk/egui"));

// These are equivalent:
ui.hyperlink_to("My favorite repo", "https://github.com/emilk/egui");
ui.add(egui::Hyperlink::from_label_and_url("My favorite repo", "https://github.com/emilk/egui"));

Implementations

Trait Implementations

Allocate space, interact, paint, and return a Response. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.