Struct FootnoteView Copy item path Source pub struct FootnoteView {
pub label: String ,
pub text: Option <String >,
pub offset: Option <u32 >,
pub end: Option <u32 >,
}Expand description A footnote reference and the note it names — what LeafDoc::footnote_at
answers with. The FFI mirror of leaf_core::FootnoteRef .
A reference whose definition the document is missing still comes back, with
its label and no text: that a [^99] names nothing is a thing to tell
the reader, and it is not the same as the caret standing on no reference at
all (which is None).
The reference’s label — the 1 of [^1], without the ^ or brackets.
The note’s body as source text, or None when nothing defines it.
The byte offset the note’s body starts at, for a “go to note” that moves
the caret there. None alongside a None text.
Where the body ends, exclusive. With offset this bounds the note, so a
frontend can map the pair through pos_for_offset to the rendered rows
it occupies and draw those — the note with its markup resolved, rather
than the asterisks and backticks text carries. None alongside a
None offset.
The low-level type used for passing values of this type over the FFI.
Read more Lower a rust value of the target type, into an FFI value of type Self::FfiType.
Read more Lift a rust value of the target type, from an FFI value of type Self::FfiType.
Read more Write a rust value into a buffer, to send over the FFI in serialized form.
Read more Read a rust value from a buffer, received over the FFI in serialized form.
Read more Converts to this type from the input type.
FFI return type for trait interfaces
Lift a successfully returned value from a trait interface
Lift a foreign returned value from a trait interface
Read more Lift a Rust value for a callback interface method error result
Read more Lift a Rust value for an unexpected callback interface error
Read more Lower this value for scaffolding function return
Read more The type that should be returned by scaffolding functions for this type.
Read more Lower the return value from an scaffolding call
Read more Lower the return value for failed argument lifts
Read more
Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more Returns the argument unchanged.
Create a new handle for an Arc value
Read more Consume a handle, getting back the initial
Arc<> Read more Get a clone of the
Arc<> using a “borrowed” handle.
Read more Calls U::from(self).
That is, this conversion is whatever the implementation of
From <T> for U chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.