pub struct DefaultTable {
pub tag: Tag,
pub data: Vec<u8>,
pub error: Option<String>,
}Expand description
A table kept as raw bytes (DefaultTable): used for tables fontoxide does not
implement, and for tables that failed to decompile when decompile errors are
ignored.
Fields§
§tag: TagThe table tag.
data: Vec<u8>The table data.
error: Option<String>The decompilation error, if this table replaces one that failed (ERROR).
Implementations§
Trait Implementations§
Source§impl Clone for DefaultTable
impl Clone for DefaultTable
Source§impl Debug for DefaultTable
impl Debug for DefaultTable
impl Eq for DefaultTable
Source§impl PartialEq for DefaultTable
impl PartialEq for DefaultTable
impl StructuralPartialEq for DefaultTable
Source§impl Table for DefaultTable
impl Table for DefaultTable
Source§fn remap_glyphs(&mut self, f: &mut dyn FnMut(u32) -> Result<u32>) -> Result<()>
fn remap_glyphs(&mut self, f: &mut dyn FnMut(u32) -> Result<u32>) -> Result<()>
Raw data is passed through unchanged.
Source§fn compile(&mut self, _font: &mut Font) -> Result<Vec<u8>>
fn compile(&mut self, _font: &mut Font) -> Result<Vec<u8>>
Compiles the table to binary (
compile).Source§fn clone_table(&self) -> Box<dyn Table>
fn clone_table(&self) -> Box<dyn Table>
A deep copy.
Source§fn is_raw(&self) -> bool
fn is_raw(&self) -> bool
Whether this is a plain
DefaultTable, which TTX marks as raw.Source§fn decompile_error(&self) -> Option<&str>
fn decompile_error(&self) -> Option<&str>
The error message, if decompilation failed and the table was kept as raw
data (
ERROR).Source§fn ensure_decompiled(&mut self)
fn ensure_decompiled(&mut self)
Expands whatever was left compact when reading (
ensureDecompiled).Source§impl TableXml for DefaultTable
impl TableXml for DefaultTable
Auto Trait Implementations§
impl Forget for DefaultTable
impl Freeze for DefaultTable
impl Move for DefaultTable
impl RefUnwindSafe for DefaultTable
impl Send for DefaultTablewhere
RawVecInner: Send,
impl Sync for DefaultTablewhere
RawVecInner: Sync,
impl Unpin for DefaultTable
impl UnsafeUnpin for DefaultTable
impl UnwindSafe for DefaultTablewhere
RawVecInner: UnwindSafe,
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.