Enum ra_ap_hir::GenericDef [−][src]
pub enum GenericDef { Function(Function), Adt(Adt), Trait(Trait), TypeAlias(TypeAlias), Impl(Impl), Variant(Variant), Const(Const), }
Variants
Function(Function)
Adt(Adt)
Trait(Trait)
TypeAlias(TypeAlias)
Impl(Impl)
Variant(Variant)
Const(Const)
Implementations
impl GenericDef
[src]
impl GenericDef
[src]pub fn params(self, db: &dyn HirDatabase) -> Vec<GenericParam>
[src]
pub fn type_params(self, db: &dyn HirDatabase) -> Vec<TypeParam>
[src]
Trait Implementations
impl Clone for GenericDef
[src]
impl Clone for GenericDef
[src]fn clone(&self) -> GenericDef
[src]
fn clone(&self) -> GenericDef
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for GenericDef
[src]
impl Debug for GenericDef
[src]impl From<Adt> for GenericDef
[src]
impl From<Adt> for GenericDef
[src]fn from(it: Adt) -> GenericDef
[src]
fn from(it: Adt) -> GenericDef
[src]Performs the conversion.
impl From<Const> for GenericDef
[src]
impl From<Const> for GenericDef
[src]fn from(it: Const) -> GenericDef
[src]
fn from(it: Const) -> GenericDef
[src]Performs the conversion.
impl From<Enum> for GenericDef
[src]
impl From<Enum> for GenericDef
[src]fn from(it: Enum) -> GenericDef
[src]
fn from(it: Enum) -> GenericDef
[src]Performs the conversion.
impl From<Function> for GenericDef
[src]
impl From<Function> for GenericDef
[src]fn from(it: Function) -> GenericDef
[src]
fn from(it: Function) -> GenericDef
[src]Performs the conversion.
impl From<GenericDefId> for GenericDef
[src]
impl From<GenericDefId> for GenericDef
[src]fn from(def: GenericDefId) -> Self
[src]
fn from(def: GenericDefId) -> Self
[src]Performs the conversion.
impl From<Impl> for GenericDef
[src]
impl From<Impl> for GenericDef
[src]fn from(it: Impl) -> GenericDef
[src]
fn from(it: Impl) -> GenericDef
[src]Performs the conversion.
impl From<Struct> for GenericDef
[src]
impl From<Struct> for GenericDef
[src]fn from(it: Struct) -> GenericDef
[src]
fn from(it: Struct) -> GenericDef
[src]Performs the conversion.
impl From<Trait> for GenericDef
[src]
impl From<Trait> for GenericDef
[src]fn from(it: Trait) -> GenericDef
[src]
fn from(it: Trait) -> GenericDef
[src]Performs the conversion.
impl From<TypeAlias> for GenericDef
[src]
impl From<TypeAlias> for GenericDef
[src]fn from(it: TypeAlias) -> GenericDef
[src]
fn from(it: TypeAlias) -> GenericDef
[src]Performs the conversion.
impl From<Union> for GenericDef
[src]
impl From<Union> for GenericDef
[src]fn from(it: Union) -> GenericDef
[src]
fn from(it: Union) -> GenericDef
[src]Performs the conversion.
impl From<Variant> for GenericDef
[src]
impl From<Variant> for GenericDef
[src]fn from(it: Variant) -> GenericDef
[src]
fn from(it: Variant) -> GenericDef
[src]Performs the conversion.
impl Hash for GenericDef
[src]
impl Hash for GenericDef
[src]impl PartialEq<GenericDef> for GenericDef
[src]
impl PartialEq<GenericDef> for GenericDef
[src]fn eq(&self, other: &GenericDef) -> bool
[src]
fn eq(&self, other: &GenericDef) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &GenericDef) -> bool
[src]
fn ne(&self, other: &GenericDef) -> bool
[src]This method tests for !=
.
impl Copy for GenericDef
[src]
impl Eq for GenericDef
[src]
impl StructuralEq for GenericDef
[src]
impl StructuralPartialEq for GenericDef
[src]
Auto Trait Implementations
impl RefUnwindSafe for GenericDef
impl Send for GenericDef
impl Sync for GenericDef
impl Unpin for GenericDef
impl UnwindSafe for GenericDef
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Cast for T
impl<T> Cast for T
fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
Cast a value to type U
using CastTo
.
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> Any for T where
T: Any,
T: Any,
impl<T> CloneAny for T where
T: Any + Clone,
T: Any + Clone,