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
A transparent element that must be replaced by the consumer.
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.
Implementations§
Trait Implementations§
impl Eq for ElemChild
impl StructuralPartialEq for ElemChild
Auto Trait Implementations§
impl Freeze for ElemChild
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.