#[non_exhaustive]pub enum EmbedType {
Show 19 variants
FrontmatterYaml,
FrontmatterJson,
EndmatterYaml,
FrontmatterFig,
PlusToml,
FencedYaml,
FencedJson,
FencedToml,
MdFrontmatterJson,
MdFrontmatterToml,
MdFrontmatterFig,
HtmlScriptFig,
HtmlScriptYaml,
HtmlScriptJson,
HtmlScriptToml,
HtmlCodeFig,
HtmlCodeYaml,
HtmlCodeJson,
HtmlCodeToml,
}Expand description
The embed archetype a fenced metadata block was found in. Re-exported from
fig, which owns both detection (fig::detect) and the fence/format
coupling (EmbedType::inner_format).
Which embedded config to open — the flat mirror of fig’s parametric
Embed.Type. The three parametric families (markdown ---<lang>
frontmatter, ```<lang> fenced blocks, <script type> HTML data
islands) are enumerated once per format. The first four names are historical
(FrontmatterJson is the ;;; block, FrontmatterFig is the ```fig
fenced block); the rest are grouped by container.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
FrontmatterYaml
--- … ---/... bare YAML frontmatter.
FrontmatterJson
;;; … ;;; JSON frontmatter.
EndmatterYaml
YAML in a trailing ```endmatter code block.
FrontmatterFig
```fig … ``` fenced block (the fig authoring dialect).
PlusToml
+++ … +++ TOML frontmatter — the Hugo/Zola convention.
FencedYaml
```yaml fenced block.
FencedJson
```json fenced block.
FencedToml
```toml fenced block.
MdFrontmatterJson
---json … --- markdown frontmatter.
MdFrontmatterToml
---toml … --- markdown frontmatter.
MdFrontmatterFig
---fig … --- markdown frontmatter.
HtmlScriptFig
<script type="application/figl"> … </script> HTML data island.
HtmlScriptYaml
<script type="application/yaml"> … </script> HTML data island.
HtmlScriptJson
<script type="application/json"> … </script> HTML data island.
HtmlScriptToml
<script type="application/toml"> … </script> HTML data island.
HtmlCodeFig
<pre><code class="language-figl"> … </code></pre> visible code block.
Content is entity-encoded; editing decodes on open and re-encodes
span-aware on render, so an edit preserves every untouched byte’s original
encoding while canonically encoding only what changed.
HtmlCodeYaml
<pre><code class="language-yaml"> visible code block.
HtmlCodeJson
<pre><code class="language-json"> visible code block.
HtmlCodeToml
<pre><code class="language-toml"> visible code block.
Implementations§
Trait Implementations§
impl Copy for EmbedType
impl Eq for EmbedType
impl StructuralPartialEq for EmbedType
Auto Trait Implementations§
impl Freeze for EmbedType
impl RefUnwindSafe for EmbedType
impl Send for EmbedType
impl Sync for EmbedType
impl Unpin for EmbedType
impl UnsafeUnpin for EmbedType
impl UnwindSafe for EmbedType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.