WriteBinary

Trait WriteBinary 

Source
pub trait WriteBinary<HostType = Self> {
    type Output;

    // Required method
    fn write<C: WriteContext>(
        ctxt: &mut C,
        val: HostType,
    ) -> Result<Self::Output, WriteError>;
}
Expand description

Trait that describes a type that can be written to a WriteContext in binary form.

Required Associated Types§

Source

type Output

The type of the value returned by write.

Required Methods§

Source

fn write<C: WriteContext>( ctxt: &mut C, val: HostType, ) -> Result<Self::Output, WriteError>

Write the binary representation of Self to ctxt.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl WriteBinary for Operator

Source§

impl WriteBinary for allsorts_subset_browser::tables::cmap::owned::CmapSubtable

Source§

impl WriteBinary for IndexToLocFormat

Source§

impl WriteBinary for CompositeGlyphArgument

Source§

impl WriteBinary for CompositeGlyphScale

Source§

impl WriteBinary for allsorts_subset_browser::cff::cff2::Header

Source§

impl WriteBinary for Range<u8, u8>

Source§

impl WriteBinary for Range<u16, u8>

Source§

impl WriteBinary for Range<u16, u16>

Source§

impl WriteBinary for Cmap

Source§

impl WriteBinary for SequentialMapGroup

Source§

impl WriteBinary for BoundingBox

Source§

impl WriteBinary for CompositeGlyph<'_>

Source§

impl WriteBinary for CompositeGlyphComponent

Source§

impl WriteBinary for F2Dot14

Source§

impl WriteBinary for Fixed

Source§

impl WriteBinary for LangTagRecord

Source§

impl WriteBinary for LongHorMetric

Source§

impl WriteBinary for allsorts_subset_browser::tables::NameRecord

Source§

impl WriteBinary<&Operand> for Operand

Source§

impl WriteBinary<&Header> for allsorts_subset_browser::cff::Header

Source§

impl WriteBinary<&Header> for allsorts_subset_browser::post::Header

Source§

impl WriteBinary<&Os2> for Os2

Source§

impl WriteBinary<&Version0> for Version0

Source§

impl WriteBinary<&Version1> for Version1

Source§

impl WriteBinary<&Version2to4> for Version2to4

Source§

impl WriteBinary<&Version5> for Version5

Source§

impl WriteBinary<&CvtTable<'_>> for CvtTable<'_>

Source§

impl WriteBinary<&HeadTable> for HeadTable

Source§

impl WriteBinary<&HheaTable> for HheaTable

Source§

impl WriteBinary<&MaxpTable> for MaxpTable

Source§

impl WriteBinary<&MaxpVersion1SubTable> for MaxpVersion1SubTable

Source§

impl WriteBinary<&TableRecord> for TableRecord

Source§

impl WriteBinary<&ItemVariationData<'_>> for ItemVariationData<'_>

Source§

impl WriteBinary<&ItemVariationStore<'_>> for ItemVariationStore<'_>

Source§

impl WriteBinary<&VariationRegion<'_>> for VariationRegion<'_>

Source§

impl WriteBinary<&VariationRegionList<'_>> for VariationRegionList<'_>

Source§

impl<'a> WriteBinary for Glyph<'a>

Source§

impl<'a> WriteBinary for CFF2<'a>

Source§

impl<'a> WriteBinary for SimpleGlyph<'a>

Source§

impl<'a> WriteBinary for LocaTable<'a>

Source§

impl<'a> WriteBinary for ReadScope<'a>

Source§

impl<'a> WriteBinary<&CustomCharset<'a>> for CustomCharset<'a>

Source§

impl<'a> WriteBinary<&CustomEncoding<'a>> for CustomEncoding<'a>

Source§

impl<'a> WriteBinary<&FDSelect<'a>> for FDSelect<'a>

Source§

impl<'a> WriteBinary<&CmapSubtable<'a>> for allsorts_subset_browser::tables::cmap::CmapSubtable<'a>

Source§

impl<'a> WriteBinary<&CFF<'a>> for CFF<'a>

Source§

impl<'a> WriteBinary<&CIDData<'a>> for CIDData<'a>

Source§

impl<'a> WriteBinary<&Index<'a>> for IndexU16

Source§

impl<'a> WriteBinary<&Index<'a>> for IndexU32

Source§

impl<'a> WriteBinary<&Type1Data<'a>> for Type1Data<'a>

Source§

impl<'a> WriteBinary<&PascalString<'a>> for PascalString<'a>

Source§

impl<'a> WriteBinary<&PostTable<'a>> for PostTable<'a>

Source§

impl<'a> WriteBinary<&SubTable<'a>> for SubTable<'a>

Source§

impl<'a> WriteBinary<&NameRecord<'a>> for allsorts_subset_browser::tables::owned::NameRecord<'a>

Source§

impl<'a> WriteBinary<&NameTable<'a>> for allsorts_subset_browser::tables::owned::NameTable<'a>

Source§

impl<'a> WriteBinary<&HmtxTable<'a>> for HmtxTable<'a>

Source§

impl<'a> WriteBinary<&NameTable<'a>> for allsorts_subset_browser::tables::NameTable<'a>

Source§

impl<'a, T> WriteBinary for &ReadArray<'a, T>

Source§

impl<'a, T> WriteBinary<&ReadArrayCow<'a, T>> for ReadArrayCow<'a, T>

Source§

impl<T> WriteBinary<T> for I8
where T: Into<i8>,

Source§

impl<T> WriteBinary<T> for I16Be
where T: Into<i16>,

Source§

impl<T> WriteBinary<T> for I32Be
where T: Into<i32>,

Source§

impl<T> WriteBinary<T> for I64Be
where T: Into<i64>,

Source§

impl<T> WriteBinary<T> for U8
where T: Into<u8>,

Source§

impl<T> WriteBinary<T> for U16Be
where T: Into<u16>,

Source§

impl<T> WriteBinary<T> for U24Be
where T: Into<u32>,

Source§

impl<T> WriteBinary<T> for U32Be
where T: Into<u32>,