-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serde support #4
Comments
I assume you only need it for the two custom structs pub struct RealDft<T, const SIZE: usize>
where
[T; SIZE / 2 + 1]: Sized,
{
inner: [Complex<T>; SIZE / 2 + 1],
} |
So thinking it through, I don't think you can have a deserialization implementation for a In |
Thank you so much for your consideration. I think this can be done with "serde from?" macro that serializes from the related struct. But in this case, I need an #5 . Thank you anyway for creating a wonderful crate, I love it. |
I was referring to |
Should be easily addable once rust-num/num-complex#119 is merged and published. |
Thank you very much for your work. It really helps my project. |
|
Hi, Thank you for the update. It works on my project once the above line is added to Cargo.toml.
|
I think the feature is already exposed:
And it seems to work: use easyfft::prelude::*;
fn main() {
let a = [1; 10].real_fft();
println!("{}", serde_json::to_string(&a).unwrap());
} Produces:
|
Thank you for your comments. I confirmed that it works perfectly good now. |
Thank you for providing very easy-to-use crate.
I was wondering if you could add serde support.
I am now working a project creating an analytical package for scientific purposes, and it would be easy to save the data if we have a serde support.
The text was updated successfully, but these errors were encountered: