Enum proc_macro_crate::FoundCrate
source · pub enum FoundCrate {
Itself,
Name(String),
}
Expand description
The crate as found by crate_name
.
Variants§
Itself
The searched crate is this crate itself.
Name(String)
The searched crate was found with this name.
Trait Implementations§
source§impl Clone for FoundCrate
impl Clone for FoundCrate
source§fn clone(&self) -> FoundCrate
fn clone(&self) -> FoundCrate
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 FoundCrate
impl Debug for FoundCrate
source§impl PartialEq<FoundCrate> for FoundCrate
impl PartialEq<FoundCrate> for FoundCrate
source§fn eq(&self, other: &FoundCrate) -> bool
fn eq(&self, other: &FoundCrate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for FoundCrate
impl StructuralEq for FoundCrate
impl StructuralPartialEq for FoundCrate
Auto Trait Implementations§
impl RefUnwindSafe for FoundCrate
impl Send for FoundCrate
impl Sync for FoundCrate
impl Unpin for FoundCrate
impl UnwindSafe for FoundCrate
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.