pub struct Index<'a> {
pub count: usize,
/* private fields */
}Expand description
A CFF INDEX described in Section 5 of Technical Note #5176
Fields§
§count: usizeImplementations§
Source§impl<'a> Index<'a>
impl<'a> Index<'a>
pub fn read<T: ReadBinaryDep>( &'a self, index: usize, args: T::Args<'a>, ) -> Result<T::HostType<'a>, ParseError>
pub fn iter(&self) -> impl Iterator<Item = &[u8]>
Sourcepub fn calculate_size<'b, T, HostType>(
objects: &'b [&HostType],
args: T::Args,
) -> Result<usize, WriteError>
pub fn calculate_size<'b, T, HostType>( objects: &'b [&HostType], args: T::Args, ) -> Result<usize, WriteError>
Returns the length required to write objects.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Index<'a>
impl<'a> RefUnwindSafe for Index<'a>
impl<'a> Send for Index<'a>
impl<'a> Sync for Index<'a>
impl<'a> Unpin for Index<'a>
impl<'a> UnwindSafe for Index<'a>
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more