pub struct Encoding<'a> {
encoding: &'a RawEncoding,
charstrings: &'a Charstrings,
}Expand description
Associates character codes with glyph names and ids.
Fields§
§encoding: &'a RawEncoding§charstrings: &'a CharstringsImplementations§
Source§impl<'a> Encoding<'a>
impl<'a> Encoding<'a>
Sourcepub fn predefined(&self) -> Option<PredefinedEncoding>
pub fn predefined(&self) -> Option<PredefinedEncoding>
Returns the predefined encoding, if any.
Sourcepub fn glyph_name(&self, code: u8) -> Option<&'a str>
pub fn glyph_name(&self, code: u8) -> Option<&'a str>
Returns the glyph name for the given character code.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Encoding<'a>
impl<'a> RefUnwindSafe for Encoding<'a>
impl<'a> Send for Encoding<'a>
impl<'a> Sync for Encoding<'a>
impl<'a> Unpin for Encoding<'a>
impl<'a> UnsafeUnpin for Encoding<'a>
impl<'a> UnwindSafe for Encoding<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more