mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -04:00
Add #[inline] to all builder-pattern functions (#3557)
Better performance and maybe code size
This commit is contained in:
@@ -112,6 +112,7 @@ impl RetainedImage {
|
||||
/// let image = RetainedImage::from_color_image("my_image", color_image)
|
||||
/// .with_options(TextureOptions::NEAREST);
|
||||
/// ```
|
||||
#[inline]
|
||||
pub fn with_options(mut self, options: TextureOptions) -> Self {
|
||||
self.options = options;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user