mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-14 02:43:28 +00:00
idk
This commit is contained in:
21
vendor/arma-rs/tests/derive/pass_struct_custom_impls.rs
vendored
Normal file
21
vendor/arma-rs/tests/derive/pass_struct_custom_impls.rs
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
use arma_rs::{FromArma, FromArmaError, IntoArma, Value};
|
||||
|
||||
#[derive(IntoArma)]
|
||||
struct CustomFrom(u32);
|
||||
|
||||
impl FromArma for CustomFrom {
|
||||
fn from_arma(_: String) -> Result<Self, FromArmaError> {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(FromArma)]
|
||||
struct CustomInto(u32);
|
||||
|
||||
impl IntoArma for CustomInto {
|
||||
fn to_arma(&self) -> Value {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
Reference in New Issue
Block a user