pub struct RootChartSource { /* private fields */ }Expand description
Open root chart directory shared by config discovery and chart analysis.
Implementations§
Source§impl RootChartSource
impl RootChartSource
Sourcepub fn open(path: &Path, load_budget: LoadBudget) -> EngineResult<Self>
pub fn open(path: &Path, load_budget: LoadBudget) -> EngineResult<Self>
Opens a physical chart directory or extracts a packaged chart archive.
§Errors
Returns an error when the path cannot be inspected, is neither a directory nor a supported chart archive, or archive extraction fails.
Sourcepub fn chart_dir(&self) -> &VfsPath
pub fn chart_dir(&self) -> &VfsPath
Returns the root VFS directory used for both config and chart loading.
Sourcepub fn into_chart_dir(self) -> VfsPath
pub fn into_chart_dir(self) -> VfsPath
Consumes the source and returns its root VFS directory.
Trait Implementations§
Source§impl Clone for RootChartSource
impl Clone for RootChartSource
Source§fn clone(&self) -> RootChartSource
fn clone(&self) -> RootChartSource
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 !RefUnwindSafe for RootChartSource
impl !UnwindSafe for RootChartSource
impl Freeze for RootChartSource
impl Send for RootChartSource
impl Sync for RootChartSource
impl Unpin for RootChartSource
impl UnsafeUnpin for RootChartSource
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