We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
#[test] fn test_option(){ #[derive(Debug,Default, Clone, PartialEq)] #[alkahest::alkahest(Formula, Serialize,SerializeRef, Deserialize)] pub struct Sub { pub id: String, } #[derive(Debug,Default, Clone, PartialEq)] #[alkahest::alkahest(Formula, Serialize,SerializeRef, Deserialize)] pub struct Data { pub data_i32: i32, pub sub: Option, }
let mut data = Data::default(); data.data_i32 = 1; data.sub = None; let size = alkahest::serialized_size::<Data, _>(&data); let mut buffer = vec![0; size.0]; let re = alkahest::serialize::<Data, _>(&data, &mut buffer); println!("{:?}", re); assert_eq!(re,Err(alkahest::BufferExhausted));
}
// output: Err(BufferExhausted)
The text was updated successfully, but these errors were encountered:
Did you try it on HEAD? Seems to be working with latest changes
HEAD
Sorry, something went wrong.
No branches or pull requests
#[test]
fn test_option(){
#[derive(Debug,Default, Clone, PartialEq)]
#[alkahest::alkahest(Formula, Serialize,SerializeRef, Deserialize)]
pub struct Sub {
pub id: String,
}
#[derive(Debug,Default, Clone, PartialEq)]
#[alkahest::alkahest(Formula, Serialize,SerializeRef, Deserialize)]
pub struct Data {
pub data_i32: i32,
pub sub: Option,
}
}
// output: Err(BufferExhausted)
The text was updated successfully, but these errors were encountered: