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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/// convert byte to string with copying value.
///
/// # Examples
///
/// ```
/// extern crate drumatech;
/// use drumatech::conv;
/// let c : u8 = 0x41;
/// let s : String = conv::u8_give_string(c);
/// assert_eq!(String::from("A"),s);
/// ```
/// convert byte to string that giving mutable reference to func.
///
/// # Examples
///
/// ```
/// extern crate drumatech;
/// use drumatech::conv;
/// let mut c : u8 = 0x41;
/// let s : String = conv::u8_to_string(&mut c);
/// assert_eq!(String::from("A"),s);
/// ```
/// convert byte to string that giving mutable reference to func.
///
/// # Examples
///
/// ```
/// extern crate drumatech;
/// use drumatech::conv;
/// let mut c : Box<u8> = Box::new(0x41);
/// assert_eq!(0x41,conv::open_box(c));
/// ```
/// get the value of first of Vector
///
/// # Examples
///
/// ```
/// extern crate drumatech;
/// use drumatech::conv;
/// let mut v : Vec<u8> = vec![1];
/// pub fn get<T>(v:Vec<>)
/// ```