pub enum ContentPiece {
Text(String),
TargetCounter {
target: Target,
style: CounterStyle,
},
TargetText {
target: Target,
},
}Expand description
One piece of a content value that names another element.
Variants§
Text(String)
A literal.
TargetCounter
target-counter(): the folio of the page the target lands on,
spelled as the style names.
Fields
§
style: CounterStyleHow the folio is spelled.
TargetText
target-text(): the text of the target itself.
Trait Implementations§
Source§impl Clone for ContentPiece
impl Clone for ContentPiece
Source§fn clone(&self) -> ContentPiece
fn clone(&self) -> ContentPiece
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 moreSource§impl Debug for ContentPiece
impl Debug for ContentPiece
impl Eq for ContentPiece
Source§impl Hash for ContentPiece
impl Hash for ContentPiece
Source§impl PartialEq for ContentPiece
impl PartialEq for ContentPiece
Source§impl Serialize for ContentPiece
impl Serialize for ContentPiece
impl StructuralPartialEq for ContentPiece
Auto Trait Implementations§
impl Freeze for ContentPiece
impl RefUnwindSafe for ContentPiece
impl Send for ContentPiece
impl Sync for ContentPiece
impl Unpin for ContentPiece
impl UnsafeUnpin for ContentPiece
impl UnwindSafe for ContentPiece
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§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.