For your first question, you could enable the owned-heap-memory warning
as an error for the crate in which you want to avoid heap memory. If this
doesn't do exactly what you want, you may be able to write your own lint to
do what you want http://doc.rust-lang.org/rustc/lint/
On Wed, Oct 8, 2014
If anyone is interested in software defined radios, I'm starting a project
called Rust Radio (very similar to GNU Radio). Take a look at
https://github.com/awelkie/rustradio. It's still pretty new, but critiques
and contributions are always welcome!
___
from each other
here, and I'll be watching your project- might be a good excuse to get
some use out of my HackRF and contribute some components back.
[1] https://bitbucket.org/tari/audiostream.rs/
On Thu, Sep 11, 2014 at 6:56 AM, Allen Welkie allen.wel...@gmail.com
wrote:
If anyone
at https://github.com/ade-ma/LibRedio.
Best,
Ian
On Thu, Sep 11, 2014 at 8:56 AM, Allen Welkie allen.wel...@gmail.com
wrote:
If anyone is interested in software defined radios, I'm starting a
project called Rust Radio (very similar to GNU Radio). Take a look at
https://github.com/awelkie
In this stackoverflow question:
http://stackoverflow.com/questions/21130272/return-a-closure-from-a-function
Chris Morgan mentions the possibility of adding closures with owned
environments with the DST implementation. Is this being done with the
current DST effort? If not, are there plans to
trait object representing the closure. The call syntax
is ugly, however, but this should change in the nearest future (though
explicit dereferencing, like (*f)(x), will likely be needed anyway).
2014-09-10 0:39 GMT+04:00 Allen Welkie allen.wel...@gmail.com:
In this stackoverflow question
I'm having an issue with creating a separate testing file for a program I'm
writing. I have a file called 'myprogram.rs', which imports complex numbers
with the following
extern crate num;
use num::complex::Complex;
and then defines a bunch of functions. I want to test these functions in a
Can there be two simultaneous implementations of a generic trait? I ask
because I want to extend the Complex class to allow for multiplication by
scalars, so that you can use a * b where a and b can be either
scalars or Complex.
The Complex struct already has an implementation of the Mul trait. I