pub struct FootnoteRefAnchor {
pub byte_offset: u32,
pub label: String,
pub format: CharacterFormat,
}Expand description
A footnote reference embedded at a specific byte position inside a block.
The exact shape of ImageAnchor, and for the same reason: a reference is
an inline object occupying one U+FFFC sentinel in the block’s text, so the
rope moves it with every edit and deleting the sentence deletes the
reference — no re-anchoring, no quote matching, no orphan state to keep.
It carries its own CharacterFormat because a reference is normally
superscript, and because whatever formatting surrounds it should not bleed
onto the marker.
What it deliberately does not carry is the number. See
InlineContent::FootnoteRef.
Fields§
§byte_offset: u32§label: StringMatches a footnote definition’s Frame::footnote_label, when one exists
in this document at all. Djot’s [^label] syntax on the wire.
format: CharacterFormatTrait Implementations§
Source§impl Clone for FootnoteRefAnchor
impl Clone for FootnoteRefAnchor
Source§fn clone(&self) -> FootnoteRefAnchor
fn clone(&self) -> FootnoteRefAnchor
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 FootnoteRefAnchor
impl Debug for FootnoteRefAnchor
Source§impl<'de> Deserialize<'de> for FootnoteRefAnchor
impl<'de> Deserialize<'de> for FootnoteRefAnchor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FootnoteRefAnchor
Source§impl PartialEq for FootnoteRefAnchor
impl PartialEq for FootnoteRefAnchor
Source§impl Serialize for FootnoteRefAnchor
impl Serialize for FootnoteRefAnchor
impl StructuralPartialEq for FootnoteRefAnchor
Auto Trait Implementations§
impl Freeze for FootnoteRefAnchor
impl RefUnwindSafe for FootnoteRefAnchor
impl Send for FootnoteRefAnchor
impl Sync for FootnoteRefAnchor
impl Unpin for FootnoteRefAnchor
impl UnsafeUnpin for FootnoteRefAnchor
impl UnwindSafe for FootnoteRefAnchor
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