pub enum DeclScope {
Package,
Target(String),
Workspace,
}Expand description
Which manifest table a cited declaration lives in. Together
with DeclSite::field this is enough for a renderer to
re-locate the declaration’s span in the manifest text.
Variants§
Package
The [package] table.
Target(String)
The [target.<name>] table of the carried target.
Workspace
The [workspace] table of the workspace root manifest
(the value was inherited via { workspace = true }).
Trait Implementations§
impl Eq for DeclScope
impl StructuralPartialEq for DeclScope
Auto Trait Implementations§
impl Freeze for DeclScope
impl RefUnwindSafe for DeclScope
impl Send for DeclScope
impl Sync for DeclScope
impl Unpin for DeclScope
impl UnsafeUnpin for DeclScope
impl UnwindSafe for DeclScope
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.