File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ Bindgen supports these structures in two different ways.
2929
3030## ` __IncompleteArrayField `
3131
32- By default, bindgen will the corresponding Rust structure:
32+ By default, bindgen will generate the corresponding Rust structure:
3333``` rust,ignore
3434#[repr(C)]
3535struct MyRecord {
@@ -75,7 +75,7 @@ struct MyRecord {
7575}
7676```
7777Rust has a set of types which are almost exact analogs for these Flexible Array
78- Member types: the Dynamically Sized Type ("DST"). For example:
78+ Member types: the Dynamically Sized Type ("DST").
7979
8080This looks almost identical to a normal Rust structure, except that you'll note
8181the type of the ` payload ` field is a raw slice ` [...] ` rather than the usual
@@ -99,7 +99,7 @@ struct MyRecord<FAM: ?Sized = [::std::os::raw::c_char; 0]> {
9999
100100That is:
1011011 . a type parameter ` FAM ` which represents the type of the ` payload ` field,
102- 2 . it's ` ?Sized ` meaning it can be unsigned (ie, a DST)
102+ 2 . it's ` ?Sized ` meaning it can be unsized (ie, a DST)
1031033 . it has the default type of ` [c_char; 0] ` - that is a zero-sized array of characters
104104
105105This means that referencing plain ` MyRecord ` will be exactly like ` MyRecord `
You can’t perform that action at this time.
0 commit comments