Home
last modified time | relevance | path

Searched refs:GenericArgs (Results 1 – 25 of 227) sorted by relevance

12345678910

/dports/devel/rust-analyzer/rust-analyzer-2021-12-20/crates/hir_def/src/
H A Dpath.rs122 generic_args: Box<[Option<Interned<GenericArgs>>]>,
128 pub struct GenericArgs { struct
174 generic_args: impl Into<Box<[Option<Interned<GenericArgs>>]>>, in from_known_path() argument
223 pub args_and_bindings: Option<&'a GenericArgs>,
228 generic_args: &'a [Option<Interned<GenericArgs>>],
269 impl GenericArgs { implementation
270 pub(crate) fn from_ast(lower_ctx: &LowerCtx, node: ast::GenericArgList) -> Option<GenericArgs> { in from_ast() argument
274 pub(crate) fn empty() -> GenericArgs { in empty()
275 GenericArgs { in empty()
H A Dexpr.rs21 path::{GenericArgs, Path},
91 generic_args: Option<Box<GenericArgs>>,
/dports/lang/rust/rustc-1.58.1-src/src/tools/rust-analyzer/crates/hir_def/src/
H A Dpath.rs122 generic_args: Box<[Option<Interned<GenericArgs>>]>,
128 pub struct GenericArgs { struct
174 generic_args: impl Into<Box<[Option<Interned<GenericArgs>>]>>, in from_known_path() argument
223 pub args_and_bindings: Option<&'a GenericArgs>,
228 generic_args: &'a [Option<Interned<GenericArgs>>],
269 impl GenericArgs { implementation
270 pub(crate) fn from_ast(lower_ctx: &LowerCtx, node: ast::GenericArgList) -> Option<GenericArgs> { in from_ast() argument
274 pub(crate) fn empty() -> GenericArgs { in empty()
275 GenericArgs { in empty()
H A Dexpr.rs21 path::{GenericArgs, Path},
91 generic_args: Option<Box<GenericArgs>>,
/dports/devel/rust-analyzer/rust-analyzer-2021-12-20/crates/hir_def/src/path/
H A Dlower.rs14 path::{GenericArg, GenericArgs, ModPath, Path, PathKind},
86 None => GenericArgs::empty(), in lower_path()
154 ) -> Option<GenericArgs> { in lower_generic_args() argument
191 Some(GenericArgs { args, has_self_type: false, bindings, desugared_from_fn: false }) in lower_generic_args()
200 ) -> Option<GenericArgs> { in lower_generic_args_from_fn_path() argument
227 Some(GenericArgs { args, has_self_type: false, bindings, desugared_from_fn: true }) in lower_generic_args_from_fn_path()
/dports/lang/rust/rustc-1.58.1-src/src/tools/rust-analyzer/crates/hir_def/src/path/
H A Dlower.rs14 path::{GenericArg, GenericArgs, ModPath, Path, PathKind},
86 None => GenericArgs::empty(), in lower_path()
154 ) -> Option<GenericArgs> { in lower_generic_args() argument
191 Some(GenericArgs { args, has_self_type: false, bindings, desugared_from_fn: false }) in lower_generic_args()
200 ) -> Option<GenericArgs> { in lower_generic_args_from_fn_path() argument
227 Some(GenericArgs { args, has_self_type: false, bindings, desugared_from_fn: true }) in lower_generic_args_from_fn_path()
/dports/lang/rust/rustc-1.58.1-src/src/librustdoc/clean/
H A Dutils.rs4 inline, Clean, Crate, ExternalCrate, Generic, GenericArg, GenericArgs, ImportSource, Item,
84 ) -> GenericArgs { in external_generic_args() argument
111 _ => return GenericArgs::AngleBracketed { args, bindings }, in external_generic_args()
119 GenericArgs::Parenthesized { inputs, output } in external_generic_args()
121 GenericArgs::AngleBracketed { args, bindings } in external_generic_args()
150 args: GenericArgs::AngleBracketed { args: vec![], bindings: vec![] }, in strip_path_generics()
H A Dauto_trait.rs358 GenericArgs::AngleBracketed { args, .. } => { in make_final_bounds()
368 GenericArgs::Parenthesized { inputs, output } => (inputs, output), in make_final_bounds()
375 let new_params = GenericArgs::Parenthesized { inputs: old_input, output }; in make_final_bounds()
565 GenericArgs::AngleBracketed { ref mut bindings, .. } => { in param_env_to_generics()
571 GenericArgs::Parenthesized { .. } => { in param_env_to_generics()
/dports/lang/rust/rustc-1.58.1-src/src/librustdoc/json/
H A Dconversions.rs118 impl FromWithTcx<clean::GenericArgs> for GenericArgs { implementation
119 fn from_tcx(args: clean::GenericArgs, tcx: TyCtxt<'_>) -> Self { in from_tcx() argument
120 use clean::GenericArgs::*; in from_tcx()
122 AngleBracketed { args, bindings } => GenericArgs::AngleBracketed { in from_tcx()
126 Parenthesized { inputs, output } => GenericArgs::Parenthesized { in from_tcx()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_ast_lowering/src/
H A Dpath.rs223 GenericArgs::AngleBracketed(ref data) => { in lower_path_segment()
226 GenericArgs::Parenthesized(ref data) => match parenthesized_generic_args { in lower_path_segment()
442 let gen_args = self.arena.alloc(hir::GenericArgs { in output_ty_binding()
/dports/java/openjdk8/jdk8u-jdk8u312-b07.1/langtools/test/tools/javac/lib/
H A DToolBox.java211 public static abstract class GenericArgs <T extends GenericArgs> { class in ToolBox
223 protected GenericArgs() { in GenericArgs() method in ToolBox.GenericArgs
319 public static class JavaToolArgs extends GenericArgs<JavaToolArgs> {
361 public static class AnyToolArgs extends GenericArgs<AnyToolArgs> {
/dports/java/openjdk8-jre/jdk8u-jdk8u312-b07.1/langtools/test/tools/javac/lib/
H A DToolBox.java211 public static abstract class GenericArgs <T extends GenericArgs> { class in ToolBox
223 protected GenericArgs() { in GenericArgs() method in ToolBox.GenericArgs
319 public static class JavaToolArgs extends GenericArgs<JavaToolArgs> {
361 public static class AnyToolArgs extends GenericArgs<AnyToolArgs> {
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_hir/src/
H A Darena.rs19 [] generic_args: rustc_hir::GenericArgs<'tcx>,
/dports/devel/racer/racer-2.1.48/cargo-crates/rustc-ap-rustc_ast-718.0.0/src/
H A Dast.rs22 pub use GenericArgs::*;
146 pub args: Option<P<GenericArgs>>,
170 pub enum GenericArgs { enum
177 impl GenericArgs { impl
239 impl Into<Option<P<GenericArgs>>> for AngleBracketedArgs {
240 fn into(self) -> Option<P<GenericArgs>> { in into() argument
241 Some(P(GenericArgs::AngleBracketed(self))) in into()
245 impl Into<Option<P<GenericArgs>>> for ParenthesizedArgs {
246 fn into(self) -> Option<P<GenericArgs>> { in into() argument
247 Some(P(GenericArgs::Parenthesized(self))) in into()
[all …]
/dports/devel/racer/racer-2.1.48/cargo-crates/rustc-ap-rustc_ast-722.0.0/src/
H A Dast.rs22 pub use GenericArgs::*;
146 pub args: Option<P<GenericArgs>>,
170 pub enum GenericArgs { enum
177 impl GenericArgs { impl
239 impl Into<Option<P<GenericArgs>>> for AngleBracketedArgs {
240 fn into(self) -> Option<P<GenericArgs>> { in into() argument
241 Some(P(GenericArgs::AngleBracketed(self))) in into()
245 impl Into<Option<P<GenericArgs>>> for ParenthesizedArgs {
246 fn into(self) -> Option<P<GenericArgs>> { in into() argument
247 Some(P(GenericArgs::Parenthesized(self))) in into()
[all …]
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_ast/src/
H A Dast.rs22 pub use GenericArgs::*;
146 pub args: Option<P<GenericArgs>>,
170 pub enum GenericArgs { enum
177 impl GenericArgs { implementation
239 impl Into<Option<P<GenericArgs>>> for AngleBracketedArgs {
240 fn into(self) -> Option<P<GenericArgs>> { in into() argument
241 Some(P(GenericArgs::AngleBracketed(self))) in into()
245 impl Into<Option<P<GenericArgs>>> for ParenthesizedArgs {
246 fn into(self) -> Option<P<GenericArgs>> { in into() argument
247 Some(P(GenericArgs::Parenthesized(self))) in into()
[all …]
/dports/lang/rust/rustc-1.58.1-src/vendor/rustc-ap-rustc_ast/src/
H A Dast.rs22 pub use GenericArgs::*;
146 pub args: Option<P<GenericArgs>>,
170 pub enum GenericArgs { enum
177 impl GenericArgs { impl
239 impl Into<Option<P<GenericArgs>>> for AngleBracketedArgs {
240 fn into(self) -> Option<P<GenericArgs>> { in into() argument
241 Some(P(GenericArgs::AngleBracketed(self))) in into()
245 impl Into<Option<P<GenericArgs>>> for ParenthesizedArgs {
246 fn into(self) -> Option<P<GenericArgs>> { in into() argument
247 Some(P(GenericArgs::Parenthesized(self))) in into()
[all …]
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_typeck/src/astconv/
H A Dgenerics.rs425 let empty_args = hir::GenericArgs::none(); in check_generic_arg_count_for_call()
451 gen_args: &hir::GenericArgs<'_>, in check_generic_arg_count()
693 args: &hir::GenericArgs<'_>, in prohibit_explicit_late_bound_lifetimes()
H A Dmod.rs23 use rustc_hir::{GenericArg, GenericArgs};
119 gen_args: &'a GenericArgs<'a>,
178 fn args_for_def_id(&mut self, def_id: DefId) -> (Option<&'a GenericArgs<'a>>, bool); in args_for_def_id()
325 generic_args: &'a hir::GenericArgs<'_>, in create_substs_for_ast_path()
375 generic_args: &'a GenericArgs<'a>, in create_substs_for_ast_path()
403 fn args_for_def_id(&mut self, did: DefId) -> (Option<&'a GenericArgs<'a>>, bool) { in create_substs_for_ast_path()
609 generic_args: &'a hir::GenericArgs<'_>, in create_assoc_bindings_for_generic_args()
707 args: &GenericArgs<'_>, in instantiate_poly_trait_ref_inner()
812 args: &GenericArgs<'_>, in instantiate_lang_item_trait_ref()
2366 &GenericArgs::none(), in ast_ty_to_ty_inner()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_ast_passes/src/
H A Dnode_count.rs125 fn visit_generic_args(&mut self, path_span: Span, generic_args: &GenericArgs) { in visit_generic_args() argument
/dports/lang/rust/rustc-1.58.1-src/src/tools/clippy/clippy_utils/src/
H A Dast_utils.rs99 pub fn eq_generic_args(l: &GenericArgs, r: &GenericArgs) -> bool { in eq_generic_args() argument
101 …(GenericArgs::AngleBracketed(l), GenericArgs::AngleBracketed(r)) => over(&l.args, &r.args, eq_angl… in eq_generic_args()
102 (GenericArgs::Parenthesized(l), GenericArgs::Parenthesized(r)) => { in eq_generic_args()
/dports/lang/rust/rustc-1.58.1-src/src/tools/clippy/clippy_lints/src/
H A Dunused_unit.rs98 if let ast::GenericArgs::Parenthesized(generic_args) = &**args; in check_poly_trait_ref()
/dports/devel/racer/racer-2.1.48/cargo-crates/rustc-ap-rustc_parse-722.0.0/src/parser/
H A Dpath.rs8 use rustc_ast::{GenericArg, GenericArgs};
574 ) -> Result<(Ident, Option<GenericArgs>), GenericArg> { in get_ident_from_generic_arg() argument
/dports/devel/racer/racer-2.1.48/cargo-crates/rustc-ap-rustc_parse-718.0.0/src/parser/
H A Dpath.rs8 use rustc_ast::{GenericArg, GenericArgs};
574 ) -> Result<(Ident, Option<GenericArgs>), GenericArg> { in get_ident_from_generic_arg() argument
/dports/lang/rust/rustc-1.58.1-src/vendor/rustc-ap-rustc_parse/src/parser/
H A Dpath.rs8 use rustc_ast::{GenericArg, GenericArgs};
574 ) -> Result<(Ident, Option<GenericArgs>), GenericArg> { in get_ident_from_generic_arg() argument

12345678910