pub enum PotholeContent {
Empty,
WidthToken {
width: &'static str,
rest_alias: String,
},
Params(TitleParams),
Alias(String),
}Expand description
Classification of pothole text (|... in [[file|...]]).
Variants§
Empty
No pothole or pothole is whitespace-only.
WidthToken
Obsidian width-token shorthand: [[img.jpg|400]], [[img.jpg|100%]],
[[img.jpg|200x150]]. Carries the canonical width string
(one of body | wide | page | screen after token-matching) and the
trailing alias remainder (often empty).
Params(TitleParams)
Typed params: every whitespace-separated token matched
^[a-z][a-z0-9_-]*=....
Alias(String)
Plain alias display text (Obsidian default).
Trait Implementations§
Source§impl Clone for PotholeContent
impl Clone for PotholeContent
Source§fn clone(&self) -> PotholeContent
fn clone(&self) -> PotholeContent
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 PotholeContent
impl Debug for PotholeContent
Source§impl PartialEq for PotholeContent
impl PartialEq for PotholeContent
impl StructuralPartialEq for PotholeContent
Auto Trait Implementations§
impl Freeze for PotholeContent
impl RefUnwindSafe for PotholeContent
impl Send for PotholeContent
impl Sync for PotholeContent
impl Unpin for PotholeContent
impl UnsafeUnpin for PotholeContent
impl UnwindSafe for PotholeContent
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