c-arrow
This Rust library allows you to use the arrow operator -> to access the field of the row pointer, just like C/C++.
Usage
pt![<link>]
get a mutable reference of the pointed field.
pt![<link> = <expression>];
assign expression to the pointed field.
pt![<link> = <link>];
assign the pointed field to the other pointed field.
Explanation
| Objects | Explanations |
|---|---|
| <func> | A function returning the *mut pointer of a struct. |
| <met> | A method which returns the *mut pointer of a struct. |
<ptr>-><field> |
Dereferences and accesses the field. |
<struct>.<field> |
Accesses the field directly. |
| <link> | (<func> | <ptr> | <struct>) ((-> | .)(<field> | <met>))+ |
Example
let mut stack: = new;
"abcdefgh"
.chars
.for_each;
use c_arrow::;
let top_back = pt!;
pt!;
pt!;