pub struct StringId(/* private fields */);
Expand description
PostScript string identifier (SID).
Implementations§
Source§impl StringId
impl StringId
Sourcepub const fn to_u16(self) -> u16
pub const fn to_u16(self) -> u16
Returns the underlying identifier as a 16-bit unsigned integer.
Sourcepub fn standard_string(self) -> Result<Latin1String<'static>, usize>
pub fn standard_string(self) -> Result<Latin1String<'static>, usize>
Resolves the identifier as a standard string.
If the identifier represents a standard string, returns Ok(string)
,
otherwise returns Err(index)
with the index that should be used to
retrieve the string from the CFF string INDEX.
The standard string set is available in the section “Appendix A - Standard Strings” at https://adobe-type-tools.github.io/font-tech-notes/pdfs/5176.CFF.pdf.
Trait Implementations§
impl Copy for StringId
impl Eq for StringId
impl StructuralPartialEq for StringId
Auto Trait Implementations§
impl Freeze for StringId
impl RefUnwindSafe for StringId
impl Send for StringId
impl Sync for StringId
impl Unpin for StringId
impl UnwindSafe for StringId
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