File: big_trait_for_box.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 (19 lines) | stat: -rw-r--r-- 415 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use auto_impl::auto_impl;


#[auto_impl(Box)]
trait BoxTrait1<'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(&mut self, arg1: i32) -> Self::Type2;
    fn execute3(self) -> Self::Type1;
    fn execute4(arg1: String) -> Result<i32, String>;
    fn execute5() -> String;
}


fn main() {}