1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
pub(crate) mod book;
pub mod book_sys;
pub(crate) mod date;
pub mod genres;
pub(crate) mod the_book;
pub(crate) type ResultSelf<'a, T> = std::result::Result<&'a mut T, u8>;
#[deprecated(
note = "Used when Book was containing title, author and pages as clones,\
but not references. No need for using now since it all uses in TheBook"
)]
pub(crate) trait BookInterface {
fn change_title(&mut self, new_title: String) -> &mut Self;
fn change_author(&mut self, new_author: String) -> &mut Self;
fn change_pages(&mut self, new_pages: u16) -> &mut Self;
}