Struct write_fonts::tables::name::NameRecord
source · pub struct NameRecord {
pub platform_id: u16,
pub encoding_id: u16,
pub language_id: u16,
pub name_id: NameId,
pub string: OffsetMarker<String>,
}Expand description
Fields§
§platform_id: u16Platform ID.
encoding_id: u16Platform-specific encoding ID.
language_id: u16Language ID.
name_id: NameIdName ID.
string: OffsetMarker<String>String offset from start of storage area (in bytes).
Implementations§
Trait Implementations§
source§impl Clone for NameRecord
impl Clone for NameRecord
source§fn clone(&self) -> NameRecord
fn clone(&self) -> NameRecord
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for NameRecord
impl Debug for NameRecord
source§impl Default for NameRecord
impl Default for NameRecord
source§fn default() -> NameRecord
fn default() -> NameRecord
Returns the “default value” for a type. Read more
source§impl FontWrite for NameRecord
impl FontWrite for NameRecord
source§fn write_into(&self, writer: &mut TableWriter)
fn write_into(&self, writer: &mut TableWriter)
Write our data and information about offsets into this TableWriter.
fn name(&self) -> &'static str
source§impl FromObjRef<NameRecord> for NameRecord
impl FromObjRef<NameRecord> for NameRecord
source§fn from_obj_ref(obj: &NameRecord, offset_data: FontData<'_>) -> Self
fn from_obj_ref(obj: &NameRecord, offset_data: FontData<'_>) -> Self
Convert
from to an instance of Self, using the provided data to resolve offsets.source§impl Ord for NameRecord
impl Ord for NameRecord
source§fn cmp(&self, other: &NameRecord) -> Ordering
fn cmp(&self, other: &NameRecord) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<NameRecord> for NameRecord
impl PartialEq<NameRecord> for NameRecord
source§fn eq(&self, other: &NameRecord) -> bool
fn eq(&self, other: &NameRecord) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<NameRecord> for NameRecord
impl PartialOrd<NameRecord> for NameRecord
source§fn partial_cmp(&self, other: &NameRecord) -> Option<Ordering>
fn partial_cmp(&self, other: &NameRecord) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Validate for NameRecord
impl Validate for NameRecord
source§fn validate_impl(&self, ctx: &mut ValidationCtx)
fn validate_impl(&self, ctx: &mut ValidationCtx)
Validate this table. Read more
impl Eq for NameRecord
impl StructuralEq for NameRecord
impl StructuralPartialEq for NameRecord
Auto Trait Implementations§
impl RefUnwindSafe for NameRecord
impl Send for NameRecord
impl Sync for NameRecord
impl Unpin for NameRecord
impl UnwindSafe for NameRecord
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<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere U: FromObjRef<T>,
source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.