pub struct Tag(/* private fields */);
Expand description
Four byte integers, each byte representing a character.
Tags are used to identify tables, design-variation axes, scripts, languages, font features, and baselines with human-readable names.
Implementations§
Source§impl Tag
impl Tag
Sourcepub fn new(tag: impl Borrow<[u8; 4]>) -> Self
pub fn new(tag: impl Borrow<[u8; 4]>) -> Self
Constructs a new tag from bytes.
§Example
let mut subset = SubsetInput::new()?;
// Remove character-to-glyph mapping data. This can be useful in PDF files where
// the mapping and positioning has already been done.
subset.drop_table_tag_set().insert(Tag::new(b"cmap"));
Trait Implementations§
impl Copy for Tag
Auto Trait Implementations§
impl Freeze for Tag
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin for Tag
impl UnwindSafe for Tag
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