Struct x_core::XCoreContext [−][src]
Core context shared across all of x.
Implementations
impl XCoreContext
[src]
pub fn new(
project_root: &'static Path,
current_dir: PathBuf,
config: XCoreConfig
) -> Result<Self>
[src]
project_root: &'static Path,
current_dir: PathBuf,
config: XCoreConfig
) -> Result<Self>
Creates a new XCoreContext.
pub fn project_root(&self) -> &'static Path
[src]
Returns the project root for this workspace.
pub fn config(&self) -> &XCoreConfig
[src]
Returns the core config.
pub fn current_dir(&self) -> &Path
[src]
Returns the current working directory for this process.
pub fn current_rel_dir(&self) -> &Path
[src]
Returns the current working directory for this process, relative to the project root.
pub fn current_dir_is_root(&self) -> bool
[src]
Returns true if x has been run from the project root.
pub fn git_cli(&self) -> &GitCli
[src]
Returns the Git CLI for this workspace.
pub fn package_graph(&self) -> Result<&PackageGraph>
[src]
Returns the package graph for this workspace.
pub fn subsets(&self) -> Result<&WorkspaceSubsets<'_>>
[src]
Returns information about the subsets for this workspace.
pub fn hakari_builder<'a>(&'a self) -> Result<HakariBuilder<'a, 'static>>
[src]
Returns a Hakari builder for this workspace.
pub fn hakari_toml_options(&self) -> TomlOptions
[src]
Returns the default Hakari TOML options for this workspace.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for XCoreContext
impl Send for XCoreContext
impl Sync for XCoreContext
impl Unpin for XCoreContext
impl UnwindSafe for XCoreContext
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> SafeBorrow<T> for T where
T: ?Sized,
T: ?Sized,
pub fn borrow_replacement(ptr: &T) -> &T
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,