pub struct ConfigOrigin { /* private fields */ }Expand description
An immutable source origin for one workspace manifest.
The manifest path is confined under the explicit workspace root. All wire paths are resolved relative to the manifest’s owning directory, never the process current directory.
Implementations§
Source§impl ConfigOrigin
impl ConfigOrigin
Sourcepub fn new(
workspace_root: WorkspaceRoot,
manifest_path: impl Into<PathBuf>,
diagnostic_name: impl Into<String>,
) -> Result<Self, WorkspaceConfigError>
pub fn new( workspace_root: WorkspaceRoot, manifest_path: impl Into<PathBuf>, diagnostic_name: impl Into<String>, ) -> Result<Self, WorkspaceConfigError>
Construct a captured manifest origin under an explicit workspace root.
Sourcepub const fn workspace_root(&self) -> &WorkspaceRoot
pub const fn workspace_root(&self) -> &WorkspaceRoot
Return the explicit canonical workspace root.
Sourcepub fn manifest_path(&self) -> &Path
pub fn manifest_path(&self) -> &Path
Return the manifest path relative to the workspace root.
Sourcepub fn manifest_absolute_path(&self) -> PathBuf
pub fn manifest_absolute_path(&self) -> PathBuf
Return the manifest path resolved under the workspace root.
Sourcepub fn diagnostic_name(&self) -> &str
pub fn diagnostic_name(&self) -> &str
Return the immutable diagnostic origin name.
Trait Implementations§
Source§impl Clone for ConfigOrigin
impl Clone for ConfigOrigin
Source§impl Debug for ConfigOrigin
impl Debug for ConfigOrigin
impl Eq for ConfigOrigin
Source§impl PartialEq for ConfigOrigin
impl PartialEq for ConfigOrigin
impl StructuralPartialEq for ConfigOrigin
Auto Trait Implementations§
impl Freeze for ConfigOrigin
impl RefUnwindSafe for ConfigOrigin
impl Send for ConfigOrigin
impl Sync for ConfigOrigin
impl Unpin for ConfigOrigin
impl UnsafeUnpin for ConfigOrigin
impl UnwindSafe for ConfigOrigin
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more