diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-01-15 16:53:02 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-01-15 16:53:02 +0100 |
| commit | d763f0f5a6a700352ee8926c15c8e58624f705c9 (patch) | |
| tree | d287edfdab9793a796404516c7313689e4e69964 /src/env.rs | |
| parent | 0f0416054f263b80ccec1a463ce4ab20913bdf71 (diff) | |
Split state and scopes, less ref-counting 🔀
Diffstat (limited to 'src/env.rs')
| -rw-r--r-- | src/env.rs | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -1,22 +1,17 @@ //! Environment interactions. use std::any::Any; -use std::cell::RefCell; use std::collections::{hash_map::Entry, HashMap}; use std::fmt::{self, Debug, Formatter}; use std::fs; use std::io::Cursor; use std::path::{Path, PathBuf}; -use std::rc::Rc; use image::io::Reader as ImageReader; use image::{DynamicImage, GenericImageView, ImageFormat}; use crate::font::FontLoader; -/// A reference-counted shared environment. -pub type SharedEnv = Rc<RefCell<Env>>; - /// Encapsulates all environment dependencies (fonts, resources). #[derive(Debug)] pub struct Env { |
