pub struct NameTable<'a> {
pub string_storage: ReadScope<'a>,
pub name_records: ReadArray<'a, NameRecord>,
pub opt_langtag_records: Option<ReadArray<'a, LangTagRecord>>,
}
Expand description
Fields
string_storage: ReadScope<'a>
name_records: ReadArray<'a, NameRecord>
opt_langtag_records: Option<ReadArray<'a, LangTagRecord>>
Trait Implementations
sourceimpl<'a> ReadBinary<'a> for NameTable<'a>
impl<'a> ReadBinary<'a> for NameTable<'a>
sourceimpl<'a> WriteBinary<&NameTable<'a>> for NameTable<'a>
impl<'a> WriteBinary<&NameTable<'a>> for NameTable<'a>
sourcefn write<C: WriteContext>(
ctxt: &mut C,
name: &NameTable<'a>
) -> Result<(), WriteError>
fn write<C: WriteContext>(
ctxt: &mut C,
name: &NameTable<'a>
) -> Result<(), WriteError>
Write the binary representation of Self to
ctxt
.Auto Trait Implementations
impl<'a> RefUnwindSafe for NameTable<'a>
impl<'a> Send for NameTable<'a>
impl<'a> Sync for NameTable<'a>
impl<'a> Unpin for NameTable<'a>
impl<'a> UnwindSafe for NameTable<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<'a, T> ReadBinaryDep<'a> for Twhere
T: ReadBinary<'a>,
impl<'a, T> ReadBinaryDep<'a> for Twhere
T: ReadBinary<'a>,
type Args = ()
type HostType = <T as ReadBinary<'a>>::HostType
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
<T as ReadBinaryDep<'a>>::Args
) -> Result<<T as ReadBinaryDep<'a>>::HostType, ParseError>
sourceimpl<T, HostType> WriteBinaryDep<HostType> for Twhere
T: WriteBinary<HostType>,
impl<T, HostType> WriteBinaryDep<HostType> for Twhere
T: WriteBinary<HostType>,
type Output = <T as WriteBinary<HostType>>::Output
type Output = <T as WriteBinary<HostType>>::Output
The type of the value returned by
write_dep
.sourcefn write_dep<C>(
ctxt: &mut C,
val: HostType,
<T as WriteBinaryDep<HostType>>::Args
) -> Result<<T as WriteBinaryDep<HostType>>::Output, WriteError>where
C: WriteContext,
fn write_dep<C>(
ctxt: &mut C,
val: HostType,
<T as WriteBinaryDep<HostType>>::Args
) -> Result<<T as WriteBinaryDep<HostType>>::Output, WriteError>where
C: WriteContext,
Write the binary representation of Self to
ctxt
.