pub enum LinkRewriteAction {
Keep,
Rewrite(String),
Unlink,
}Expand description
Action to perform on a detected markdown link during rewrite.
Variants§
Keep
Keep the link destination as-is.
Rewrite(String)
Rewrite the destination URL to a new target (preserving title and brackets).
Unlink
Unlink: replace [Text](dest) with plain Text.
Trait Implementations§
Source§impl Clone for LinkRewriteAction
impl Clone for LinkRewriteAction
Source§fn clone(&self) -> LinkRewriteAction
fn clone(&self) -> LinkRewriteAction
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 LinkRewriteAction
impl Debug for LinkRewriteAction
impl Eq for LinkRewriteAction
Source§impl PartialEq for LinkRewriteAction
impl PartialEq for LinkRewriteAction
impl StructuralPartialEq for LinkRewriteAction
Auto Trait Implementations§
impl Freeze for LinkRewriteAction
impl RefUnwindSafe for LinkRewriteAction
impl Send for LinkRewriteAction
impl Sync for LinkRewriteAction
impl Unpin for LinkRewriteAction
impl UnsafeUnpin for LinkRewriteAction
impl UnwindSafe for LinkRewriteAction
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