File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -77,18 +77,18 @@ and forth across the FFI boundary.
77
77
78
78
# Helper macros
79
79
80
- We have an API guideline that we always check input pointers for NULL, and
81
- return an error rather than dereferencing a NULL pointer. To help with that,
82
- we have a number of helper macros that early-return if a pointer is NULL:
83
-
84
- - try_ref_from_ptr!
85
- - try_mut_from_ptr!
86
- - try_box_from_ptr!
87
- - try_clone_arc!
88
- - try_callback!
89
- - try_slice!
90
- - try_take!
91
-
92
- These are defined in src/lib.rs. The ` Castable ` trait determines which
80
+ We have an API guideline that we always check input pointers for ` NULL ` , and
81
+ return an error rather than dereferencing a ` NULL ` pointer. To help with that,
82
+ we have a number of helper macros that early-return if a pointer is ` NULL ` :
83
+
84
+ - ` try_ref_from_ptr! `
85
+ - ` try_mut_from_ptr! `
86
+ - ` try_box_from_ptr! `
87
+ - ` try_clone_arc! `
88
+ - ` try_callback! `
89
+ - ` try_slice! `
90
+ - ` try_take! `
91
+
92
+ These are defined in [ src/lib.rs] ( src/lib.rs ) . The ` Castable ` trait determines which
93
93
C pointers can be cast to which Rust pointer types. These macros rely
94
94
on that trait to ensure correct typing of conversions.
You can’t perform that action at this time.
0 commit comments