pub struct WorkspaceOptions {
pub root: PathBuf,
pub scan_roots: Vec<PathBuf>,
pub disk_cache: bool,
}Expand description
Options for Workspace::open_with_options.
Use WorkspaceOptions::single for a single root, or add scan roots for
multi-folder workspaces (same behavior as v0.10 LSP multi-root indexing).
Fields§
§root: PathBufPrimary workspace root (indexed catalog workspace path).
scan_roots: Vec<PathBuf>Additional roots merged into one catalog (multi-root). Primary WorkspaceOptions::root is always scanned.
disk_cache: boolPersist parse snapshots under .strixonomy/cache/.
Implementations§
Trait Implementations§
Source§impl Clone for WorkspaceOptions
impl Clone for WorkspaceOptions
Source§fn clone(&self) -> WorkspaceOptions
fn clone(&self) -> WorkspaceOptions
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 moreAuto Trait Implementations§
impl Freeze for WorkspaceOptions
impl RefUnwindSafe for WorkspaceOptions
impl Send for WorkspaceOptions
impl Sync for WorkspaceOptions
impl Unpin for WorkspaceOptions
impl UnsafeUnpin for WorkspaceOptions
impl UnwindSafe for WorkspaceOptions
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