Struct tfm::format::RawFile

source ·
pub struct RawFile<'a> {
Show 14 fields pub sub_file_sizes: SubFileSizes, pub raw_sub_file_sizes: &'a [u8], pub header: &'a [u8], pub begin_char: Char, pub end_char: Char, pub char_infos: &'a [u8], pub widths: &'a [u8], pub heights: &'a [u8], pub depths: &'a [u8], pub italic_corrections: &'a [u8], pub lig_kern_instructions: &'a [u8], pub kerns: &'a [u8], pub extensible_recipes: &'a [u8], pub params: &'a [u8],
}
Expand description

Raw .tfm file.

Fields§

§sub_file_sizes: SubFileSizes§raw_sub_file_sizes: &'a [u8]§header: &'a [u8]§begin_char: Char§end_char: Char§char_infos: &'a [u8]§widths: &'a [u8]§heights: &'a [u8]§depths: &'a [u8]§italic_corrections: &'a [u8]§lig_kern_instructions: &'a [u8]§kerns: &'a [u8]§extensible_recipes: &'a [u8]§params: &'a [u8]

Implementations§

source§

impl<'a> RawFile<'a>

source

pub fn from_debug_output( s: &str, keep_sub_file_sizes: bool ) -> Result<Vec<u8>, (String, usize)>

source

pub fn deserialize( b: &'a [u8] ) -> (Result<Self, DeserializationError>, Vec<DeserializationWarning>)

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for RawFile<'a>

§

impl<'a> Send for RawFile<'a>

§

impl<'a> Sync for RawFile<'a>

§

impl<'a> Unpin for RawFile<'a>

§

impl<'a> UnwindSafe for RawFile<'a>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.