pub struct CharStringVisitorContext<'a, 'data> { /* private fields */ }Expand description
Context for traversing a CFF CharString.
Implementations§
Source§impl<'a, 'data> CharStringVisitorContext<'a, 'data>
impl<'a, 'data> CharStringVisitorContext<'a, 'data>
Sourcepub fn new(
glyph_id: u16,
char_strings_index: &'a MaybeOwnedIndex<'data>,
local_subr_index: Option<&'a MaybeOwnedIndex<'data>>,
global_subr_index: &'a MaybeOwnedIndex<'data>,
variable: Option<VariableCharStringVisitorContext<'a, 'data>>,
) -> CharStringVisitorContext<'a, 'data>
pub fn new( glyph_id: u16, char_strings_index: &'a MaybeOwnedIndex<'data>, local_subr_index: Option<&'a MaybeOwnedIndex<'data>>, global_subr_index: &'a MaybeOwnedIndex<'data>, variable: Option<VariableCharStringVisitorContext<'a, 'data>>, ) -> CharStringVisitorContext<'a, 'data>
Construct a new context for traversing a CharString.
Used with a CharStringVisitor impl supplied to visit to traverse the CharString.
Auto Trait Implementations§
impl<'a, 'data> Freeze for CharStringVisitorContext<'a, 'data>
impl<'a, 'data> RefUnwindSafe for CharStringVisitorContext<'a, 'data>
impl<'a, 'data> Send for CharStringVisitorContext<'a, 'data>
impl<'a, 'data> Sync for CharStringVisitorContext<'a, 'data>
impl<'a, 'data> Unpin for CharStringVisitorContext<'a, 'data>
impl<'a, 'data> UnwindSafe for CharStringVisitorContext<'a, 'data>
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> 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