• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 pub mod my_trait {
2     pub trait MyTrait {
my_fn(&self) -> Self3         fn my_fn(&self) -> Self;
4     }
5 }
6 
7 pub mod prelude {
8     #[doc(inline)]
9     pub use crate::my_trait::MyTrait;
10 }
11 
12 pub struct SomeStruct;
13 
14 impl my_trait::MyTrait for SomeStruct {
my_fn(&self) -> SomeStruct15     fn my_fn(&self) -> SomeStruct {
16         SomeStruct
17     }
18 }
19