pub struct ConfigDiscovery { /* private fields */ }Expand description
Hierarchical config discovery with workspace root stopping point
Implementations§
Source§impl ConfigDiscovery
impl ConfigDiscovery
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new ConfigDiscovery for CLI usage (uses current working directory as boundary)
Sourcepub fn with_workspace_roots(roots: Vec<PathBuf>) -> Self
pub fn with_workspace_roots(roots: Vec<PathBuf>) -> Self
Create a new ConfigDiscovery for LSP usage with workspace roots
Sourcepub fn find_config(&self, file_path: &Path) -> ConfigSearchResult
pub fn find_config(&self, file_path: &Path) -> ConfigSearchResult
Find configuration file starting from the given file path
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConfigDiscovery
impl RefUnwindSafe for ConfigDiscovery
impl Send for ConfigDiscovery
impl Sync for ConfigDiscovery
impl Unpin for ConfigDiscovery
impl UnwindSafe for ConfigDiscovery
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