Struct read_fonts::tables::postscript::StringId
source · 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)