diff options
Diffstat (limited to 'examples/11-transient-0/output/rust/src/gen/data')
| -rw-r--r-- | examples/11-transient-0/output/rust/src/gen/data/transient_0.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/11-transient-0/output/rust/src/gen/data/transient_0.rs b/examples/11-transient-0/output/rust/src/gen/data/transient_0.rs index b2f78c2..442e723 100644 --- a/examples/11-transient-0/output/rust/src/gen/data/transient_0.rs +++ b/examples/11-transient-0/output/rust/src/gen/data/transient_0.rs @@ -222,7 +222,7 @@ pub fn decode_struct_with_sum(reader: &mut impl std::io::Read) -> ::std::io::Res std::io::Result::Ok(crate::data::StructWithSum { inner: inner, b: b }) } -pub fn encode_struct_with_shared(value: &crate::data::StructWithShared, writer: &mut impl std::io::Write) -> ::std::io::Result::<()> { +pub fn encode_struct_with_list_of_shared(value: &crate::data::StructWithListOfShared, writer: &mut impl std::io::Write) -> ::std::io::Result::<()> { { crate::transient_0::encode_int_64(&(((&value.inner).len()).try_into()).map_err(|error| ::std::io::Error::new(::std::io::ErrorKind::InvalidData, error))?, writer)?; for element in &value.inner { @@ -232,7 +232,7 @@ pub fn encode_struct_with_shared(value: &crate::data::StructWithShared, writer: ::std::io::Result::Ok(()) } -pub fn decode_struct_with_shared(reader: &mut impl std::io::Read) -> ::std::io::Result::<crate::data::StructWithShared> { +pub fn decode_struct_with_list_of_shared(reader: &mut impl std::io::Read) -> ::std::io::Result::<crate::data::StructWithListOfShared> { let inner = { let len = crate::transient_0::decode_int_64(reader)?; let mut elements = ::std::vec::Vec::with_capacity((len.try_into()).map_err(|error| ::std::io::Error::new(::std::io::ErrorKind::InvalidData, error))?); @@ -241,5 +241,5 @@ pub fn decode_struct_with_shared(reader: &mut impl std::io::Read) -> ::std::io:: }; elements }; - std::io::Result::Ok(crate::data::StructWithShared { inner: inner }) + std::io::Result::Ok(crate::data::StructWithListOfShared { inner: inner }) } |
