pub enum TransImplSource {
Normal,
TraitAlias,
Callable(ClosureKind),
ImplicitDestruct,
}Expand description
The kind of a TransItemSourceKind::TraitImpl.
Variants§
Normal
A user-written trait impl with a DefId.
TraitAlias
The blanket impl we generate for a trait alias. The DefId is that of the trait alias.
Callable(ClosureKind)
An impl of the appropriate Fn* trait for a closure or function item.
ImplicitDestruct
A fictitious impl Destruct for T that contains the drop glue code for the given ADT or
closure. The DefId is that of the ADT or closure.
Implementations§
Source§impl TransImplSource
impl TransImplSource
pub fn variant_index_arity(&self) -> (u32, usize)
Trait Implementations§
Source§impl Clone for TransImplSource
impl Clone for TransImplSource
Source§fn clone(&self) -> TransImplSource
fn clone(&self) -> TransImplSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TransImplSource
Source§impl Debug for TransImplSource
impl Debug for TransImplSource
impl Eq for TransImplSource
Source§impl Hash for TransImplSource
impl Hash for TransImplSource
Source§impl Ord for TransImplSource
impl Ord for TransImplSource
Source§fn cmp(&self, other: &TransImplSource) -> Ordering
fn cmp(&self, other: &TransImplSource) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TransImplSource
impl PartialEq for TransImplSource
Source§impl PartialOrd for TransImplSource
impl PartialOrd for TransImplSource
impl StructuralPartialEq for TransImplSource
Auto Trait Implementations§
impl DynSend for TransImplSource
impl DynSync for TransImplSource
impl Freeze for TransImplSource
impl RefUnwindSafe for TransImplSource
impl Send for TransImplSource
impl Sync for TransImplSource
impl Unpin for TransImplSource
impl UnsafeUnpin for TransImplSource
impl UnwindSafe for TransImplSource
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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
Checks if this value is equivalent to the given key. Read more
§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.impl<T> HashConsable for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more