struct Reader<'a> {
font: FontMetrics<'a>,
section: Section,
header_seen: bool,
bbox_seen: bool,
kern_data: bool,
finished: bool,
input_len: usize,
direction_lines: [usize; 2],
vector_line: usize,
}Fields§
§font: FontMetrics<'a>§section: Section§header_seen: bool§bbox_seen: bool§kern_data: bool§finished: bool§input_len: usize§direction_lines: [usize; 2]§vector_line: usizeImplementations§
Source§impl<'a> Reader<'a>
impl<'a> Reader<'a>
fn new(input_len: usize) -> Self
fn context(&self) -> RecordContext
fn retain(&mut self, line: usize, key: &'a str, value: &'a str)
fn line(&mut self, raw: &'a str, line: usize) -> Result<(), ParseError>
fn extra_or_misplaced( &mut self, key: &'a str, value: &'a str, line: usize, ) -> Result<(), ParseError>
fn require_font_section( &self, key: &'static str, line: usize, allow_kern: bool, ) -> Result<(), ParseError>
fn control( &mut self, key: &str, value: &str, line: usize, ) -> Result<bool, ParseError>
fn direction_metric( &mut self, key: &str, value: &str, line: usize, selector: MetricsSets, ) -> Result<bool, ParseError>
fn global( &mut self, key: &'a str, value: &'a str, line: usize, ) -> Result<bool, ParseError>
fn finish(self, line: usize) -> Result<FontMetrics<'a>, ParseError>
Auto Trait Implementations§
impl<'a> Freeze for Reader<'a>
impl<'a> RefUnwindSafe for Reader<'a>
impl<'a> Send for Reader<'a>
impl<'a> Sync for Reader<'a>
impl<'a> Unpin for Reader<'a>
impl<'a> UnsafeUnpin for Reader<'a>
impl<'a> UnwindSafe for Reader<'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