/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_typeck/src/check/ |
H A D | compare_method.rs | 13 use rustc_middle::ty::util::ExplicitSelf; 307 let sugg = match ExplicitSelf::determine(ty, |_| ty == impl_trait_ref.self_ty()) in compare_predicate_entailment() 309 ExplicitSelf::ByValue => "self".to_owned(), in compare_predicate_entailment() 310 ExplicitSelf::ByReference(_, hir::Mutability::Not) => "&self".to_owned(), in compare_predicate_entailment() 311 ExplicitSelf::ByReference(_, hir::Mutability::Mut) => { in compare_predicate_entailment() 519 match ExplicitSelf::determine(self_arg_ty, can_eq_self) { in compare_self_type() 520 ExplicitSelf::ByValue => "self".to_owned(), in compare_self_type() 521 ExplicitSelf::ByReference(_, hir::Mutability::Not) => "&self".to_owned(), in compare_self_type() 522 ExplicitSelf::ByReference(_, hir::Mutability::Mut) => "&mut self".to_owned(), in compare_self_type()
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_middle/src/ty/ |
H A D | util.rs | 928 pub enum ExplicitSelf<'tcx> { enum 936 impl<'tcx> ExplicitSelf<'tcx> { implementation 961 pub fn determine<P>(self_arg_ty: Ty<'tcx>, is_self_ty: P) -> ExplicitSelf<'tcx> in determine() 965 use self::ExplicitSelf::*; in determine()
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_builtin_macros/src/deriving/generic/ |
H A D | ty.rs | 256 ) -> (P<Expr>, ast::ExplicitSelf) { in get_explicit_self() argument
|
H A D | mod.rs | 880 ) -> (Option<ast::ExplicitSelf>, Vec<P<Expr>>, Vec<P<Expr>>, Vec<(Ident, P<ast::Ty>)>) { in split_self_nonself_args() argument 926 explicit_self: Option<ast::ExplicitSelf>, in create_method() argument
|
/dports/editors/helix/helix-0.5.0/helix-syntax/languages/tree-sitter-rust/examples/ |
H A D | ast.rs | 1649 pub type ExplicitSelf = Spanned<SelfKind>; typedef 1652 pub fn to_self(&self) -> Option<ExplicitSelf> { in to_self() argument 1676 pub fn from_self(eself: ExplicitSelf, eself_ident: SpannedIdent) -> Arg { in from_self() argument 1715 pub fn get_self(&self) -> Option<ExplicitSelf> { in get_self() argument
|
/dports/devel/racer/racer-2.1.48/cargo-crates/rustc-ap-rustc_ast-718.0.0/src/ |
H A D | ast.rs | 2081 pub type ExplicitSelf = Spanned<SelfKind>; typedef 2085 pub fn to_self(&self) -> Option<ExplicitSelf> { in to_self() argument 2113 pub fn from_self(attrs: AttrVec, eself: ExplicitSelf, eself_ident: Ident) -> Param { in from_self() argument
|
/dports/devel/racer/racer-2.1.48/cargo-crates/rustc-ap-rustc_ast-722.0.0/src/ |
H A D | ast.rs | 2085 pub type ExplicitSelf = Spanned<SelfKind>; typedef 2089 pub fn to_self(&self) -> Option<ExplicitSelf> { in to_self() argument 2117 pub fn from_self(attrs: AttrVec, eself: ExplicitSelf, eself_ident: Ident) -> Param { in from_self() argument
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_ast/src/ |
H A D | ast.rs | 2142 pub type ExplicitSelf = Spanned<SelfKind>; typedef 2146 pub fn to_self(&self) -> Option<ExplicitSelf> { in to_self() argument 2174 pub fn from_self(attrs: AttrVec, eself: ExplicitSelf, eself_ident: Ident) -> Param { in from_self() argument
|
/dports/lang/rust/rustc-1.58.1-src/vendor/rustc-ap-rustc_ast/src/ |
H A D | ast.rs | 2085 pub type ExplicitSelf = Spanned<SelfKind>; typedef 2089 pub fn to_self(&self) -> Option<ExplicitSelf> { in to_self() argument 2117 pub fn from_self(attrs: AttrVec, eself: ExplicitSelf, eself_ident: Ident) -> Param { in from_self() argument
|
/dports/devel/racer/racer-2.1.48/cargo-crates/rustc-ap-rustc_ast_pretty-722.0.0/src/pprust/ |
H A D | state.rs | 2485 fn print_explicit_self(&mut self, explicit_self: &ast::ExplicitSelf) { in print_explicit_self() argument
|
/dports/devel/racer/racer-2.1.48/cargo-crates/rustc-ap-rustc_ast_pretty-718.0.0/src/pprust/ |
H A D | state.rs | 2486 fn print_explicit_self(&mut self, explicit_self: &ast::ExplicitSelf) { in print_explicit_self() argument
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_ast_pretty/src/pprust/ |
H A D | state.rs | 2557 fn print_explicit_self(&mut self, explicit_self: &ast::ExplicitSelf) { in print_explicit_self() argument
|
/dports/lang/rust/rustc-1.58.1-src/vendor/rustc-ap-rustc_ast_pretty/src/pprust/ |
H A D | state.rs | 2485 fn print_explicit_self(&mut self, explicit_self: &ast::ExplicitSelf) { in print_explicit_self() argument
|
/dports/lang/rust/rustc-1.58.1-src/src/tools/rustfmt/src/ |
H A D | items.rs | 2063 explicit_self: &ast::ExplicitSelf, in rewrite_explicit_self() argument
|