pub enum CopiedAs {
Verbatim,
Nothing,
StandIn(StandIn),
}Expand description
What replaces a node in a copy of content shown a second time: the result
of the element’s InCopy aspect, read with copied_as.
A copy shown again is content of the document copied into a synthesized
value (crate::lang::copy) to be shown a second time, away from where it
is written, such as a heading’s title that a reference prints
(ValueContent::Shown). The copy operation reads this for every node it
copies, at every depth, and stages (builds into the copy) what it says in
the node’s place.
Variants§
Verbatim
The node itself, copied as written with its span and source; its
children are copied as their own elements say. This is the result for
an element that does not declare the InCopy aspect.
Nothing
Nothing: the copy holds nothing in the node’s place, and nothing of the node’s descendants.
StandIn(StandIn)
One new node in the node’s place, described by the StandIn; the
node’s descendants are not copied.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CopiedAs
impl !UnwindSafe for CopiedAs
impl Forget for CopiedAs
impl Freeze for CopiedAswhere
*const ArcInner<FlmSynthesizedSpec> is !null: Freeze,
PhantomData<ArcInner<FlmSynthesizedSpec>>: Freeze,
*const ArcInner<dyn PresPayload> is !null: Freeze,
PhantomData<ArcInner<dyn PresPayload>>: Freeze,
impl Move for CopiedAs
impl Send for CopiedAs
impl Sync for CopiedAs
impl Unpin for CopiedAs
impl UnsafeUnpin for CopiedAswhere
*const ArcInner<FlmSynthesizedSpec> is !null: UnsafeUnpin,
PhantomData<ArcInner<FlmSynthesizedSpec>>: UnsafeUnpin,
*const ArcInner<dyn PresPayload> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn PresPayload>>: UnsafeUnpin,
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