pub struct Differences<'a> { /* private fields */ }
Expand description
Writer for an encoding differences array.
This struct is created by Encoding::differences
.
Implementations§
source§impl<'a> Differences<'a>
impl<'a> Differences<'a>
sourcepub fn consecutive<'n>(
&mut self,
start: u8,
names: impl IntoIterator<Item = Name<'n>>,
) -> &mut Self
pub fn consecutive<'n>( &mut self, start: u8, names: impl IntoIterator<Item = Name<'n>>, ) -> &mut Self
Maps consecutive character codes starting at start
to the given glyph
names.
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§
source§impl<'a> Deref for Differences<'a>
impl<'a> Deref for Differences<'a>
source§impl<'a> DerefMut for Differences<'a>
impl<'a> DerefMut for Differences<'a>
source§impl<'a, 'any> Rewrite<'a> for Differences<'any>
impl<'a, 'any> Rewrite<'a> for Differences<'any>
source§type Output = Differences<'a>
type Output = Differences<'a>
The writer with the rewritten lifetime.
Auto Trait Implementations§
impl<'a> Freeze for Differences<'a>
impl<'a> RefUnwindSafe for Differences<'a>
impl<'a> Send for Differences<'a>
impl<'a> Sync for Differences<'a>
impl<'a> Unpin for Differences<'a>
impl<'a> !UnwindSafe for Differences<'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