Struct rustc::ty::sty::ParamTy [−][src]
pub struct ParamTy {
pub idx: u32,
pub name: InternedString,
}🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Fields
idx: u32
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
name: InternedString
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Methods
impl<'a, 'gcx, 'tcx> ParamTy[src]
impl<'a, 'gcx, 'tcx> ParamTypub fn new(index: u32, name: InternedString) -> ParamTy[src]
pub fn new(index: u32, name: InternedString) -> ParamTy🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn for_self() -> ParamTy[src]
pub fn for_self() -> ParamTy🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn for_def(def: &GenericParamDef) -> ParamTy[src]
pub fn for_def(def: &GenericParamDef) -> ParamTy🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn to_ty(self, tcx: TyCtxt<'a, 'gcx, 'tcx>) -> Ty<'tcx>[src]
pub fn to_ty(self, tcx: TyCtxt<'a, 'gcx, 'tcx>) -> Ty<'tcx>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn is_self(&self) -> bool[src]
pub fn is_self(&self) -> bool🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Trait Implementations
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for ParamTy[src]
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for ParamTyfn hash_stable<W: StableHasherResult>(
&self,
__ctx: &mut StableHashingContext<'a>,
__hasher: &mut StableHasher<W>
)[src]
fn hash_stable<W: StableHasherResult>(
&self,
__ctx: &mut StableHashingContext<'a>,
__hasher: &mut StableHasher<W>
)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl Clone for ParamTy[src]
impl Clone for ParamTyfn clone(&self) -> ParamTy[src]
fn clone(&self) -> ParamTyReturns 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)Performs copy-assignment from source. Read more
impl Copy for ParamTy[src]
impl Copy for ParamTyimpl PartialEq for ParamTy[src]
impl PartialEq for ParamTyfn eq(&self, other: &ParamTy) -> bool[src]
fn eq(&self, other: &ParamTy) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &ParamTy) -> bool[src]
fn ne(&self, other: &ParamTy) -> boolThis method tests for !=.
impl Eq for ParamTy[src]
impl Eq for ParamTyfn assert_receiver_is_total_eq(&self)[src]
fn assert_receiver_is_total_eq(&self)impl PartialOrd for ParamTy[src]
impl PartialOrd for ParamTyfn partial_cmp(&self, other: &ParamTy) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &ParamTy) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &ParamTy) -> bool[src]
fn lt(&self, other: &ParamTy) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &ParamTy) -> bool[src]
fn le(&self, other: &ParamTy) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &ParamTy) -> bool[src]
fn gt(&self, other: &ParamTy) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &ParamTy) -> bool[src]
fn ge(&self, other: &ParamTy) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for ParamTy[src]
impl Ord for ParamTyfn cmp(&self, other: &ParamTy) -> Ordering[src]
fn cmp(&self, other: &ParamTy) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl Hash for ParamTy[src]
impl Hash for ParamTyfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Encodable for ParamTy[src]
impl Encodable for ParamTyfn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>[src]
fn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl Decodable for ParamTy[src]
impl Decodable for ParamTyfn decode<__D: Decoder>(d: &mut __D) -> Result<ParamTy, __D::Error>[src]
fn decode<__D: Decoder>(d: &mut __D) -> Result<ParamTy, __D::Error>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl Print for ParamTy[src]
impl Print for ParamTyfn print<F: Write>(&self, f: &mut F, cx: &mut PrintContext) -> Result[src]
fn print<F: Write>(&self, f: &mut F, cx: &mut PrintContext) -> Result🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn print_to_string(&self, cx: &mut PrintContext) -> String[src]
fn print_to_string(&self, cx: &mut PrintContext) -> String🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn print_display<F: Write>(&self, f: &mut F, cx: &mut PrintContext) -> Result[src]
fn print_display<F: Write>(&self, f: &mut F, cx: &mut PrintContext) -> Result🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn print_display_to_string(&self, cx: &mut PrintContext) -> String[src]
fn print_display_to_string(&self, cx: &mut PrintContext) -> String🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn print_debug<F: Write>(&self, f: &mut F, cx: &mut PrintContext) -> Result[src]
fn print_debug<F: Write>(&self, f: &mut F, cx: &mut PrintContext) -> Result🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn print_debug_to_string(&self, cx: &mut PrintContext) -> String[src]
fn print_debug_to_string(&self, cx: &mut PrintContext) -> String🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
impl Display for ParamTy[src]
impl Display for ParamTyfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Debug for ParamTy[src]
impl Debug for ParamTy