pub enum EntitySelector {
Project,
Folder {
path: RepositoryNodePath,
},
File {
path: RepositoryFilePath,
},
Package {
package: PackageSelector,
},
Symbol {
symbol: SymbolSelector,
},
External {
external: ExternalSelector,
},
}Expand description
Closed entity selectors owned by the repository graph domain.
Variants§
Project
The selected project instance itself.
Folder
One repository folder.
Fields
§
path: RepositoryNodePathNormalized repository-relative folder path.
File
One repository file.
Fields
§
path: RepositoryFilePathNormalized repository-relative file path.
Package
One package owned by a manifest.
Fields
§
package: PackageSelectorTyped package identity.
Symbol
One declaration stable across line movement.
Fields
§
symbol: SymbolSelectorTyped declaration identity.
External
One target outside the selected local project.
Fields
§
external: ExternalSelectorTyped external identity.
Trait Implementations§
Source§impl Clone for EntitySelector
impl Clone for EntitySelector
Source§fn clone(&self) -> EntitySelector
fn clone(&self) -> EntitySelector
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 EntitySelector
impl Debug for EntitySelector
Source§impl<'de> Deserialize<'de> for EntitySelector
impl<'de> Deserialize<'de> for EntitySelector
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 EntitySelector
impl PartialEq for EntitySelector
Source§impl Serialize for EntitySelector
impl Serialize for EntitySelector
impl Eq for EntitySelector
impl StructuralPartialEq for EntitySelector
Auto Trait Implementations§
impl Freeze for EntitySelector
impl RefUnwindSafe for EntitySelector
impl Send for EntitySelector
impl Sync for EntitySelector
impl Unpin for EntitySelector
impl UnwindSafe for EntitySelector
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.