1#[cfg(feature = "ok")]
12pub fn adjoin() {
13 fn fn_borrow(vec_u8s: &Vec<u8>) {
18 println!("Inside fn = {:p}", &vec_u8s);
19 }
20
21 let vec_instance: Vec<_> = vec![33, 42];
22 println!("Before fn = {:p}", &vec_instance);
23 fn_borrow(&vec_instance);
24 println!("After fn = {:p}", &vec_instance);
25
26 dbg!(vec_instance);
27
28 }
30
31
32
33#[cfg(feature = "cp")]
35pub fn adjoin() {
36 fn fn_borrow(vec_u8s: &Vec<u8>) {
41 println!("Inside fn = {:p}", &vec_u8s);
42 }
43
44 let mut vec_instance: Vec<u8> = Vec::<u8>::new();
46 vec_instance.push(33);
47 vec_instance.push(42);
48 println!("Before fn = {:p}", &vec_instance);
51 fn_borrow(&vec_instance);
52 println!("After fn = {:p}", &vec_instance);
53
54 dbg!(vec_instance);
55
56 }
58
59
60
61#[cfg(feature = "err_01")]
63pub fn adjoin() {
65 fn fn_borrow(vec_u8s: Vec<u8>) {
70 println!("Inside fn = {:p}", &vec_u8s);
71 }
72
73 let vec_instance: Vec<_> = vec![33, 42];
74 println!("Before fn = {:p}", &vec_instance);
75 fn_borrow(vec_instance);
76 println!("After fn = {:p}", &vec_instance);
77
78 dbg!(vec_instance);
79
80 }
82
83
84
85#[cfg(all(not(feature = "ok"), not(feature = "err_01"), not(feature = "cp")))]
87pub fn adjoin() {
88 use aide::*;
89 hello();
90}