File: big_trait_for_all_refs.rs

package info (click to toggle)
rust-auto-impl 1.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 556 kB
  • sloc: makefile: 2; sh: 1
file content (16 lines) | stat: -rw-r--r-- 297 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use auto_impl::auto_impl;


#[auto_impl(Arc, Box, Rc, &, &mut)]
trait RefTrait1<'a, T: for<'b> Into<&'b str>> {
    type Type1;
    type Type2;

    const FOO: u32;

    fn execute1<'b>(&'a self, arg1: &'b T) -> Result<Self::Type1, String>;
    fn execute2(&self) -> Self::Type2;
}


fn main() {}