Struct write_fonts::tables::layout::ClassDefFormat2
source · pub struct ClassDefFormat2 {
pub class_range_records: Vec<ClassRangeRecord>,
}
Expand description
Fields§
§class_range_records: Vec<ClassRangeRecord>
Array of ClassRangeRecords — ordered by startGlyphID
Implementations§
source§impl ClassDefFormat2
impl ClassDefFormat2
sourcepub fn new(class_range_records: Vec<ClassRangeRecord>) -> Self
pub fn new(class_range_records: Vec<ClassRangeRecord>) -> Self
Construct a new ClassDefFormat2
Trait Implementations§
source§impl Clone for ClassDefFormat2
impl Clone for ClassDefFormat2
source§fn clone(&self) -> ClassDefFormat2
fn clone(&self) -> ClassDefFormat2
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 ClassDefFormat2
impl Debug for ClassDefFormat2
source§impl Default for ClassDefFormat2
impl Default for ClassDefFormat2
source§fn default() -> ClassDefFormat2
fn default() -> ClassDefFormat2
Returns the “default value” for a type. Read more
source§impl<'a> FontRead<'a> for ClassDefFormat2
impl<'a> FontRead<'a> for ClassDefFormat2
source§impl FontWrite for ClassDefFormat2
impl FontWrite for ClassDefFormat2
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.
source§impl Validate for ClassDefFormat2
impl Validate for ClassDefFormat2
source§fn validate_impl(&self, ctx: &mut ValidationCtx)
fn validate_impl(&self, ctx: &mut ValidationCtx)
Validate this table. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ClassDefFormat2
impl Send for ClassDefFormat2
impl Sync for ClassDefFormat2
impl Unpin for ClassDefFormat2
impl UnwindSafe for ClassDefFormat2
Blanket Implementations§
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.