pub enum ElemChild {
Text(Formatted),
Elem(Elem),
Markup(String),
Link {
text: Formatted,
url: String,
},
Transparent {
cite_idx: usize,
format: Formatting,
},
}
Expand description
Various formattable elements.
Variants§
Text(Formatted)
This is some text.
Elem(Elem)
A child element.
Markup(String)
This should be processed by Typst.
Link
This is a link.
Transparent
Fields
§
cite_idx: usize
The original index of the cite request so the consumer can look up the right citation item.
§
format: Formatting
The formatting of the element.
A transparent element that must be replaced by the consumer.
Implementations§
Trait Implementations§
source§impl PartialEq for ElemChild
impl PartialEq for ElemChild
impl Eq for ElemChild
impl StructuralPartialEq for ElemChild
Auto Trait Implementations§
impl RefUnwindSafe for ElemChild
impl Send for ElemChild
impl Sync for ElemChild
impl Unpin for ElemChild
impl UnwindSafe for ElemChild
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<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.