Enum rustdoc::core::ImplTraitParam
source · pub(crate) enum ImplTraitParam {
DefId(DefId),
ParamIndex(u32),
}
Expand description
DefId
or parameter index (ty::ParamTy.index
) of a synthetic type parameter
for impl Trait
in argument position.
Variants§
Trait Implementations§
source§impl Clone for ImplTraitParam
impl Clone for ImplTraitParam
source§fn clone(&self) -> ImplTraitParam
fn clone(&self) -> ImplTraitParam
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 From<DefId> for ImplTraitParam
impl From<DefId> for ImplTraitParam
source§impl From<u32> for ImplTraitParam
impl From<u32> for ImplTraitParam
source§impl Hash for ImplTraitParam
impl Hash for ImplTraitParam
source§impl Ord for ImplTraitParam
impl Ord for ImplTraitParam
source§fn cmp(&self, other: &ImplTraitParam) -> Ordering
fn cmp(&self, other: &ImplTraitParam) -> Ordering
1.21.0 · 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<ImplTraitParam> for ImplTraitParam
impl PartialEq<ImplTraitParam> for ImplTraitParam
source§fn eq(&self, other: &ImplTraitParam) -> bool
fn eq(&self, other: &ImplTraitParam) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ImplTraitParam> for ImplTraitParam
impl PartialOrd<ImplTraitParam> for ImplTraitParam
source§fn partial_cmp(&self, other: &ImplTraitParam) -> Option<Ordering>
fn partial_cmp(&self, other: &ImplTraitParam) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ImplTraitParam
impl Eq for ImplTraitParam
impl StructuralEq for ImplTraitParam
impl StructuralPartialEq for ImplTraitParam
Auto Trait Implementations§
impl RefUnwindSafe for ImplTraitParam
impl Send for ImplTraitParam
impl Sync for ImplTraitParam
impl Unpin for ImplTraitParam
impl UnwindSafe for ImplTraitParam
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes
Size for each variant:
DefId
: 8 bytesParamIndex
: 8 bytes