pub enum NodeOrToken {
Node(Node),
Token(Token),
}Variants§
Implementations§
Source§impl NodeOrToken
impl NodeOrToken
Sourcepub fn token_text(&self) -> Option<&str>
pub fn token_text(&self) -> Option<&str>
If this is a single token, return that token’s text
Sourcepub fn is_glyph_or_glyph_class(&self) -> bool
pub fn is_glyph_or_glyph_class(&self) -> bool
true If this is a glyph name, a CID, or a glyph class (either inline or named)
Trait Implementations§
Source§impl Clone for NodeOrToken
impl Clone for NodeOrToken
Source§fn clone(&self) -> NodeOrToken
fn clone(&self) -> NodeOrToken
Returns a copy 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 Debug for NodeOrToken
impl Debug for NodeOrToken
Source§impl From<Node> for NodeOrToken
impl From<Node> for NodeOrToken
Source§fn from(src: Node) -> NodeOrToken
fn from(src: Node) -> NodeOrToken
Converts to this type from the input type.
Source§impl From<Token> for NodeOrToken
impl From<Token> for NodeOrToken
Source§fn from(src: Token) -> NodeOrToken
fn from(src: Token) -> NodeOrToken
Converts to this type from the input type.
Source§impl Ord for NodeOrToken
impl Ord for NodeOrToken
Source§fn cmp(&self, other: &NodeOrToken) -> Ordering
fn cmp(&self, other: &NodeOrToken) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for NodeOrToken
impl PartialEq for NodeOrToken
Source§impl PartialOrd for NodeOrToken
impl PartialOrd for NodeOrToken
impl Eq for NodeOrToken
impl StructuralPartialEq for NodeOrToken
Auto Trait Implementations§
impl Freeze for NodeOrToken
impl RefUnwindSafe for NodeOrToken
impl Send for NodeOrToken
impl Sync for NodeOrToken
impl Unpin for NodeOrToken
impl UnwindSafe for NodeOrToken
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.