pub struct RecordResolver<'a> {
pub(crate) name: &'static str,
pub(crate) get_field: Box<dyn Fn(usize, FontData<'a>) -> Option<Field<'a>> + 'a>,
pub(crate) data: FontData<'a>,
}
Expand description
A struct created from a record and the data it needs to resolve any contained offsets.
Fields§
§name: &'static str
§get_field: Box<dyn Fn(usize, FontData<'a>) -> Option<Field<'a>> + 'a>
§data: FontData<'a>
Trait Implementations§
Source§impl<'a> From<RecordResolver<'a>> for FieldType<'a>
impl<'a> From<RecordResolver<'a>> for FieldType<'a>
Source§fn from(src: RecordResolver<'a>) -> Self
fn from(src: RecordResolver<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for RecordResolver<'a>
impl<'a> !RefUnwindSafe for RecordResolver<'a>
impl<'a> !Send for RecordResolver<'a>
impl<'a> !Sync for RecordResolver<'a>
impl<'a> Unpin for RecordResolver<'a>
impl<'a> !UnwindSafe for RecordResolver<'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