#[non_exhaustive]pub enum FrontMatterFormat {
Yaml,
Toml,
Json,
}Expand description
Which front-matter shape a document carries, and where its body starts.
Returned by detect_front_matter; the byte offset is the first byte
after the closing delimiter, so &content[body_start..] is the body.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
Source§impl Clone for FrontMatterFormat
impl Clone for FrontMatterFormat
impl Copy for FrontMatterFormat
Source§impl Debug for FrontMatterFormat
impl Debug for FrontMatterFormat
Source§impl Display for FrontMatterFormat
impl Display for FrontMatterFormat
impl Eq for FrontMatterFormat
Source§impl Hash for FrontMatterFormat
impl Hash for FrontMatterFormat
Source§impl PartialEq for FrontMatterFormat
impl PartialEq for FrontMatterFormat
impl StructuralPartialEq for FrontMatterFormat
Auto Trait Implementations§
impl Freeze for FrontMatterFormat
impl RefUnwindSafe for FrontMatterFormat
impl Send for FrontMatterFormat
impl Sync for FrontMatterFormat
impl Unpin for FrontMatterFormat
impl UnsafeUnpin for FrontMatterFormat
impl UnwindSafe for FrontMatterFormat
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.