pub enum ReusableTargetSelector {
Folder {
folder: RepositoryNodePath,
},
File {
file: RepositoryFilePath,
},
Package {
package: PackageSelector,
},
Symbol {
symbol: SymbolSelector,
},
}Expand description
Exact local selectors reusable by summary, relation, and source-slice adapters.
Variants§
Folder
Select one repository folder.
Fields
§
folder: RepositoryNodePathExact normalized folder path.
File
Select one repository file.
Fields
§
file: RepositoryFilePathExact normalized file path.
Package
Select one package through its exact manifest-owned identity.
Fields
§
package: PackageSelectorExact package identity whose manifest is directly reusable by file calls.
Symbol
Select one declaration without depending on its current line.
Fields
§
symbol: SymbolSelectorStable declaration identity.
Trait Implementations§
Source§impl Clone for ReusableTargetSelector
impl Clone for ReusableTargetSelector
Source§fn clone(&self) -> ReusableTargetSelector
fn clone(&self) -> ReusableTargetSelector
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReusableTargetSelector
impl Debug for ReusableTargetSelector
Source§impl<'de> Deserialize<'de> for ReusableTargetSelector
impl<'de> Deserialize<'de> for ReusableTargetSelector
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ReusableTargetSelector
impl PartialEq for ReusableTargetSelector
Source§impl Serialize for ReusableTargetSelector
impl Serialize for ReusableTargetSelector
impl Eq for ReusableTargetSelector
impl StructuralPartialEq for ReusableTargetSelector
Auto Trait Implementations§
impl Freeze for ReusableTargetSelector
impl RefUnwindSafe for ReusableTargetSelector
impl Send for ReusableTargetSelector
impl Sync for ReusableTargetSelector
impl Unpin for ReusableTargetSelector
impl UnwindSafe for ReusableTargetSelector
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.