write_fonts/generated/
generated_cvar.rs1#[allow(unused_imports)]
6use crate::codegen_prelude::*;
7
8#[derive(Clone, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
10#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
11pub struct Cvar {
12 pub tuple_variation_headers: CvarVariationData,
14}
15
16impl FontWrite for Cvar {
17 #[allow(clippy::unnecessary_cast)]
18 fn write_into(&self, writer: &mut TableWriter) {
19 (MajorMinor::VERSION_1_0 as MajorMinor).write_into(writer);
20 self.tuple_variation_headers.write_into(writer);
21 }
22 fn table_type(&self) -> TableType {
23 TableType::TopLevel(Cvar::TAG)
24 }
25}
26
27impl Validate for Cvar {
28 fn validate_impl(&self, ctx: &mut ValidationCtx) {
29 ctx.in_table("Cvar", |ctx| {
30 ctx.in_field("tuple_variation_headers", |ctx| {
31 self.tuple_variation_headers.validate_impl(ctx);
32 });
33 })
34 }
35}
36
37impl TopLevelTable for Cvar {
38 const TAG: Tag = Tag::new(b"cvar");
39}