Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Summon Rust from Swift

Summon Rust from Swift

Takuma Shimizu

December 06, 2019
Tweet

More Decks by Takuma Shimizu

Other Decks in Programming

Transcript

  1. struct RefCell<T> • struct Cell<T> • Rc<RefCell<T>> w 3FBMJ[FGFBUVSFTMJLFBDMBTTNVUBUJPO w

    *O4XJGU BTJNJMBSUPBOPCKFDUPGBDMBTTTUPSFE CZletQSPQFSUZXJUIJOBTUSVDU w 1VUP⒎CPSSPXDIFDLVOUJMSVOUJNF w #SJOHPWFSIFBEBUSVOUJNF
  2. $CSJEHJOH w $PFSDJPO *NQMJDJUUZQFDPOWFSTJPO  • ⭕ String  Unsafe<CChar>

    • ⭕ Array<T>  UnsafePointer<T> • ❌ Array<String>
  UnsafePointer<UnsafePoint<CChar>> w "OZXBZUIFTFBSFFYQFOTJWF