pub struct ScriptRun {
pub text: String,
pub script: Script,
pub prov: Vec<ScriptRunProv>,
pub hyperlink: Option<String>,
}Expand description
One run of a Node::ScriptText: a piece of the item’s text at one
script position, with its provenance — one entry per page it is on.
Fields§
§text: StringThe run’s raw text (not Markdown-escaped), its spaces included: serializers join runs with nothing.
script: Script§prov: Vec<ScriptRunProv>The run’s provenance, one per page, in text order.
hyperlink: Option<String>The item’s link, on its baseline runs (each linked run exports as a link of its own, so a marker stays out of it).
Trait Implementations§
impl StructuralPartialEq for ScriptRun
Auto Trait Implementations§
impl Forget for ScriptRun
impl Freeze for ScriptRun
impl Move for ScriptRun
impl RefUnwindSafe for ScriptRun
impl Send for ScriptRun
impl Sync for ScriptRun
impl Unpin for ScriptRun
impl UnsafeUnpin for ScriptRun
impl UnwindSafe for ScriptRun
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