pub enum PDFNode<ET: EngineTypes> {
Show 16 variants
Obj(PDFObj),
XForm(PDFXForm<ET>),
XImage(PDFXImage<ET>),
PDFLiteral(PDFLiteral),
PDFOutline(PDFOutline),
PDFCatalog(PDFCatalog),
PDFPageAttr(Box<[ET::Token]>),
PDFPagesAttr(Box<[ET::Token]>),
PDFDest(PDFDest<ET::Dim>),
Color(ColorStackAction),
PDFStartLink(PDFStartLink<ET>),
PDFAnnot(PDFAnnot<ET>),
PDFEndLink,
PDFSave,
PDFRestore,
PDFMatrix {
scale: f32,
rotate: f32,
skewx: f32,
skewy: f32,
},
}Variants§
Obj(PDFObj)
XForm(PDFXForm<ET>)
XImage(PDFXImage<ET>)
PDFLiteral(PDFLiteral)
PDFOutline(PDFOutline)
PDFCatalog(PDFCatalog)
PDFPageAttr(Box<[ET::Token]>)
PDFPagesAttr(Box<[ET::Token]>)
PDFDest(PDFDest<ET::Dim>)
Color(ColorStackAction)
PDFStartLink(PDFStartLink<ET>)
PDFAnnot(PDFAnnot<ET>)
PDFEndLink
PDFSave
PDFRestore
PDFMatrix
Trait Implementations§
Source§impl<ET: EngineTypes> CustomNodeTrait<ET> for PDFNode<ET>
impl<ET: EngineTypes> CustomNodeTrait<ET> for PDFNode<ET>
Source§impl<ET: EngineTypes> NodeTrait<ET> for PDFNode<ET>
impl<ET: EngineTypes> NodeTrait<ET> for PDFNode<ET>
Source§fn opaque(&self) -> bool
fn opaque(&self) -> bool
Whether this node is “opaque”; meaning: When considering a list of nodes (e.g. in
\unskip
or \lastbox, this node should not be considered. Useful for annotation/marker nodes
some engine wants to insert, without impacting algorithms that inspect e.g. the last node
of the current list.Source§fn display_fmt(&self, indent: usize, f: &mut Formatter<'_>) -> Result
fn display_fmt(&self, indent: usize, f: &mut Formatter<'_>) -> Result
Produces a human-readable string; since nodes are deeply nested, takes an
additional
indent value to indent the stringSource§fn display(&self) -> DisplayNode<'_, ET, Self>
fn display(&self) -> DisplayNode<'_, ET, Self>
Returns a helper struct that implements
Display and uses Self::display_fmt
to yield a human-readable string.fn sourceref(&self) -> Option<(&SourceRef<ET>, &SourceRef<ET>)>
Auto Trait Implementations§
impl<ET> !Freeze for PDFNode<ET>
impl<ET> !RefUnwindSafe for PDFNode<ET>
impl<ET> Send for PDFNode<ET>where
<ET as EngineTypes>::Dim: Send,
<<ET as EngineTypes>::File as File>::SourceRefID: Send,
<ET as EngineTypes>::CustomNode: Send,
<ET as EngineTypes>::Char: Send,
<ET as EngineTypes>::Font: Send,
<ET as EngineTypes>::MuDim: Send,
ET: Send,
impl<ET> !Sync for PDFNode<ET>
impl<ET> Unpin for PDFNode<ET>
impl<ET> UnsafeUnpin for PDFNode<ET>where
<ET as EngineTypes>::Dim: UnsafeUnpin,
<<ET as EngineTypes>::File as File>::SourceRefID: UnsafeUnpin,
impl<ET> UnwindSafe for PDFNode<ET>where
<ET as EngineTypes>::Dim: UnwindSafe,
<ET as EngineTypes>::Token: UnwindSafe,
<<ET as EngineTypes>::File as File>::SourceRefID: UnwindSafe,
<ET as EngineTypes>::CustomNode: UnwindSafe,
<ET as EngineTypes>::Char: UnwindSafe,
<ET as EngineTypes>::Font: UnwindSafe,
<ET as EngineTypes>::MuDim: UnwindSafe,
ET: UnwindSafe,
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more