pub enum MetaCarrier {
Fenced(EmbedType),
WholeFile(Format),
}Expand description
Where a document’s metadata physically lives — recorded at parse time so a
write can preserve the original carrier exactly (a ```fig block is
never rewritten as --- YAML; a bare .yaml file never grows fences).
Variants§
Fenced(EmbedType)
A fenced block inside a host file (--- YAML, ;;; JSON,
```fig, endmatter), with the prose body around it.
WholeFile(Format)
The entire file is the metadata (a config document); the body is empty. The format comes from the file extension.
Implementations§
Trait Implementations§
Source§impl Clone for MetaCarrier
impl Clone for MetaCarrier
Source§fn clone(&self) -> MetaCarrier
fn clone(&self) -> MetaCarrier
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MetaCarrier
Source§impl Debug for MetaCarrier
impl Debug for MetaCarrier
impl Eq for MetaCarrier
Source§impl PartialEq for MetaCarrier
impl PartialEq for MetaCarrier
impl StructuralPartialEq for MetaCarrier
Auto Trait Implementations§
impl Freeze for MetaCarrier
impl RefUnwindSafe for MetaCarrier
impl Send for MetaCarrier
impl Sync for MetaCarrier
impl Unpin for MetaCarrier
impl UnsafeUnpin for MetaCarrier
impl UnwindSafe for MetaCarrier
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<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
Compare self to
key and return true if they are equal.