pub struct Widths<'a> { /* private fields */ }
Expand description
Writer for a CID font widths array.
This struct is created by CidFont::widths
.
Implementations§
source§impl<'a> Widths<'a>
impl<'a> Widths<'a>
sourcepub fn consecutive(
&mut self,
start: u16,
widths: impl IntoIterator<Item = f32>,
) -> &mut Self
pub fn consecutive( &mut self, start: u16, widths: impl IntoIterator<Item = f32>, ) -> &mut Self
Specifies individual widths for a range of consecutive CIDs starting at
start
.
Methods from Deref<Target = Array<'a>>§
sourcepub fn item<T: Primitive>(&mut self, value: T) -> &mut Self
pub fn item<T: Primitive>(&mut self, value: T) -> &mut Self
Write an item with a primitive value.
This is a shorthand for array.push().primitive(value)
.
sourcepub fn items<T: Primitive>(
&mut self,
values: impl IntoIterator<Item = T>,
) -> &mut Self
pub fn items<T: Primitive>( &mut self, values: impl IntoIterator<Item = T>, ) -> &mut Self
Write a sequence of items with primitive values.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Widths<'a>
impl<'a> RefUnwindSafe for Widths<'a>
impl<'a> Send for Widths<'a>
impl<'a> Sync for Widths<'a>
impl<'a> Unpin for Widths<'a>
impl<'a> !UnwindSafe for Widths<'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