#[non_exhaustive]pub enum SourceRole {
Primary,
EnclosingConstruct,
MacroExpansion,
ResourceRequest,
Package,
FontDefinition,
Resource,
}Expand description
How a source range contributed to a node.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Primary
The primary user visible expression source.
EnclosingConstruct
Enclosing construct or macro invocation range; entries are emitted innermost first.
MacroExpansion
Macro expansion whose expansion produced this node.
ResourceRequest
User source declaration that requested a resource, such as \input or \usepackage.
Package
Package file that defined a macro or environment used here.
FontDefinition
TeX font definition source such as .fd.
Resource
Generic resource file referenced during typesetting.
Trait Implementations§
Source§impl Clone for SourceRole
impl Clone for SourceRole
Source§fn clone(&self) -> SourceRole
fn clone(&self) -> SourceRole
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 SourceRole
Source§impl Debug for SourceRole
impl Debug for SourceRole
impl Eq for SourceRole
Source§impl PartialEq for SourceRole
impl PartialEq for SourceRole
Source§fn eq(&self, other: &SourceRole) -> bool
fn eq(&self, other: &SourceRole) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SourceRole
Auto Trait Implementations§
impl Freeze for SourceRole
impl RefUnwindSafe for SourceRole
impl Send for SourceRole
impl Sync for SourceRole
impl Unpin for SourceRole
impl UnsafeUnpin for SourceRole
impl UnwindSafe for SourceRole
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