-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Layer API improvements and fixups #121
Conversation
ae33375
to
e41d717
Compare
src/layer.rs
Outdated
@@ -350,7 +359,7 @@ impl Layer { | |||
} | |||
|
|||
/// Returns a reference the glyph with the given name, if it exists. | |||
pub fn get_glyph<K>(&self, glyph: &K) -> Option<&Arc<Glyph>> | |||
pub fn glyph<K>(&self, glyph: &K) -> Option<&Arc<Glyph>> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't get
be more appropriate? Layers are basically HashMaps with fixed types...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there are enough other things hanging of a layer that just 'get' would be unclear; it could be the layer's name, or it's path, or something from the lib...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then I actually advocate keeping "get_glyph" because it is clear. Otherwise, I'll bite my tongue now.
e41d717
to
0e73c3b
Compare
0e73c3b
to
c6b6e03
Compare
- Added LayerSet::new - Added Layer::rename_glyph - Fixed bug where get_glyph_mut used Arc::get_mut instead of Arc::make_mut - Renamed iter_contents & iter_contents_mut -> iter & iter_mut - Removed deprecated method A few other things along these lines
c6b6e03
to
8784ce1
Compare
A few other things along these lines
this is also split off from #114