pub struct HasExistingContent;Expand description
See description in the ContextState implementor list.
Trait Implementations§
Source§impl Clone for HasExistingContent
impl Clone for HasExistingContent
Source§fn clone(&self) -> HasExistingContent
fn clone(&self) -> HasExistingContent
Returns a copy of the value. Read more
1.0.0 · 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 HasExistingContent
impl Debug for HasExistingContent
Source§impl PartialEq for HasExistingContent
impl PartialEq for HasExistingContent
impl ContextState for HasExistingContent
In addition to the HasSettings the YAML headers of all clipboard
Content objects are registered as front matter variables fm.fm* in the
Context.
This stage is also used for the TemplateKind::FromTextFile template.
In this case the last inserted Content comes from the text file
the command line parameter <path> points to. This adds the following key:
TMPL_VAR_DOC
This state can evolve as the
insert_front_matter_and_raw_text_from_existing_content() function can be
called several times.
| State order | |
|---|---|
| Previous state | HasSettings or HasExistingContent |
| Current state | HasExistingContent |
| Next state | ReadyForContentTemplate |
impl StructuralPartialEq for HasExistingContent
Auto Trait Implementations§
impl Freeze for HasExistingContent
impl RefUnwindSafe for HasExistingContent
impl Send for HasExistingContent
impl Sync for HasExistingContent
impl Unpin for HasExistingContent
impl UnwindSafe for HasExistingContent
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
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>
Converts
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>
Converts
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