File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,26 +20,26 @@ macro_rules! impl_array_newtype {
20
20
impl Copy for $thing { }
21
21
22
22
impl $thing {
23
- #[ inline]
24
23
/// Converts the object to a raw pointer for FFI interfacing
24
+ #[ inline]
25
25
pub fn as_ptr( & self ) -> * const $ty {
26
26
let & $thing( ref dat) = self ;
27
27
dat. as_ptr( )
28
28
}
29
29
30
- #[ inline]
31
30
/// Converts the object to a mutable raw pointer for FFI interfacing
31
+ #[ inline]
32
32
pub fn as_mut_ptr( & mut self ) -> * mut $ty {
33
33
let & mut $thing( ref mut dat) = self ;
34
34
dat. as_mut_ptr( )
35
35
}
36
36
37
- #[ inline]
38
37
/// Returns the length of the object as an array
38
+ #[ inline]
39
39
pub fn len( & self ) -> usize { $len }
40
40
41
- #[ inline]
42
41
/// Returns whether the object as an array is empty
42
+ #[ inline]
43
43
pub fn is_empty( & self ) -> bool { false }
44
44
}
45
45
You can’t perform that action at this time.
0 commit comments