pub enum MatchTarget {
Document,
Section {
name: String,
},
CodeBlock {
language: Option<String>,
},
ReferencedFile {
path: String,
},
}Expand description
What was matched by the rule
Variants§
Document
Match in the raw document content
Section
Match in a specific section
CodeBlock
Match in a code block
ReferencedFile
Match in a referenced file
Trait Implementations§
Source§impl Clone for MatchTarget
impl Clone for MatchTarget
Source§fn clone(&self) -> MatchTarget
fn clone(&self) -> MatchTarget
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 MatchTarget
impl Debug for MatchTarget
Source§impl<'de> Deserialize<'de> for MatchTarget
impl<'de> Deserialize<'de> for MatchTarget
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for MatchTarget
impl Display for MatchTarget
Auto Trait Implementations§
impl Freeze for MatchTarget
impl RefUnwindSafe for MatchTarget
impl Send for MatchTarget
impl Sync for MatchTarget
impl Unpin for MatchTarget
impl UnsafeUnpin for MatchTarget
impl UnwindSafe for MatchTarget
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