These are chat archives for rust-lang/rust

4th
Jun 2017
Sathya Narrayanan
@sourcepirate
Jun 04 2017 02:46
@all what is the meaning of ~ symbol in rust.
what is the meaning of ~ symbol in rust.
I am very new to rust. I created a project which serves JSON through its traversal path. https://github.com/sourcepirate/dummy. I am expecting few feedbacks on my code. Can any one help ???
Erich Cordoba
@ericho
Jun 04 2017 03:27
@sourcepirate I'm new also, there's no ~ symbol listed here. https://doc.rust-lang.org/book/syntax-index.html
Sathya Narrayanan
@sourcepirate
Jun 04 2017 04:31
@ericho I saw the ~ Operator used in http://words.steveklabnik.com/pointers-in-rust-a-guide
Ilya Bogdanov
@vitvakatu
Jun 04 2017 07:10
@sourcepirate it's very old article (I mean, it's about unstable Rust before 1.0 release), so this syntax was deprecated
Sathya Narrayanan
@sourcepirate
Jun 04 2017 07:28
@vitvakatu thank you
Anton Ugryumov
@dvec
Jun 04 2017 10:39
Hi people. How can I use the C library in Rust? I have heard about libc, but I haven't found examples, only documentation. What can I read to learn more about it?
Denis Lisov
@tanriol
Jun 04 2017 13:16
You need to write and/or generate Rust signatures for the functions you need :-)
Erich Cordoba
@ericho
Jun 04 2017 16:05
@AUgryumov if you want examples you can checkout the gtk bindings https://github.com/gtk-rs/gtk although there's a lot more libraries that provides C bindings.