pub struct GlyphOrder(/* private fields */);Expand description
The name of every glyph, in the order it will be emitted
https://rsheeter.github.io/font101/#glyph-ids-and-the-cmap-table
Implementations§
Source§impl GlyphOrder
impl GlyphOrder
pub fn new() -> Self
pub fn glyph_id<Q>(&self, name: &Q) -> Option<GlyphId16>
pub fn glyph_name(&self, index: usize) -> Option<&GlyphName>
pub fn contains<Q>(&self, name: &Q) -> bool
pub fn remove(&mut self, name: &GlyphName) -> bool
pub fn difference<'a>( &'a self, other: &'a GlyphOrder, ) -> Difference<'a, GlyphName, RandomState>
pub fn insert(&mut self, name: GlyphName) -> bool
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
Trait Implementations§
Source§impl Clone for GlyphOrder
impl Clone for GlyphOrder
Source§fn clone(&self) -> GlyphOrder
fn clone(&self) -> GlyphOrder
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 moreSource§impl Debug for GlyphOrder
impl Debug for GlyphOrder
Source§impl Default for GlyphOrder
impl Default for GlyphOrder
Source§fn default() -> GlyphOrder
fn default() -> GlyphOrder
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GlyphOrder
impl<'de> Deserialize<'de> for GlyphOrder
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for GlyphOrder
Source§impl Extend<GlyphName> for GlyphOrder
impl Extend<GlyphName> for GlyphOrder
Source§fn extend<T: IntoIterator<Item = GlyphName>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = GlyphName>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<GlyphName> for GlyphOrder
impl FromIterator<GlyphName> for GlyphOrder
Source§impl IntoIterator for GlyphOrder
impl IntoIterator for GlyphOrder
Source§impl PartialEq for GlyphOrder
impl PartialEq for GlyphOrder
Source§impl Persistable for GlyphOrder
impl Persistable for GlyphOrder
Auto Trait Implementations§
impl Freeze for GlyphOrder
impl RefUnwindSafe for GlyphOrder
impl Send for GlyphOrder
impl Sync for GlyphOrder
impl Unpin for GlyphOrder
impl UnsafeUnpin for GlyphOrder
impl UnwindSafe for GlyphOrder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.