pub struct MarkOf {
pub kinds: Vec<Arc<XnoteKind>>,
pub original: FlmSpan,
}Expand description
The payload of a node of the element MARK_OF: the xnotes that the
node represents in content shown again, which are every xnote of the given
xnote kinds that the original node (the node the copy was made from)
carries.
The payload identifies the xnotes by their kinds and by the source span of
their node (the source and the range where it was written), which the copy
keeps for every node it copies: the rule finds the xnotes’ records among
the kinds’ records written at that span
(Xnotes::records_written_at). A node
of a copy has no address among the document’s, so the span is what
identifies the original node.
Fields§
§kinds: Vec<Arc<XnoteKind>>The xnote kinds of the xnotes that the node represents: the kinds of the xnotes its original node carries, each once.
original: FlmSpanThe source span of the xnotes’ node, where it was written.
Implementations§
Trait Implementations§
Source§impl PresPayload for MarkOf
impl PresPayload for MarkOf
Source§fn project(&self) -> SerialValue
fn project(&self) -> SerialValue
{kinds: [<each kind's name>], original: "@<start>-<end>"}: the kinds,
and the byte range where the xnotes’ node was written.
Auto Trait Implementations§
impl Forget for MarkOf
impl Freeze for MarkOf
impl Move for MarkOf
impl RefUnwindSafe for MarkOf
impl Send for MarkOf
impl Sync for MarkOf
impl Unpin for MarkOf
impl UnsafeUnpin for MarkOfwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Arc<XnoteKind>>: UnsafeUnpin,
*const ArcInner<Source<FlmOrigin>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Source<FlmOrigin>>>: UnsafeUnpin,
impl UnwindSafe for MarkOf
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more