Skip to main content

NameCache

Struct NameCache 

Source
pub struct NameCache {
Show 32 fields pub n_def: NameId, pub n_true: NameId, pub n_false: NameId, pub n_null: NameId, pub n_mark: NameId, pub n_font_name: NameId, pub n_font_type: NameId, pub n_font_matrix: NameId, pub n_font_bbox: NameId, pub n_encoding: NameId, pub n_char_strings: NameId, pub n_private: NameId, pub n_fid: NameId, pub n_paint_type: NameId, pub n_subrs: NameId, pub n_len_iv: NameId, pub n_notdef: NameId, pub n_metrics: NameId, pub n_font_directory: NameId, pub n_find_resource: NameId, pub n_define_resource: NameId, pub n_undef_resource: NameId, pub n_resource_status: NameId, pub n_resource_for_all: NameId, pub n_category: NameId, pub n_instance_type: NameId, pub n_resource_dir: NameId, pub n_resource_ext: NameId, pub n_build_char: NameId, pub n_build_glyph: NameId, pub n_stroke_width: NameId, pub n_wmode: NameId,
}
Expand description

Pre-interned NameIds for frequently-used names in hot paths.

Fields§

§n_def: NameId§n_true: NameId§n_false: NameId§n_null: NameId§n_mark: NameId§n_font_name: NameId§n_font_type: NameId§n_font_matrix: NameId§n_font_bbox: NameId§n_encoding: NameId§n_char_strings: NameId§n_private: NameId§n_fid: NameId§n_paint_type: NameId§n_subrs: NameId§n_len_iv: NameId§n_notdef: NameId§n_metrics: NameId§n_font_directory: NameId§n_find_resource: NameId§n_define_resource: NameId§n_undef_resource: NameId§n_resource_status: NameId§n_resource_for_all: NameId§n_category: NameId§n_instance_type: NameId§n_resource_dir: NameId§n_resource_ext: NameId§n_build_char: NameId§n_build_glyph: NameId§n_stroke_width: NameId§n_wmode: NameId

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where 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 T
where 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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, S> SimdFrom<T, S> for T
where S: Simd,

Source§

fn simd_from(_simd: S, value: T) -> T

Source§

impl<F, T, S> SimdInto<T, S> for F
where T: SimdFrom<F, S>, S: Simd,

Source§

fn simd_into(self, simd: S) -> T

Source§

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

Source§

type Error = !

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 T
where U: TryFrom<T>,

Source§

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.