1
0
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:
Emil Ernerfeldt
2021-04-01 22:10:34 +02:00
parent d702e3078a
commit d7f9e2246c
7 changed files with 65 additions and 8 deletions

View File

@@ -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]
}