pub struct FindCfg {
pub path: PathBuf,
pub filters: Vec<String>,
pub line_start: Option<usize>,
pub line_end: Option<usize>,
}
Expand description
Configuration options for finding different types of nodes in a code.
Fields§
§path: PathBuf
Path to the file containing the code
filters: Vec<String>
Types of nodes to find
line_start: Option<usize>
The first line of code considered in the search
If None
, the search starts from the
first line of code in a file
line_end: Option<usize>
The end line of code considered in the search
If None
, the search ends at the
last line of code in a file
Auto Trait Implementations§
impl Freeze for FindCfg
impl RefUnwindSafe for FindCfg
impl Send for FindCfg
impl Sync for FindCfg
impl Unpin for FindCfg
impl UnwindSafe for FindCfg
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