pub enum PathContainer {
GalleryBody,
HeroBodyMedia,
HeroDirective,
ShortcodeAttr {
key: String,
},
FrontmatterField {
key: String,
},
}Expand description
Which container a structurally-extracted path was found in. Decides quoting when the value is rebuilt.
Variants§
GalleryBody
A body line of a :::gallery block.
HeroBodyMedia
A body media line of a :::hero block.
HeroDirective
The positional path on a :::hero <path> directive line.
ShortcodeAttr
A key=value attribute of a ::: block (today only image=).
FrontmatterField
A frontmatter field whose value names a project file.
Trait Implementations§
Source§impl Clone for PathContainer
impl Clone for PathContainer
Source§fn clone(&self) -> PathContainer
fn clone(&self) -> PathContainer
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 moreSource§impl Debug for PathContainer
impl Debug for PathContainer
impl Eq for PathContainer
Source§impl PartialEq for PathContainer
impl PartialEq for PathContainer
impl StructuralPartialEq for PathContainer
Auto Trait Implementations§
impl Freeze for PathContainer
impl RefUnwindSafe for PathContainer
impl Send for PathContainer
impl Sync for PathContainer
impl Unpin for PathContainer
impl UnsafeUnpin for PathContainer
impl UnwindSafe for PathContainer
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.