pub struct ValueContext<'a> {
coords: &'a [F2Dot14],
var_store: Option<ItemVariationStore<'a>>,
}
Expand description
A context for resolving Value
s and ValueRecord
s.
In particular, this handles processing of the embedded
DeviceOrVariationIndex
tables.
Fields§
§coords: &'a [F2Dot14]
§var_store: Option<ItemVariationStore<'a>>
Implementations§
Source§impl<'a> ValueContext<'a>
impl<'a> ValueContext<'a>
Sourcepub fn with_coords(self, coords: &'a [F2Dot14]) -> Self
pub fn with_coords(self, coords: &'a [F2Dot14]) -> Self
Sets the normalized variation coordinates for this value context.
Sourcepub fn with_var_store(self, var_store: Option<ItemVariationStore<'a>>) -> Self
pub fn with_var_store(self, var_store: Option<ItemVariationStore<'a>>) -> Self
Sets the item variation store for this value context.
This comes from the Gdef
table.
fn var_store_and_coords( &self, ) -> Option<(&ItemVariationStore<'a>, &'a [F2Dot14])>
Trait Implementations§
Source§impl<'a> Clone for ValueContext<'a>
impl<'a> Clone for ValueContext<'a>
Source§fn clone(&self) -> ValueContext<'a>
fn clone(&self) -> ValueContext<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Default for ValueContext<'a>
impl<'a> Default for ValueContext<'a>
Source§fn default() -> ValueContext<'a>
fn default() -> ValueContext<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for ValueContext<'a>
impl<'a> RefUnwindSafe for ValueContext<'a>
impl<'a> Send for ValueContext<'a>
impl<'a> Sync for ValueContext<'a>
impl<'a> Unpin for ValueContext<'a>
impl<'a> UnwindSafe for ValueContext<'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