pub struct IncludeHandler { /* private fields */ }Implementations§
Source§impl IncludeHandler
impl IncludeHandler
pub const DEPTH_LIMIT: usize = 30usize
pub fn main_without_config(file: &Path) -> Self
pub fn main( file_path: &Path, includes: Vec<String>, path_remapping: HashMap<PathBuf, PathBuf>, ) -> Self
pub fn get_includes(&self) -> &HashSet<PathBuf>
pub fn get_visited_count(&self, path: &Path) -> usize
pub fn search_in_includes( &mut self, relative_path: &Path, include_callback: &mut dyn FnMut(&Path) -> Option<String>, ) -> Option<(String, PathBuf)>
pub fn push_directory_stack(&mut self, canonical_path: &Path)
pub fn search_path_in_includes( &mut self, relative_path: &Path, ) -> Option<PathBuf>
Trait Implementations§
Source§impl Clone for IncludeHandler
impl Clone for IncludeHandler
Source§fn clone(&self) -> IncludeHandler
fn clone(&self) -> IncludeHandler
Returns a duplicate of the value. Read more
1.0.0 · 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 IncludeHandler
impl Debug for IncludeHandler
Source§impl Default for IncludeHandler
impl Default for IncludeHandler
Source§fn default() -> IncludeHandler
fn default() -> IncludeHandler
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IncludeHandler
impl RefUnwindSafe for IncludeHandler
impl Send for IncludeHandler
impl Sync for IncludeHandler
impl Unpin for IncludeHandler
impl UnwindSafe for IncludeHandler
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