mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 22:30:03 -04:00
Add a bunch on inline annotations
This commit is contained in:
@@ -359,6 +359,7 @@ impl Fonts {
|
||||
impl std::ops::Index<TextStyle> for Fonts {
|
||||
type Output = Font;
|
||||
|
||||
#[inline(always)]
|
||||
fn index(&self, text_style: TextStyle) -> &Font {
|
||||
&self.fonts[&text_style]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user