pub struct CidTransform {
pub cid: u16,
pub a: u8,
pub b: u8,
pub c: u8,
pub d: u8,
pub e: u8,
pub f: u8,
}Expand description
A per-CID affine transform, packed into bytes.
Each of the six components is a byte read through
cid_transform_to_float, which maps 0..=127 to 0..≈1 and 128..=255
to a negative range — note the split point is 255, not 256, so byte 255
is exactly zero rather than a small negative.
Fields§
§cid: u16The CID this row applies to.
a: u8Matrix a.
b: u8Matrix b.
c: u8Matrix c.
d: u8Matrix d.
e: u8Matrix e, in thousandths of an em once scaled.
f: u8Matrix f, in thousandths of an em once scaled.
Trait Implementations§
Source§impl Clone for CidTransform
impl Clone for CidTransform
Source§fn clone(&self) -> CidTransform
fn clone(&self) -> CidTransform
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CidTransform
Source§impl Debug for CidTransform
impl Debug for CidTransform
impl Eq for CidTransform
Source§impl PartialEq for CidTransform
impl PartialEq for CidTransform
impl StructuralPartialEq for CidTransform
Auto Trait Implementations§
impl Freeze for CidTransform
impl RefUnwindSafe for CidTransform
impl Send for CidTransform
impl Sync for CidTransform
impl Unpin for CidTransform
impl UnsafeUnpin for CidTransform
impl UnwindSafe for CidTransform
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