Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyray authored Mar 12, 2020
1 parent 2e8cf0d commit ab812b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ pub struct CPizza {
You can now pass the `CPizza` struct through your FFI boundary !

## Example
BONUS if you can provide an example that you can copy/paste
TODO : Provide an example that you can copy/paste

## Types representations mapping

Expand Down Expand Up @@ -111,6 +111,7 @@ The `AsRust` trait allows to create an idiomatic Rust struct from a C-compatible
pub trait AsRust<T> {
fn as_rust(&self) -> Result<T, Error>;
}
```

This shows that the struct implementing it is a `repr(C)` compatible view of the parametrized
type and that an instance of the parametrized type can be created form this struct.
Expand Down

0 comments on commit ab812b0

Please sign in to comment.