Enum ra_ap_base_db::CrateOrigin
source · pub enum CrateOrigin {
Rustc {
name: String,
},
Local {
repo: Option<String>,
name: Option<String>,
},
Library {
repo: Option<String>,
name: String,
},
Lang(LangCrateOrigin),
}
Expand description
Origin of the crates.
Variants§
Rustc
Crates that are from the rustc workspace.
Local
Crates that are workspace members.
Library
Crates that are non member libraries.
Lang(LangCrateOrigin)
Crates that are provided by the language, like std, core, proc-macro, …
Implementations§
Trait Implementations§
source§impl Clone for CrateOrigin
impl Clone for CrateOrigin
source§fn clone(&self) -> CrateOrigin
fn clone(&self) -> CrateOrigin
Returns a copy 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 CrateOrigin
impl Debug for CrateOrigin
source§impl Hash for CrateOrigin
impl Hash for CrateOrigin
source§impl PartialEq for CrateOrigin
impl PartialEq for CrateOrigin
source§fn eq(&self, other: &CrateOrigin) -> bool
fn eq(&self, other: &CrateOrigin) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CrateOrigin
impl StructuralPartialEq for CrateOrigin
Auto Trait Implementations§
impl Freeze for CrateOrigin
impl RefUnwindSafe for CrateOrigin
impl Send for CrateOrigin
impl Sync for CrateOrigin
impl Unpin for CrateOrigin
impl UnwindSafe for CrateOrigin
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<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.