Skip to main content

lib2/another_mod/
mod.rs

1pub struct MultiImplBlockStruct;
2
3impl MultiImplBlockStruct {
4    pub fn first_fn() {}
5}
6
7impl MultiImplBlockStruct {
8    pub fn second_fn(self) -> bool { true }
9}
10
11pub trait MultiImplBlockTrait {
12    fn first_fn();
13    fn second_fn(self) -> u32;
14}
15
16impl MultiImplBlockTrait for MultiImplBlockStruct {
17    fn first_fn() {}
18    fn second_fn(self) -> u32 { 1 }
19}