@@ -89,7 +89,10 @@ pub trait HeaderWithTail {
89
89
/// Given *BUF (a collection of multiple items), retrieves the first of the
90
90
/// items and returns it after advancing *BUF to the next item. If the item
91
91
/// cannot be parsed, returns None and does not advance.
92
- pub fn take_header_from_collection_mut < ' a , T : Sized + FromBytes + AsBytes > (
92
+ pub ( crate ) fn take_header_from_collection_mut <
93
+ ' a ,
94
+ T : Sized + FromBytes + AsBytes ,
95
+ > (
93
96
buf : & mut & ' a mut [ u8 ] ,
94
97
) -> Option < & ' a mut T > {
95
98
let xbuf = take ( & mut * buf) ;
@@ -107,7 +110,7 @@ pub fn take_header_from_collection_mut<'a, T: Sized + FromBytes + AsBytes>(
107
110
/// *BUF had been aligned to ALIGNMENT before the call, it also ensures that
108
111
/// *BUF is aligned to ALIGNMENT after the call. If the item cannot be parsed,
109
112
/// returns None and does not advance.
110
- pub fn take_body_from_collection_mut < ' a > (
113
+ pub ( crate ) fn take_body_from_collection_mut < ' a > (
111
114
buf : & mut & ' a mut [ u8 ] ,
112
115
size : usize ,
113
116
alignment : usize ,
@@ -131,7 +134,7 @@ pub fn take_body_from_collection_mut<'a>(
131
134
/// Given *BUF (a collection of multiple items), retrieves the first of the
132
135
/// items and returns it after advancing *BUF to the next item. If the item
133
136
/// cannot be parsed, returns None and does not advance.
134
- pub fn take_header_from_collection < ' a , T : Sized + FromBytes > (
137
+ pub ( crate ) fn take_header_from_collection < ' a , T : Sized + FromBytes > (
135
138
buf : & mut & ' a [ u8 ] ,
136
139
) -> Option < & ' a T > {
137
140
let xbuf = take ( & mut * buf) ;
@@ -149,7 +152,7 @@ pub fn take_header_from_collection<'a, T: Sized + FromBytes>(
149
152
/// *BUF had been aligned to ALIGNMENT before the call, it also ensures that
150
153
/// *BUF is aligned to ALIGNMENT after the call. If the item cannot be parsed,
151
154
/// returns None and does not advance.
152
- pub fn take_body_from_collection < ' a > (
155
+ pub ( crate ) fn take_body_from_collection < ' a > (
153
156
buf : & mut & ' a [ u8 ] ,
154
157
size : usize ,
155
158
alignment : usize ,
0 commit comments