From 14491051214bb3e5603ae0427d3081e01ee92529 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 17:11:41 +0800 Subject: [PATCH 001/117] chore: empty --- frb_example/dart_minimal/rust/src/api/minimal.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frb_example/dart_minimal/rust/src/api/minimal.rs b/frb_example/dart_minimal/rust/src/api/minimal.rs index 517e29973f..a23b085337 100644 --- a/frb_example/dart_minimal/rust/src/api/minimal.rs +++ b/frb_example/dart_minimal/rust/src/api/minimal.rs @@ -8,3 +8,7 @@ pub fn init_app() { pub fn minimal_adder(a: i32, b: i32) -> i32 { a + b } + +// ----------------------------------------------- tests ------------------------------------------------- + + From dd7fa4b4e99a170ec34a0f2b07f6c840cf9880e4 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 17:13:26 +0800 Subject: [PATCH 002/117] feat: more --- .../dart_minimal/rust/src/api/minimal.rs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/frb_example/dart_minimal/rust/src/api/minimal.rs b/frb_example/dart_minimal/rust/src/api/minimal.rs index a23b085337..25af3112f2 100644 --- a/frb_example/dart_minimal/rust/src/api/minimal.rs +++ b/frb_example/dart_minimal/rust/src/api/minimal.rs @@ -11,4 +11,23 @@ pub fn minimal_adder(a: i32, b: i32) -> i32 { // ----------------------------------------------- tests ------------------------------------------------- +// Lt := Lifetime Testers +// Try *NOT* to impl Clone to ensure there are no extra clones +#[frb(opaque)] +#[derive(Debug)] +pub struct LtOneTwinNormal { + value: String, +} + +// Try *NOT* to impl Clone to ensure there are no extra clones +#[frb(opaque)] +#[derive(Debug)] +pub struct LtTwoTwinNormal<'a> { + one: &'a LtOneTwinNormal, +} +impl LtOneTwinNormal { + pub fn compute_two_twin_normal(&self) -> LtTwoTwinNormal { + LtTwoTwinNormal { one: self } + } +} From c9272a8d43ca47025a99c3d5f4331222646fe62f Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 17:14:02 +0800 Subject: [PATCH 003/117] chore: rename --- frb_example/dart_minimal/rust/src/api/minimal.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frb_example/dart_minimal/rust/src/api/minimal.rs b/frb_example/dart_minimal/rust/src/api/minimal.rs index 25af3112f2..288d79d569 100644 --- a/frb_example/dart_minimal/rust/src/api/minimal.rs +++ b/frb_example/dart_minimal/rust/src/api/minimal.rs @@ -15,19 +15,19 @@ pub fn minimal_adder(a: i32, b: i32) -> i32 { // Try *NOT* to impl Clone to ensure there are no extra clones #[frb(opaque)] #[derive(Debug)] -pub struct LtOneTwinNormal { +pub struct LtFooTwinNormal { value: String, } // Try *NOT* to impl Clone to ensure there are no extra clones #[frb(opaque)] #[derive(Debug)] -pub struct LtTwoTwinNormal<'a> { - one: &'a LtOneTwinNormal, +pub struct LtBorrowFooTwinNormal<'a> { + foo: &'a LtFooTwinNormal, } -impl LtOneTwinNormal { - pub fn compute_two_twin_normal(&self) -> LtTwoTwinNormal { - LtTwoTwinNormal { one: self } +impl LtFooTwinNormal { + pub fn compute_borrow_foo_twin_normal(&self) -> LtBorrowFooTwinNormal { + LtBorrowFooTwinNormal { foo: self } } } From 34f072ed3af20a205dab058a1f4c666413ccc34b Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 17:14:46 +0800 Subject: [PATCH 004/117] chore: rename back --- frb_example/dart_minimal/rust/src/api/minimal.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frb_example/dart_minimal/rust/src/api/minimal.rs b/frb_example/dart_minimal/rust/src/api/minimal.rs index 288d79d569..1a0d5d21f3 100644 --- a/frb_example/dart_minimal/rust/src/api/minimal.rs +++ b/frb_example/dart_minimal/rust/src/api/minimal.rs @@ -22,12 +22,12 @@ pub struct LtFooTwinNormal { // Try *NOT* to impl Clone to ensure there are no extra clones #[frb(opaque)] #[derive(Debug)] -pub struct LtBorrowFooTwinNormal<'a> { +pub struct LtBarTwinNormal<'a> { foo: &'a LtFooTwinNormal, } impl LtFooTwinNormal { - pub fn compute_borrow_foo_twin_normal(&self) -> LtBorrowFooTwinNormal { - LtBorrowFooTwinNormal { foo: self } + pub fn compute_borrow_foo_twin_normal(&self) -> LtBarTwinNormal { + LtBarTwinNormal { foo: self } } } From 110a84265903ab5f77cabb4b95fbe2d2d5ed1ace Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 17:17:00 +0800 Subject: [PATCH 005/117] feat: more --- .../dart_minimal/rust/src/api/minimal.rs | 30 +++++++++++++------ 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/frb_example/dart_minimal/rust/src/api/minimal.rs b/frb_example/dart_minimal/rust/src/api/minimal.rs index 1a0d5d21f3..6cb466d81e 100644 --- a/frb_example/dart_minimal/rust/src/api/minimal.rs +++ b/frb_example/dart_minimal/rust/src/api/minimal.rs @@ -11,23 +11,35 @@ pub fn minimal_adder(a: i32, b: i32) -> i32 { // ----------------------------------------------- tests ------------------------------------------------- -// Lt := Lifetime Testers -// Try *NOT* to impl Clone to ensure there are no extra clones +/// Lt := Lifetime Testers +/// Try *NOT* to impl Clone for these types in order to ensure there are no extra clones #[frb(opaque)] #[derive(Debug)] -pub struct LtFooTwinNormal { +pub struct LtOwnedStructTwinNormal { + sub: LtOwnedSubStructTwinNormal, +} + +#[frb(opaque)] +#[derive(Debug)] +pub struct LtOwnedSubStructTwinNormal { value: String, } -// Try *NOT* to impl Clone to ensure there are no extra clones #[frb(opaque)] #[derive(Debug)] -pub struct LtBarTwinNormal<'a> { - foo: &'a LtFooTwinNormal, +pub struct LtTypeWithLifetimeTwinNormal<'a> { + foo: &'a LtOwnedStructTwinNormal, } -impl LtFooTwinNormal { - pub fn compute_borrow_foo_twin_normal(&self) -> LtBarTwinNormal { - LtBarTwinNormal { foo: self } +#[allow(clippy::needless_lifetimes)] +impl LtOwnedStructTwinNormal { + pub fn compute_type_with_lifetime_twin_normal<'a>( + &'a self, + ) -> LtTypeWithLifetimeTwinNormal<'a> { + LtTypeWithLifetimeTwinNormal { foo: self } + } + + pub fn compute_sub_struct_twin_normal<'a>(&'a self) -> &'a LtOwnedSubStructTwinNormal { + &self.sub } } From 53c7aa4515717050ec2550f77af76716b42f8680 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 17:19:41 +0800 Subject: [PATCH 006/117] feat: more --- .../dart_minimal/rust/src/api/minimal.rs | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/frb_example/dart_minimal/rust/src/api/minimal.rs b/frb_example/dart_minimal/rust/src/api/minimal.rs index 6cb466d81e..deef542dfc 100644 --- a/frb_example/dart_minimal/rust/src/api/minimal.rs +++ b/frb_example/dart_minimal/rust/src/api/minimal.rs @@ -43,3 +43,23 @@ impl LtOwnedStructTwinNormal { &self.sub } } + +impl LtOwnedSubStructTwinNormal { + pub fn greet_borrow_self_twin_normal(&self) -> String { + self.value.clone() + } + + pub fn greet_borrow_mut_self_twin_normal(&mut self) -> String { + self.value.clone() + } +} + +impl LtTypeWithLifetimeTwinNormal<'_> { + pub fn greet_borrow_self_twin_normal(&self) -> String { + self.foo.sub.value.clone() + } + + pub fn greet_borrow_mut_self_twin_normal(&mut self) -> String { + self.foo.sub.value.clone() + } +} From c279b3d189eb2fa9a0451f5b00ebb8e67f3b5582 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 17:21:20 +0800 Subject: [PATCH 007/117] feat: more --- .../dart_minimal/rust/src/api/minimal.rs | 31 ++++++++++++++++--- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/frb_example/dart_minimal/rust/src/api/minimal.rs b/frb_example/dart_minimal/rust/src/api/minimal.rs index deef542dfc..445c495943 100644 --- a/frb_example/dart_minimal/rust/src/api/minimal.rs +++ b/frb_example/dart_minimal/rust/src/api/minimal.rs @@ -28,7 +28,13 @@ pub struct LtOwnedSubStructTwinNormal { #[frb(opaque)] #[derive(Debug)] pub struct LtTypeWithLifetimeTwinNormal<'a> { - foo: &'a LtOwnedStructTwinNormal, + field: &'a LtOwnedStructTwinNormal, +} + +#[frb(opaque)] +#[derive(Debug)] +pub struct LtDoubleTypeWithLifetimeTwinNormal<'a> { + field: &'a LtTypeWithLifetimeTwinNormal<'a>, } #[allow(clippy::needless_lifetimes)] @@ -36,7 +42,7 @@ impl LtOwnedStructTwinNormal { pub fn compute_type_with_lifetime_twin_normal<'a>( &'a self, ) -> LtTypeWithLifetimeTwinNormal<'a> { - LtTypeWithLifetimeTwinNormal { foo: self } + LtTypeWithLifetimeTwinNormal { field: self } } pub fn compute_sub_struct_twin_normal<'a>(&'a self) -> &'a LtOwnedSubStructTwinNormal { @@ -54,12 +60,29 @@ impl LtOwnedSubStructTwinNormal { } } +#[allow(clippy::needless_lifetimes)] impl LtTypeWithLifetimeTwinNormal<'_> { pub fn greet_borrow_self_twin_normal(&self) -> String { - self.foo.sub.value.clone() + self.field.sub.value.clone() + } + + pub fn greet_borrow_mut_self_twin_normal(&mut self) -> String { + self.field.sub.value.clone() + } + + pub fn compute_double_type_with_lifetime_twin_normal<'a>( + &'a self, + ) -> LtDoubleTypeWithLifetimeTwinNormal<'a> { + LtDoubleTypeWithLifetimeTwinNormal { field: self } + } +} + +impl LtDoubleTypeWithLifetimeTwinNormal<'_> { + pub fn greet_borrow_self_twin_normal(&self) -> String { + self.field.field.sub.value.clone() } pub fn greet_borrow_mut_self_twin_normal(&mut self) -> String { - self.foo.sub.value.clone() + self.field.field.sub.value.clone() } } From 4b7091cc67ebdbcfd724c73dfa3a3551873f4a8a Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 17:22:54 +0800 Subject: [PATCH 008/117] feat: more --- frb_example/dart_minimal/rust/src/api/minimal.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frb_example/dart_minimal/rust/src/api/minimal.rs b/frb_example/dart_minimal/rust/src/api/minimal.rs index 445c495943..0dc98adc2a 100644 --- a/frb_example/dart_minimal/rust/src/api/minimal.rs +++ b/frb_example/dart_minimal/rust/src/api/minimal.rs @@ -39,12 +39,14 @@ pub struct LtDoubleTypeWithLifetimeTwinNormal<'a> { #[allow(clippy::needless_lifetimes)] impl LtOwnedStructTwinNormal { + /// `fn f(x: &'a T) -> S<'a>` pub fn compute_type_with_lifetime_twin_normal<'a>( &'a self, ) -> LtTypeWithLifetimeTwinNormal<'a> { LtTypeWithLifetimeTwinNormal { field: self } } + /// `fn f(x: &'a T) -> &'a S` pub fn compute_sub_struct_twin_normal<'a>(&'a self) -> &'a LtOwnedSubStructTwinNormal { &self.sub } @@ -62,14 +64,17 @@ impl LtOwnedSubStructTwinNormal { #[allow(clippy::needless_lifetimes)] impl LtTypeWithLifetimeTwinNormal<'_> { + /// `&T` where T is lifetimeable pub fn greet_borrow_self_twin_normal(&self) -> String { self.field.sub.value.clone() } + /// `&mut T` where T is lifetimeable pub fn greet_borrow_mut_self_twin_normal(&mut self) -> String { self.field.sub.value.clone() } + /// Input lifetimeable and output another lifetimeable pub fn compute_double_type_with_lifetime_twin_normal<'a>( &'a self, ) -> LtDoubleTypeWithLifetimeTwinNormal<'a> { From badbea075cdbe83fe03ca7152a96182e582dcc1a Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 17:24:15 +0800 Subject: [PATCH 009/117] feat: more --- frb_example/dart_minimal/rust/src/api/minimal.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/frb_example/dart_minimal/rust/src/api/minimal.rs b/frb_example/dart_minimal/rust/src/api/minimal.rs index 0dc98adc2a..7a95d3f62d 100644 --- a/frb_example/dart_minimal/rust/src/api/minimal.rs +++ b/frb_example/dart_minimal/rust/src/api/minimal.rs @@ -39,6 +39,13 @@ pub struct LtDoubleTypeWithLifetimeTwinNormal<'a> { #[allow(clippy::needless_lifetimes)] impl LtOwnedStructTwinNormal { + #[frb(sync)] + pub fn new(value: String) -> Self { + Self { + sub: LtOwnedSubStructTwinNormal { value }, + } + } + /// `fn f(x: &'a T) -> S<'a>` pub fn compute_type_with_lifetime_twin_normal<'a>( &'a self, @@ -50,6 +57,15 @@ impl LtOwnedStructTwinNormal { pub fn compute_sub_struct_twin_normal<'a>(&'a self) -> &'a LtOwnedSubStructTwinNormal { &self.sub } + + /// The unrelated arg should not affect results + pub fn compute_with_unrelated_borrowed_arg_twin_normal<'a>( + &'a self, + unrelated: &LtOwnedSubStructTwinNormal, + ) -> &'a LtOwnedSubStructTwinNormal { + assert_eq!(&unrelated.value, "hi"); + &self.sub + } } impl LtOwnedSubStructTwinNormal { From f339955dfa0b5139ab882b9dde8de380b66a9833 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 17:26:03 +0800 Subject: [PATCH 010/117] feat: more --- .../dart_minimal/rust/src/api/minimal.rs | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/frb_example/dart_minimal/rust/src/api/minimal.rs b/frb_example/dart_minimal/rust/src/api/minimal.rs index 7a95d3f62d..4f6d042b95 100644 --- a/frb_example/dart_minimal/rust/src/api/minimal.rs +++ b/frb_example/dart_minimal/rust/src/api/minimal.rs @@ -1,3 +1,5 @@ +#![allow(clippy::needless_lifetimes)] + use flutter_rust_bridge::frb; #[frb(init)] @@ -37,7 +39,6 @@ pub struct LtDoubleTypeWithLifetimeTwinNormal<'a> { field: &'a LtTypeWithLifetimeTwinNormal<'a>, } -#[allow(clippy::needless_lifetimes)] impl LtOwnedStructTwinNormal { #[frb(sync)] pub fn new(value: String) -> Self { @@ -61,13 +62,22 @@ impl LtOwnedStructTwinNormal { /// The unrelated arg should not affect results pub fn compute_with_unrelated_borrowed_arg_twin_normal<'a>( &'a self, - unrelated: &LtOwnedSubStructTwinNormal, + unrelated_borrowed: &LtOwnedSubStructTwinNormal, + unrelated_owned: LtOwnedSubStructTwinNormal, ) -> &'a LtOwnedSubStructTwinNormal { - assert_eq!(&unrelated.value, "hi"); + assert_eq!(&unrelated_borrowed.value, "hi"); + assert_eq!(&unrelated_owned.value, "hi"); &self.sub } } +/// Functions (other tests are mainly methods) +pub fn lt_compute_with_lifetime_function_twin_normal<'a>( + a: &'a LtOwnedStructTwinNormal, +) -> &'a LtOwnedSubStructTwinNormal { + &a.sub +} + impl LtOwnedSubStructTwinNormal { pub fn greet_borrow_self_twin_normal(&self) -> String { self.value.clone() @@ -78,7 +88,6 @@ impl LtOwnedSubStructTwinNormal { } } -#[allow(clippy::needless_lifetimes)] impl LtTypeWithLifetimeTwinNormal<'_> { /// `&T` where T is lifetimeable pub fn greet_borrow_self_twin_normal(&self) -> String { From 66a9b967ded70f9a05a6414def826c5d84f53670 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 17:28:42 +0800 Subject: [PATCH 011/117] feat: more --- .../dart_minimal/rust/src/api/minimal.rs | 31 +++++++++++++++---- 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/frb_example/dart_minimal/rust/src/api/minimal.rs b/frb_example/dart_minimal/rust/src/api/minimal.rs index 4f6d042b95..52a99da86c 100644 --- a/frb_example/dart_minimal/rust/src/api/minimal.rs +++ b/frb_example/dart_minimal/rust/src/api/minimal.rs @@ -35,13 +35,18 @@ pub struct LtTypeWithLifetimeTwinNormal<'a> { #[frb(opaque)] #[derive(Debug)] -pub struct LtDoubleTypeWithLifetimeTwinNormal<'a> { +pub struct LtNestedTypeWithLifetimeTwinNormal<'a> { field: &'a LtTypeWithLifetimeTwinNormal<'a>, } +#[frb(opaque)] +#[derive(Debug)] +pub struct LtTypeWithMultiOwnerTwinNormal<'a> { + fields: Vec<&'a LtOwnedStructTwinNormal>, +} + impl LtOwnedStructTwinNormal { - #[frb(sync)] - pub fn new(value: String) -> Self { + pub fn create(value: String) -> Self { Self { sub: LtOwnedSubStructTwinNormal { value }, } @@ -102,12 +107,12 @@ impl LtTypeWithLifetimeTwinNormal<'_> { /// Input lifetimeable and output another lifetimeable pub fn compute_double_type_with_lifetime_twin_normal<'a>( &'a self, - ) -> LtDoubleTypeWithLifetimeTwinNormal<'a> { - LtDoubleTypeWithLifetimeTwinNormal { field: self } + ) -> LtNestedTypeWithLifetimeTwinNormal<'a> { + LtNestedTypeWithLifetimeTwinNormal { field: self } } } -impl LtDoubleTypeWithLifetimeTwinNormal<'_> { +impl LtNestedTypeWithLifetimeTwinNormal<'_> { pub fn greet_borrow_self_twin_normal(&self) -> String { self.field.field.sub.value.clone() } @@ -116,3 +121,17 @@ impl LtDoubleTypeWithLifetimeTwinNormal<'_> { self.field.field.sub.value.clone() } } + +impl LtTypeWithMultiOwnerTwinNormal<'_> { + /// Multiple input args have lifetime + pub fn compute_with_multi_arg_having_lifetime_twin_normal<'a>( + a: &'a LtOwnedStructTwinNormal, + b: &'a LtOwnedStructTwinNormal, + unrelated_borrowed: &LtOwnedSubStructTwinNormal, + unrelated_owned: LtOwnedSubStructTwinNormal, + ) -> Self<'a> { + assert_eq!(&unrelated_borrowed.value, "hi"); + assert_eq!(&unrelated_owned.value, "hi"); + Self { fields: vec![a, b] } + } +} From d013ae15c67c5d4ed15a53157821feb0ff012425 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 17:29:18 +0800 Subject: [PATCH 012/117] feat: more --- frb_example/dart_minimal/rust/src/api/minimal.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frb_example/dart_minimal/rust/src/api/minimal.rs b/frb_example/dart_minimal/rust/src/api/minimal.rs index 52a99da86c..c1bfbd1826 100644 --- a/frb_example/dart_minimal/rust/src/api/minimal.rs +++ b/frb_example/dart_minimal/rust/src/api/minimal.rs @@ -134,4 +134,12 @@ impl LtTypeWithMultiOwnerTwinNormal<'_> { assert_eq!(&unrelated_owned.value, "hi"); Self { fields: vec![a, b] } } + + pub fn greet_borrow_self_twin_normal(&self) -> Vec { + self.fields.iter().map(|x| x.sub.value.clone()).collect() + } + + pub fn greet_borrow_mut_self_twin_normal(&mut self) -> Vec { + self.fields.iter().map(|x| x.sub.value.clone()).collect() + } } From 79c2a696546a5fbd79c88807b60d77e4758d1183 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 17:31:16 +0800 Subject: [PATCH 013/117] feat: more --- frb_example/dart_minimal/rust/src/api/minimal.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frb_example/dart_minimal/rust/src/api/minimal.rs b/frb_example/dart_minimal/rust/src/api/minimal.rs index c1bfbd1826..f97aa43bdd 100644 --- a/frb_example/dart_minimal/rust/src/api/minimal.rs +++ b/frb_example/dart_minimal/rust/src/api/minimal.rs @@ -110,6 +110,13 @@ impl LtTypeWithLifetimeTwinNormal<'_> { ) -> LtNestedTypeWithLifetimeTwinNormal<'a> { LtNestedTypeWithLifetimeTwinNormal { field: self } } + + /// Input argument has type `T<'a>` (other tests mainly are `&'a T` + pub fn compute_arg_generic_lifetime_twin_normal<'a>( + arg: LtTypeWithLifetimeTwinNormal<'a>, + ) -> LtTypeWithLifetimeTwinNormal<'a> { + LtTypeWithLifetimeTwinNormal { field: arg.field } + } } impl LtNestedTypeWithLifetimeTwinNormal<'_> { From 3784f8c8834a2cc10379bbfd135f230fb71c94d5 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 17:39:56 +0800 Subject: [PATCH 014/117] feat: logger --- .../dart_minimal/rust/src/api/minimal.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/frb_example/dart_minimal/rust/src/api/minimal.rs b/frb_example/dart_minimal/rust/src/api/minimal.rs index f97aa43bdd..f06deefa8e 100644 --- a/frb_example/dart_minimal/rust/src/api/minimal.rs +++ b/frb_example/dart_minimal/rust/src/api/minimal.rs @@ -1,6 +1,7 @@ #![allow(clippy::needless_lifetimes)] use flutter_rust_bridge::frb; +use std::sync::Mutex; #[frb(init)] pub fn init_app() { @@ -12,6 +13,22 @@ pub fn minimal_adder(a: i32, b: i32) -> i32 { } // ----------------------------------------------- tests ------------------------------------------------- +pub(crate) struct SimpleLogger(Mutex>); + +impl SimpleLogger { + pub(crate) fn new() -> Self { + Self(Mutex::new(vec![])) + } + pub(crate) fn log(&self, message: String) { + self.0.lock().unwrap().push(message); + } + + pub(crate) fn all(&self) -> Vec { + self.0.lock().unwrap().clone() + } +} + +// ------------------------------------------------------------------------------------------------- /// Lt := Lifetime Testers /// Try *NOT* to impl Clone for these types in order to ensure there are no extra clones From 5a51391829e9921e4e4cc9e109758aa4b78c74e4 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 17:42:17 +0800 Subject: [PATCH 015/117] feat: more --- frb_example/dart_minimal/rust/src/api/minimal.rs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/frb_example/dart_minimal/rust/src/api/minimal.rs b/frb_example/dart_minimal/rust/src/api/minimal.rs index f06deefa8e..84e9237126 100644 --- a/frb_example/dart_minimal/rust/src/api/minimal.rs +++ b/frb_example/dart_minimal/rust/src/api/minimal.rs @@ -1,5 +1,6 @@ #![allow(clippy::needless_lifetimes)] +use flutter_rust_bridge::for_generated::lazy_static; use flutter_rust_bridge::frb; use std::sync::Mutex; @@ -23,14 +24,22 @@ impl SimpleLogger { self.0.lock().unwrap().push(message); } - pub(crate) fn all(&self) -> Vec { - self.0.lock().unwrap().clone() + pub(crate) fn get_and_reset(&self) -> Vec { + self.0.lock().unwrap().drain(..).collect() } } // ------------------------------------------------------------------------------------------------- +lazy_static! { + static ref LOGGER: SimpleLogger = SimpleLogger::new(); +} + /// Lt := Lifetime Testers +pub fn lt_get_and_reset_logs_twin_normal() -> Vec { + LOGGER.get_and_reset() +} + /// Try *NOT* to impl Clone for these types in order to ensure there are no extra clones #[frb(opaque)] #[derive(Debug)] From 33b8647a63b688948efd81d5e2bd5df3fc130e06 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 17:44:34 +0800 Subject: [PATCH 016/117] feta: more --- .../dart_minimal/rust/src/api/minimal.rs | 45 +++++++++++++++++-- 1 file changed, 42 insertions(+), 3 deletions(-) diff --git a/frb_example/dart_minimal/rust/src/api/minimal.rs b/frb_example/dart_minimal/rust/src/api/minimal.rs index 84e9237126..b0ad4a3283 100644 --- a/frb_example/dart_minimal/rust/src/api/minimal.rs +++ b/frb_example/dart_minimal/rust/src/api/minimal.rs @@ -13,15 +13,18 @@ pub fn minimal_adder(a: i32, b: i32) -> i32 { a + b } -// ----------------------------------------------- tests ------------------------------------------------- +// ------------------------------------------------------------------------------------------------- + +// TODO move this to a separate file + pub(crate) struct SimpleLogger(Mutex>); impl SimpleLogger { pub(crate) fn new() -> Self { Self(Mutex::new(vec![])) } - pub(crate) fn log(&self, message: String) { - self.0.lock().unwrap().push(message); + pub(crate) fn log(&self, message: &str) { + self.0.lock().unwrap().push(message.to_owned()); } pub(crate) fn get_and_reset(&self) -> Vec { @@ -40,6 +43,8 @@ pub fn lt_get_and_reset_logs_twin_normal() -> Vec { LOGGER.get_and_reset() } +// --------------------------- struct definitions --------------------------- + /// Try *NOT* to impl Clone for these types in order to ensure there are no extra clones #[frb(opaque)] #[derive(Debug)] @@ -71,6 +76,40 @@ pub struct LtTypeWithMultiOwnerTwinNormal<'a> { fields: Vec<&'a LtOwnedStructTwinNormal>, } +// --------------------------- drops --------------------------- + +impl Drop for LtOwnedStructTwinNormal { + fn drop(&mut self) { + LOGGER.log("LtOwnedStructTwinNormal.drop"); + } +} + +impl Drop for LtOwnedSubStructTwinNormal { + fn drop(&mut self) { + LOGGER.log("LtOwnedSubStructTwinNormal.drop"); + } +} + +impl Drop for LtTypeWithLifetimeTwinNormal { + fn drop(&mut self) { + LOGGER.log("LtTypeWithLifetimeTwinNormal.drop"); + } +} + +impl Drop for LtNestedTypeWithLifetimeTwinNormal { + fn drop(&mut self) { + LOGGER.log("LtNestedTypeWithLifetimeTwinNormal.drop"); + } +} + +impl Drop for LtTypeWithMultiOwnerTwinNormal { + fn drop(&mut self) { + LOGGER.log("LtTypeWithMultiOwnerTwinNormal.drop"); + } +} + +// --------------------------- methods --------------------------- + impl LtOwnedStructTwinNormal { pub fn create(value: String) -> Self { Self { From 7c048743ae508cd9017a9326087a9b29ca4cd186 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 17:46:51 +0800 Subject: [PATCH 017/117] feat: more --- frb_example/dart_minimal/test/minimal_test.dart | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/frb_example/dart_minimal/test/minimal_test.dart b/frb_example/dart_minimal/test/minimal_test.dart index 9592272552..1c5bacd46e 100644 --- a/frb_example/dart_minimal/test/minimal_test.dart +++ b/frb_example/dart_minimal/test/minimal_test.dart @@ -16,4 +16,14 @@ Future main() async { print('Action: Call rust (after)'); }); print('Action: Configure tests (end)'); + + // ---------------------------------------------------------------- + + test('empty', () async { + final ownedStruct = await LtOwnedStructTwinNormal.create(); + expect(await ltGetAndResetLogsTwinNormal(), []); + ownedStruct.dispose(); + expect(await ltGetAndResetLogsTwinNormal(), + ['LtOwnedStructTwinNormal.drop']); + }); } From b38fe71ed560b0be8483522fa5270b9e23724f03 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 17:49:12 +0800 Subject: [PATCH 018/117] feat: more --- .../dart_minimal/test/minimal_test.dart | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/frb_example/dart_minimal/test/minimal_test.dart b/frb_example/dart_minimal/test/minimal_test.dart index 1c5bacd46e..b809b4bbda 100644 --- a/frb_example/dart_minimal/test/minimal_test.dart +++ b/frb_example/dart_minimal/test/minimal_test.dart @@ -20,10 +20,30 @@ Future main() async { // ---------------------------------------------------------------- test('empty', () async { - final ownedStruct = await LtOwnedStructTwinNormal.create(); + final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); expect(await ltGetAndResetLogsTwinNormal(), []); ownedStruct.dispose(); expect(await ltGetAndResetLogsTwinNormal(), ['LtOwnedStructTwinNormal.drop']); }); + + test('computeTypeWithLifetimeTwinNormal', () async { + final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinNormal(); + + ownedStruct.dispose(); + // Do *not* really dispose ownedStruct + expect(await ltGetAndResetLogsTwinNormal(), []); + + expect(await typeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); + expect(await typeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); + + typeWithLifetime.dispose(); + expect(await ltGetAndResetLogsTwinNormal(), [ + // NOTE order: Firstly the borrowed type, secondly the owned type + 'LtTypeWithLifetimeTwinNormal.drop', + 'LtOwnedStructTwinNormal.drop', + ]); + }); } From 52a6733a5427ec45cb281e16ce849463e85fa892 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 17:51:03 +0800 Subject: [PATCH 019/117] feat: more --- .../dart_minimal/rust/src/api/minimal.rs | 1 + .../dart_minimal/test/minimal_test.dart | 54 ++++++++++++------- 2 files changed, 36 insertions(+), 19 deletions(-) diff --git a/frb_example/dart_minimal/rust/src/api/minimal.rs b/frb_example/dart_minimal/rust/src/api/minimal.rs index b0ad4a3283..ce51311393 100644 --- a/frb_example/dart_minimal/rust/src/api/minimal.rs +++ b/frb_example/dart_minimal/rust/src/api/minimal.rs @@ -39,6 +39,7 @@ lazy_static! { } /// Lt := Lifetime Testers +#[frb(sync)] pub fn lt_get_and_reset_logs_twin_normal() -> Vec { LOGGER.get_and_reset() } diff --git a/frb_example/dart_minimal/test/minimal_test.dart b/frb_example/dart_minimal/test/minimal_test.dart index b809b4bbda..99d68753d9 100644 --- a/frb_example/dart_minimal/test/minimal_test.dart +++ b/frb_example/dart_minimal/test/minimal_test.dart @@ -21,29 +21,45 @@ Future main() async { test('empty', () async { final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); - expect(await ltGetAndResetLogsTwinNormal(), []); + expect(ltGetAndResetLogsTwinNormal(), []); ownedStruct.dispose(); - expect(await ltGetAndResetLogsTwinNormal(), + expect(ltGetAndResetLogsTwinNormal(), ['LtOwnedStructTwinNormal.drop']); }); - test('computeTypeWithLifetimeTwinNormal', () async { - final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); - final typeWithLifetime = - await ownedStruct.computeTypeWithLifetimeTwinNormal(); + group('when to dispose and the dispose order', () { + test('dispose ownedStruct - dispose typeWithLifetime', () async { + final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinNormal(); - ownedStruct.dispose(); - // Do *not* really dispose ownedStruct - expect(await ltGetAndResetLogsTwinNormal(), []); - - expect(await typeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); - expect(await typeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); - - typeWithLifetime.dispose(); - expect(await ltGetAndResetLogsTwinNormal(), [ - // NOTE order: Firstly the borrowed type, secondly the owned type - 'LtTypeWithLifetimeTwinNormal.drop', - 'LtOwnedStructTwinNormal.drop', - ]); + ownedStruct.dispose(); + expect(ltGetAndResetLogsTwinNormal(), [ + // Do *not* really dispose ownedStruct + ]); + + typeWithLifetime.dispose(); + expect(ltGetAndResetLogsTwinNormal(), [ + // NOTE order: Firstly the borrowed type, secondly the owned type + 'LtTypeWithLifetimeTwinNormal.drop', + 'LtOwnedStructTwinNormal.drop', + ]); + }); + + test('dispose typeWithLifetime - dispose ownedStruct', () async { + final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinNormal(); + + typeWithLifetime.dispose(); + expect(ltGetAndResetLogsTwinNormal(), [ + 'LtTypeWithLifetimeTwinNormal.drop', + ]); + + ownedStruct.dispose(); + expect(ltGetAndResetLogsTwinNormal(), [ + 'LtOwnedStructTwinNormal.drop', + ]); + }); }); } From 9efe87d1cd29d9b33ffdd413421b1f1239dc82df Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 17:51:32 +0800 Subject: [PATCH 020/117] feat: more --- frb_example/dart_minimal/test/minimal_test.dart | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/frb_example/dart_minimal/test/minimal_test.dart b/frb_example/dart_minimal/test/minimal_test.dart index 99d68753d9..a19e4bae62 100644 --- a/frb_example/dart_minimal/test/minimal_test.dart +++ b/frb_example/dart_minimal/test/minimal_test.dart @@ -19,15 +19,18 @@ Future main() async { // ---------------------------------------------------------------- - test('empty', () async { - final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); - expect(ltGetAndResetLogsTwinNormal(), []); - ownedStruct.dispose(); - expect(ltGetAndResetLogsTwinNormal(), - ['LtOwnedStructTwinNormal.drop']); - }); + setUp(ltGetAndResetLogsTwinNormal); group('when to dispose and the dispose order', () { + test('dispose ownedStruct', () async { + final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); + expect(ltGetAndResetLogsTwinNormal(), []); + + ownedStruct.dispose(); + expect(ltGetAndResetLogsTwinNormal(), + ['LtOwnedStructTwinNormal.drop']); + }); + test('dispose ownedStruct - dispose typeWithLifetime', () async { final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); final typeWithLifetime = From 212c4b73a3eb3251ee3f46d06131be56a4012268 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 17:52:28 +0800 Subject: [PATCH 021/117] feat: more --- frb_example/dart_minimal/test/minimal_test.dart | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/frb_example/dart_minimal/test/minimal_test.dart b/frb_example/dart_minimal/test/minimal_test.dart index a19e4bae62..3e1f54b130 100644 --- a/frb_example/dart_minimal/test/minimal_test.dart +++ b/frb_example/dart_minimal/test/minimal_test.dart @@ -65,4 +65,21 @@ Future main() async { ]); }); }); + + group('features', () { + test('computeTypeWithLifetimeTwinNormal', () async { + final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinNormal(); + + expect(await typeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); + expect(await typeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); + + ownedStruct.dispose(); + + // can still call + expect(await typeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); + expect(await typeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); + }); + }); } From 69316aaee348ef8761de173e5ed3b2eb782892d7 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 17:53:06 +0800 Subject: [PATCH 022/117] feat: more --- .../dart_minimal/rust/src/api/minimal.rs | 24 +++++++++---------- .../dart_minimal/test/minimal_test.dart | 18 ++++++++++++-- 2 files changed, 28 insertions(+), 14 deletions(-) diff --git a/frb_example/dart_minimal/rust/src/api/minimal.rs b/frb_example/dart_minimal/rust/src/api/minimal.rs index ce51311393..2da2d0dc6b 100644 --- a/frb_example/dart_minimal/rust/src/api/minimal.rs +++ b/frb_example/dart_minimal/rust/src/api/minimal.rs @@ -50,12 +50,12 @@ pub fn lt_get_and_reset_logs_twin_normal() -> Vec { #[frb(opaque)] #[derive(Debug)] pub struct LtOwnedStructTwinNormal { - sub: LtOwnedSubStructTwinNormal, + sub: LtSubStructTwinNormal, } #[frb(opaque)] #[derive(Debug)] -pub struct LtOwnedSubStructTwinNormal { +pub struct LtSubStructTwinNormal { value: String, } @@ -85,7 +85,7 @@ impl Drop for LtOwnedStructTwinNormal { } } -impl Drop for LtOwnedSubStructTwinNormal { +impl Drop for LtSubStructTwinNormal { fn drop(&mut self) { LOGGER.log("LtOwnedSubStructTwinNormal.drop"); } @@ -114,7 +114,7 @@ impl Drop for LtTypeWithMultiOwnerTwinNormal { impl LtOwnedStructTwinNormal { pub fn create(value: String) -> Self { Self { - sub: LtOwnedSubStructTwinNormal { value }, + sub: LtSubStructTwinNormal { value }, } } @@ -126,16 +126,16 @@ impl LtOwnedStructTwinNormal { } /// `fn f(x: &'a T) -> &'a S` - pub fn compute_sub_struct_twin_normal<'a>(&'a self) -> &'a LtOwnedSubStructTwinNormal { + pub fn compute_sub_struct_twin_normal<'a>(&'a self) -> &'a LtSubStructTwinNormal { &self.sub } /// The unrelated arg should not affect results pub fn compute_with_unrelated_borrowed_arg_twin_normal<'a>( &'a self, - unrelated_borrowed: &LtOwnedSubStructTwinNormal, - unrelated_owned: LtOwnedSubStructTwinNormal, - ) -> &'a LtOwnedSubStructTwinNormal { + unrelated_borrowed: &LtSubStructTwinNormal, + unrelated_owned: LtSubStructTwinNormal, + ) -> &'a LtSubStructTwinNormal { assert_eq!(&unrelated_borrowed.value, "hi"); assert_eq!(&unrelated_owned.value, "hi"); &self.sub @@ -145,11 +145,11 @@ impl LtOwnedStructTwinNormal { /// Functions (other tests are mainly methods) pub fn lt_compute_with_lifetime_function_twin_normal<'a>( a: &'a LtOwnedStructTwinNormal, -) -> &'a LtOwnedSubStructTwinNormal { +) -> &'a LtSubStructTwinNormal { &a.sub } -impl LtOwnedSubStructTwinNormal { +impl LtSubStructTwinNormal { pub fn greet_borrow_self_twin_normal(&self) -> String { self.value.clone() } @@ -200,8 +200,8 @@ impl LtTypeWithMultiOwnerTwinNormal<'_> { pub fn compute_with_multi_arg_having_lifetime_twin_normal<'a>( a: &'a LtOwnedStructTwinNormal, b: &'a LtOwnedStructTwinNormal, - unrelated_borrowed: &LtOwnedSubStructTwinNormal, - unrelated_owned: LtOwnedSubStructTwinNormal, + unrelated_borrowed: &LtSubStructTwinNormal, + unrelated_owned: LtSubStructTwinNormal, ) -> Self<'a> { assert_eq!(&unrelated_borrowed.value, "hi"); assert_eq!(&unrelated_owned.value, "hi"); diff --git a/frb_example/dart_minimal/test/minimal_test.dart b/frb_example/dart_minimal/test/minimal_test.dart index 3e1f54b130..1300dab10d 100644 --- a/frb_example/dart_minimal/test/minimal_test.dart +++ b/frb_example/dart_minimal/test/minimal_test.dart @@ -31,7 +31,7 @@ Future main() async { ['LtOwnedStructTwinNormal.drop']); }); - test('dispose ownedStruct - dispose typeWithLifetime', () async { + test('dispose ownedStruct - dispose subStruct', () async { final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinNormal(); @@ -49,7 +49,7 @@ Future main() async { ]); }); - test('dispose typeWithLifetime - dispose ownedStruct', () async { + test('dispose subStruct - dispose ownedStruct', () async { final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinNormal(); @@ -81,5 +81,19 @@ Future main() async { expect(await typeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); expect(await typeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); }); + + test('computeSubStructTwinNormal', () async { + final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); + final subStruct = await ownedStruct.computeSubStructTwinNormal(); + + expect(await subStruct.greetBorrowSelfTwinNormal(), 'a'); + expect(await subStruct.greetBorrowMutSelfTwinNormal(), 'a'); + + ownedStruct.dispose(); + + // can still call + expect(await subStruct.greetBorrowSelfTwinNormal(), 'a'); + expect(await subStruct.greetBorrowMutSelfTwinNormal(), 'a'); + }); }); } From 979274effc2778bc58ecf83dce9a1bacc11239e0 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 17:57:00 +0800 Subject: [PATCH 023/117] feat: more --- .../dart_minimal/rust/src/api/minimal.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/frb_example/dart_minimal/rust/src/api/minimal.rs b/frb_example/dart_minimal/rust/src/api/minimal.rs index 2da2d0dc6b..411f488bdd 100644 --- a/frb_example/dart_minimal/rust/src/api/minimal.rs +++ b/frb_example/dart_minimal/rust/src/api/minimal.rs @@ -125,28 +125,28 @@ impl LtOwnedStructTwinNormal { LtTypeWithLifetimeTwinNormal { field: self } } - /// `fn f(x: &'a T) -> &'a S` - pub fn compute_sub_struct_twin_normal<'a>(&'a self) -> &'a LtSubStructTwinNormal { - &self.sub - } + // /// `fn f(x: &'a T) -> &'a S` + // pub fn compute_sub_struct_twin_normal<'a>(&'a self) -> &'a LtSubStructTwinNormal { + // &self.sub + // } /// The unrelated arg should not affect results pub fn compute_with_unrelated_borrowed_arg_twin_normal<'a>( &'a self, unrelated_borrowed: &LtSubStructTwinNormal, unrelated_owned: LtSubStructTwinNormal, - ) -> &'a LtSubStructTwinNormal { + ) -> LtTypeWithLifetimeTwinNormal<'a> { assert_eq!(&unrelated_borrowed.value, "hi"); assert_eq!(&unrelated_owned.value, "hi"); - &self.sub + LtTypeWithLifetimeTwinNormal { field: self } } } /// Functions (other tests are mainly methods) pub fn lt_compute_with_lifetime_function_twin_normal<'a>( - a: &'a LtOwnedStructTwinNormal, -) -> &'a LtSubStructTwinNormal { - &a.sub + arg: &'a LtOwnedStructTwinNormal, +) -> LtTypeWithLifetimeTwinNormal<'a> { + LtTypeWithLifetimeTwinNormal { field: arg } } impl LtSubStructTwinNormal { From 3b16ceb203c51e760b6e22c493b141b94292b49e Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 17:57:55 +0800 Subject: [PATCH 024/117] feat: more --- frb_example/dart_minimal/test/minimal_test.dart | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/frb_example/dart_minimal/test/minimal_test.dart b/frb_example/dart_minimal/test/minimal_test.dart index 1300dab10d..8f926e5770 100644 --- a/frb_example/dart_minimal/test/minimal_test.dart +++ b/frb_example/dart_minimal/test/minimal_test.dart @@ -82,18 +82,22 @@ Future main() async { expect(await typeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); }); - test('computeSubStructTwinNormal', () async { + test('computeWithUnrelatedBorrowedArgTwinNormal', () async { final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); - final subStruct = await ownedStruct.computeSubStructTwinNormal(); + final typeWithLifetime = + await ownedStruct.computeWithUnrelatedBorrowedArgTwinNormal( + unrelatedBorrowed: await LtOwnedStructTwinNormal.create(value: 'hi'), + unrelatedOwned: await LtOwnedStructTwinNormal.create(value: 'hi'), + ); - expect(await subStruct.greetBorrowSelfTwinNormal(), 'a'); - expect(await subStruct.greetBorrowMutSelfTwinNormal(), 'a'); + expect(await typeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); + expect(await typeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); ownedStruct.dispose(); // can still call - expect(await subStruct.greetBorrowSelfTwinNormal(), 'a'); - expect(await subStruct.greetBorrowMutSelfTwinNormal(), 'a'); + expect(await typeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); + expect(await typeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); }); }); } From 9ec4c48d833f558ab3d970e7d5dec273500334dd Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 17:58:21 +0800 Subject: [PATCH 025/117] chore: more --- frb_example/dart_minimal/test/minimal_test.dart | 6 ------ 1 file changed, 6 deletions(-) diff --git a/frb_example/dart_minimal/test/minimal_test.dart b/frb_example/dart_minimal/test/minimal_test.dart index 8f926e5770..d7a8e71514 100644 --- a/frb_example/dart_minimal/test/minimal_test.dart +++ b/frb_example/dart_minimal/test/minimal_test.dart @@ -74,10 +74,7 @@ Future main() async { expect(await typeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); expect(await typeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); - ownedStruct.dispose(); - - // can still call expect(await typeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); expect(await typeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); }); @@ -92,10 +89,7 @@ Future main() async { expect(await typeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); expect(await typeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); - ownedStruct.dispose(); - - // can still call expect(await typeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); expect(await typeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); }); From 9bdc433f9a8afdbab2371c0542220d9bd6e49d90 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:00:49 +0800 Subject: [PATCH 026/117] feat: more --- .../dart_minimal/test/minimal_test.dart | 30 ++++++++++++------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/frb_example/dart_minimal/test/minimal_test.dart b/frb_example/dart_minimal/test/minimal_test.dart index d7a8e71514..bbb48b0aa5 100644 --- a/frb_example/dart_minimal/test/minimal_test.dart +++ b/frb_example/dart_minimal/test/minimal_test.dart @@ -71,12 +71,7 @@ Future main() async { final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinNormal(); - - expect(await typeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); - expect(await typeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); - ownedStruct.dispose(); - expect(await typeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); - expect(await typeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); + await _testOwnedStructAndTypeWithLifetime(ownedStruct, typeWithLifetime); }); test('computeWithUnrelatedBorrowedArgTwinNormal', () async { @@ -86,12 +81,25 @@ Future main() async { unrelatedBorrowed: await LtOwnedStructTwinNormal.create(value: 'hi'), unrelatedOwned: await LtOwnedStructTwinNormal.create(value: 'hi'), ); + await _testOwnedStructAndTypeWithLifetime(ownedStruct, typeWithLifetime); + }); - expect(await typeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); - expect(await typeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); - ownedStruct.dispose(); - expect(await typeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); - expect(await typeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); + test('ltComputeWithLifetimeFunctionTwinNormal', () async { + final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); + final typeWithLifetime = + await ltComputeWithLifetimeFunctionTwinNormal(arg: ownedStruct); + await _testOwnedStructAndTypeWithLifetime(ownedStruct, typeWithLifetime); }); }); } + +Future _testOwnedStructAndTypeWithLifetime( + LtOwnedStructTwinNormal ownedStruct, + LtTypeWithLifetimeTwinNormal typeWithLifetime, +) async { + expect(await typeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); + expect(await typeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); + ownedStruct.dispose(); + expect(await typeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); + expect(await typeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); +} From 30bb2a8374157ba809748f4bb3c914558200ba62 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:02:13 +0800 Subject: [PATCH 027/117] feat: more --- .../dart_minimal/rust/src/api/minimal.rs | 4 ++-- .../dart_minimal/test/minimal_test.dart | 21 +++++++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/frb_example/dart_minimal/rust/src/api/minimal.rs b/frb_example/dart_minimal/rust/src/api/minimal.rs index 411f488bdd..8644a18b03 100644 --- a/frb_example/dart_minimal/rust/src/api/minimal.rs +++ b/frb_example/dart_minimal/rust/src/api/minimal.rs @@ -171,13 +171,13 @@ impl LtTypeWithLifetimeTwinNormal<'_> { } /// Input lifetimeable and output another lifetimeable - pub fn compute_double_type_with_lifetime_twin_normal<'a>( + pub fn compute_nested_type_with_lifetime_twin_normal<'a>( &'a self, ) -> LtNestedTypeWithLifetimeTwinNormal<'a> { LtNestedTypeWithLifetimeTwinNormal { field: self } } - /// Input argument has type `T<'a>` (other tests mainly are `&'a T` + /// Input argument has type `T<'a>` (other tests mainly are `&'a T`) pub fn compute_arg_generic_lifetime_twin_normal<'a>( arg: LtTypeWithLifetimeTwinNormal<'a>, ) -> LtTypeWithLifetimeTwinNormal<'a> { diff --git a/frb_example/dart_minimal/test/minimal_test.dart b/frb_example/dart_minimal/test/minimal_test.dart index bbb48b0aa5..55a1a6590c 100644 --- a/frb_example/dart_minimal/test/minimal_test.dart +++ b/frb_example/dart_minimal/test/minimal_test.dart @@ -90,6 +90,27 @@ Future main() async { await ltComputeWithLifetimeFunctionTwinNormal(arg: ownedStruct); await _testOwnedStructAndTypeWithLifetime(ownedStruct, typeWithLifetime); }); + + test('computeNestedTypeWithLifetimeTwinNormal', () async { + final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinNormal(arg: ownedStruct); + final nestedTypeWithLifetime = await typeWithLifetime + .computeNestedTypeWithLifetimeTwinNormal(arg: ownedStruct); + + expect(await typeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); + expect(await typeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); + + expect(await nestedTypeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); + expect(await nestedTypeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); + + ownedStruct.dispose(); + typeWithLifetime.dispose(); + + // can still call + expect(await nestedTypeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); + expect(await nestedTypeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); + }); }); } From 7006fe214e20753131cd43a0266d7f0c258de4ea Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:03:13 +0800 Subject: [PATCH 028/117] feat: more --- .../dart_minimal/test/minimal_test.dart | 50 ++++++++++++++++++- 1 file changed, 48 insertions(+), 2 deletions(-) diff --git a/frb_example/dart_minimal/test/minimal_test.dart b/frb_example/dart_minimal/test/minimal_test.dart index 55a1a6590c..dae51909db 100644 --- a/frb_example/dart_minimal/test/minimal_test.dart +++ b/frb_example/dart_minimal/test/minimal_test.dart @@ -31,7 +31,7 @@ Future main() async { ['LtOwnedStructTwinNormal.drop']); }); - test('dispose ownedStruct - dispose subStruct', () async { + test('dispose ownedStruct - dispose typeWithLifetime', () async { final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinNormal(); @@ -49,7 +49,7 @@ Future main() async { ]); }); - test('dispose subStruct - dispose ownedStruct', () async { + test('dispose typeWithLifetime - dispose ownedStruct', () async { final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinNormal(); @@ -64,6 +64,52 @@ Future main() async { 'LtOwnedStructTwinNormal.drop', ]); }); + + test('dispose ownedStruct - dispose typeWithLifetime', () async { + final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinNormal(); + + ownedStruct.dispose(); + expect(ltGetAndResetLogsTwinNormal(), [ + // Do *not* really dispose ownedStruct + ]); + + typeWithLifetime.dispose(); + expect(ltGetAndResetLogsTwinNormal(), [ + // NOTE order: Firstly the borrowed type, secondly the owned type + 'LtTypeWithLifetimeTwinNormal.drop', + 'LtOwnedStructTwinNormal.drop', + ]); + }); + + test( + 'dispose ownedStruct - dispose typeWithLifetime - dispose nestedTypeWithLifetime', + () async { + final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinNormal(); + final nestedTypeWithLifetime = await typeWithLifetime + .computeNestedTypeWithLifetimeTwinNormal(arg: ownedStruct); + + ownedStruct.dispose(); + expect(ltGetAndResetLogsTwinNormal(), [ + // Do *not* really dispose + ]); + + typeWithLifetime.dispose(); + expect(ltGetAndResetLogsTwinNormal(), [ + // Do *not* really dispose + ]); + + nestedTypeWithLifetime.dispose(); + expect(ltGetAndResetLogsTwinNormal(), [ + // NOTE the order + 'LtNestedTypeWithLifetimeTwinNormal.drop', + 'LtTypeWithLifetimeTwinNormal.drop', + 'LtOwnedStructTwinNormal.drop', + ]); + }); }); group('features', () { From 55b8034c54788d825754567eab9ad73b747d4199 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:04:22 +0800 Subject: [PATCH 029/117] feat: more --- .../dart_minimal/test/minimal_test.dart | 56 ++++++++++++------- 1 file changed, 37 insertions(+), 19 deletions(-) diff --git a/frb_example/dart_minimal/test/minimal_test.dart b/frb_example/dart_minimal/test/minimal_test.dart index dae51909db..219b483f31 100644 --- a/frb_example/dart_minimal/test/minimal_test.dart +++ b/frb_example/dart_minimal/test/minimal_test.dart @@ -117,7 +117,7 @@ Future main() async { final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinNormal(); - await _testOwnedStructAndTypeWithLifetime(ownedStruct, typeWithLifetime); + await _testTypeWithLifetime(ownedStruct, typeWithLifetime); }); test('computeWithUnrelatedBorrowedArgTwinNormal', () async { @@ -127,40 +127,39 @@ Future main() async { unrelatedBorrowed: await LtOwnedStructTwinNormal.create(value: 'hi'), unrelatedOwned: await LtOwnedStructTwinNormal.create(value: 'hi'), ); - await _testOwnedStructAndTypeWithLifetime(ownedStruct, typeWithLifetime); + await _testTypeWithLifetime(ownedStruct, typeWithLifetime); }); test('ltComputeWithLifetimeFunctionTwinNormal', () async { final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); final typeWithLifetime = await ltComputeWithLifetimeFunctionTwinNormal(arg: ownedStruct); - await _testOwnedStructAndTypeWithLifetime(ownedStruct, typeWithLifetime); + await _testTypeWithLifetime(ownedStruct, typeWithLifetime); }); test('computeNestedTypeWithLifetimeTwinNormal', () async { final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); final typeWithLifetime = - await ownedStruct.computeTypeWithLifetimeTwinNormal(arg: ownedStruct); - final nestedTypeWithLifetime = await typeWithLifetime - .computeNestedTypeWithLifetimeTwinNormal(arg: ownedStruct); - - expect(await typeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); - expect(await typeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); - - expect(await nestedTypeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); - expect(await nestedTypeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); - - ownedStruct.dispose(); - typeWithLifetime.dispose(); + await ownedStruct.computeTypeWithLifetimeTwinNormal(); + final nestedTypeWithLifetime = + await typeWithLifetime.computeNestedTypeWithLifetimeTwinNormal(); + await _testNestedTypeWithLifetime( + ownedStruct, typeWithLifetime, nestedTypeWithLifetime); + }); - // can still call - expect(await nestedTypeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); - expect(await nestedTypeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); + test('computeArgGenericLifetimeTwinNormal', () async { + final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinNormal(arg: ownedStruct); + final nestedTypeWithLifetime = await LtTypeWithLifetimeTwinNormal + .computeArgGenericLifetimeTwinNormal(arg: typeWithLifetime); + await _testNestedTypeWithLifetime( + ownedStruct, typeWithLifetime, nestedTypeWithLifetime); }); }); } -Future _testOwnedStructAndTypeWithLifetime( +Future _testTypeWithLifetime( LtOwnedStructTwinNormal ownedStruct, LtTypeWithLifetimeTwinNormal typeWithLifetime, ) async { @@ -170,3 +169,22 @@ Future _testOwnedStructAndTypeWithLifetime( expect(await typeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); expect(await typeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); } + +Future _testNestedTypeWithLifetime( + LtOwnedStructTwinNormal ownedStruct, + LtTypeWithLifetimeTwinNormal typeWithLifetime, + LtNestedTypeWithLifetimeTwinNormal nestedTypeWithLifetime, +) async { + expect(await typeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); + expect(await typeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); + + expect(await nestedTypeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); + expect(await nestedTypeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); + + ownedStruct.dispose(); + typeWithLifetime.dispose(); + + // can still call + expect(await nestedTypeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); + expect(await nestedTypeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); +} From 950c2b484be86eb38bbd7d2762835ad1c3fedc25 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:06:00 +0800 Subject: [PATCH 030/117] feat: more --- frb_example/dart_minimal/rust/src/api/minimal.rs | 6 +++--- frb_example/dart_minimal/test/minimal_test.dart | 12 ++++++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/frb_example/dart_minimal/rust/src/api/minimal.rs b/frb_example/dart_minimal/rust/src/api/minimal.rs index 8644a18b03..c9c0dac8bd 100644 --- a/frb_example/dart_minimal/rust/src/api/minimal.rs +++ b/frb_example/dart_minimal/rust/src/api/minimal.rs @@ -73,7 +73,7 @@ pub struct LtNestedTypeWithLifetimeTwinNormal<'a> { #[frb(opaque)] #[derive(Debug)] -pub struct LtTypeWithMultiOwnerTwinNormal<'a> { +pub struct LtTypeWithMultiDepTwinNormal<'a> { fields: Vec<&'a LtOwnedStructTwinNormal>, } @@ -103,7 +103,7 @@ impl Drop for LtNestedTypeWithLifetimeTwinNormal { } } -impl Drop for LtTypeWithMultiOwnerTwinNormal { +impl Drop for LtTypeWithMultiDepTwinNormal { fn drop(&mut self) { LOGGER.log("LtTypeWithMultiOwnerTwinNormal.drop"); } @@ -195,7 +195,7 @@ impl LtNestedTypeWithLifetimeTwinNormal<'_> { } } -impl LtTypeWithMultiOwnerTwinNormal<'_> { +impl LtTypeWithMultiDepTwinNormal<'_> { /// Multiple input args have lifetime pub fn compute_with_multi_arg_having_lifetime_twin_normal<'a>( a: &'a LtOwnedStructTwinNormal, diff --git a/frb_example/dart_minimal/test/minimal_test.dart b/frb_example/dart_minimal/test/minimal_test.dart index 219b483f31..631d5f6efb 100644 --- a/frb_example/dart_minimal/test/minimal_test.dart +++ b/frb_example/dart_minimal/test/minimal_test.dart @@ -156,6 +156,18 @@ Future main() async { await _testNestedTypeWithLifetime( ownedStruct, typeWithLifetime, nestedTypeWithLifetime); }); + + test('computeWithMultiArgHavingLifetimeTwinNormal', () async { + final typeWithMultiDep = await LtTypeWithMultiDepTwinNormal + .computeWithMultiArgHavingLifetimeTwinNormal( + a: await LtOwnedStructTwinNormal.create(value: 'a'), + b: await LtOwnedStructTwinNormal.create(value: 'b'), + unrelatedBorrowed: await LtOwnedStructTwinNormal.create(value: 'hi'), + unrelatedOwned: await LtOwnedStructTwinNormal.create(value: 'hi'), + ); + expect(await typeWithMultiDep.greetBorrowSelfTwinNormal(), 'a'); + expect(await typeWithMultiDep.greetBorrowMutSelfTwinNormal(), 'a'); + }); }); } From 5b1849e5f742b946887124045fa10f36545aa017 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:07:37 +0800 Subject: [PATCH 031/117] feaT: more --- .../dart_minimal/rust/src/api/minimal.rs | 31 ++++++------------- 1 file changed, 10 insertions(+), 21 deletions(-) diff --git a/frb_example/dart_minimal/rust/src/api/minimal.rs b/frb_example/dart_minimal/rust/src/api/minimal.rs index c9c0dac8bd..b9e842abfa 100644 --- a/frb_example/dart_minimal/rust/src/api/minimal.rs +++ b/frb_example/dart_minimal/rust/src/api/minimal.rs @@ -17,6 +17,7 @@ pub fn minimal_adder(a: i32, b: i32) -> i32 { // TODO move this to a separate file +#[derive(Debug)] pub(crate) struct SimpleLogger(Mutex>); impl SimpleLogger { @@ -34,16 +35,6 @@ impl SimpleLogger { // ------------------------------------------------------------------------------------------------- -lazy_static! { - static ref LOGGER: SimpleLogger = SimpleLogger::new(); -} - -/// Lt := Lifetime Testers -#[frb(sync)] -pub fn lt_get_and_reset_logs_twin_normal() -> Vec { - LOGGER.get_and_reset() -} - // --------------------------- struct definitions --------------------------- /// Try *NOT* to impl Clone for these types in order to ensure there are no extra clones @@ -57,6 +48,7 @@ pub struct LtOwnedStructTwinNormal { #[derive(Debug)] pub struct LtSubStructTwinNormal { value: String, + logger: SimpleLogger, } #[frb(opaque)] @@ -81,31 +73,25 @@ pub struct LtTypeWithMultiDepTwinNormal<'a> { impl Drop for LtOwnedStructTwinNormal { fn drop(&mut self) { - LOGGER.log("LtOwnedStructTwinNormal.drop"); + self.sub.logger.log("LtOwnedStructTwinNormal.drop"); } } impl Drop for LtSubStructTwinNormal { fn drop(&mut self) { - LOGGER.log("LtOwnedSubStructTwinNormal.drop"); + self.logger.log("LtOwnedSubStructTwinNormal.drop"); } } impl Drop for LtTypeWithLifetimeTwinNormal { fn drop(&mut self) { - LOGGER.log("LtTypeWithLifetimeTwinNormal.drop"); + (self.field.sub.logger).log("LtTypeWithLifetimeTwinNormal.drop"); } } impl Drop for LtNestedTypeWithLifetimeTwinNormal { fn drop(&mut self) { - LOGGER.log("LtNestedTypeWithLifetimeTwinNormal.drop"); - } -} - -impl Drop for LtTypeWithMultiDepTwinNormal { - fn drop(&mut self) { - LOGGER.log("LtTypeWithMultiOwnerTwinNormal.drop"); + (self.field.field.sub.logger).log("LtNestedTypeWithLifetimeTwinNormal.drop"); } } @@ -114,7 +100,10 @@ impl Drop for LtTypeWithMultiDepTwinNormal { impl LtOwnedStructTwinNormal { pub fn create(value: String) -> Self { Self { - sub: LtSubStructTwinNormal { value }, + sub: LtSubStructTwinNormal { + value, + logger: SimpleLogger::new(), + }, } } From 166355291fa5c2dbee4cf8db81acad022688c3c5 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:08:21 +0800 Subject: [PATCH 032/117] Revert "feaT: more" This reverts commit 5b1849e5f742b946887124045fa10f36545aa017. --- .../dart_minimal/rust/src/api/minimal.rs | 31 +++++++++++++------ 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/frb_example/dart_minimal/rust/src/api/minimal.rs b/frb_example/dart_minimal/rust/src/api/minimal.rs index b9e842abfa..c9c0dac8bd 100644 --- a/frb_example/dart_minimal/rust/src/api/minimal.rs +++ b/frb_example/dart_minimal/rust/src/api/minimal.rs @@ -17,7 +17,6 @@ pub fn minimal_adder(a: i32, b: i32) -> i32 { // TODO move this to a separate file -#[derive(Debug)] pub(crate) struct SimpleLogger(Mutex>); impl SimpleLogger { @@ -35,6 +34,16 @@ impl SimpleLogger { // ------------------------------------------------------------------------------------------------- +lazy_static! { + static ref LOGGER: SimpleLogger = SimpleLogger::new(); +} + +/// Lt := Lifetime Testers +#[frb(sync)] +pub fn lt_get_and_reset_logs_twin_normal() -> Vec { + LOGGER.get_and_reset() +} + // --------------------------- struct definitions --------------------------- /// Try *NOT* to impl Clone for these types in order to ensure there are no extra clones @@ -48,7 +57,6 @@ pub struct LtOwnedStructTwinNormal { #[derive(Debug)] pub struct LtSubStructTwinNormal { value: String, - logger: SimpleLogger, } #[frb(opaque)] @@ -73,25 +81,31 @@ pub struct LtTypeWithMultiDepTwinNormal<'a> { impl Drop for LtOwnedStructTwinNormal { fn drop(&mut self) { - self.sub.logger.log("LtOwnedStructTwinNormal.drop"); + LOGGER.log("LtOwnedStructTwinNormal.drop"); } } impl Drop for LtSubStructTwinNormal { fn drop(&mut self) { - self.logger.log("LtOwnedSubStructTwinNormal.drop"); + LOGGER.log("LtOwnedSubStructTwinNormal.drop"); } } impl Drop for LtTypeWithLifetimeTwinNormal { fn drop(&mut self) { - (self.field.sub.logger).log("LtTypeWithLifetimeTwinNormal.drop"); + LOGGER.log("LtTypeWithLifetimeTwinNormal.drop"); } } impl Drop for LtNestedTypeWithLifetimeTwinNormal { fn drop(&mut self) { - (self.field.field.sub.logger).log("LtNestedTypeWithLifetimeTwinNormal.drop"); + LOGGER.log("LtNestedTypeWithLifetimeTwinNormal.drop"); + } +} + +impl Drop for LtTypeWithMultiDepTwinNormal { + fn drop(&mut self) { + LOGGER.log("LtTypeWithMultiOwnerTwinNormal.drop"); } } @@ -100,10 +114,7 @@ impl Drop for LtNestedTypeWithLifetimeTwinNormal { impl LtOwnedStructTwinNormal { pub fn create(value: String) -> Self { Self { - sub: LtSubStructTwinNormal { - value, - logger: SimpleLogger::new(), - }, + sub: LtSubStructTwinNormal { value }, } } From fd84bbb209f183b41cca383c19d57e690fd20b0a Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:10:40 +0800 Subject: [PATCH 033/117] feat: more --- .../dart_minimal/rust/src/api/minimal.rs | 47 ++++++++----------- 1 file changed, 19 insertions(+), 28 deletions(-) diff --git a/frb_example/dart_minimal/rust/src/api/minimal.rs b/frb_example/dart_minimal/rust/src/api/minimal.rs index c9c0dac8bd..ac45334ef0 100644 --- a/frb_example/dart_minimal/rust/src/api/minimal.rs +++ b/frb_example/dart_minimal/rust/src/api/minimal.rs @@ -2,7 +2,7 @@ use flutter_rust_bridge::for_generated::lazy_static; use flutter_rust_bridge::frb; -use std::sync::Mutex; +use std::sync::{Arc, Mutex}; #[frb(init)] pub fn init_app() { @@ -15,35 +15,28 @@ pub fn minimal_adder(a: i32, b: i32) -> i32 { // ------------------------------------------------------------------------------------------------- -// TODO move this to a separate file +// TODO move this to a separate file that has *no* auto twin -pub(crate) struct SimpleLogger(Mutex>); +#[derive(Debug, Clone)] +#[frb(opaque)] +pub struct SimpleLogger(Arc>>); impl SimpleLogger { - pub(crate) fn new() -> Self { - Self(Mutex::new(vec![])) + pub fn new() -> Self { + Self(Arc::new(Mutex::new(vec![]))) } + pub(crate) fn log(&self, message: &str) { self.0.lock().unwrap().push(message.to_owned()); } - pub(crate) fn get_and_reset(&self) -> Vec { + pub fn get(&self) -> Vec { self.0.lock().unwrap().drain(..).collect() } } // ------------------------------------------------------------------------------------------------- -lazy_static! { - static ref LOGGER: SimpleLogger = SimpleLogger::new(); -} - -/// Lt := Lifetime Testers -#[frb(sync)] -pub fn lt_get_and_reset_logs_twin_normal() -> Vec { - LOGGER.get_and_reset() -} - // --------------------------- struct definitions --------------------------- /// Try *NOT* to impl Clone for these types in order to ensure there are no extra clones @@ -57,6 +50,7 @@ pub struct LtOwnedStructTwinNormal { #[derive(Debug)] pub struct LtSubStructTwinNormal { value: String, + logger: SimpleLogger, } #[frb(opaque)] @@ -81,40 +75,37 @@ pub struct LtTypeWithMultiDepTwinNormal<'a> { impl Drop for LtOwnedStructTwinNormal { fn drop(&mut self) { - LOGGER.log("LtOwnedStructTwinNormal.drop"); + self.sub.logger.log("LtOwnedStructTwinNormal.drop"); } } impl Drop for LtSubStructTwinNormal { fn drop(&mut self) { - LOGGER.log("LtOwnedSubStructTwinNormal.drop"); + self.logger.log("LtOwnedSubStructTwinNormal.drop"); } } impl Drop for LtTypeWithLifetimeTwinNormal { fn drop(&mut self) { - LOGGER.log("LtTypeWithLifetimeTwinNormal.drop"); + (self.field.sub.logger).log("LtTypeWithLifetimeTwinNormal.drop"); } } impl Drop for LtNestedTypeWithLifetimeTwinNormal { fn drop(&mut self) { - LOGGER.log("LtNestedTypeWithLifetimeTwinNormal.drop"); - } -} - -impl Drop for LtTypeWithMultiDepTwinNormal { - fn drop(&mut self) { - LOGGER.log("LtTypeWithMultiOwnerTwinNormal.drop"); + (self.field.field.sub.logger).log("LtNestedTypeWithLifetimeTwinNormal.drop"); } } // --------------------------- methods --------------------------- impl LtOwnedStructTwinNormal { - pub fn create(value: String) -> Self { + pub fn create(value: String, logger: &SimpleLogger) -> Self { Self { - sub: LtSubStructTwinNormal { value }, + sub: LtSubStructTwinNormal { + value, + logger: logger.clone(), + }, } } From 11a20751cfed84b5820dd2db87644915c4daf02f Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:11:51 +0800 Subject: [PATCH 034/117] feat: more --- frb_example/dart_minimal/rust/src/api/minimal.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/frb_example/dart_minimal/rust/src/api/minimal.rs b/frb_example/dart_minimal/rust/src/api/minimal.rs index ac45334ef0..2c79b07a10 100644 --- a/frb_example/dart_minimal/rust/src/api/minimal.rs +++ b/frb_example/dart_minimal/rust/src/api/minimal.rs @@ -100,7 +100,16 @@ impl Drop for LtNestedTypeWithLifetimeTwinNormal { // --------------------------- methods --------------------------- impl LtOwnedStructTwinNormal { - pub fn create(value: String, logger: &SimpleLogger) -> Self { + pub fn create(value: String) -> Self { + Self { + sub: LtSubStructTwinNormal { + value, + logger: SimpleLogger::new(), + }, + } + } + + pub fn create_with_logger(value: String, logger: &SimpleLogger) -> Self { Self { sub: LtSubStructTwinNormal { value, From 84536c6d953dc3cdbc96926f4ce6d5570c9e9843 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:12:56 +0800 Subject: [PATCH 035/117] feat: more --- .../dart_minimal/rust/src/api/minimal.rs | 3 +- .../dart_minimal/test/minimal_test.dart | 46 +++++++++++-------- 2 files changed, 29 insertions(+), 20 deletions(-) diff --git a/frb_example/dart_minimal/rust/src/api/minimal.rs b/frb_example/dart_minimal/rust/src/api/minimal.rs index 2c79b07a10..c15ab8c79e 100644 --- a/frb_example/dart_minimal/rust/src/api/minimal.rs +++ b/frb_example/dart_minimal/rust/src/api/minimal.rs @@ -22,6 +22,7 @@ pub fn minimal_adder(a: i32, b: i32) -> i32 { pub struct SimpleLogger(Arc>>); impl SimpleLogger { + #[frb(sync)] pub fn new() -> Self { Self(Arc::new(Mutex::new(vec![]))) } @@ -30,7 +31,7 @@ impl SimpleLogger { self.0.lock().unwrap().push(message.to_owned()); } - pub fn get(&self) -> Vec { + pub fn get_and_reset(&self) -> Vec { self.0.lock().unwrap().drain(..).collect() } } diff --git a/frb_example/dart_minimal/test/minimal_test.dart b/frb_example/dart_minimal/test/minimal_test.dart index 631d5f6efb..275ed8ad44 100644 --- a/frb_example/dart_minimal/test/minimal_test.dart +++ b/frb_example/dart_minimal/test/minimal_test.dart @@ -19,30 +19,32 @@ Future main() async { // ---------------------------------------------------------------- - setUp(ltGetAndResetLogsTwinNormal); - group('when to dispose and the dispose order', () { test('dispose ownedStruct', () async { - final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); - expect(ltGetAndResetLogsTwinNormal(), []); + final simpleLogger = SimpleLogger(); + final ownedStruct = await LtOwnedStructTwinNormal.createWithLogger( + value: 'a', logger: simpleLogger); + expect(simpleLogger.getAndReset(), []); ownedStruct.dispose(); - expect(ltGetAndResetLogsTwinNormal(), - ['LtOwnedStructTwinNormal.drop']); + expect( + simpleLogger.getAndReset(), ['LtOwnedStructTwinNormal.drop']); }); test('dispose ownedStruct - dispose typeWithLifetime', () async { - final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); + final simpleLogger = SimpleLogger(); + final ownedStruct = await LtOwnedStructTwinNormal.createWithLogger( + value: 'a', logger: simpleLogger); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinNormal(); ownedStruct.dispose(); - expect(ltGetAndResetLogsTwinNormal(), [ + expect(simpleLogger.getAndReset(), [ // Do *not* really dispose ownedStruct ]); typeWithLifetime.dispose(); - expect(ltGetAndResetLogsTwinNormal(), [ + expect(simpleLogger.getAndReset(), [ // NOTE order: Firstly the borrowed type, secondly the owned type 'LtTypeWithLifetimeTwinNormal.drop', 'LtOwnedStructTwinNormal.drop', @@ -50,33 +52,37 @@ Future main() async { }); test('dispose typeWithLifetime - dispose ownedStruct', () async { - final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); + final simpleLogger = SimpleLogger(); + final ownedStruct = await LtOwnedStructTwinNormal.createWithLogger( + value: 'a', logger: simpleLogger); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinNormal(); typeWithLifetime.dispose(); - expect(ltGetAndResetLogsTwinNormal(), [ + expect(simpleLogger.getAndReset(), [ 'LtTypeWithLifetimeTwinNormal.drop', ]); ownedStruct.dispose(); - expect(ltGetAndResetLogsTwinNormal(), [ + expect(simpleLogger.getAndReset(), [ 'LtOwnedStructTwinNormal.drop', ]); }); test('dispose ownedStruct - dispose typeWithLifetime', () async { - final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); + final simpleLogger = SimpleLogger(); + final ownedStruct = await LtOwnedStructTwinNormal.createWithLogger( + value: 'a', logger: simpleLogger); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinNormal(); ownedStruct.dispose(); - expect(ltGetAndResetLogsTwinNormal(), [ + expect(simpleLogger.getAndReset(), [ // Do *not* really dispose ownedStruct ]); typeWithLifetime.dispose(); - expect(ltGetAndResetLogsTwinNormal(), [ + expect(simpleLogger.getAndReset(), [ // NOTE order: Firstly the borrowed type, secondly the owned type 'LtTypeWithLifetimeTwinNormal.drop', 'LtOwnedStructTwinNormal.drop', @@ -86,24 +92,26 @@ Future main() async { test( 'dispose ownedStruct - dispose typeWithLifetime - dispose nestedTypeWithLifetime', () async { - final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); + final simpleLogger = SimpleLogger(); + final ownedStruct = await LtOwnedStructTwinNormal.createWithLogger( + value: 'a', logger: simpleLogger); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinNormal(); final nestedTypeWithLifetime = await typeWithLifetime .computeNestedTypeWithLifetimeTwinNormal(arg: ownedStruct); ownedStruct.dispose(); - expect(ltGetAndResetLogsTwinNormal(), [ + expect(simpleLogger.getAndReset(), [ // Do *not* really dispose ]); typeWithLifetime.dispose(); - expect(ltGetAndResetLogsTwinNormal(), [ + expect(simpleLogger.getAndReset(), [ // Do *not* really dispose ]); nestedTypeWithLifetime.dispose(); - expect(ltGetAndResetLogsTwinNormal(), [ + expect(simpleLogger.getAndReset(), [ // NOTE the order 'LtNestedTypeWithLifetimeTwinNormal.drop', 'LtTypeWithLifetimeTwinNormal.drop', From 339584f69d4b5f3c1a48aea03e1c09774dfa211a Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:14:43 +0800 Subject: [PATCH 036/117] chore: codegen --- .../lib/src/rust/api/minimal.dart | 33 + .../lib/src/rust/frb_generated.dart | 672 +++++++++++++++++- .../lib/src/rust/frb_generated.io.dart | 289 ++++++++ .../lib/src/rust/frb_generated.web.dart | 255 ++++++- .../dart_minimal/rust/src/frb_generated.io.rs | 43 ++ .../dart_minimal/rust/src/frb_generated.rs | 578 ++++++++++++++- .../rust/src/frb_generated.web.rs | 43 ++ 7 files changed, 1906 insertions(+), 7 deletions(-) diff --git a/frb_example/dart_minimal/lib/src/rust/api/minimal.dart b/frb_example/dart_minimal/lib/src/rust/api/minimal.dart index 6aa0ea1da5..de9ad08308 100644 --- a/frb_example/dart_minimal/lib/src/rust/api/minimal.dart +++ b/frb_example/dart_minimal/lib/src/rust/api/minimal.dart @@ -6,5 +6,38 @@ import '../frb_generated.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; +// These functions are ignored because they are not marked as `pub`: `log` +// These functions are ignored because they have generic arguments: `compute_arg_generic_lifetime_twin_normal`, `compute_nested_type_with_lifetime_twin_normal`, `compute_type_with_lifetime_twin_normal`, `compute_with_multi_arg_having_lifetime_twin_normal`, `compute_with_unrelated_borrowed_arg_twin_normal`, `lt_compute_with_lifetime_function_twin_normal` +// These types are ignored because they are not used by any `pub` functions: `LtNestedTypeWithLifetimeTwinNormal`, `LtTypeWithLifetimeTwinNormal`, `LtTypeWithMultiDepTwinNormal` +// These functions are ignored (category: IgnoreBecauseOwnerTyShouldIgnore): `greet_borrow_mut_self_twin_normal`, `greet_borrow_mut_self_twin_normal`, `greet_borrow_mut_self_twin_normal`, `greet_borrow_self_twin_normal`, `greet_borrow_self_twin_normal`, `greet_borrow_self_twin_normal` + Future minimalAdder({required int a, required int b}) => RustLib.instance.api.crateApiMinimalMinimalAdder(a: a, b: b); + +// Rust type: RustOpaqueMoi> +abstract class LtOwnedStructTwinNormal implements RustOpaqueInterface { + static Future create({required String value}) => + RustLib.instance.api + .crateApiMinimalLtOwnedStructTwinNormalCreate(value: value); + + static Future createWithLogger( + {required String value, required SimpleLogger logger}) => + RustLib.instance.api + .crateApiMinimalLtOwnedStructTwinNormalCreateWithLogger( + value: value, logger: logger); +} + +// Rust type: RustOpaqueMoi> +abstract class LtSubStructTwinNormal implements RustOpaqueInterface { + Future greetBorrowMutSelfTwinNormal(); + + Future greetBorrowSelfTwinNormal(); +} + +// Rust type: RustOpaqueMoi> +abstract class SimpleLogger implements RustOpaqueInterface { + Future> getAndReset(); + + factory SimpleLogger() => + RustLib.instance.api.crateApiMinimalSimpleLoggerNew(); +} diff --git a/frb_example/dart_minimal/lib/src/rust/frb_generated.dart b/frb_example/dart_minimal/lib/src/rust/frb_generated.dart index 2efde2003e..0d47c72b18 100644 --- a/frb_example/dart_minimal/lib/src/rust/frb_generated.dart +++ b/frb_example/dart_minimal/lib/src/rust/frb_generated.dart @@ -57,7 +57,7 @@ class RustLib extends BaseEntrypoint { String get codegenVersion => '2.0.0-dev.39'; @override - int get rustContentHash => -2119384465; + int get rustContentHash => 2095221642; static const kDefaultExternalLibraryLoaderConfig = ExternalLibraryLoaderConfig( @@ -68,9 +68,54 @@ class RustLib extends BaseEntrypoint { } abstract class RustLibApi extends BaseApi { + Future crateApiMinimalLtOwnedStructTwinNormalCreate( + {required String value}); + + Future + crateApiMinimalLtOwnedStructTwinNormalCreateWithLogger( + {required String value, required SimpleLogger logger}); + + Future + crateApiMinimalLtSubStructTwinNormalGreetBorrowMutSelfTwinNormal( + {required LtSubStructTwinNormal that}); + + Future crateApiMinimalLtSubStructTwinNormalGreetBorrowSelfTwinNormal( + {required LtSubStructTwinNormal that}); + + Future> crateApiMinimalSimpleLoggerGetAndReset( + {required SimpleLogger that}); + + SimpleLogger crateApiMinimalSimpleLoggerNew(); + Future crateApiMinimalInitApp(); Future crateApiMinimalMinimalAdder({required int a, required int b}); + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtOwnedStructTwinNormal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtOwnedStructTwinNormal; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtOwnedStructTwinNormalPtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtSubStructTwinNormal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtSubStructTwinNormal; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtSubStructTwinNormalPtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_SimpleLogger; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_SimpleLogger; + + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_SimpleLoggerPtr; } class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { @@ -82,13 +127,183 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { }); @override - Future crateApiMinimalInitApp() { + Future crateApiMinimalLtOwnedStructTwinNormalCreate( + {required String value}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_String(value, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1, port: port_); }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal, + decodeErrorData: null, + ), + constMeta: kCrateApiMinimalLtOwnedStructTwinNormalCreateConstMeta, + argValues: [value], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiMinimalLtOwnedStructTwinNormalCreateConstMeta => + const TaskConstMeta( + debugName: "LtOwnedStructTwinNormal_create", + argNames: ["value"], + ); + + @override + Future + crateApiMinimalLtOwnedStructTwinNormalCreateWithLogger( + {required String value, required SimpleLogger logger}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_String(value, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + logger, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 2, port: port_); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal, + decodeErrorData: null, + ), + constMeta: + kCrateApiMinimalLtOwnedStructTwinNormalCreateWithLoggerConstMeta, + argValues: [value, logger], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiMinimalLtOwnedStructTwinNormalCreateWithLoggerConstMeta => + const TaskConstMeta( + debugName: "LtOwnedStructTwinNormal_create_with_logger", + argNames: ["value", "logger"], + ); + + @override + Future + crateApiMinimalLtSubStructTwinNormalGreetBorrowMutSelfTwinNormal( + {required LtSubStructTwinNormal that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + that, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 3, port: port_); + }, + codec: SseCodec( + decodeSuccessData: sse_decode_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiMinimalLtSubStructTwinNormalGreetBorrowMutSelfTwinNormalConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiMinimalLtSubStructTwinNormalGreetBorrowMutSelfTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal", + argNames: ["that"], + ); + + @override + Future crateApiMinimalLtSubStructTwinNormalGreetBorrowSelfTwinNormal( + {required LtSubStructTwinNormal that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + that, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 4, port: port_); + }, + codec: SseCodec( + decodeSuccessData: sse_decode_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiMinimalLtSubStructTwinNormalGreetBorrowSelfTwinNormalConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiMinimalLtSubStructTwinNormalGreetBorrowSelfTwinNormalConstMeta => + const TaskConstMeta( + debugName: "LtSubStructTwinNormal_greet_borrow_self_twin_normal", + argNames: ["that"], + ); + + @override + Future> crateApiMinimalSimpleLoggerGetAndReset( + {required SimpleLogger that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + that, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 5, port: port_); + }, + codec: SseCodec( + decodeSuccessData: sse_decode_list_String, + decodeErrorData: null, + ), + constMeta: kCrateApiMinimalSimpleLoggerGetAndResetConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiMinimalSimpleLoggerGetAndResetConstMeta => + const TaskConstMeta( + debugName: "SimpleLogger_get_and_reset", + argNames: ["that"], + ); + + @override + SimpleLogger crateApiMinimalSimpleLoggerNew() { + return handler.executeSync(SyncTask( + callFfi: () { + final serializer = SseSerializer(generalizedFrbRustBinding); + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 6)!; + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger, + decodeErrorData: null, + ), + constMeta: kCrateApiMinimalSimpleLoggerNewConstMeta, + argValues: [], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiMinimalSimpleLoggerNewConstMeta => + const TaskConstMeta( + debugName: "SimpleLogger_new", + argNames: [], + ); + + @override + Future crateApiMinimalInitApp() { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 7, port: port_); + }, codec: SseCodec( decodeSuccessData: sse_decode_unit, decodeErrorData: null, @@ -112,7 +327,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_i_32(a, serializer); sse_encode_i_32(b, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 2, port: port_); + funcId: 8, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -130,49 +345,500 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { argNames: ["a", "b"], ); + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtOwnedStructTwinNormal => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtOwnedStructTwinNormal => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtSubStructTwinNormal => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtSubStructTwinNormal => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_SimpleLogger => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_SimpleLogger => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger; + + @protected + LtOwnedStructTwinNormal + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtOwnedStructTwinNormalImpl.frbInternalDcoDecode( + raw as List); + } + + @protected + LtSubStructTwinNormal + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtSubStructTwinNormalImpl.frbInternalDcoDecode(raw as List); + } + + @protected + SimpleLogger + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return SimpleLoggerImpl.frbInternalDcoDecode(raw as List); + } + + @protected + LtSubStructTwinNormal + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtSubStructTwinNormalImpl.frbInternalDcoDecode(raw as List); + } + + @protected + LtSubStructTwinNormal + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtSubStructTwinNormalImpl.frbInternalDcoDecode(raw as List); + } + + @protected + SimpleLogger + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return SimpleLoggerImpl.frbInternalDcoDecode(raw as List); + } + + @protected + LtOwnedStructTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtOwnedStructTwinNormalImpl.frbInternalDcoDecode( + raw as List); + } + + @protected + LtSubStructTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtSubStructTwinNormalImpl.frbInternalDcoDecode(raw as List); + } + + @protected + SimpleLogger + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return SimpleLoggerImpl.frbInternalDcoDecode(raw as List); + } + + @protected + String dco_decode_String(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return raw as String; + } + @protected int dco_decode_i_32(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return raw as int; } + @protected + List dco_decode_list_String(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return (raw as List).map(dco_decode_String).toList(); + } + + @protected + Uint8List dco_decode_list_prim_u_8_strict(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return raw as Uint8List; + } + + @protected + int dco_decode_u_8(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return raw as int; + } + @protected void dco_decode_unit(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return; } + @protected + BigInt dco_decode_usize(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dcoDecodeU64(raw); + } + + @protected + LtOwnedStructTwinNormal + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtOwnedStructTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + LtSubStructTwinNormal + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtSubStructTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + SimpleLogger + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return SimpleLoggerImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + LtSubStructTwinNormal + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtSubStructTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + LtSubStructTwinNormal + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtSubStructTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + SimpleLogger + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return SimpleLoggerImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + LtOwnedStructTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtOwnedStructTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + LtSubStructTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtSubStructTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + SimpleLogger + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return SimpleLoggerImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + String sse_decode_String(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = sse_decode_list_prim_u_8_strict(deserializer); + return utf8.decoder.convert(inner); + } + @protected int sse_decode_i_32(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs return deserializer.buffer.getInt32(); } + @protected + List sse_decode_list_String(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + + var len_ = sse_decode_i_32(deserializer); + var ans_ = []; + for (var idx_ = 0; idx_ < len_; ++idx_) { + ans_.add(sse_decode_String(deserializer)); + } + return ans_; + } + + @protected + Uint8List sse_decode_list_prim_u_8_strict(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var len_ = sse_decode_i_32(deserializer); + return deserializer.buffer.getUint8List(len_); + } + + @protected + int sse_decode_u_8(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return deserializer.buffer.getUint8(); + } + @protected void sse_decode_unit(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs } + @protected + BigInt sse_decode_usize(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return deserializer.buffer.getBigUint64(); + } + @protected bool sse_decode_bool(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs return deserializer.buffer.getUint8() != 0; } + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtOwnedStructTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtOwnedStructTwinNormalImpl).frbInternalSseEncode(move: true), + serializer); + } + + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtSubStructTwinNormalImpl).frbInternalSseEncode(move: true), + serializer); + } + + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as SimpleLoggerImpl).frbInternalSseEncode(move: true), + serializer); + } + + @protected + void + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtSubStructTwinNormalImpl).frbInternalSseEncode(move: false), + serializer); + } + + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtSubStructTwinNormalImpl).frbInternalSseEncode(move: false), + serializer); + } + + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as SimpleLoggerImpl).frbInternalSseEncode(move: false), + serializer); + } + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtOwnedStructTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtOwnedStructTwinNormalImpl).frbInternalSseEncode(move: null), + serializer); + } + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtSubStructTwinNormalImpl).frbInternalSseEncode(move: null), + serializer); + } + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as SimpleLoggerImpl).frbInternalSseEncode(move: null), + serializer); + } + + @protected + void sse_encode_String(String self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_list_prim_u_8_strict(utf8.encoder.convert(self), serializer); + } + @protected void sse_encode_i_32(int self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs serializer.buffer.putInt32(self); } + @protected + void sse_encode_list_String(List self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_i_32(self.length, serializer); + for (final item in self) { + sse_encode_String(item, serializer); + } + } + + @protected + void sse_encode_list_prim_u_8_strict( + Uint8List self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_i_32(self.length, serializer); + serializer.buffer.putUint8List(self); + } + + @protected + void sse_encode_u_8(int self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + serializer.buffer.putUint8(self); + } + @protected void sse_encode_unit(void self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs } + @protected + void sse_encode_usize(BigInt self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + serializer.buffer.putBigUint64(self); + } + @protected void sse_encode_bool(bool self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs serializer.buffer.putUint8(self ? 1 : 0); } } + +@sealed +class LtOwnedStructTwinNormalImpl extends RustOpaque + implements LtOwnedStructTwinNormal { + // Not to be used by end users + LtOwnedStructTwinNormalImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + LtOwnedStructTwinNormalImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: RustLib + .instance.api.rust_arc_increment_strong_count_LtOwnedStructTwinNormal, + rustArcDecrementStrongCount: RustLib + .instance.api.rust_arc_decrement_strong_count_LtOwnedStructTwinNormal, + rustArcDecrementStrongCountPtr: RustLib.instance.api + .rust_arc_decrement_strong_count_LtOwnedStructTwinNormalPtr, + ); +} + +@sealed +class LtSubStructTwinNormalImpl extends RustOpaque + implements LtSubStructTwinNormal { + // Not to be used by end users + LtSubStructTwinNormalImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + LtSubStructTwinNormalImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: RustLib + .instance.api.rust_arc_increment_strong_count_LtSubStructTwinNormal, + rustArcDecrementStrongCount: RustLib + .instance.api.rust_arc_decrement_strong_count_LtSubStructTwinNormal, + rustArcDecrementStrongCountPtr: RustLib + .instance.api.rust_arc_decrement_strong_count_LtSubStructTwinNormalPtr, + ); + + Future greetBorrowMutSelfTwinNormal() => RustLib.instance.api + .crateApiMinimalLtSubStructTwinNormalGreetBorrowMutSelfTwinNormal( + that: this, + ); + + Future greetBorrowSelfTwinNormal() => RustLib.instance.api + .crateApiMinimalLtSubStructTwinNormalGreetBorrowSelfTwinNormal( + that: this, + ); +} + +@sealed +class SimpleLoggerImpl extends RustOpaque implements SimpleLogger { + // Not to be used by end users + SimpleLoggerImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + SimpleLoggerImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + RustLib.instance.api.rust_arc_increment_strong_count_SimpleLogger, + rustArcDecrementStrongCount: + RustLib.instance.api.rust_arc_decrement_strong_count_SimpleLogger, + rustArcDecrementStrongCountPtr: + RustLib.instance.api.rust_arc_decrement_strong_count_SimpleLoggerPtr, + ); + + Future> getAndReset() => + RustLib.instance.api.crateApiMinimalSimpleLoggerGetAndReset( + that: this, + ); +} diff --git a/frb_example/dart_minimal/lib/src/rust/frb_generated.io.dart b/frb_example/dart_minimal/lib/src/rust/frb_generated.io.dart index 068e5b3ab3..28f7d8261e 100644 --- a/frb_example/dart_minimal/lib/src/rust/frb_generated.io.dart +++ b/frb_example/dart_minimal/lib/src/rust/frb_generated.io.dart @@ -18,27 +18,220 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { required super.portManager, }); + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtOwnedStructTwinNormalPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormalPtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtSubStructTwinNormalPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormalPtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_SimpleLoggerPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLoggerPtr; + + @protected + LtOwnedStructTwinNormal + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + dynamic raw); + + @protected + LtSubStructTwinNormal + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + dynamic raw); + + @protected + SimpleLogger + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + dynamic raw); + + @protected + LtSubStructTwinNormal + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + dynamic raw); + + @protected + LtSubStructTwinNormal + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + dynamic raw); + + @protected + SimpleLogger + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + dynamic raw); + + @protected + LtOwnedStructTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + dynamic raw); + + @protected + LtSubStructTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + dynamic raw); + + @protected + SimpleLogger + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + dynamic raw); + + @protected + String dco_decode_String(dynamic raw); + @protected int dco_decode_i_32(dynamic raw); + @protected + List dco_decode_list_String(dynamic raw); + + @protected + Uint8List dco_decode_list_prim_u_8_strict(dynamic raw); + + @protected + int dco_decode_u_8(dynamic raw); + @protected void dco_decode_unit(dynamic raw); + @protected + BigInt dco_decode_usize(dynamic raw); + + @protected + LtOwnedStructTwinNormal + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + SseDeserializer deserializer); + + @protected + LtSubStructTwinNormal + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + SseDeserializer deserializer); + + @protected + SimpleLogger + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SseDeserializer deserializer); + + @protected + LtSubStructTwinNormal + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + SseDeserializer deserializer); + + @protected + LtSubStructTwinNormal + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + SseDeserializer deserializer); + + @protected + SimpleLogger + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SseDeserializer deserializer); + + @protected + LtOwnedStructTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + SseDeserializer deserializer); + + @protected + LtSubStructTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + SseDeserializer deserializer); + + @protected + SimpleLogger + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SseDeserializer deserializer); + + @protected + String sse_decode_String(SseDeserializer deserializer); + @protected int sse_decode_i_32(SseDeserializer deserializer); + @protected + List sse_decode_list_String(SseDeserializer deserializer); + + @protected + Uint8List sse_decode_list_prim_u_8_strict(SseDeserializer deserializer); + + @protected + int sse_decode_u_8(SseDeserializer deserializer); + @protected void sse_decode_unit(SseDeserializer deserializer); + @protected + BigInt sse_decode_usize(SseDeserializer deserializer); + @protected bool sse_decode_bool(SseDeserializer deserializer); + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtOwnedStructTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtOwnedStructTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger self, SseSerializer serializer); + + @protected + void sse_encode_String(String self, SseSerializer serializer); + @protected void sse_encode_i_32(int self, SseSerializer serializer); + @protected + void sse_encode_list_String(List self, SseSerializer serializer); + + @protected + void sse_encode_list_prim_u_8_strict( + Uint8List self, SseSerializer serializer); + + @protected + void sse_encode_u_8(int self, SseSerializer serializer); + @protected void sse_encode_unit(void self, SseSerializer serializer); + @protected + void sse_encode_usize(BigInt self, SseSerializer serializer); + @protected void sse_encode_bool(bool self, SseSerializer serializer); } @@ -56,4 +249,100 @@ class RustLibWire implements BaseWire { /// The symbols are looked up in [dynamicLibrary]. RustLibWire(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; + + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormalPtr = + _lookup)>>( + 'frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormalPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormalPtr = + _lookup)>>( + 'frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormalPtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormalPtr = + _lookup)>>( + 'frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormalPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormalPtr = + _lookup)>>( + 'frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormalPtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLoggerPtr = + _lookup)>>( + 'frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLoggerPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLoggerPtr = + _lookup)>>( + 'frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLoggerPtr + .asFunction)>(); } diff --git a/frb_example/dart_minimal/lib/src/rust/frb_generated.web.dart b/frb_example/dart_minimal/lib/src/rust/frb_generated.web.dart index 11c1f0b387..1bdd16a1dc 100644 --- a/frb_example/dart_minimal/lib/src/rust/frb_generated.web.dart +++ b/frb_example/dart_minimal/lib/src/rust/frb_generated.web.dart @@ -20,27 +20,220 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { required super.portManager, }); + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtOwnedStructTwinNormalPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtSubStructTwinNormalPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_SimpleLoggerPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger; + + @protected + LtOwnedStructTwinNormal + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + dynamic raw); + + @protected + LtSubStructTwinNormal + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + dynamic raw); + + @protected + SimpleLogger + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + dynamic raw); + + @protected + LtSubStructTwinNormal + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + dynamic raw); + + @protected + LtSubStructTwinNormal + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + dynamic raw); + + @protected + SimpleLogger + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + dynamic raw); + + @protected + LtOwnedStructTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + dynamic raw); + + @protected + LtSubStructTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + dynamic raw); + + @protected + SimpleLogger + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + dynamic raw); + + @protected + String dco_decode_String(dynamic raw); + @protected int dco_decode_i_32(dynamic raw); + @protected + List dco_decode_list_String(dynamic raw); + + @protected + Uint8List dco_decode_list_prim_u_8_strict(dynamic raw); + + @protected + int dco_decode_u_8(dynamic raw); + @protected void dco_decode_unit(dynamic raw); + @protected + BigInt dco_decode_usize(dynamic raw); + + @protected + LtOwnedStructTwinNormal + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + SseDeserializer deserializer); + + @protected + LtSubStructTwinNormal + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + SseDeserializer deserializer); + + @protected + SimpleLogger + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SseDeserializer deserializer); + + @protected + LtSubStructTwinNormal + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + SseDeserializer deserializer); + + @protected + LtSubStructTwinNormal + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + SseDeserializer deserializer); + + @protected + SimpleLogger + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SseDeserializer deserializer); + + @protected + LtOwnedStructTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + SseDeserializer deserializer); + + @protected + LtSubStructTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + SseDeserializer deserializer); + + @protected + SimpleLogger + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SseDeserializer deserializer); + + @protected + String sse_decode_String(SseDeserializer deserializer); + @protected int sse_decode_i_32(SseDeserializer deserializer); + @protected + List sse_decode_list_String(SseDeserializer deserializer); + + @protected + Uint8List sse_decode_list_prim_u_8_strict(SseDeserializer deserializer); + + @protected + int sse_decode_u_8(SseDeserializer deserializer); + @protected void sse_decode_unit(SseDeserializer deserializer); + @protected + BigInt sse_decode_usize(SseDeserializer deserializer); + @protected bool sse_decode_bool(SseDeserializer deserializer); + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtOwnedStructTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtOwnedStructTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger self, SseSerializer serializer); + + @protected + void sse_encode_String(String self, SseSerializer serializer); + @protected void sse_encode_i_32(int self, SseSerializer serializer); + @protected + void sse_encode_list_String(List self, SseSerializer serializer); + + @protected + void sse_encode_list_prim_u_8_strict( + Uint8List self, SseSerializer serializer); + + @protected + void sse_encode_u_8(int self, SseSerializer serializer); + @protected void sse_encode_unit(void self, SseSerializer serializer); + @protected + void sse_encode_usize(BigInt self, SseSerializer serializer); + @protected void sse_encode_bool(bool self, SseSerializer serializer); } @@ -49,6 +242,42 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { class RustLibWire implements BaseWire { RustLibWire.fromExternalLibrary(ExternalLibrary lib); + + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + ptr); } @JS('wasm_bindgen') @@ -56,4 +285,28 @@ external RustLibWasmModule get wasmModule; @JS() @anonymous -extension type RustLibWasmModule._(JSObject _) implements JSObject {} +extension type RustLibWasmModule._(JSObject _) implements JSObject { + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + int ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + int ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + int ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + int ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + int ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + int ptr); +} diff --git a/frb_example/dart_minimal/rust/src/frb_generated.io.rs b/frb_example/dart_minimal/rust/src/frb_generated.io.rs index 1784fece63..f0348f700b 100644 --- a/frb_example/dart_minimal/rust/src/frb_generated.io.rs +++ b/frb_example/dart_minimal/rust/src/frb_generated.io.rs @@ -4,6 +4,7 @@ // Section: imports use super::*; +use crate::api::minimal::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; use flutter_rust_bridge::for_generated::{transform_result_dco, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; @@ -11,3 +12,45 @@ use flutter_rust_bridge::{Handler, IntoIntoDart}; // Section: boilerplate flutter_rust_bridge::frb_generated_boilerplate_io!(); + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + ptr: *const std::ffi::c_void, +) { + MoiArc::>::increment_strong_count(ptr as _); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + ptr: *const std::ffi::c_void, +) { + MoiArc::>::decrement_strong_count(ptr as _); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + ptr: *const std::ffi::c_void, +) { + MoiArc::>::increment_strong_count(ptr as _); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + ptr: *const std::ffi::c_void, +) { + MoiArc::>::decrement_strong_count(ptr as _); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + ptr: *const std::ffi::c_void, +) { + MoiArc::>::increment_strong_count(ptr as _); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + ptr: *const std::ffi::c_void, +) { + MoiArc::>::decrement_strong_count(ptr as _); +} diff --git a/frb_example/dart_minimal/rust/src/frb_generated.rs b/frb_example/dart_minimal/rust/src/frb_generated.rs index 517066787e..776f4d75ad 100644 --- a/frb_example/dart_minimal/rust/src/frb_generated.rs +++ b/frb_example/dart_minimal/rust/src/frb_generated.rs @@ -21,6 +21,7 @@ // Section: imports +use crate::api::minimal::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; use flutter_rust_bridge::for_generated::{transform_result_dco, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; @@ -33,7 +34,7 @@ flutter_rust_bridge::frb_generated_boilerplate!( default_rust_auto_opaque = RustAutoOpaqueMoi, ); pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.0.0-dev.39"; -pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = -2119384465; +pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = 2095221642; // Section: executor @@ -41,6 +42,255 @@ flutter_rust_bridge::frb_generated_default_handler!(); // Section: wire_funcs +fn wire__crate__api__minimal__LtOwnedStructTwinNormal_create_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "LtOwnedStructTwinNormal_create", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let message = unsafe { + flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire( + ptr_, + rust_vec_len_, + data_len_, + ) + }; + let mut deserializer = + flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_value = ::sse_decode(&mut deserializer); + deserializer.end(); + move |context| { + transform_result_sse::<_, ()>((move || { + let output_ok = Result::<_, ()>::Ok( + crate::api::minimal::LtOwnedStructTwinNormal::create(api_value), + )?; + Ok(output_ok) + })()) + } + }, + ) +} +fn wire__crate__api__minimal__LtOwnedStructTwinNormal_create_with_logger_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "LtOwnedStructTwinNormal_create_with_logger", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let message = unsafe { + flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire( + ptr_, + rust_vec_len_, + data_len_, + ) + }; + let mut deserializer = + flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_value = ::sse_decode(&mut deserializer); + let api_logger = , + >>::sse_decode(&mut deserializer); + deserializer.end(); + move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_logger_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_logger, + 0, + false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_logger_guard = Some(api_logger.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_logger_guard = api_logger_guard.unwrap(); + let output_ok = Result::<_, ()>::Ok( + crate::api::minimal::LtOwnedStructTwinNormal::create_with_logger( + api_value, + &*api_logger_guard, + ), + )?; + Ok(output_ok) + })()) + } + }, + ) +} +fn wire__crate__api__minimal__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), + _ => unreachable!(), + } + } + let mut api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtSubStructTwinNormal::greet_borrow_mut_self_twin_normal(&mut *api_that_guard))?; Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__minimal__LtSubStructTwinNormal_greet_borrow_self_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "LtSubStructTwinNormal_greet_borrow_self_twin_normal", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let message = unsafe { + flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire( + ptr_, + rust_vec_len_, + data_len_, + ) + }; + let mut deserializer = + flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = , + >>::sse_decode(&mut deserializer); + deserializer.end(); + move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_, ()>::Ok( + crate::api::minimal::LtSubStructTwinNormal::greet_borrow_self_twin_normal( + &*api_that_guard, + ), + )?; + Ok(output_ok) + })()) + } + }, + ) +} +fn wire__crate__api__minimal__SimpleLogger_get_and_reset_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "SimpleLogger_get_and_reset", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let message = unsafe { + flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire( + ptr_, + rust_vec_len_, + data_len_, + ) + }; + let mut deserializer = + flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = , + >>::sse_decode(&mut deserializer); + deserializer.end(); + move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_, ()>::Ok( + crate::api::minimal::SimpleLogger::get_and_reset(&*api_that_guard), + )?; + Ok(output_ok) + })()) + } + }, + ) +} +fn wire__crate__api__minimal__SimpleLogger_new_impl( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "SimpleLogger_new", + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, + }, + move || { + let message = unsafe { + flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire( + ptr_, + rust_vec_len_, + data_len_, + ) + }; + let mut deserializer = + flutter_rust_bridge::for_generated::SseDeserializer::new(message); + deserializer.end(); + transform_result_sse::<_, ()>((move || { + let output_ok = Result::<_, ()>::Ok(crate::api::minimal::SimpleLogger::new())?; + Ok(output_ok) + })()) + }, + ) +} fn wire__crate__api__minimal__init_app_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, @@ -111,8 +361,92 @@ fn wire__crate__api__minimal__minimal_adder_impl( ) } +// Section: related_funcs + +flutter_rust_bridge::frb_generated_moi_arc_impl_value!( + flutter_rust_bridge::for_generated::RustAutoOpaqueInner +); +flutter_rust_bridge::frb_generated_moi_arc_impl_value!( + flutter_rust_bridge::for_generated::RustAutoOpaqueInner +); +flutter_rust_bridge::frb_generated_moi_arc_impl_value!( + flutter_rust_bridge::for_generated::RustAutoOpaqueInner +); + // Section: dart2rust +impl SseDecode for LtOwnedStructTwinNormal { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = , + >>::sse_decode(deserializer); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); + } +} + +impl SseDecode for LtSubStructTwinNormal { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = , + >>::sse_decode(deserializer); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); + } +} + +impl SseDecode for SimpleLogger { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = , + >>::sse_decode(deserializer); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); + } +} + +impl SseDecode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return decode_rust_opaque_moi(inner); + } +} + +impl SseDecode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return decode_rust_opaque_moi(inner); + } +} + +impl SseDecode + for RustOpaqueMoi> +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return decode_rust_opaque_moi(inner); + } +} + +impl SseDecode for String { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = >::sse_decode(deserializer); + return String::from_utf8(inner).unwrap(); + } +} + impl SseDecode for i32 { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -120,11 +454,49 @@ impl SseDecode for i32 { } } +impl SseDecode for Vec { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut len_ = ::sse_decode(deserializer); + let mut ans_ = vec![]; + for idx_ in 0..len_ { + ans_.push(::sse_decode(deserializer)); + } + return ans_; + } +} + +impl SseDecode for Vec { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut len_ = ::sse_decode(deserializer); + let mut ans_ = vec![]; + for idx_ in 0..len_ { + ans_.push(::sse_decode(deserializer)); + } + return ans_; + } +} + +impl SseDecode for u8 { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + deserializer.cursor.read_u8().unwrap() + } +} + impl SseDecode for () { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {} } +impl SseDecode for usize { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + deserializer.cursor.read_u64::().unwrap() as _ + } +} + impl SseDecode for bool { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -141,8 +513,40 @@ fn pde_ffi_dispatcher_primary_impl( ) { // Codec=Pde (Serialization + dispatch), see doc to use other codecs match func_id { - 1 => wire__crate__api__minimal__init_app_impl(port, ptr, rust_vec_len, data_len), - 2 => wire__crate__api__minimal__minimal_adder_impl(port, ptr, rust_vec_len, data_len), + 1 => wire__crate__api__minimal__LtOwnedStructTwinNormal_create_impl( + port, + ptr, + rust_vec_len, + data_len, + ), + 2 => wire__crate__api__minimal__LtOwnedStructTwinNormal_create_with_logger_impl( + port, + ptr, + rust_vec_len, + data_len, + ), + 3 => { + wire__crate__api__minimal__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal_impl( + port, + ptr, + rust_vec_len, + data_len, + ) + } + 4 => wire__crate__api__minimal__LtSubStructTwinNormal_greet_borrow_self_twin_normal_impl( + port, + ptr, + rust_vec_len, + data_len, + ), + 5 => wire__crate__api__minimal__SimpleLogger_get_and_reset_impl( + port, + ptr, + rust_vec_len, + data_len, + ), + 7 => wire__crate__api__minimal__init_app_impl(port, ptr, rust_vec_len, data_len), + 8 => wire__crate__api__minimal__minimal_adder_impl(port, ptr, rust_vec_len, data_len), _ => unreachable!(), } } @@ -155,12 +559,143 @@ fn pde_ffi_dispatcher_sync_impl( ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { // Codec=Pde (Serialization + dispatch), see doc to use other codecs match func_id { + 6 => wire__crate__api__minimal__SimpleLogger_new_impl(ptr, rust_vec_len, data_len), _ => unreachable!(), } } // Section: rust2dart +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for FrbWrapper { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self.0) + .into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for FrbWrapper +{ +} + +impl flutter_rust_bridge::IntoIntoDart> + for LtOwnedStructTwinNormal +{ + fn into_into_dart(self) -> FrbWrapper { + self.into() + } +} + +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for FrbWrapper { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self.0) + .into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for FrbWrapper +{ +} + +impl flutter_rust_bridge::IntoIntoDart> + for LtSubStructTwinNormal +{ + fn into_into_dart(self) -> FrbWrapper { + self.into() + } +} + +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for FrbWrapper { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self.0) + .into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper {} + +impl flutter_rust_bridge::IntoIntoDart> for SimpleLogger { + fn into_into_dart(self) -> FrbWrapper { + self.into() + } +} + +impl SseEncode for LtOwnedStructTwinNormal { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + , + >>::sse_encode( + flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self), + serializer, + ); + } +} + +impl SseEncode for LtSubStructTwinNormal { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + , + >>::sse_encode( + flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self), + serializer, + ); + } +} + +impl SseEncode for SimpleLogger { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self), serializer); + } +} + +impl SseEncode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + +impl SseEncode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + +impl SseEncode + for RustOpaqueMoi> +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + +impl SseEncode for String { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >::sse_encode(self.into_bytes(), serializer); + } +} + impl SseEncode for i32 { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -168,11 +703,48 @@ impl SseEncode for i32 { } } +impl SseEncode for Vec { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + ::sse_encode(self.len() as _, serializer); + for item in self { + ::sse_encode(item, serializer); + } + } +} + +impl SseEncode for Vec { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + ::sse_encode(self.len() as _, serializer); + for item in self { + ::sse_encode(item, serializer); + } + } +} + +impl SseEncode for u8 { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + serializer.cursor.write_u8(self).unwrap(); + } +} + impl SseEncode for () { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {} } +impl SseEncode for usize { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + serializer + .cursor + .write_u64::(self as _) + .unwrap(); + } +} + impl SseEncode for bool { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { diff --git a/frb_example/dart_minimal/rust/src/frb_generated.web.rs b/frb_example/dart_minimal/rust/src/frb_generated.web.rs index bc660479e8..d0fac41c8f 100644 --- a/frb_example/dart_minimal/rust/src/frb_generated.web.rs +++ b/frb_example/dart_minimal/rust/src/frb_generated.web.rs @@ -4,6 +4,7 @@ // Section: imports use super::*; +use crate::api::minimal::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; use flutter_rust_bridge::for_generated::wasm_bindgen; use flutter_rust_bridge::for_generated::wasm_bindgen::prelude::*; @@ -13,3 +14,45 @@ use flutter_rust_bridge::{Handler, IntoIntoDart}; // Section: boilerplate flutter_rust_bridge::frb_generated_boilerplate_web!(); + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + ptr: *const std::ffi::c_void, +) { + MoiArc::>::increment_strong_count(ptr as _); +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + ptr: *const std::ffi::c_void, +) { + MoiArc::>::decrement_strong_count(ptr as _); +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + ptr: *const std::ffi::c_void, +) { + MoiArc::>::increment_strong_count(ptr as _); +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + ptr: *const std::ffi::c_void, +) { + MoiArc::>::decrement_strong_count(ptr as _); +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + ptr: *const std::ffi::c_void, +) { + MoiArc::>::increment_strong_count(ptr as _); +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + ptr: *const std::ffi::c_void, +) { + MoiArc::>::decrement_strong_count(ptr as _); +} From 667f0d1e2772f40fe816e049d065c1ca47a2d3fd Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:15:00 +0800 Subject: [PATCH 037/117] chore: more --- frb_example/dart_minimal/flutter_rust_bridge.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/frb_example/dart_minimal/flutter_rust_bridge.yaml b/frb_example/dart_minimal/flutter_rust_bridge.yaml index feb59b4f86..080438db38 100644 --- a/frb_example/dart_minimal/flutter_rust_bridge.yaml +++ b/frb_example/dart_minimal/flutter_rust_bridge.yaml @@ -7,3 +7,4 @@ local: true # TODO temp #full_dep: true +enable_lifetime: true From 96dc1a6d9e3b069bc3d7431d3cc40ddb4998ffa2 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:15:42 +0800 Subject: [PATCH 038/117] chore: more --- .../dart_minimal/flutter_rust_bridge.yaml | 1 + .../lib/src/rust/api/minimal.dart | 86 +- .../lib/src/rust/frb_generated.dart | 1078 ++++++++++++++++- .../lib/src/rust/frb_generated.io.dart | 369 ++++++ .../lib/src/rust/frb_generated.web.dart | 321 +++++ .../dart_minimal/rust/src/frb_generated.io.rs | 88 ++ .../dart_minimal/rust/src/frb_generated.rs | 667 +++++++++- .../rust/src/frb_generated.web.rs | 88 ++ 8 files changed, 2648 insertions(+), 50 deletions(-) diff --git a/frb_example/dart_minimal/flutter_rust_bridge.yaml b/frb_example/dart_minimal/flutter_rust_bridge.yaml index 080438db38..3a8994a230 100644 --- a/frb_example/dart_minimal/flutter_rust_bridge.yaml +++ b/frb_example/dart_minimal/flutter_rust_bridge.yaml @@ -8,3 +8,4 @@ local: true # TODO temp #full_dep: true enable_lifetime: true +#stop_on_error: true diff --git a/frb_example/dart_minimal/lib/src/rust/api/minimal.dart b/frb_example/dart_minimal/lib/src/rust/api/minimal.dart index de9ad08308..a269da6f9c 100644 --- a/frb_example/dart_minimal/lib/src/rust/api/minimal.dart +++ b/frb_example/dart_minimal/lib/src/rust/api/minimal.dart @@ -7,15 +7,74 @@ import '../frb_generated.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; // These functions are ignored because they are not marked as `pub`: `log` -// These functions are ignored because they have generic arguments: `compute_arg_generic_lifetime_twin_normal`, `compute_nested_type_with_lifetime_twin_normal`, `compute_type_with_lifetime_twin_normal`, `compute_with_multi_arg_having_lifetime_twin_normal`, `compute_with_unrelated_borrowed_arg_twin_normal`, `lt_compute_with_lifetime_function_twin_normal` -// These types are ignored because they are not used by any `pub` functions: `LtNestedTypeWithLifetimeTwinNormal`, `LtTypeWithLifetimeTwinNormal`, `LtTypeWithMultiDepTwinNormal` -// These functions are ignored (category: IgnoreBecauseOwnerTyShouldIgnore): `greet_borrow_mut_self_twin_normal`, `greet_borrow_mut_self_twin_normal`, `greet_borrow_mut_self_twin_normal`, `greet_borrow_self_twin_normal`, `greet_borrow_self_twin_normal`, `greet_borrow_self_twin_normal` +// These functions have error during generation (see debug logs or enable `stop_on_error: true` for more details): `compute_nested_type_with_lifetime_twin_normal` Future minimalAdder({required int a, required int b}) => RustLib.instance.api.crateApiMinimalMinimalAdder(a: a, b: b); +/// Functions (other tests are mainly methods) +Future ltComputeWithLifetimeFunctionTwinNormal( + {required LtOwnedStructTwinNormal arg}) => + RustLib.instance.api + .crateApiMinimalLtComputeWithLifetimeFunctionTwinNormal(arg: arg); + +// Rust type: RustOpaqueMoi >>> +abstract class LtNestedTypeWithLifetimeTwinNormal + implements RustOpaqueInterface { + Future greetBorrowMutSelfTwinNormal(); + + Future greetBorrowSelfTwinNormal(); +} + +// Rust type: RustOpaqueMoi >>> +abstract class LtTypeWithLifetimeTwinNormal implements RustOpaqueInterface { + /// Input argument has type `T<'a>` (other tests mainly are `&'a T`) + static Future< + LtTypeWithLifetimeTwinNormal> computeArgGenericLifetimeTwinNormal( + {required LtTypeWithLifetimeTwinNormal arg}) => + RustLib.instance.api + .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeArgGenericLifetimeTwinNormal( + arg: arg); + + /// `&mut T` where T is lifetimeable + Future greetBorrowMutSelfTwinNormal(); + + /// `&T` where T is lifetimeable + Future greetBorrowSelfTwinNormal(); +} + +// Rust type: RustOpaqueMoi >>> +abstract class LtTypeWithMultiDepTwinNormal implements RustOpaqueInterface { + /// Multiple input args have lifetime + static Future< + LtTypeWithMultiDepTwinNormal> computeWithMultiArgHavingLifetimeTwinNormal( + {required LtOwnedStructTwinNormal a, + required LtOwnedStructTwinNormal b, + required LtSubStructTwinNormal unrelatedBorrowed, + required LtSubStructTwinNormal unrelatedOwned}) => + RustLib.instance.api + .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticComputeWithMultiArgHavingLifetimeTwinNormal( + a: a, + b: b, + unrelatedBorrowed: unrelatedBorrowed, + unrelatedOwned: unrelatedOwned); + + Future> greetBorrowMutSelfTwinNormal(); + + Future> greetBorrowSelfTwinNormal(); +} + // Rust type: RustOpaqueMoi> abstract class LtOwnedStructTwinNormal implements RustOpaqueInterface { + /// `fn f(x: &'a T) -> S<'a>` + Future computeTypeWithLifetimeTwinNormal(); + + /// The unrelated arg should not affect results + Future + computeWithUnrelatedBorrowedArgTwinNormal( + {required LtSubStructTwinNormal unrelatedBorrowed, + required LtSubStructTwinNormal unrelatedOwned}); + static Future create({required String value}) => RustLib.instance.api .crateApiMinimalLtOwnedStructTwinNormalCreate(value: value); @@ -34,6 +93,27 @@ abstract class LtSubStructTwinNormal implements RustOpaqueInterface { Future greetBorrowSelfTwinNormal(); } +// Rust type: RustOpaqueMoi>> +abstract class LtTypeWithMultiDepTwinNormal implements RustOpaqueInterface { + /// Multiple input args have lifetime + static Future< + LtTypeWithMultiDepTwinNormal> computeWithMultiArgHavingLifetimeTwinNormal( + {required LtOwnedStructTwinNormal a, + required LtOwnedStructTwinNormal b, + required LtSubStructTwinNormal unrelatedBorrowed, + required LtSubStructTwinNormal unrelatedOwned}) => + RustLib.instance.api + .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticComputeWithMultiArgHavingLifetimeTwinNormal( + a: a, + b: b, + unrelatedBorrowed: unrelatedBorrowed, + unrelatedOwned: unrelatedOwned); + + Future> greetBorrowMutSelfTwinNormal(); + + Future> greetBorrowSelfTwinNormal(); +} + // Rust type: RustOpaqueMoi> abstract class SimpleLogger implements RustOpaqueInterface { Future> getAndReset(); diff --git a/frb_example/dart_minimal/lib/src/rust/frb_generated.dart b/frb_example/dart_minimal/lib/src/rust/frb_generated.dart index 0d47c72b18..b3492ebc4a 100644 --- a/frb_example/dart_minimal/lib/src/rust/frb_generated.dart +++ b/frb_example/dart_minimal/lib/src/rust/frb_generated.dart @@ -57,7 +57,7 @@ class RustLib extends BaseEntrypoint { String get codegenVersion => '2.0.0-dev.39'; @override - int get rustContentHash => 2095221642; + int get rustContentHash => 1535573962; static const kDefaultExternalLibraryLoaderConfig = ExternalLibraryLoaderConfig( @@ -68,6 +68,51 @@ class RustLib extends BaseEntrypoint { } abstract class RustLibApi extends BaseApi { + Future + crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( + {required LtNestedTypeWithLifetimeTwinNormal that}); + + Future + crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormal( + {required LtNestedTypeWithLifetimeTwinNormal that}); + + Future + crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeArgGenericLifetimeTwinNormal( + {required LtTypeWithLifetimeTwinNormal arg}); + + Future + crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( + {required LtTypeWithLifetimeTwinNormal that}); + + Future + crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormal( + {required LtTypeWithLifetimeTwinNormal that}); + + Future + crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticComputeWithMultiArgHavingLifetimeTwinNormal( + {required LtOwnedStructTwinNormal a, + required LtOwnedStructTwinNormal b, + required LtSubStructTwinNormal unrelatedBorrowed, + required LtSubStructTwinNormal unrelatedOwned}); + + Future> + crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowMutSelfTwinNormal( + {required LtTypeWithMultiDepTwinNormal that}); + + Future> + crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowSelfTwinNormal( + {required LtTypeWithMultiDepTwinNormal that}); + + Future + crateApiMinimalLtOwnedStructTwinNormalComputeTypeWithLifetimeTwinNormal( + {required LtOwnedStructTwinNormal that}); + + Future + crateApiMinimalLtOwnedStructTwinNormalComputeWithUnrelatedBorrowedArgTwinNormal( + {required LtOwnedStructTwinNormal that, + required LtSubStructTwinNormal unrelatedBorrowed, + required LtSubStructTwinNormal unrelatedOwned}); + Future crateApiMinimalLtOwnedStructTwinNormalCreate( {required String value}); @@ -89,8 +134,39 @@ abstract class RustLibApi extends BaseApi { Future crateApiMinimalInitApp(); + Future + crateApiMinimalLtComputeWithLifetimeFunctionTwinNormal( + {required LtOwnedStructTwinNormal arg}); + Future crateApiMinimalMinimalAdder({required int a, required int b}); + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtNestedTypeWithLifetimeTwinNormal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormal; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormalPtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtTypeWithLifetimeTwinNormal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormal; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormalPtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtTypeWithMultiDepTwinNormal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormal; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_LtOwnedStructTwinNormal; @@ -109,6 +185,15 @@ abstract class RustLibApi extends BaseApi { CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_LtSubStructTwinNormalPtr; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtTypeWithMultiDepTwinNormal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormal; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_SimpleLogger; @@ -126,6 +211,335 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { required super.portManager, }); + @override + Future + crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( + {required LtNestedTypeWithLifetimeTwinNormal that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + that, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 1, port: port_); + }, + codec: SseCodec( + decodeSuccessData: sse_decode_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormalConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal", + argNames: ["that"], + ); + + @override + Future + crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormal( + {required LtNestedTypeWithLifetimeTwinNormal that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + that, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 2, port: port_); + }, + codec: SseCodec( + decodeSuccessData: sse_decode_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormalConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal", + argNames: ["that"], + ); + + @override + Future + crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeArgGenericLifetimeTwinNormal( + {required LtTypeWithLifetimeTwinNormal arg}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + arg, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 3, port: port_); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic, + decodeErrorData: null, + ), + constMeta: + kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeArgGenericLifetimeTwinNormalConstMeta, + argValues: [arg], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeArgGenericLifetimeTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal", + argNames: ["arg"], + ); + + @override + Future + crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( + {required LtTypeWithLifetimeTwinNormal that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + that, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 4, port: port_); + }, + codec: SseCodec( + decodeSuccessData: sse_decode_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormalConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal", + argNames: ["that"], + ); + + @override + Future + crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormal( + {required LtTypeWithLifetimeTwinNormal that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + that, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 5, port: port_); + }, + codec: SseCodec( + decodeSuccessData: sse_decode_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormalConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal", + argNames: ["that"], + ); + + @override + Future + crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticComputeWithMultiArgHavingLifetimeTwinNormal( + {required LtOwnedStructTwinNormal a, + required LtOwnedStructTwinNormal b, + required LtSubStructTwinNormal unrelatedBorrowed, + required LtSubStructTwinNormal unrelatedOwned}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + a, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + b, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + unrelatedBorrowed, serializer); + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + unrelatedOwned, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 6, port: port_); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic, + decodeErrorData: null, + ), + constMeta: + kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticComputeWithMultiArgHavingLifetimeTwinNormalConstMeta, + argValues: [a, b, unrelatedBorrowed, unrelatedOwned], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticComputeWithMultiArgHavingLifetimeTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal", + argNames: ["a", "b", "unrelatedBorrowed", "unrelatedOwned"], + ); + + @override + Future> + crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowMutSelfTwinNormal( + {required LtTypeWithMultiDepTwinNormal that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + that, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 7, port: port_); + }, + codec: SseCodec( + decodeSuccessData: sse_decode_list_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowMutSelfTwinNormalConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowMutSelfTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal", + argNames: ["that"], + ); + + @override + Future> + crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowSelfTwinNormal( + {required LtTypeWithMultiDepTwinNormal that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + that, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 8, port: port_); + }, + codec: SseCodec( + decodeSuccessData: sse_decode_list_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowSelfTwinNormalConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowSelfTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal", + argNames: ["that"], + ); + + @override + Future + crateApiMinimalLtOwnedStructTwinNormalComputeTypeWithLifetimeTwinNormal( + {required LtOwnedStructTwinNormal that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + that, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 9, port: port_); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic, + decodeErrorData: null, + ), + constMeta: + kCrateApiMinimalLtOwnedStructTwinNormalComputeTypeWithLifetimeTwinNormalConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiMinimalLtOwnedStructTwinNormalComputeTypeWithLifetimeTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal", + argNames: ["that"], + ); + + @override + Future + crateApiMinimalLtOwnedStructTwinNormalComputeWithUnrelatedBorrowedArgTwinNormal( + {required LtOwnedStructTwinNormal that, + required LtSubStructTwinNormal unrelatedBorrowed, + required LtSubStructTwinNormal unrelatedOwned}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + that, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + unrelatedBorrowed, serializer); + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + unrelatedOwned, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 10, port: port_); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic, + decodeErrorData: null, + ), + constMeta: + kCrateApiMinimalLtOwnedStructTwinNormalComputeWithUnrelatedBorrowedArgTwinNormalConstMeta, + argValues: [that, unrelatedBorrowed, unrelatedOwned], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiMinimalLtOwnedStructTwinNormalComputeWithUnrelatedBorrowedArgTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal", + argNames: ["that", "unrelatedBorrowed", "unrelatedOwned"], + ); + @override Future crateApiMinimalLtOwnedStructTwinNormalCreate( {required String value}) { @@ -134,7 +548,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_String(value, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1, port: port_); + funcId: 11, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -164,7 +578,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( logger, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 2, port: port_); + funcId: 12, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -195,7 +609,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 3, port: port_); + funcId: 13, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -225,7 +639,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 4, port: port_); + funcId: 14, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -254,7 +668,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 5, port: port_); + funcId: 15, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_String, @@ -277,7 +691,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 6)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 16)!; }, codec: SseCodec( decodeSuccessData: @@ -302,7 +716,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 7, port: port_); + funcId: 17, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -319,6 +733,37 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { argNames: [], ); + @override + Future + crateApiMinimalLtComputeWithLifetimeFunctionTwinNormal( + {required LtOwnedStructTwinNormal arg}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + arg, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 18, port: port_); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic, + decodeErrorData: null, + ), + constMeta: + kCrateApiMinimalLtComputeWithLifetimeFunctionTwinNormalConstMeta, + argValues: [arg], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiMinimalLtComputeWithLifetimeFunctionTwinNormalConstMeta => + const TaskConstMeta( + debugName: "lt_compute_with_lifetime_function_twin_normal", + argNames: ["arg"], + ); + @override Future crateApiMinimalMinimalAdder({required int a, required int b}) { return handler.executeNormal(NormalTask( @@ -327,7 +772,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_i_32(a, serializer); sse_encode_i_32(b, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 8, port: port_); + funcId: 19, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -345,6 +790,30 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { argNames: ["a", "b"], ); + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtNestedTypeWithLifetimeTwinNormal => + wire.rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormal => + wire.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtTypeWithLifetimeTwinNormal => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormal => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtTypeWithMultiDepTwinNormal => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormal => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_LtOwnedStructTwinNormal => wire .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal; @@ -361,6 +830,14 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { get rust_arc_decrement_strong_count_LtSubStructTwinNormal => wire .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtTypeWithMultiDepTwinNormal => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormal => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_SimpleLogger => wire .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger; @@ -369,6 +846,33 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { get rust_arc_decrement_strong_count_SimpleLogger => wire .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger; + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + raw); + } + + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + raw); + } + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + raw); + } + @protected LtOwnedStructTwinNormal dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -386,6 +890,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return LtSubStructTwinNormalImpl.frbInternalDcoDecode(raw as List); } + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtTypeWithMultiDepTwinNormalImpl.frbInternalDcoDecode( + raw as List); + } + @protected SimpleLogger dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -402,6 +915,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return LtSubStructTwinNormalImpl.frbInternalDcoDecode(raw as List); } + @protected + LtOwnedStructTwinNormal + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtOwnedStructTwinNormalImpl.frbInternalDcoDecode( + raw as List); + } + @protected LtSubStructTwinNormal dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( @@ -418,6 +940,87 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return SimpleLoggerImpl.frbInternalDcoDecode(raw as List); } + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + throw UnimplementedError( + 'Not implemented in this codec, please use the other one'); + } + + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + throw UnimplementedError( + 'Not implemented in this codec, please use the other one'); + } + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + throw UnimplementedError( + 'Not implemented in this codec, please use the other one'); + } + + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + throw UnimplementedError( + 'Not implemented in this codec, please use the other one'); + } + + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + throw UnimplementedError( + 'Not implemented in this codec, please use the other one'); + } + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + throw UnimplementedError( + 'Not implemented in this codec, please use the other one'); + } + + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtNestedTypeWithLifetimeTwinNormalImpl.frbInternalDcoDecode( + raw as List); + } + + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtTypeWithLifetimeTwinNormalImpl.frbInternalDcoDecode( + raw as List); + } + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtTypeWithMultiDepTwinNormalImpl.frbInternalDcoDecode( + raw as List); + } + @protected LtOwnedStructTwinNormal dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -435,6 +1038,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return LtSubStructTwinNormalImpl.frbInternalDcoDecode(raw as List); } + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtTypeWithMultiDepTwinNormalImpl.frbInternalDcoDecode( + raw as List); + } + @protected SimpleLogger dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -485,6 +1097,39 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return dcoDecodeU64(raw); } + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + deserializer); + return inner; + } + + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + deserializer); + return inner; + } + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + deserializer); + return inner; + } + @protected LtOwnedStructTwinNormal sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -503,6 +1148,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtTypeWithMultiDepTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected SimpleLogger sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -521,6 +1175,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } + @protected + LtOwnedStructTwinNormal + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtOwnedStructTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected LtSubStructTwinNormal sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( @@ -539,6 +1202,99 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + deserializer); + return inner; + } + + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + deserializer); + return inner; + } + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + deserializer); + return inner; + } + + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + deserializer); + return inner; + } + + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + deserializer); + return inner; + } + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + deserializer); + return inner; + } + + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtNestedTypeWithLifetimeTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtTypeWithLifetimeTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtTypeWithMultiDepTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected LtOwnedStructTwinNormal sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -557,6 +1313,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtTypeWithMultiDepTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected SimpleLogger sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -621,6 +1386,33 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return deserializer.buffer.getUint8() != 0; } + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + self, serializer); + } + + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + self, serializer); + } + + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + self, serializer); + } + @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -641,6 +1433,17 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtTypeWithMultiDepTwinNormalImpl) + .frbInternalSseEncode(move: true), + serializer); + } + @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -661,6 +1464,16 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtOwnedStructTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtOwnedStructTwinNormalImpl).frbInternalSseEncode(move: false), + serializer); + } + @protected void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( @@ -681,6 +1494,93 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + self, serializer); + } + + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + self, serializer); + } + + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + self, serializer); + } + + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + self, serializer); + } + + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + self, serializer); + } + + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + self, serializer); + } + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtNestedTypeWithLifetimeTwinNormalImpl) + .frbInternalSseEncode(move: null), + serializer); + } + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtTypeWithLifetimeTwinNormalImpl) + .frbInternalSseEncode(move: null), + serializer); + } + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtTypeWithMultiDepTwinNormalImpl) + .frbInternalSseEncode(move: null), + serializer); + } + @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -701,6 +1601,17 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtTypeWithMultiDepTwinNormalImpl) + .frbInternalSseEncode(move: null), + serializer); + } + @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -764,6 +1675,39 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } } +@sealed +class LtNestedTypeWithLifetimeTwinNormalImpl extends RustOpaque + implements LtNestedTypeWithLifetimeTwinNormal { + // Not to be used by end users + LtNestedTypeWithLifetimeTwinNormalImpl.frbInternalDcoDecode( + List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + LtNestedTypeWithLifetimeTwinNormalImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: RustLib.instance.api + .rust_arc_increment_strong_count_LtNestedTypeWithLifetimeTwinNormal, + rustArcDecrementStrongCount: RustLib.instance.api + .rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormal, + rustArcDecrementStrongCountPtr: RustLib.instance.api + .rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormalPtr, + ); + + Future greetBorrowMutSelfTwinNormal() => RustLib.instance.api + .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( + that: this, + ); + + Future greetBorrowSelfTwinNormal() => RustLib.instance.api + .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormal( + that: this, + ); +} + @sealed class LtOwnedStructTwinNormalImpl extends RustOpaque implements LtOwnedStructTwinNormal { @@ -784,6 +1728,24 @@ class LtOwnedStructTwinNormalImpl extends RustOpaque rustArcDecrementStrongCountPtr: RustLib.instance.api .rust_arc_decrement_strong_count_LtOwnedStructTwinNormalPtr, ); + + /// `fn f(x: &'a T) -> S<'a>` + Future computeTypeWithLifetimeTwinNormal() => + RustLib.instance.api + .crateApiMinimalLtOwnedStructTwinNormalComputeTypeWithLifetimeTwinNormal( + that: this, + ); + + /// The unrelated arg should not affect results + Future< + LtTypeWithLifetimeTwinNormal> computeWithUnrelatedBorrowedArgTwinNormal( + {required LtSubStructTwinNormal unrelatedBorrowed, + required LtSubStructTwinNormal unrelatedOwned}) => + RustLib.instance.api + .crateApiMinimalLtOwnedStructTwinNormalComputeWithUnrelatedBorrowedArgTwinNormal( + that: this, + unrelatedBorrowed: unrelatedBorrowed, + unrelatedOwned: unrelatedOwned); } @sealed @@ -818,6 +1780,104 @@ class LtSubStructTwinNormalImpl extends RustOpaque ); } +@sealed +class LtTypeWithLifetimeTwinNormalImpl extends RustOpaque + implements LtTypeWithLifetimeTwinNormal { + // Not to be used by end users + LtTypeWithLifetimeTwinNormalImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + LtTypeWithLifetimeTwinNormalImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: RustLib.instance.api + .rust_arc_increment_strong_count_LtTypeWithLifetimeTwinNormal, + rustArcDecrementStrongCount: RustLib.instance.api + .rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormal, + rustArcDecrementStrongCountPtr: RustLib.instance.api + .rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormalPtr, + ); + + /// `&mut T` where T is lifetimeable + Future greetBorrowMutSelfTwinNormal() => RustLib.instance.api + .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( + that: this, + ); + + /// `&T` where T is lifetimeable + Future greetBorrowSelfTwinNormal() => RustLib.instance.api + .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormal( + that: this, + ); +} + +@sealed +class LtTypeWithMultiDepTwinNormalImpl extends RustOpaque + implements LtTypeWithMultiDepTwinNormal { + // Not to be used by end users + LtTypeWithMultiDepTwinNormalImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + LtTypeWithMultiDepTwinNormalImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: RustLib.instance.api + .rust_arc_increment_strong_count_LtTypeWithMultiDepTwinNormal, + rustArcDecrementStrongCount: RustLib.instance.api + .rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormal, + rustArcDecrementStrongCountPtr: RustLib.instance.api + .rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr, + ); + + Future> greetBorrowMutSelfTwinNormal() => RustLib.instance.api + .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowMutSelfTwinNormal( + that: this, + ); + + Future> greetBorrowSelfTwinNormal() => RustLib.instance.api + .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowSelfTwinNormal( + that: this, + ); +} + +@sealed +class LtTypeWithMultiDepTwinNormalImpl extends RustOpaque + implements LtTypeWithMultiDepTwinNormal { + // Not to be used by end users + LtTypeWithMultiDepTwinNormalImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + LtTypeWithMultiDepTwinNormalImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: RustLib.instance.api + .rust_arc_increment_strong_count_LtTypeWithMultiDepTwinNormal, + rustArcDecrementStrongCount: RustLib.instance.api + .rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormal, + rustArcDecrementStrongCountPtr: RustLib.instance.api + .rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr, + ); + + Future> greetBorrowMutSelfTwinNormal() => RustLib.instance.api + .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowMutSelfTwinNormal( + that: this, + ); + + Future> greetBorrowSelfTwinNormal() => RustLib.instance.api + .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowSelfTwinNormal( + that: this, + ); +} + @sealed class SimpleLoggerImpl extends RustOpaque implements SimpleLogger { // Not to be used by end users diff --git a/frb_example/dart_minimal/lib/src/rust/frb_generated.io.dart b/frb_example/dart_minimal/lib/src/rust/frb_generated.io.dart index 28f7d8261e..42d20fe1e2 100644 --- a/frb_example/dart_minimal/lib/src/rust/frb_generated.io.dart +++ b/frb_example/dart_minimal/lib/src/rust/frb_generated.io.dart @@ -18,6 +18,18 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { required super.portManager, }); + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormalPtr => + wire._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstaticPtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormalPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstaticPtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstaticPtr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_LtOwnedStructTwinNormalPtr => wire ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormalPtr; @@ -26,10 +38,29 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { get rust_arc_decrement_strong_count_LtSubStructTwinNormalPtr => wire ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormalPtr; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticPtr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_SimpleLoggerPtr => wire ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLoggerPtr; + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + dynamic raw); + @protected LtOwnedStructTwinNormal dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -40,6 +71,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( dynamic raw); + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + dynamic raw); + @protected SimpleLogger dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -50,6 +86,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( dynamic raw); + @protected + LtOwnedStructTwinNormal + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + dynamic raw); + @protected LtSubStructTwinNormal dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( @@ -60,6 +101,51 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( dynamic raw); + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + dynamic raw); + + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + dynamic raw); + + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + dynamic raw); + @protected LtOwnedStructTwinNormal dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -70,6 +156,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( dynamic raw); + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + dynamic raw); + @protected SimpleLogger dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -96,6 +187,21 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected BigInt dco_decode_usize(dynamic raw); + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer); + @protected LtOwnedStructTwinNormal sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -106,6 +212,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( SseDeserializer deserializer); + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer); + @protected SimpleLogger sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -116,6 +227,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( SseDeserializer deserializer); + @protected + LtOwnedStructTwinNormal + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + SseDeserializer deserializer); + @protected LtSubStructTwinNormal sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( @@ -126,6 +242,51 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( SseDeserializer deserializer); + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer); + @protected LtOwnedStructTwinNormal sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -136,6 +297,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( SseDeserializer deserializer); + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer); + @protected SimpleLogger sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -165,6 +331,21 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected bool sse_decode_bool(SseDeserializer deserializer); + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -175,6 +356,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( LtSubStructTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -185,6 +371,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( LtSubStructTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtOwnedStructTwinNormal self, SseSerializer serializer); + @protected void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( @@ -195,6 +386,51 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( SimpleLogger self, SseSerializer serializer); + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -205,6 +441,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( LtSubStructTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -250,6 +491,102 @@ class RustLibWire implements BaseWire { RustLibWire(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstaticPtr = + _lookup)>>( + 'frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstaticPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstaticPtr = + _lookup)>>( + 'frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstaticPtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstaticPtr = + _lookup)>>( + 'frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstaticPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstaticPtr = + _lookup)>>( + 'frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstaticPtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstaticPtr = + _lookup)>>( + 'frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstaticPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstaticPtr = + _lookup)>>( + 'frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstaticPtr + .asFunction)>(); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( ffi.Pointer ptr, @@ -314,6 +651,38 @@ class RustLibWire implements BaseWire { _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormalPtr .asFunction)>(); + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticPtr = + _lookup)>>( + 'frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticPtr = + _lookup)>>( + 'frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticPtr + .asFunction)>(); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( ffi.Pointer ptr, diff --git a/frb_example/dart_minimal/lib/src/rust/frb_generated.web.dart b/frb_example/dart_minimal/lib/src/rust/frb_generated.web.dart index 1bdd16a1dc..bddca2b784 100644 --- a/frb_example/dart_minimal/lib/src/rust/frb_generated.web.dart +++ b/frb_example/dart_minimal/lib/src/rust/frb_generated.web.dart @@ -20,6 +20,18 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { required super.portManager, }); + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormalPtr => + wire.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormalPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_LtOwnedStructTwinNormalPtr => wire .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal; @@ -28,10 +40,29 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { get rust_arc_decrement_strong_count_LtSubStructTwinNormalPtr => wire .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_SimpleLoggerPtr => wire .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger; + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + dynamic raw); + @protected LtOwnedStructTwinNormal dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -42,6 +73,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( dynamic raw); + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + dynamic raw); + @protected SimpleLogger dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -52,6 +88,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( dynamic raw); + @protected + LtOwnedStructTwinNormal + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + dynamic raw); + @protected LtSubStructTwinNormal dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( @@ -62,6 +103,51 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( dynamic raw); + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + dynamic raw); + + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + dynamic raw); + + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + dynamic raw); + @protected LtOwnedStructTwinNormal dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -72,6 +158,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( dynamic raw); + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + dynamic raw); + @protected SimpleLogger dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -98,6 +189,21 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected BigInt dco_decode_usize(dynamic raw); + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer); + @protected LtOwnedStructTwinNormal sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -108,6 +214,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( SseDeserializer deserializer); + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer); + @protected SimpleLogger sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -118,6 +229,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( SseDeserializer deserializer); + @protected + LtOwnedStructTwinNormal + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + SseDeserializer deserializer); + @protected LtSubStructTwinNormal sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( @@ -128,6 +244,51 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( SseDeserializer deserializer); + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer); + @protected LtOwnedStructTwinNormal sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -138,6 +299,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( SseDeserializer deserializer); + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer); + @protected SimpleLogger sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -167,6 +333,21 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected bool sse_decode_bool(SseDeserializer deserializer); + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -177,6 +358,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( LtSubStructTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -187,6 +373,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( LtSubStructTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtOwnedStructTwinNormal self, SseSerializer serializer); + @protected void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( @@ -197,6 +388,51 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( SimpleLogger self, SseSerializer serializer); + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -207,6 +443,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( LtSubStructTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -243,6 +484,42 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { class RustLibWire implements BaseWire { RustLibWire.fromExternalLibrary(ExternalLibrary lib); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + ptr); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( int ptr) => wasmModule @@ -267,6 +544,18 @@ class RustLibWire implements BaseWire { .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( ptr); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + ptr); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( int ptr) => wasmModule @@ -286,6 +575,30 @@ external RustLibWasmModule get wasmModule; @JS() @anonymous extension type RustLibWasmModule._(JSObject _) implements JSObject { + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + int ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + int ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + int ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + int ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + int ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + int ptr); + external void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( int ptr); @@ -302,6 +615,14 @@ extension type RustLibWasmModule._(JSObject _) implements JSObject { rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( int ptr); + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + int ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + int ptr); + external void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( int ptr); diff --git a/frb_example/dart_minimal/rust/src/frb_generated.io.rs b/frb_example/dart_minimal/rust/src/frb_generated.io.rs index f0348f700b..f60367819a 100644 --- a/frb_example/dart_minimal/rust/src/frb_generated.io.rs +++ b/frb_example/dart_minimal/rust/src/frb_generated.io.rs @@ -13,6 +13,72 @@ use flutter_rust_bridge::{Handler, IntoIntoDart}; flutter_rust_bridge::frb_generated_boilerplate_io!(); +#[no_mangle] +pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::increment_strong_count(ptr as _); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::decrement_strong_count(ptr as _); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::increment_strong_count(ptr as _); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::decrement_strong_count(ptr as _); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::increment_strong_count(ptr as _); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::decrement_strong_count(ptr as _); +} + #[no_mangle] pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( ptr: *const std::ffi::c_void, @@ -41,6 +107,28 @@ pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_coun MoiArc::>::decrement_strong_count(ptr as _); } +#[no_mangle] +pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + LtTypeWithMultiDepTwinNormal<'static>, + >, + >::increment_strong_count(ptr as _); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + LtTypeWithMultiDepTwinNormal<'static>, + >, + >::decrement_strong_count(ptr as _); +} + #[no_mangle] pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( ptr: *const std::ffi::c_void, diff --git a/frb_example/dart_minimal/rust/src/frb_generated.rs b/frb_example/dart_minimal/rust/src/frb_generated.rs index 776f4d75ad..9e0da5ebfe 100644 --- a/frb_example/dart_minimal/rust/src/frb_generated.rs +++ b/frb_example/dart_minimal/rust/src/frb_generated.rs @@ -34,7 +34,7 @@ flutter_rust_bridge::frb_generated_boilerplate!( default_rust_auto_opaque = RustAutoOpaqueMoi, ); pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.0.0-dev.39"; -pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = 2095221642; +pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = 1535573962; // Section: executor @@ -42,6 +42,285 @@ flutter_rust_bridge::frb_generated_default_handler!(); // Section: wire_funcs +fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtNestedTypeWithLifetimeTwinNormal ::greet_borrow_mut_self_twin_normal(&*api_that_guard))?; Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtNestedTypeWithLifetimeTwinNormal ::greet_borrow_self_twin_normal(&*&api_that_guard))?; Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_arg = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let api_arg_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg) + };let mut api_arg_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_arg, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_arg_guard = Some(api_arg_illegal_static_ref.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_arg_guard = api_arg_guard.unwrap(); +let api_arg_guard = Arc::new(api_arg_guard); + let api_arg_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg_guard) + }; let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithLifetimeTwinNormal ::compute_arg_generic_lifetime_twin_normal(&*api_arg_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(flutter_rust_bridge::for_generated::Lifetimeable::new(output_ok, vec![Box::new(api_arg.clone()), Box::new(api_arg_guard.clone())])); Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithLifetimeTwinNormal ::greet_borrow_mut_self_twin_normal(&*api_that_guard))?; Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithLifetimeTwinNormal ::greet_borrow_self_twin_normal(&*&api_that_guard))?; Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_a = >>::sse_decode(&mut deserializer); +let api_b = >>::sse_decode(&mut deserializer); +let api_unrelated_borrowed = >>::sse_decode(&mut deserializer); +let api_unrelated_owned = ::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let api_a_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_a) + };let api_b_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_b) + };let mut api_a_guard = None; +let mut api_b_guard = None; +let mut api_unrelated_borrowed_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_a, 0, false), flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_b, 1, false), flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_unrelated_borrowed, 2, false)]); + for i in decode_indices_ { + match i { + 0 => api_a_guard = Some(api_a_illegal_static_ref.lockable_decode_sync_ref()), +1 => api_b_guard = Some(api_b_illegal_static_ref.lockable_decode_sync_ref()), +2 => api_unrelated_borrowed_guard = Some(api_unrelated_borrowed.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_a_guard = api_a_guard.unwrap(); +let api_b_guard = api_b_guard.unwrap(); +let api_unrelated_borrowed_guard = api_unrelated_borrowed_guard.unwrap(); +let api_a_guard = Arc::new(api_a_guard); + let api_a_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_a_guard) + };let api_b_guard = Arc::new(api_b_guard); + let api_b_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_b_guard) + }; let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithMultiDepTwinNormal ::compute_with_multi_arg_having_lifetime_twin_normal(&*api_a_guard_illegal_static_ref, &*api_b_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithMultiDepTwinNormal ::greet_borrow_mut_self_twin_normal(&*api_that_guard))?; Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithMultiDepTwinNormal ::greet_borrow_self_twin_normal(&*&api_that_guard))?; Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__minimal__LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let api_that_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that) + };let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that_illegal_static_ref.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); +let api_that_guard = Arc::new(api_that_guard); + let api_that_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that_guard) + }; let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtOwnedStructTwinNormal::compute_type_with_lifetime_twin_normal(&*api_that_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(flutter_rust_bridge::for_generated::Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__minimal__LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>::sse_decode(&mut deserializer); +let api_unrelated_borrowed = >>::sse_decode(&mut deserializer); +let api_unrelated_owned = ::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let api_that_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that) + };let mut api_that_guard = None; +let mut api_unrelated_borrowed_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false), flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_unrelated_borrowed, 1, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that_illegal_static_ref.lockable_decode_sync_ref()), +1 => api_unrelated_borrowed_guard = Some(api_unrelated_borrowed.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); +let api_unrelated_borrowed_guard = api_unrelated_borrowed_guard.unwrap(); +let api_that_guard = Arc::new(api_that_guard); + let api_that_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that_guard) + }; let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtOwnedStructTwinNormal::compute_with_unrelated_borrowed_arg_twin_normal(&*api_that_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; let output_ok = RustAutoOpaque::new(flutter_rust_bridge::for_generated::Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) + })()) + } }) +} fn wire__crate__api__minimal__LtOwnedStructTwinNormal_create_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, @@ -325,6 +604,76 @@ fn wire__crate__api__minimal__init_app_impl( }, ) } +fn wire__crate__api__minimal__lt_compute_with_lifetime_function_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "lt_compute_with_lifetime_function_twin_normal", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let message = unsafe { + flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire( + ptr_, + rust_vec_len_, + data_len_, + ) + }; + let mut deserializer = + flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_arg = , + >>::sse_decode(&mut deserializer); + deserializer.end(); + move |context| { + transform_result_sse::<_, ()>((move || { + let api_arg_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg) + }; + let mut api_arg_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_arg, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => { + api_arg_guard = + Some(api_arg_illegal_static_ref.lockable_decode_sync_ref()) + } + _ => unreachable!(), + } + } + let api_arg_guard = api_arg_guard.unwrap(); + let api_arg_guard = Arc::new(api_arg_guard); + let api_arg_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime( + &api_arg_guard, + ) + }; + let output_ok = Result::<_, ()>::Ok( + crate::api::minimal::lt_compute_with_lifetime_function_twin_normal( + &*api_arg_guard_illegal_static_ref, + ), + )?; + let output_ok = + RustAutoOpaque::new(flutter_rust_bridge::for_generated::Lifetimeable::new( + output_ok, + vec![Box::new(api_arg.clone()), Box::new(api_arg_guard.clone())], + )); + Ok(output_ok) + })()) + } + }, + ) +} fn wire__crate__api__minimal__minimal_adder_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, @@ -363,18 +712,72 @@ fn wire__crate__api__minimal__minimal_adder_impl( // Section: related_funcs +flutter_rust_bridge::frb_generated_moi_arc_impl_value!( + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + > +); +flutter_rust_bridge::frb_generated_moi_arc_impl_value!( + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + > +); +flutter_rust_bridge::frb_generated_moi_arc_impl_value!( + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + > +); flutter_rust_bridge::frb_generated_moi_arc_impl_value!( flutter_rust_bridge::for_generated::RustAutoOpaqueInner ); flutter_rust_bridge::frb_generated_moi_arc_impl_value!( flutter_rust_bridge::for_generated::RustAutoOpaqueInner ); +flutter_rust_bridge::frb_generated_moi_arc_impl_value!( + flutter_rust_bridge::for_generated::RustAutoOpaqueInner> +); flutter_rust_bridge::frb_generated_moi_arc_impl_value!( flutter_rust_bridge::for_generated::RustAutoOpaqueInner ); // Section: dart2rust +impl SseDecode for RustAutoOpaqueMoi>> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = >, + >, + >>::sse_decode(deserializer); + return flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_decode(inner); + } +} + +impl SseDecode for RustAutoOpaqueMoi>> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = >, + >, + >>::sse_decode(deserializer); + return flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_decode(inner); + } +} + +impl SseDecode for RustAutoOpaqueMoi>> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = >, + >, + >>::sse_decode(deserializer); + return flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_decode(inner); + } +} + impl SseDecode for LtOwnedStructTwinNormal { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -395,6 +798,18 @@ impl SseDecode for LtSubStructTwinNormal { } } +impl SseDecode for LtTypeWithMultiDepTwinNormal<'static> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = , + >, + >>::sse_decode(deserializer); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); + } +} + impl SseDecode for SimpleLogger { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -405,6 +820,48 @@ impl SseDecode for SimpleLogger { } } +impl SseDecode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return decode_rust_opaque_moi(inner); + } +} + +impl SseDecode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return decode_rust_opaque_moi(inner); + } +} + +impl SseDecode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return decode_rust_opaque_moi(inner); + } +} + impl SseDecode for RustOpaqueMoi< flutter_rust_bridge::for_generated::RustAutoOpaqueInner, @@ -429,6 +886,20 @@ impl SseDecode } } +impl SseDecode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + LtTypeWithMultiDepTwinNormal<'static>, + >, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return decode_rust_opaque_moi(inner); + } +} + impl SseDecode for RustOpaqueMoi> { @@ -513,42 +984,26 @@ fn pde_ffi_dispatcher_primary_impl( ) { // Codec=Pde (Serialization + dispatch), see doc to use other codecs match func_id { - 1 => wire__crate__api__minimal__LtOwnedStructTwinNormal_create_impl( - port, - ptr, - rust_vec_len, - data_len, - ), - 2 => wire__crate__api__minimal__LtOwnedStructTwinNormal_create_with_logger_impl( - port, - ptr, - rust_vec_len, - data_len, - ), - 3 => { - wire__crate__api__minimal__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal_impl( - port, - ptr, - rust_vec_len, - data_len, - ) - } - 4 => wire__crate__api__minimal__LtSubStructTwinNormal_greet_borrow_self_twin_normal_impl( - port, - ptr, - rust_vec_len, - data_len, - ), - 5 => wire__crate__api__minimal__SimpleLogger_get_and_reset_impl( - port, - ptr, - rust_vec_len, - data_len, - ), - 7 => wire__crate__api__minimal__init_app_impl(port, ptr, rust_vec_len, data_len), - 8 => wire__crate__api__minimal__minimal_adder_impl(port, ptr, rust_vec_len, data_len), - _ => unreachable!(), - } + 1 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +2 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +3 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal_impl(port, ptr, rust_vec_len, data_len), +4 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +5 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +6 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal_impl(port, ptr, rust_vec_len, data_len), +7 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +8 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +9 => wire__crate__api__minimal__LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal_impl(port, ptr, rust_vec_len, data_len), +10 => wire__crate__api__minimal__LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal_impl(port, ptr, rust_vec_len, data_len), +11 => wire__crate__api__minimal__LtOwnedStructTwinNormal_create_impl(port, ptr, rust_vec_len, data_len), +12 => wire__crate__api__minimal__LtOwnedStructTwinNormal_create_with_logger_impl(port, ptr, rust_vec_len, data_len), +13 => wire__crate__api__minimal__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +14 => wire__crate__api__minimal__LtSubStructTwinNormal_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +15 => wire__crate__api__minimal__SimpleLogger_get_and_reset_impl(port, ptr, rust_vec_len, data_len), +17 => wire__crate__api__minimal__init_app_impl(port, ptr, rust_vec_len, data_len), +18 => wire__crate__api__minimal__lt_compute_with_lifetime_function_twin_normal_impl(port, ptr, rust_vec_len, data_len), +19 => wire__crate__api__minimal__minimal_adder_impl(port, ptr, rust_vec_len, data_len), + _ => unreachable!(), + } } fn pde_ffi_dispatcher_sync_impl( @@ -559,7 +1014,7 @@ fn pde_ffi_dispatcher_sync_impl( ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { // Codec=Pde (Serialization + dispatch), see doc to use other codecs match func_id { - 6 => wire__crate__api__minimal__SimpleLogger_new_impl(ptr, rust_vec_len, data_len), + 16 => wire__crate__api__minimal__SimpleLogger_new_impl(ptr, rust_vec_len, data_len), _ => unreachable!(), } } @@ -606,6 +1061,26 @@ impl flutter_rust_bridge::IntoIntoDart> } } +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for FrbWrapper> { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self.0) + .into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for FrbWrapper> +{ +} + +impl flutter_rust_bridge::IntoIntoDart>> + for LtTypeWithMultiDepTwinNormal<'static> +{ + fn into_into_dart(self) -> FrbWrapper> { + self.into() + } +} + // Codec=Dco (DartCObject based), see doc to use other codecs impl flutter_rust_bridge::IntoDart for FrbWrapper { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { @@ -621,6 +1096,48 @@ impl flutter_rust_bridge::IntoIntoDart> for SimpleLogge } } +impl SseEncode for RustAutoOpaqueMoi>> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >, + >, + >>::sse_encode( + flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_encode(self), + serializer, + ); + } +} + +impl SseEncode for RustAutoOpaqueMoi>> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >, + >, + >>::sse_encode( + flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_encode(self), + serializer, + ); + } +} + +impl SseEncode for RustAutoOpaqueMoi>> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >, + >, + >>::sse_encode( + flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_encode(self), + serializer, + ); + } +} + impl SseEncode for LtOwnedStructTwinNormal { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -645,6 +1162,20 @@ impl SseEncode for LtSubStructTwinNormal { } } +impl SseEncode for LtTypeWithMultiDepTwinNormal<'static> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + , + >, + >>::sse_encode( + flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self), + serializer, + ); + } +} + impl SseEncode for SimpleLogger { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -652,6 +1183,51 @@ impl SseEncode for SimpleLogger { } } +impl SseEncode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + +impl SseEncode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + +impl SseEncode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + impl SseEncode for RustOpaqueMoi< flutter_rust_bridge::for_generated::RustAutoOpaqueInner, @@ -678,6 +1254,21 @@ impl SseEncode } } +impl SseEncode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + LtTypeWithMultiDepTwinNormal<'static>, + >, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + impl SseEncode for RustOpaqueMoi> { diff --git a/frb_example/dart_minimal/rust/src/frb_generated.web.rs b/frb_example/dart_minimal/rust/src/frb_generated.web.rs index d0fac41c8f..a75be0035f 100644 --- a/frb_example/dart_minimal/rust/src/frb_generated.web.rs +++ b/frb_example/dart_minimal/rust/src/frb_generated.web.rs @@ -15,6 +15,72 @@ use flutter_rust_bridge::{Handler, IntoIntoDart}; flutter_rust_bridge::frb_generated_boilerplate_web!(); +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::increment_strong_count(ptr as _); +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::decrement_strong_count(ptr as _); +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::increment_strong_count(ptr as _); +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::decrement_strong_count(ptr as _); +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::increment_strong_count(ptr as _); +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::decrement_strong_count(ptr as _); +} + #[wasm_bindgen] pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( ptr: *const std::ffi::c_void, @@ -43,6 +109,28 @@ pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generat MoiArc::>::decrement_strong_count(ptr as _); } +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + LtTypeWithMultiDepTwinNormal<'static>, + >, + >::increment_strong_count(ptr as _); +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + LtTypeWithMultiDepTwinNormal<'static>, + >, + >::decrement_strong_count(ptr as _); +} + #[wasm_bindgen] pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( ptr: *const std::ffi::c_void, From b8976716c8ddc9d23795fe20b426b767d3a266d8 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:16:50 +0800 Subject: [PATCH 039/117] feat: more --- .../dart_minimal/lib/src/rust/api/minimal.dart | 3 ++- frb_example/dart_minimal/rust/src/api/minimal.rs | 12 ++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/frb_example/dart_minimal/lib/src/rust/api/minimal.dart b/frb_example/dart_minimal/lib/src/rust/api/minimal.dart index a269da6f9c..24f7676dc4 100644 --- a/frb_example/dart_minimal/lib/src/rust/api/minimal.dart +++ b/frb_example/dart_minimal/lib/src/rust/api/minimal.dart @@ -3,9 +3,10 @@ // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import -import '../frb_generated.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; +import '../frb_generated.dart'; + // These functions are ignored because they are not marked as `pub`: `log` // These functions have error during generation (see debug logs or enable `stop_on_error: true` for more details): `compute_nested_type_with_lifetime_twin_normal` diff --git a/frb_example/dart_minimal/rust/src/api/minimal.rs b/frb_example/dart_minimal/rust/src/api/minimal.rs index c15ab8c79e..f48c1123f3 100644 --- a/frb_example/dart_minimal/rust/src/api/minimal.rs +++ b/frb_example/dart_minimal/rust/src/api/minimal.rs @@ -1,9 +1,9 @@ #![allow(clippy::needless_lifetimes)] -use flutter_rust_bridge::for_generated::lazy_static; -use flutter_rust_bridge::frb; use std::sync::{Arc, Mutex}; +use flutter_rust_bridge::frb; + #[frb(init)] pub fn init_app() { flutter_rust_bridge::setup_default_user_utils(); @@ -134,11 +134,11 @@ impl LtOwnedStructTwinNormal { /// The unrelated arg should not affect results pub fn compute_with_unrelated_borrowed_arg_twin_normal<'a>( &'a self, - unrelated_borrowed: &LtSubStructTwinNormal, - unrelated_owned: LtSubStructTwinNormal, + unrelated_borrowed: &LtOwnedStructTwinNormal, + unrelated_owned: LtOwnedStructTwinNormal, ) -> LtTypeWithLifetimeTwinNormal<'a> { - assert_eq!(&unrelated_borrowed.value, "hi"); - assert_eq!(&unrelated_owned.value, "hi"); + assert_eq!(&unrelated_borrowed.sub.value, "hi"); + assert_eq!(&unrelated_owned.sub.value, "hi"); LtTypeWithLifetimeTwinNormal { field: self } } } From 39aceac396c306665d413db11a66590a707ef62a Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:17:20 +0800 Subject: [PATCH 040/117] feat: more --- frb_example/dart_minimal/rust/src/api/minimal.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frb_example/dart_minimal/rust/src/api/minimal.rs b/frb_example/dart_minimal/rust/src/api/minimal.rs index f48c1123f3..206b08f5e2 100644 --- a/frb_example/dart_minimal/rust/src/api/minimal.rs +++ b/frb_example/dart_minimal/rust/src/api/minimal.rs @@ -201,11 +201,11 @@ impl LtTypeWithMultiDepTwinNormal<'_> { pub fn compute_with_multi_arg_having_lifetime_twin_normal<'a>( a: &'a LtOwnedStructTwinNormal, b: &'a LtOwnedStructTwinNormal, - unrelated_borrowed: &LtSubStructTwinNormal, - unrelated_owned: LtSubStructTwinNormal, + unrelated_borrowed: &LtOwnedStructTwinNormal, + unrelated_owned: LtOwnedStructTwinNormal, ) -> Self<'a> { - assert_eq!(&unrelated_borrowed.value, "hi"); - assert_eq!(&unrelated_owned.value, "hi"); + assert_eq!(&unrelated_borrowed.sub.value, "hi"); + assert_eq!(&unrelated_owned.sub.value, "hi"); Self { fields: vec![a, b] } } From 65da92d3bf08546b5b3e527d9b04663ca8ae0682 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:17:24 +0800 Subject: [PATCH 041/117] chore: codegen --- .../lib/src/rust/api/minimal.dart | 15 +++++----- .../lib/src/rust/frb_generated.dart | 28 +++++++++---------- .../dart_minimal/rust/src/frb_generated.rs | 8 +++--- 3 files changed, 25 insertions(+), 26 deletions(-) diff --git a/frb_example/dart_minimal/lib/src/rust/api/minimal.dart b/frb_example/dart_minimal/lib/src/rust/api/minimal.dart index 24f7676dc4..6ef96c77b3 100644 --- a/frb_example/dart_minimal/lib/src/rust/api/minimal.dart +++ b/frb_example/dart_minimal/lib/src/rust/api/minimal.dart @@ -3,9 +3,8 @@ // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import -import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; - import '../frb_generated.dart'; +import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; // These functions are ignored because they are not marked as `pub`: `log` // These functions have error during generation (see debug logs or enable `stop_on_error: true` for more details): `compute_nested_type_with_lifetime_twin_normal` @@ -51,8 +50,8 @@ abstract class LtTypeWithMultiDepTwinNormal implements RustOpaqueInterface { LtTypeWithMultiDepTwinNormal> computeWithMultiArgHavingLifetimeTwinNormal( {required LtOwnedStructTwinNormal a, required LtOwnedStructTwinNormal b, - required LtSubStructTwinNormal unrelatedBorrowed, - required LtSubStructTwinNormal unrelatedOwned}) => + required LtOwnedStructTwinNormal unrelatedBorrowed, + required LtOwnedStructTwinNormal unrelatedOwned}) => RustLib.instance.api .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticComputeWithMultiArgHavingLifetimeTwinNormal( a: a, @@ -73,8 +72,8 @@ abstract class LtOwnedStructTwinNormal implements RustOpaqueInterface { /// The unrelated arg should not affect results Future computeWithUnrelatedBorrowedArgTwinNormal( - {required LtSubStructTwinNormal unrelatedBorrowed, - required LtSubStructTwinNormal unrelatedOwned}); + {required LtOwnedStructTwinNormal unrelatedBorrowed, + required LtOwnedStructTwinNormal unrelatedOwned}); static Future create({required String value}) => RustLib.instance.api @@ -101,8 +100,8 @@ abstract class LtTypeWithMultiDepTwinNormal implements RustOpaqueInterface { LtTypeWithMultiDepTwinNormal> computeWithMultiArgHavingLifetimeTwinNormal( {required LtOwnedStructTwinNormal a, required LtOwnedStructTwinNormal b, - required LtSubStructTwinNormal unrelatedBorrowed, - required LtSubStructTwinNormal unrelatedOwned}) => + required LtOwnedStructTwinNormal unrelatedBorrowed, + required LtOwnedStructTwinNormal unrelatedOwned}) => RustLib.instance.api .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticComputeWithMultiArgHavingLifetimeTwinNormal( a: a, diff --git a/frb_example/dart_minimal/lib/src/rust/frb_generated.dart b/frb_example/dart_minimal/lib/src/rust/frb_generated.dart index b3492ebc4a..013d6132dc 100644 --- a/frb_example/dart_minimal/lib/src/rust/frb_generated.dart +++ b/frb_example/dart_minimal/lib/src/rust/frb_generated.dart @@ -92,8 +92,8 @@ abstract class RustLibApi extends BaseApi { crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticComputeWithMultiArgHavingLifetimeTwinNormal( {required LtOwnedStructTwinNormal a, required LtOwnedStructTwinNormal b, - required LtSubStructTwinNormal unrelatedBorrowed, - required LtSubStructTwinNormal unrelatedOwned}); + required LtOwnedStructTwinNormal unrelatedBorrowed, + required LtOwnedStructTwinNormal unrelatedOwned}); Future> crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowMutSelfTwinNormal( @@ -110,8 +110,8 @@ abstract class RustLibApi extends BaseApi { Future crateApiMinimalLtOwnedStructTwinNormalComputeWithUnrelatedBorrowedArgTwinNormal( {required LtOwnedStructTwinNormal that, - required LtSubStructTwinNormal unrelatedBorrowed, - required LtSubStructTwinNormal unrelatedOwned}); + required LtOwnedStructTwinNormal unrelatedBorrowed, + required LtOwnedStructTwinNormal unrelatedOwned}); Future crateApiMinimalLtOwnedStructTwinNormalCreate( {required String value}); @@ -372,8 +372,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticComputeWithMultiArgHavingLifetimeTwinNormal( {required LtOwnedStructTwinNormal a, required LtOwnedStructTwinNormal b, - required LtSubStructTwinNormal unrelatedBorrowed, - required LtSubStructTwinNormal unrelatedOwned}) { + required LtOwnedStructTwinNormal unrelatedBorrowed, + required LtOwnedStructTwinNormal unrelatedOwned}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); @@ -381,9 +381,9 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { a, serializer); sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( b, serializer); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( unrelatedBorrowed, serializer); - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( unrelatedOwned, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 6, port: port_); @@ -506,16 +506,16 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { Future crateApiMinimalLtOwnedStructTwinNormalComputeWithUnrelatedBorrowedArgTwinNormal( {required LtOwnedStructTwinNormal that, - required LtSubStructTwinNormal unrelatedBorrowed, - required LtSubStructTwinNormal unrelatedOwned}) { + required LtOwnedStructTwinNormal unrelatedBorrowed, + required LtOwnedStructTwinNormal unrelatedOwned}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( that, serializer); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( unrelatedBorrowed, serializer); - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( unrelatedOwned, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 10, port: port_); @@ -1739,8 +1739,8 @@ class LtOwnedStructTwinNormalImpl extends RustOpaque /// The unrelated arg should not affect results Future< LtTypeWithLifetimeTwinNormal> computeWithUnrelatedBorrowedArgTwinNormal( - {required LtSubStructTwinNormal unrelatedBorrowed, - required LtSubStructTwinNormal unrelatedOwned}) => + {required LtOwnedStructTwinNormal unrelatedBorrowed, + required LtOwnedStructTwinNormal unrelatedOwned}) => RustLib.instance.api .crateApiMinimalLtOwnedStructTwinNormalComputeWithUnrelatedBorrowedArgTwinNormal( that: this, diff --git a/frb_example/dart_minimal/rust/src/frb_generated.rs b/frb_example/dart_minimal/rust/src/frb_generated.rs index 9e0da5ebfe..bca3f8f445 100644 --- a/frb_example/dart_minimal/rust/src/frb_generated.rs +++ b/frb_example/dart_minimal/rust/src/frb_generated.rs @@ -178,8 +178,8 @@ fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_br let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); let api_a = >>::sse_decode(&mut deserializer); let api_b = >>::sse_decode(&mut deserializer); -let api_unrelated_borrowed = >>::sse_decode(&mut deserializer); -let api_unrelated_owned = ::sse_decode(&mut deserializer);deserializer.end(); move |context| { +let api_unrelated_borrowed = >>::sse_decode(&mut deserializer); +let api_unrelated_owned = ::sse_decode(&mut deserializer);deserializer.end(); move |context| { transform_result_sse::<_, ()>((move || { let api_a_illegal_static_ref = unsafe { flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_a) @@ -297,8 +297,8 @@ fn wire__crate__api__minimal__LtOwnedStructTwinNormal_compute_with_unrelated_bor let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); let api_that = >>::sse_decode(&mut deserializer); -let api_unrelated_borrowed = >>::sse_decode(&mut deserializer); -let api_unrelated_owned = ::sse_decode(&mut deserializer);deserializer.end(); move |context| { +let api_unrelated_borrowed = >>::sse_decode(&mut deserializer); +let api_unrelated_owned = ::sse_decode(&mut deserializer);deserializer.end(); move |context| { transform_result_sse::<_, ()>((move || { let api_that_illegal_static_ref = unsafe { flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that) From 08ce9b4cb7b8dbc09df04e1e8630b2eab4391f97 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:18:23 +0800 Subject: [PATCH 042/117] feat: more --- frb_example/dart_minimal/test/minimal_test.dart | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/frb_example/dart_minimal/test/minimal_test.dart b/frb_example/dart_minimal/test/minimal_test.dart index 275ed8ad44..d5e89eacae 100644 --- a/frb_example/dart_minimal/test/minimal_test.dart +++ b/frb_example/dart_minimal/test/minimal_test.dart @@ -158,11 +158,18 @@ Future main() async { test('computeArgGenericLifetimeTwinNormal', () async { final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); final typeWithLifetime = - await ownedStruct.computeTypeWithLifetimeTwinNormal(arg: ownedStruct); - final nestedTypeWithLifetime = await LtTypeWithLifetimeTwinNormal + await ownedStruct.computeTypeWithLifetimeTwinNormal(); + final anotherTypeWithLifetime = await LtTypeWithLifetimeTwinNormal .computeArgGenericLifetimeTwinNormal(arg: typeWithLifetime); - await _testNestedTypeWithLifetime( - ownedStruct, typeWithLifetime, nestedTypeWithLifetime); + + expect(await anotherTypeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); + expect(await anotherTypeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); + + ownedStruct.dispose(); + typeWithLifetime.dispose(); + + expect(await anotherTypeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); + expect(await anotherTypeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); }); test('computeWithMultiArgHavingLifetimeTwinNormal', () async { From 5d1e7bd8a13238437028845fba6988db064d860e Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:18:38 +0800 Subject: [PATCH 043/117] feat: more --- frb_example/dart_minimal/test/minimal_test.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frb_example/dart_minimal/test/minimal_test.dart b/frb_example/dart_minimal/test/minimal_test.dart index d5e89eacae..d3a522efc3 100644 --- a/frb_example/dart_minimal/test/minimal_test.dart +++ b/frb_example/dart_minimal/test/minimal_test.dart @@ -180,8 +180,8 @@ Future main() async { unrelatedBorrowed: await LtOwnedStructTwinNormal.create(value: 'hi'), unrelatedOwned: await LtOwnedStructTwinNormal.create(value: 'hi'), ); - expect(await typeWithMultiDep.greetBorrowSelfTwinNormal(), 'a'); - expect(await typeWithMultiDep.greetBorrowMutSelfTwinNormal(), 'a'); + expect(await typeWithMultiDep.greetBorrowSelfTwinNormal(), ['a', 'b']); + expect(await typeWithMultiDep.greetBorrowMutSelfTwinNormal(), ['a', 'b']); }); }); } From 8a4109436383d002de3e2983d9baba5ccdfcae48 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:20:28 +0800 Subject: [PATCH 044/117] feat: more --- frb_example/dart_minimal/rust/src/api/minimal.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frb_example/dart_minimal/rust/src/api/minimal.rs b/frb_example/dart_minimal/rust/src/api/minimal.rs index 206b08f5e2..0dd158bcbf 100644 --- a/frb_example/dart_minimal/rust/src/api/minimal.rs +++ b/frb_example/dart_minimal/rust/src/api/minimal.rs @@ -203,7 +203,7 @@ impl LtTypeWithMultiDepTwinNormal<'_> { b: &'a LtOwnedStructTwinNormal, unrelated_borrowed: &LtOwnedStructTwinNormal, unrelated_owned: LtOwnedStructTwinNormal, - ) -> Self<'a> { + ) -> LtTypeWithMultiDepTwinNormal<'a> { assert_eq!(&unrelated_borrowed.sub.value, "hi"); assert_eq!(&unrelated_owned.sub.value, "hi"); Self { fields: vec![a, b] } From aa9fceac11713a7448a0afb6a7b541ef3046d43e Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:20:40 +0800 Subject: [PATCH 045/117] chore: codegen --- .../lib/src/rust/api/minimal.dart | 21 ---- .../lib/src/rust/frb_generated.dart | 109 +----------------- .../lib/src/rust/frb_generated.io.dart | 66 ----------- .../lib/src/rust/frb_generated.web.dart | 54 --------- .../dart_minimal/rust/src/frb_generated.io.rs | 22 ---- .../dart_minimal/rust/src/frb_generated.rs | 80 +------------ .../rust/src/frb_generated.web.rs | 22 ---- 7 files changed, 2 insertions(+), 372 deletions(-) diff --git a/frb_example/dart_minimal/lib/src/rust/api/minimal.dart b/frb_example/dart_minimal/lib/src/rust/api/minimal.dart index 6ef96c77b3..bfb8aa0e71 100644 --- a/frb_example/dart_minimal/lib/src/rust/api/minimal.dart +++ b/frb_example/dart_minimal/lib/src/rust/api/minimal.dart @@ -93,27 +93,6 @@ abstract class LtSubStructTwinNormal implements RustOpaqueInterface { Future greetBorrowSelfTwinNormal(); } -// Rust type: RustOpaqueMoi>> -abstract class LtTypeWithMultiDepTwinNormal implements RustOpaqueInterface { - /// Multiple input args have lifetime - static Future< - LtTypeWithMultiDepTwinNormal> computeWithMultiArgHavingLifetimeTwinNormal( - {required LtOwnedStructTwinNormal a, - required LtOwnedStructTwinNormal b, - required LtOwnedStructTwinNormal unrelatedBorrowed, - required LtOwnedStructTwinNormal unrelatedOwned}) => - RustLib.instance.api - .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticComputeWithMultiArgHavingLifetimeTwinNormal( - a: a, - b: b, - unrelatedBorrowed: unrelatedBorrowed, - unrelatedOwned: unrelatedOwned); - - Future> greetBorrowMutSelfTwinNormal(); - - Future> greetBorrowSelfTwinNormal(); -} - // Rust type: RustOpaqueMoi> abstract class SimpleLogger implements RustOpaqueInterface { Future> getAndReset(); diff --git a/frb_example/dart_minimal/lib/src/rust/frb_generated.dart b/frb_example/dart_minimal/lib/src/rust/frb_generated.dart index 013d6132dc..83449d14c7 100644 --- a/frb_example/dart_minimal/lib/src/rust/frb_generated.dart +++ b/frb_example/dart_minimal/lib/src/rust/frb_generated.dart @@ -185,15 +185,6 @@ abstract class RustLibApi extends BaseApi { CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_LtSubStructTwinNormalPtr; - RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_LtTypeWithMultiDepTwinNormal; - - RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormal; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr; - RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_SimpleLogger; @@ -390,7 +381,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { }, codec: SseCodec( decodeSuccessData: - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic, + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic, decodeErrorData: null, ), constMeta: @@ -830,14 +821,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { get rust_arc_decrement_strong_count_LtSubStructTwinNormal => wire .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal; - RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_LtTypeWithMultiDepTwinNormal => wire - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic; - - RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormal => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic; - RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_SimpleLogger => wire .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger; @@ -890,15 +873,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return LtSubStructTwinNormalImpl.frbInternalDcoDecode(raw as List); } - @protected - LtTypeWithMultiDepTwinNormal - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return LtTypeWithMultiDepTwinNormalImpl.frbInternalDcoDecode( - raw as List); - } - @protected SimpleLogger dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -1038,15 +1012,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return LtSubStructTwinNormalImpl.frbInternalDcoDecode(raw as List); } - @protected - LtTypeWithMultiDepTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return LtTypeWithMultiDepTwinNormalImpl.frbInternalDcoDecode( - raw as List); - } - @protected SimpleLogger dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -1148,15 +1113,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } - @protected - LtTypeWithMultiDepTwinNormal - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - return LtTypeWithMultiDepTwinNormalImpl.frbInternalSseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); - } - @protected SimpleLogger sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -1313,15 +1269,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } - @protected - LtTypeWithMultiDepTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - return LtTypeWithMultiDepTwinNormalImpl.frbInternalSseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); - } - @protected SimpleLogger sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -1433,17 +1380,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } - @protected - void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - LtTypeWithMultiDepTwinNormal self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize( - (self as LtTypeWithMultiDepTwinNormalImpl) - .frbInternalSseEncode(move: true), - serializer); - } - @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -1601,17 +1537,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } - @protected - void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - LtTypeWithMultiDepTwinNormal self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize( - (self as LtTypeWithMultiDepTwinNormalImpl) - .frbInternalSseEncode(move: null), - serializer); - } - @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -1846,38 +1771,6 @@ class LtTypeWithMultiDepTwinNormalImpl extends RustOpaque ); } -@sealed -class LtTypeWithMultiDepTwinNormalImpl extends RustOpaque - implements LtTypeWithMultiDepTwinNormal { - // Not to be used by end users - LtTypeWithMultiDepTwinNormalImpl.frbInternalDcoDecode(List wire) - : super.frbInternalDcoDecode(wire, _kStaticData); - - // Not to be used by end users - LtTypeWithMultiDepTwinNormalImpl.frbInternalSseDecode( - BigInt ptr, int externalSizeOnNative) - : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: RustLib.instance.api - .rust_arc_increment_strong_count_LtTypeWithMultiDepTwinNormal, - rustArcDecrementStrongCount: RustLib.instance.api - .rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormal, - rustArcDecrementStrongCountPtr: RustLib.instance.api - .rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr, - ); - - Future> greetBorrowMutSelfTwinNormal() => RustLib.instance.api - .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowMutSelfTwinNormal( - that: this, - ); - - Future> greetBorrowSelfTwinNormal() => RustLib.instance.api - .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowSelfTwinNormal( - that: this, - ); -} - @sealed class SimpleLoggerImpl extends RustOpaque implements SimpleLogger { // Not to be used by end users diff --git a/frb_example/dart_minimal/lib/src/rust/frb_generated.io.dart b/frb_example/dart_minimal/lib/src/rust/frb_generated.io.dart index 42d20fe1e2..ce97862986 100644 --- a/frb_example/dart_minimal/lib/src/rust/frb_generated.io.dart +++ b/frb_example/dart_minimal/lib/src/rust/frb_generated.io.dart @@ -38,10 +38,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { get rust_arc_decrement_strong_count_LtSubStructTwinNormalPtr => wire ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormalPtr; - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticPtr; - CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_SimpleLoggerPtr => wire ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLoggerPtr; @@ -71,11 +67,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( dynamic raw); - @protected - LtTypeWithMultiDepTwinNormal - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - dynamic raw); - @protected SimpleLogger dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -156,11 +147,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( dynamic raw); - @protected - LtTypeWithMultiDepTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - dynamic raw); - @protected SimpleLogger dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -212,11 +198,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( SseDeserializer deserializer); - @protected - LtTypeWithMultiDepTwinNormal - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - SseDeserializer deserializer); - @protected SimpleLogger sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -297,11 +278,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( SseDeserializer deserializer); - @protected - LtTypeWithMultiDepTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - SseDeserializer deserializer); - @protected SimpleLogger sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -356,11 +332,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( LtSubStructTwinNormal self, SseSerializer serializer); - @protected - void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); - @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -441,11 +412,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( LtSubStructTwinNormal self, SseSerializer serializer); - @protected - void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); - @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -651,38 +617,6 @@ class RustLibWire implements BaseWire { _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormalPtr .asFunction)>(); - void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - ffi.Pointer ptr, - ) { - return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - ptr, - ); - } - - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticPtr = - _lookup)>>( - 'frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic'); - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic = - _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticPtr - .asFunction)>(); - - void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - ffi.Pointer ptr, - ) { - return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - ptr, - ); - } - - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticPtr = - _lookup)>>( - 'frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic'); - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic = - _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticPtr - .asFunction)>(); - void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( ffi.Pointer ptr, diff --git a/frb_example/dart_minimal/lib/src/rust/frb_generated.web.dart b/frb_example/dart_minimal/lib/src/rust/frb_generated.web.dart index bddca2b784..6a530b29e6 100644 --- a/frb_example/dart_minimal/lib/src/rust/frb_generated.web.dart +++ b/frb_example/dart_minimal/lib/src/rust/frb_generated.web.dart @@ -40,10 +40,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { get rust_arc_decrement_strong_count_LtSubStructTwinNormalPtr => wire .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal; - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic; - CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_SimpleLoggerPtr => wire .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger; @@ -73,11 +69,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( dynamic raw); - @protected - LtTypeWithMultiDepTwinNormal - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - dynamic raw); - @protected SimpleLogger dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -158,11 +149,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( dynamic raw); - @protected - LtTypeWithMultiDepTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - dynamic raw); - @protected SimpleLogger dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -214,11 +200,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( SseDeserializer deserializer); - @protected - LtTypeWithMultiDepTwinNormal - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - SseDeserializer deserializer); - @protected SimpleLogger sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -299,11 +280,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( SseDeserializer deserializer); - @protected - LtTypeWithMultiDepTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - SseDeserializer deserializer); - @protected SimpleLogger sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -358,11 +334,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( LtSubStructTwinNormal self, SseSerializer serializer); - @protected - void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); - @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -443,11 +414,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( LtSubStructTwinNormal self, SseSerializer serializer); - @protected - void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); - @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -544,18 +510,6 @@ class RustLibWire implements BaseWire { .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( ptr); - void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - int ptr) => - wasmModule - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - ptr); - - void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - int ptr) => - wasmModule - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - ptr); - void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( int ptr) => wasmModule @@ -615,14 +569,6 @@ extension type RustLibWasmModule._(JSObject _) implements JSObject { rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( int ptr); - external void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - int ptr); - - external void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - int ptr); - external void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( int ptr); diff --git a/frb_example/dart_minimal/rust/src/frb_generated.io.rs b/frb_example/dart_minimal/rust/src/frb_generated.io.rs index f60367819a..5b7eda542c 100644 --- a/frb_example/dart_minimal/rust/src/frb_generated.io.rs +++ b/frb_example/dart_minimal/rust/src/frb_generated.io.rs @@ -107,28 +107,6 @@ pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_coun MoiArc::>::decrement_strong_count(ptr as _); } -#[no_mangle] -pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - ptr: *const std::ffi::c_void, -) { - MoiArc::< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner< - LtTypeWithMultiDepTwinNormal<'static>, - >, - >::increment_strong_count(ptr as _); -} - -#[no_mangle] -pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - ptr: *const std::ffi::c_void, -) { - MoiArc::< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner< - LtTypeWithMultiDepTwinNormal<'static>, - >, - >::decrement_strong_count(ptr as _); -} - #[no_mangle] pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( ptr: *const std::ffi::c_void, diff --git a/frb_example/dart_minimal/rust/src/frb_generated.rs b/frb_example/dart_minimal/rust/src/frb_generated.rs index bca3f8f445..6cfa499e7c 100644 --- a/frb_example/dart_minimal/rust/src/frb_generated.rs +++ b/frb_example/dart_minimal/rust/src/frb_generated.rs @@ -206,7 +206,7 @@ let api_a_guard = Arc::new(api_a_guard); };let api_b_guard = Arc::new(api_b_guard); let api_b_guard_illegal_static_ref = unsafe { flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_b_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithMultiDepTwinNormal ::compute_with_multi_arg_having_lifetime_twin_normal(&*api_a_guard_illegal_static_ref, &*api_b_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; Ok(output_ok) + }; let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithMultiDepTwinNormal ::compute_with_multi_arg_having_lifetime_twin_normal(&*api_a_guard_illegal_static_ref, &*api_b_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; let output_ok = RustAutoOpaque::new(flutter_rust_bridge::for_generated::Lifetimeable::new(output_ok, vec![Box::new(api_a.clone()), Box::new(api_a_guard.clone()), Box::new(api_b.clone()), Box::new(api_b_guard.clone())])); Ok(output_ok) })()) } }) } @@ -733,9 +733,6 @@ flutter_rust_bridge::frb_generated_moi_arc_impl_value!( flutter_rust_bridge::frb_generated_moi_arc_impl_value!( flutter_rust_bridge::for_generated::RustAutoOpaqueInner ); -flutter_rust_bridge::frb_generated_moi_arc_impl_value!( - flutter_rust_bridge::for_generated::RustAutoOpaqueInner> -); flutter_rust_bridge::frb_generated_moi_arc_impl_value!( flutter_rust_bridge::for_generated::RustAutoOpaqueInner ); @@ -798,18 +795,6 @@ impl SseDecode for LtSubStructTwinNormal { } } -impl SseDecode for LtTypeWithMultiDepTwinNormal<'static> { - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - let mut inner = , - >, - >>::sse_decode(deserializer); - return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); - } -} - impl SseDecode for SimpleLogger { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -886,20 +871,6 @@ impl SseDecode } } -impl SseDecode - for RustOpaqueMoi< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner< - LtTypeWithMultiDepTwinNormal<'static>, - >, - > -{ - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - let mut inner = ::sse_decode(deserializer); - return decode_rust_opaque_moi(inner); - } -} - impl SseDecode for RustOpaqueMoi> { @@ -1061,26 +1032,6 @@ impl flutter_rust_bridge::IntoIntoDart> } } -// Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for FrbWrapper> { - fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { - flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self.0) - .into_dart() - } -} -impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive - for FrbWrapper> -{ -} - -impl flutter_rust_bridge::IntoIntoDart>> - for LtTypeWithMultiDepTwinNormal<'static> -{ - fn into_into_dart(self) -> FrbWrapper> { - self.into() - } -} - // Codec=Dco (DartCObject based), see doc to use other codecs impl flutter_rust_bridge::IntoDart for FrbWrapper { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { @@ -1162,20 +1113,6 @@ impl SseEncode for LtSubStructTwinNormal { } } -impl SseEncode for LtTypeWithMultiDepTwinNormal<'static> { - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - , - >, - >>::sse_encode( - flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self), - serializer, - ); - } -} - impl SseEncode for SimpleLogger { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -1254,21 +1191,6 @@ impl SseEncode } } -impl SseEncode - for RustOpaqueMoi< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner< - LtTypeWithMultiDepTwinNormal<'static>, - >, - > -{ - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - let (ptr, size) = self.sse_encode_raw(); - ::sse_encode(ptr, serializer); - ::sse_encode(size, serializer); - } -} - impl SseEncode for RustOpaqueMoi> { diff --git a/frb_example/dart_minimal/rust/src/frb_generated.web.rs b/frb_example/dart_minimal/rust/src/frb_generated.web.rs index a75be0035f..793c3a1131 100644 --- a/frb_example/dart_minimal/rust/src/frb_generated.web.rs +++ b/frb_example/dart_minimal/rust/src/frb_generated.web.rs @@ -109,28 +109,6 @@ pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generat MoiArc::>::decrement_strong_count(ptr as _); } -#[wasm_bindgen] -pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - ptr: *const std::ffi::c_void, -) { - MoiArc::< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner< - LtTypeWithMultiDepTwinNormal<'static>, - >, - >::increment_strong_count(ptr as _); -} - -#[wasm_bindgen] -pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - ptr: *const std::ffi::c_void, -) { - MoiArc::< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner< - LtTypeWithMultiDepTwinNormal<'static>, - >, - >::decrement_strong_count(ptr as _); -} - #[wasm_bindgen] pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( ptr: *const std::ffi::c_void, From a9e51d44ef6a3ea1db8d4e37948488d16d52ae4e Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:20:59 +0800 Subject: [PATCH 046/117] chore: more --- frb_example/dart_minimal/flutter_rust_bridge.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frb_example/dart_minimal/flutter_rust_bridge.yaml b/frb_example/dart_minimal/flutter_rust_bridge.yaml index 3a8994a230..540840ecd1 100644 --- a/frb_example/dart_minimal/flutter_rust_bridge.yaml +++ b/frb_example/dart_minimal/flutter_rust_bridge.yaml @@ -8,4 +8,4 @@ local: true # TODO temp #full_dep: true enable_lifetime: true -#stop_on_error: true +stop_on_error: true From 5a28708ac66e06aad2c3472f624f8bc5797ce344 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:21:44 +0800 Subject: [PATCH 047/117] feat: more --- .../codegen/parser/mir/parser/function/real/lifetime.rs | 4 ++-- .../library/codegen/parser/mir/parser/lifetime_extractor.rs | 5 +++-- .../library/codegen/parser/mir/parser/lifetime_replacer.rs | 2 +- .../src/library/codegen/parser/mir/parser/ty/lifetimeable.rs | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/frb_codegen/src/library/codegen/parser/mir/parser/function/real/lifetime.rs b/frb_codegen/src/library/codegen/parser/mir/parser/function/real/lifetime.rs index 53771b96d6..d0a5d49701 100644 --- a/frb_codegen/src/library/codegen/parser/mir/parser/function/real/lifetime.rs +++ b/frb_codegen/src/library/codegen/parser/mir/parser/function/real/lifetime.rs @@ -12,13 +12,13 @@ pub(crate) fn parse_function_lifetime( ) -> anyhow::Result { let inputs_lifetimes = (sig.inputs.iter()) .map(|x| { - Ok(LifetimeExtractor::extract_skipping_static( + Ok(LifetimeExtractor::extract_skipping_static_and_anonymous( &parse_argument_ty_and_name(x, owner)?.0, )) }) .collect::>>()?; let output_lifetimes = match &sig.output { - ReturnType::Type(_, ty) => LifetimeExtractor::extract_skipping_static(ty), + ReturnType::Type(_, ty) => LifetimeExtractor::extract_skipping_static_and_anonymous(ty), ReturnType::Default => vec![], }; diff --git a/frb_codegen/src/library/codegen/parser/mir/parser/lifetime_extractor.rs b/frb_codegen/src/library/codegen/parser/mir/parser/lifetime_extractor.rs index 510271d2f9..6bd8fd3cae 100644 --- a/frb_codegen/src/library/codegen/parser/mir/parser/lifetime_extractor.rs +++ b/frb_codegen/src/library/codegen/parser/mir/parser/lifetime_extractor.rs @@ -5,10 +5,10 @@ use syn::{GenericArgument, Type}; pub(crate) struct LifetimeExtractor; impl LifetimeExtractor { - pub(crate) fn extract_skipping_static(ty: &Type) -> Vec { + pub(crate) fn extract_skipping_static_and_anonymous(ty: &Type) -> Vec { // log::debug!("extract_skipping_static ans={ans:?} ty={ty:?}"); (Self::extract(ty).into_iter()) - .filter(|lifetime| lifetime.0 != LIFETIME_STATIC) + .filter(|lifetime| lifetime.0 != LIFETIME_STATIC && lifetime.0 != LIFETIME_ANONYMOUS) .collect_vec() } @@ -38,6 +38,7 @@ impl LifetimeExtractor { } pub(crate) const LIFETIME_STATIC: &str = "static"; +pub(crate) const LIFETIME_ANONYMOUS: &str = "_"; // TODO maybe move #[derive(Debug, Clone, PartialEq, Eq, Hash)] diff --git a/frb_codegen/src/library/codegen/parser/mir/parser/lifetime_replacer.rs b/frb_codegen/src/library/codegen/parser/mir/parser/lifetime_replacer.rs index 271821af6a..7f9494d1dc 100644 --- a/frb_codegen/src/library/codegen/parser/mir/parser/lifetime_replacer.rs +++ b/frb_codegen/src/library/codegen/parser/mir/parser/lifetime_replacer.rs @@ -6,7 +6,7 @@ use syn::Type; pub(crate) fn replace_all_lifetimes_to_static(ty_str: &str) -> String { let ty: Type = syn::parse_str(ty_str).unwrap(); - let lifetimes = LifetimeExtractor::extract_skipping_static(&ty); + let lifetimes = LifetimeExtractor::extract_skipping_static_and_anonymous(&ty); replace_lifetimes_to_static(ty_str, &lifetimes) } diff --git a/frb_codegen/src/library/codegen/parser/mir/parser/ty/lifetimeable.rs b/frb_codegen/src/library/codegen/parser/mir/parser/ty/lifetimeable.rs index 2b35ea60f3..926d708c25 100644 --- a/frb_codegen/src/library/codegen/parser/mir/parser/ty/lifetimeable.rs +++ b/frb_codegen/src/library/codegen/parser/mir/parser/ty/lifetimeable.rs @@ -20,7 +20,7 @@ impl<'a, 'b, 'c> TypeParserWithContext<'a, 'b, 'c> { let ty_str = &original.raw.string.with_original_lifetime(); let ty: Type = syn::parse_str(ty_str)?; - let lifetimes = LifetimeExtractor::extract_skipping_static(&ty); + let lifetimes = LifetimeExtractor::extract_skipping_static_and_anonymous(&ty); if lifetimes.is_empty() { return Ok(MirType::RustAutoOpaqueImplicit(original)); } From ec54a7df55830b6190d7091d29f1c1e6e7016994 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:22:18 +0800 Subject: [PATCH 048/117] chore: codegen --- .../lib/src/rust/api/minimal.dart | 59 +- .../lib/src/rust/frb_generated.dart | 987 +++++++++++++----- .../lib/src/rust/frb_generated.io.dart | 315 +++++- .../lib/src/rust/frb_generated.web.dart | 279 ++++- .../dart_minimal/rust/src/frb_generated.io.rs | 58 + .../dart_minimal/rust/src/frb_generated.rs | 754 ++++++++----- .../rust/src/frb_generated.web.rs | 58 + 7 files changed, 1923 insertions(+), 587 deletions(-) diff --git a/frb_example/dart_minimal/lib/src/rust/api/minimal.dart b/frb_example/dart_minimal/lib/src/rust/api/minimal.dart index bfb8aa0e71..7b2c3f6c3f 100644 --- a/frb_example/dart_minimal/lib/src/rust/api/minimal.dart +++ b/frb_example/dart_minimal/lib/src/rust/api/minimal.dart @@ -7,7 +7,6 @@ import '../frb_generated.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; // These functions are ignored because they are not marked as `pub`: `log` -// These functions have error during generation (see debug logs or enable `stop_on_error: true` for more details): `compute_nested_type_with_lifetime_twin_normal` Future minimalAdder({required int a, required int b}) => RustLib.instance.api.crateApiMinimalMinimalAdder(a: a, b: b); @@ -33,9 +32,13 @@ abstract class LtTypeWithLifetimeTwinNormal implements RustOpaqueInterface { LtTypeWithLifetimeTwinNormal> computeArgGenericLifetimeTwinNormal( {required LtTypeWithLifetimeTwinNormal arg}) => RustLib.instance.api - .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeArgGenericLifetimeTwinNormal( + .crateApiMinimalLtTypeWithLifetimeTwinNormalComputeArgGenericLifetimeTwinNormal( arg: arg); + /// Input lifetimeable and output another lifetimeable + Future + computeNestedTypeWithLifetimeTwinNormal(); + /// `&mut T` where T is lifetimeable Future greetBorrowMutSelfTwinNormal(); @@ -53,7 +56,7 @@ abstract class LtTypeWithMultiDepTwinNormal implements RustOpaqueInterface { required LtOwnedStructTwinNormal unrelatedBorrowed, required LtOwnedStructTwinNormal unrelatedOwned}) => RustLib.instance.api - .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticComputeWithMultiArgHavingLifetimeTwinNormal( + .crateApiMinimalLtTypeWithMultiDepTwinNormalComputeWithMultiArgHavingLifetimeTwinNormal( a: a, b: b, unrelatedBorrowed: unrelatedBorrowed, @@ -64,6 +67,14 @@ abstract class LtTypeWithMultiDepTwinNormal implements RustOpaqueInterface { Future> greetBorrowSelfTwinNormal(); } +// Rust type: RustOpaqueMoi>> +abstract class LtNestedTypeWithLifetimeTwinNormal + implements RustOpaqueInterface { + Future greetBorrowMutSelfTwinNormal(); + + Future greetBorrowSelfTwinNormal(); +} + // Rust type: RustOpaqueMoi> abstract class LtOwnedStructTwinNormal implements RustOpaqueInterface { /// `fn f(x: &'a T) -> S<'a>` @@ -93,6 +104,48 @@ abstract class LtSubStructTwinNormal implements RustOpaqueInterface { Future greetBorrowSelfTwinNormal(); } +// Rust type: RustOpaqueMoi>> +abstract class LtTypeWithLifetimeTwinNormal implements RustOpaqueInterface { + /// Input argument has type `T<'a>` (other tests mainly are `&'a T`) + static Future< + LtTypeWithLifetimeTwinNormal> computeArgGenericLifetimeTwinNormal( + {required LtTypeWithLifetimeTwinNormal arg}) => + RustLib.instance.api + .crateApiMinimalLtTypeWithLifetimeTwinNormalComputeArgGenericLifetimeTwinNormal( + arg: arg); + + /// Input lifetimeable and output another lifetimeable + Future + computeNestedTypeWithLifetimeTwinNormal(); + + /// `&mut T` where T is lifetimeable + Future greetBorrowMutSelfTwinNormal(); + + /// `&T` where T is lifetimeable + Future greetBorrowSelfTwinNormal(); +} + +// Rust type: RustOpaqueMoi>> +abstract class LtTypeWithMultiDepTwinNormal implements RustOpaqueInterface { + /// Multiple input args have lifetime + static Future< + LtTypeWithMultiDepTwinNormal> computeWithMultiArgHavingLifetimeTwinNormal( + {required LtOwnedStructTwinNormal a, + required LtOwnedStructTwinNormal b, + required LtOwnedStructTwinNormal unrelatedBorrowed, + required LtOwnedStructTwinNormal unrelatedOwned}) => + RustLib.instance.api + .crateApiMinimalLtTypeWithMultiDepTwinNormalComputeWithMultiArgHavingLifetimeTwinNormal( + a: a, + b: b, + unrelatedBorrowed: unrelatedBorrowed, + unrelatedOwned: unrelatedOwned); + + Future> greetBorrowMutSelfTwinNormal(); + + Future> greetBorrowSelfTwinNormal(); +} + // Rust type: RustOpaqueMoi> abstract class SimpleLogger implements RustOpaqueInterface { Future> getAndReset(); diff --git a/frb_example/dart_minimal/lib/src/rust/frb_generated.dart b/frb_example/dart_minimal/lib/src/rust/frb_generated.dart index 83449d14c7..e1687a604b 100644 --- a/frb_example/dart_minimal/lib/src/rust/frb_generated.dart +++ b/frb_example/dart_minimal/lib/src/rust/frb_generated.dart @@ -57,7 +57,7 @@ class RustLib extends BaseEntrypoint { String get codegenVersion => '2.0.0-dev.39'; @override - int get rustContentHash => 1535573962; + int get rustContentHash => 1484454083; static const kDefaultExternalLibraryLoaderConfig = ExternalLibraryLoaderConfig( @@ -69,40 +69,13 @@ class RustLib extends BaseEntrypoint { abstract class RustLibApi extends BaseApi { Future - crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( + crateApiMinimalLtNestedTypeWithLifetimeTwinNormalGreetBorrowMutSelfTwinNormal( {required LtNestedTypeWithLifetimeTwinNormal that}); Future - crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormal( + crateApiMinimalLtNestedTypeWithLifetimeTwinNormalGreetBorrowSelfTwinNormal( {required LtNestedTypeWithLifetimeTwinNormal that}); - Future - crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeArgGenericLifetimeTwinNormal( - {required LtTypeWithLifetimeTwinNormal arg}); - - Future - crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( - {required LtTypeWithLifetimeTwinNormal that}); - - Future - crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormal( - {required LtTypeWithLifetimeTwinNormal that}); - - Future - crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticComputeWithMultiArgHavingLifetimeTwinNormal( - {required LtOwnedStructTwinNormal a, - required LtOwnedStructTwinNormal b, - required LtOwnedStructTwinNormal unrelatedBorrowed, - required LtOwnedStructTwinNormal unrelatedOwned}); - - Future> - crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowMutSelfTwinNormal( - {required LtTypeWithMultiDepTwinNormal that}); - - Future> - crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowSelfTwinNormal( - {required LtTypeWithMultiDepTwinNormal that}); - Future crateApiMinimalLtOwnedStructTwinNormalComputeTypeWithLifetimeTwinNormal( {required LtOwnedStructTwinNormal that}); @@ -127,6 +100,37 @@ abstract class RustLibApi extends BaseApi { Future crateApiMinimalLtSubStructTwinNormalGreetBorrowSelfTwinNormal( {required LtSubStructTwinNormal that}); + Future + crateApiMinimalLtTypeWithLifetimeTwinNormalComputeArgGenericLifetimeTwinNormal( + {required LtTypeWithLifetimeTwinNormal arg}); + + Future + crateApiMinimalLtTypeWithLifetimeTwinNormalComputeNestedTypeWithLifetimeTwinNormal( + {required LtTypeWithLifetimeTwinNormal that}); + + Future + crateApiMinimalLtTypeWithLifetimeTwinNormalGreetBorrowMutSelfTwinNormal( + {required LtTypeWithLifetimeTwinNormal that}); + + Future + crateApiMinimalLtTypeWithLifetimeTwinNormalGreetBorrowSelfTwinNormal( + {required LtTypeWithLifetimeTwinNormal that}); + + Future + crateApiMinimalLtTypeWithMultiDepTwinNormalComputeWithMultiArgHavingLifetimeTwinNormal( + {required LtOwnedStructTwinNormal a, + required LtOwnedStructTwinNormal b, + required LtOwnedStructTwinNormal unrelatedBorrowed, + required LtOwnedStructTwinNormal unrelatedOwned}); + + Future> + crateApiMinimalLtTypeWithMultiDepTwinNormalGreetBorrowMutSelfTwinNormal( + {required LtTypeWithMultiDepTwinNormal that}); + + Future> + crateApiMinimalLtTypeWithMultiDepTwinNormalGreetBorrowSelfTwinNormal( + {required LtTypeWithMultiDepTwinNormal that}); + Future> crateApiMinimalSimpleLoggerGetAndReset( {required SimpleLogger that}); @@ -167,6 +171,15 @@ abstract class RustLibApi extends BaseApi { CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtNestedTypeWithLifetimeTwinNormal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormal; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormalPtr; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_LtOwnedStructTwinNormal; @@ -185,6 +198,24 @@ abstract class RustLibApi extends BaseApi { CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_LtSubStructTwinNormalPtr; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtTypeWithLifetimeTwinNormal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormal; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormalPtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtTypeWithMultiDepTwinNormal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormal; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_SimpleLogger; @@ -204,12 +235,12 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { @override Future - crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( + crateApiMinimalLtNestedTypeWithLifetimeTwinNormalGreetBorrowMutSelfTwinNormal( {required LtNestedTypeWithLifetimeTwinNormal that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1, port: port_); @@ -219,28 +250,28 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { decodeErrorData: null, ), constMeta: - kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormalConstMeta, + kCrateApiMinimalLtNestedTypeWithLifetimeTwinNormalGreetBorrowMutSelfTwinNormalConstMeta, argValues: [that], apiImpl: this, )); } TaskConstMeta - get kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormalConstMeta => + get kCrateApiMinimalLtNestedTypeWithLifetimeTwinNormalGreetBorrowMutSelfTwinNormalConstMeta => const TaskConstMeta( debugName: - "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal", + "LtNestedTypeWithLifetimeTwinNormal_greet_borrow_mut_self_twin_normal", argNames: ["that"], ); @override Future - crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormal( + crateApiMinimalLtNestedTypeWithLifetimeTwinNormalGreetBorrowSelfTwinNormal( {required LtNestedTypeWithLifetimeTwinNormal that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 2, port: port_); @@ -250,29 +281,29 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { decodeErrorData: null, ), constMeta: - kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormalConstMeta, + kCrateApiMinimalLtNestedTypeWithLifetimeTwinNormalGreetBorrowSelfTwinNormalConstMeta, argValues: [that], apiImpl: this, )); } TaskConstMeta - get kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormalConstMeta => + get kCrateApiMinimalLtNestedTypeWithLifetimeTwinNormalGreetBorrowSelfTwinNormalConstMeta => const TaskConstMeta( debugName: - "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal", + "LtNestedTypeWithLifetimeTwinNormal_greet_borrow_self_twin_normal", argNames: ["that"], ); @override Future - crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeArgGenericLifetimeTwinNormal( - {required LtTypeWithLifetimeTwinNormal arg}) { + crateApiMinimalLtOwnedStructTwinNormalComputeTypeWithLifetimeTwinNormal( + {required LtOwnedStructTwinNormal that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( - arg, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 3, port: port_); }, @@ -282,194 +313,186 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { decodeErrorData: null, ), constMeta: - kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeArgGenericLifetimeTwinNormalConstMeta, - argValues: [arg], + kCrateApiMinimalLtOwnedStructTwinNormalComputeTypeWithLifetimeTwinNormalConstMeta, + argValues: [that], apiImpl: this, )); } TaskConstMeta - get kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeArgGenericLifetimeTwinNormalConstMeta => + get kCrateApiMinimalLtOwnedStructTwinNormalComputeTypeWithLifetimeTwinNormalConstMeta => const TaskConstMeta( debugName: - "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal", - argNames: ["arg"], + "LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal", + argNames: ["that"], ); @override - Future - crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( - {required LtTypeWithLifetimeTwinNormal that}) { + Future + crateApiMinimalLtOwnedStructTwinNormalComputeWithUnrelatedBorrowedArgTwinNormal( + {required LtOwnedStructTwinNormal that, + required LtOwnedStructTwinNormal unrelatedBorrowed, + required LtOwnedStructTwinNormal unrelatedOwned}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( that, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + unrelatedBorrowed, serializer); + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + unrelatedOwned, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 4, port: port_); }, codec: SseCodec( - decodeSuccessData: sse_decode_String, + decodeSuccessData: + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic, decodeErrorData: null, ), constMeta: - kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormalConstMeta, - argValues: [that], + kCrateApiMinimalLtOwnedStructTwinNormalComputeWithUnrelatedBorrowedArgTwinNormalConstMeta, + argValues: [that, unrelatedBorrowed, unrelatedOwned], apiImpl: this, )); } TaskConstMeta - get kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormalConstMeta => + get kCrateApiMinimalLtOwnedStructTwinNormalComputeWithUnrelatedBorrowedArgTwinNormalConstMeta => const TaskConstMeta( debugName: - "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal", - argNames: ["that"], + "LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal", + argNames: ["that", "unrelatedBorrowed", "unrelatedOwned"], ); @override - Future - crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormal( - {required LtTypeWithLifetimeTwinNormal that}) { + Future crateApiMinimalLtOwnedStructTwinNormalCreate( + {required String value}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( - that, serializer); + sse_encode_String(value, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 5, port: port_); }, codec: SseCodec( - decodeSuccessData: sse_decode_String, + decodeSuccessData: + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal, decodeErrorData: null, ), - constMeta: - kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormalConstMeta, - argValues: [that], + constMeta: kCrateApiMinimalLtOwnedStructTwinNormalCreateConstMeta, + argValues: [value], apiImpl: this, )); } - TaskConstMeta - get kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormalConstMeta => - const TaskConstMeta( - debugName: - "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal", - argNames: ["that"], - ); + TaskConstMeta get kCrateApiMinimalLtOwnedStructTwinNormalCreateConstMeta => + const TaskConstMeta( + debugName: "LtOwnedStructTwinNormal_create", + argNames: ["value"], + ); @override - Future - crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticComputeWithMultiArgHavingLifetimeTwinNormal( - {required LtOwnedStructTwinNormal a, - required LtOwnedStructTwinNormal b, - required LtOwnedStructTwinNormal unrelatedBorrowed, - required LtOwnedStructTwinNormal unrelatedOwned}) { + Future + crateApiMinimalLtOwnedStructTwinNormalCreateWithLogger( + {required String value, required SimpleLogger logger}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - a, serializer); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - b, serializer); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - unrelatedBorrowed, serializer); - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - unrelatedOwned, serializer); + sse_encode_String(value, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + logger, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 6, port: port_); }, codec: SseCodec( decodeSuccessData: - sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic, + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal, decodeErrorData: null, ), constMeta: - kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticComputeWithMultiArgHavingLifetimeTwinNormalConstMeta, - argValues: [a, b, unrelatedBorrowed, unrelatedOwned], + kCrateApiMinimalLtOwnedStructTwinNormalCreateWithLoggerConstMeta, + argValues: [value, logger], apiImpl: this, )); } TaskConstMeta - get kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticComputeWithMultiArgHavingLifetimeTwinNormalConstMeta => + get kCrateApiMinimalLtOwnedStructTwinNormalCreateWithLoggerConstMeta => const TaskConstMeta( - debugName: - "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal", - argNames: ["a", "b", "unrelatedBorrowed", "unrelatedOwned"], + debugName: "LtOwnedStructTwinNormal_create_with_logger", + argNames: ["value", "logger"], ); @override - Future> - crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowMutSelfTwinNormal( - {required LtTypeWithMultiDepTwinNormal that}) { + Future + crateApiMinimalLtSubStructTwinNormalGreetBorrowMutSelfTwinNormal( + {required LtSubStructTwinNormal that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 7, port: port_); }, codec: SseCodec( - decodeSuccessData: sse_decode_list_String, + decodeSuccessData: sse_decode_String, decodeErrorData: null, ), constMeta: - kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowMutSelfTwinNormalConstMeta, + kCrateApiMinimalLtSubStructTwinNormalGreetBorrowMutSelfTwinNormalConstMeta, argValues: [that], apiImpl: this, )); } TaskConstMeta - get kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowMutSelfTwinNormalConstMeta => + get kCrateApiMinimalLtSubStructTwinNormalGreetBorrowMutSelfTwinNormalConstMeta => const TaskConstMeta( debugName: - "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal", + "LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal", argNames: ["that"], ); @override - Future> - crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowSelfTwinNormal( - {required LtTypeWithMultiDepTwinNormal that}) { + Future crateApiMinimalLtSubStructTwinNormalGreetBorrowSelfTwinNormal( + {required LtSubStructTwinNormal that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 8, port: port_); }, codec: SseCodec( - decodeSuccessData: sse_decode_list_String, + decodeSuccessData: sse_decode_String, decodeErrorData: null, ), constMeta: - kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowSelfTwinNormalConstMeta, + kCrateApiMinimalLtSubStructTwinNormalGreetBorrowSelfTwinNormalConstMeta, argValues: [that], apiImpl: this, )); } TaskConstMeta - get kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowSelfTwinNormalConstMeta => + get kCrateApiMinimalLtSubStructTwinNormalGreetBorrowSelfTwinNormalConstMeta => const TaskConstMeta( - debugName: - "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal", + debugName: "LtSubStructTwinNormal_greet_borrow_self_twin_normal", argNames: ["that"], ); @override Future - crateApiMinimalLtOwnedStructTwinNormalComputeTypeWithLifetimeTwinNormal( - {required LtOwnedStructTwinNormal that}) { + crateApiMinimalLtTypeWithLifetimeTwinNormalComputeArgGenericLifetimeTwinNormal( + {required LtTypeWithLifetimeTwinNormal arg}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - that, serializer); + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 9, port: port_); }, @@ -479,174 +502,214 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { decodeErrorData: null, ), constMeta: - kCrateApiMinimalLtOwnedStructTwinNormalComputeTypeWithLifetimeTwinNormalConstMeta, - argValues: [that], + kCrateApiMinimalLtTypeWithLifetimeTwinNormalComputeArgGenericLifetimeTwinNormalConstMeta, + argValues: [arg], apiImpl: this, )); } TaskConstMeta - get kCrateApiMinimalLtOwnedStructTwinNormalComputeTypeWithLifetimeTwinNormalConstMeta => + get kCrateApiMinimalLtTypeWithLifetimeTwinNormalComputeArgGenericLifetimeTwinNormalConstMeta => const TaskConstMeta( debugName: - "LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal", - argNames: ["that"], + "LtTypeWithLifetimeTwinNormal_compute_arg_generic_lifetime_twin_normal", + argNames: ["arg"], ); @override - Future - crateApiMinimalLtOwnedStructTwinNormalComputeWithUnrelatedBorrowedArgTwinNormal( - {required LtOwnedStructTwinNormal that, - required LtOwnedStructTwinNormal unrelatedBorrowed, - required LtOwnedStructTwinNormal unrelatedOwned}) { + Future + crateApiMinimalLtTypeWithLifetimeTwinNormalComputeNestedTypeWithLifetimeTwinNormal( + {required LtTypeWithLifetimeTwinNormal that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( that, serializer); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - unrelatedBorrowed, serializer); - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - unrelatedOwned, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 10, port: port_); }, codec: SseCodec( decodeSuccessData: - sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic, + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic, decodeErrorData: null, ), constMeta: - kCrateApiMinimalLtOwnedStructTwinNormalComputeWithUnrelatedBorrowedArgTwinNormalConstMeta, - argValues: [that, unrelatedBorrowed, unrelatedOwned], + kCrateApiMinimalLtTypeWithLifetimeTwinNormalComputeNestedTypeWithLifetimeTwinNormalConstMeta, + argValues: [that], apiImpl: this, )); } TaskConstMeta - get kCrateApiMinimalLtOwnedStructTwinNormalComputeWithUnrelatedBorrowedArgTwinNormalConstMeta => + get kCrateApiMinimalLtTypeWithLifetimeTwinNormalComputeNestedTypeWithLifetimeTwinNormalConstMeta => const TaskConstMeta( debugName: - "LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal", - argNames: ["that", "unrelatedBorrowed", "unrelatedOwned"], + "LtTypeWithLifetimeTwinNormal_compute_nested_type_with_lifetime_twin_normal", + argNames: ["that"], ); @override - Future crateApiMinimalLtOwnedStructTwinNormalCreate( - {required String value}) { + Future + crateApiMinimalLtTypeWithLifetimeTwinNormalGreetBorrowMutSelfTwinNormal( + {required LtTypeWithLifetimeTwinNormal that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_String(value, serializer); + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 11, port: port_); }, codec: SseCodec( - decodeSuccessData: - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal, + decodeSuccessData: sse_decode_String, decodeErrorData: null, ), - constMeta: kCrateApiMinimalLtOwnedStructTwinNormalCreateConstMeta, - argValues: [value], + constMeta: + kCrateApiMinimalLtTypeWithLifetimeTwinNormalGreetBorrowMutSelfTwinNormalConstMeta, + argValues: [that], apiImpl: this, )); } - TaskConstMeta get kCrateApiMinimalLtOwnedStructTwinNormalCreateConstMeta => - const TaskConstMeta( - debugName: "LtOwnedStructTwinNormal_create", - argNames: ["value"], - ); + TaskConstMeta + get kCrateApiMinimalLtTypeWithLifetimeTwinNormalGreetBorrowMutSelfTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "LtTypeWithLifetimeTwinNormal_greet_borrow_mut_self_twin_normal", + argNames: ["that"], + ); @override - Future - crateApiMinimalLtOwnedStructTwinNormalCreateWithLogger( - {required String value, required SimpleLogger logger}) { + Future + crateApiMinimalLtTypeWithLifetimeTwinNormalGreetBorrowSelfTwinNormal( + {required LtTypeWithLifetimeTwinNormal that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_String(value, serializer); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - logger, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + that, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 12, port: port_); + }, + codec: SseCodec( + decodeSuccessData: sse_decode_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiMinimalLtTypeWithLifetimeTwinNormalGreetBorrowSelfTwinNormalConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiMinimalLtTypeWithLifetimeTwinNormalGreetBorrowSelfTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "LtTypeWithLifetimeTwinNormal_greet_borrow_self_twin_normal", + argNames: ["that"], + ); + + @override + Future + crateApiMinimalLtTypeWithMultiDepTwinNormalComputeWithMultiArgHavingLifetimeTwinNormal( + {required LtOwnedStructTwinNormal a, + required LtOwnedStructTwinNormal b, + required LtOwnedStructTwinNormal unrelatedBorrowed, + required LtOwnedStructTwinNormal unrelatedOwned}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + a, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + b, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + unrelatedBorrowed, serializer); + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + unrelatedOwned, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 12, port: port_); + funcId: 13, port: port_); }, codec: SseCodec( decodeSuccessData: - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal, + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic, decodeErrorData: null, ), constMeta: - kCrateApiMinimalLtOwnedStructTwinNormalCreateWithLoggerConstMeta, - argValues: [value, logger], + kCrateApiMinimalLtTypeWithMultiDepTwinNormalComputeWithMultiArgHavingLifetimeTwinNormalConstMeta, + argValues: [a, b, unrelatedBorrowed, unrelatedOwned], apiImpl: this, )); } TaskConstMeta - get kCrateApiMinimalLtOwnedStructTwinNormalCreateWithLoggerConstMeta => + get kCrateApiMinimalLtTypeWithMultiDepTwinNormalComputeWithMultiArgHavingLifetimeTwinNormalConstMeta => const TaskConstMeta( - debugName: "LtOwnedStructTwinNormal_create_with_logger", - argNames: ["value", "logger"], + debugName: + "LtTypeWithMultiDepTwinNormal_compute_with_multi_arg_having_lifetime_twin_normal", + argNames: ["a", "b", "unrelatedBorrowed", "unrelatedOwned"], ); @override - Future - crateApiMinimalLtSubStructTwinNormalGreetBorrowMutSelfTwinNormal( - {required LtSubStructTwinNormal that}) { + Future> + crateApiMinimalLtTypeWithMultiDepTwinNormalGreetBorrowMutSelfTwinNormal( + {required LtTypeWithMultiDepTwinNormal that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 13, port: port_); + funcId: 14, port: port_); }, codec: SseCodec( - decodeSuccessData: sse_decode_String, + decodeSuccessData: sse_decode_list_String, decodeErrorData: null, ), constMeta: - kCrateApiMinimalLtSubStructTwinNormalGreetBorrowMutSelfTwinNormalConstMeta, + kCrateApiMinimalLtTypeWithMultiDepTwinNormalGreetBorrowMutSelfTwinNormalConstMeta, argValues: [that], apiImpl: this, )); } TaskConstMeta - get kCrateApiMinimalLtSubStructTwinNormalGreetBorrowMutSelfTwinNormalConstMeta => + get kCrateApiMinimalLtTypeWithMultiDepTwinNormalGreetBorrowMutSelfTwinNormalConstMeta => const TaskConstMeta( debugName: - "LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal", + "LtTypeWithMultiDepTwinNormal_greet_borrow_mut_self_twin_normal", argNames: ["that"], ); @override - Future crateApiMinimalLtSubStructTwinNormalGreetBorrowSelfTwinNormal( - {required LtSubStructTwinNormal that}) { + Future> + crateApiMinimalLtTypeWithMultiDepTwinNormalGreetBorrowSelfTwinNormal( + {required LtTypeWithMultiDepTwinNormal that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 14, port: port_); + funcId: 15, port: port_); }, codec: SseCodec( - decodeSuccessData: sse_decode_String, + decodeSuccessData: sse_decode_list_String, decodeErrorData: null, ), constMeta: - kCrateApiMinimalLtSubStructTwinNormalGreetBorrowSelfTwinNormalConstMeta, + kCrateApiMinimalLtTypeWithMultiDepTwinNormalGreetBorrowSelfTwinNormalConstMeta, argValues: [that], apiImpl: this, )); } TaskConstMeta - get kCrateApiMinimalLtSubStructTwinNormalGreetBorrowSelfTwinNormalConstMeta => + get kCrateApiMinimalLtTypeWithMultiDepTwinNormalGreetBorrowSelfTwinNormalConstMeta => const TaskConstMeta( - debugName: "LtSubStructTwinNormal_greet_borrow_self_twin_normal", + debugName: + "LtTypeWithMultiDepTwinNormal_greet_borrow_self_twin_normal", argNames: ["that"], ); @@ -659,7 +722,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 15, port: port_); + funcId: 16, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_String, @@ -682,7 +745,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 16)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 17)!; }, codec: SseCodec( decodeSuccessData: @@ -707,7 +770,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 17, port: port_); + funcId: 18, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -734,7 +797,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 18, port: port_); + funcId: 19, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -763,7 +826,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_i_32(a, serializer); sse_encode_i_32(b, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 19, port: port_); + funcId: 20, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -805,6 +868,14 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormal => wire .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtNestedTypeWithLifetimeTwinNormal => + wire.rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormal => + wire.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_LtOwnedStructTwinNormal => wire .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal; @@ -821,6 +892,22 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { get rust_arc_decrement_strong_count_LtSubStructTwinNormal => wire .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtTypeWithLifetimeTwinNormal => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormal => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtTypeWithMultiDepTwinNormal => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormal => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_SimpleLogger => wire .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger; @@ -856,6 +943,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { raw); } + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtNestedTypeWithLifetimeTwinNormalImpl.frbInternalDcoDecode( + raw as List); + } + @protected LtOwnedStructTwinNormal dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -873,6 +969,24 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return LtSubStructTwinNormalImpl.frbInternalDcoDecode(raw as List); } + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtTypeWithLifetimeTwinNormalImpl.frbInternalDcoDecode( + raw as List); + } + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtTypeWithMultiDepTwinNormalImpl.frbInternalDcoDecode( + raw as List); + } + @protected SimpleLogger dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -881,6 +995,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return SimpleLoggerImpl.frbInternalDcoDecode(raw as List); } + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtNestedTypeWithLifetimeTwinNormalImpl.frbInternalDcoDecode( + raw as List); + } + @protected LtSubStructTwinNormal dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( @@ -890,60 +1013,78 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - LtOwnedStructTwinNormal - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtTypeWithLifetimeTwinNormal + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return LtOwnedStructTwinNormalImpl.frbInternalDcoDecode( + return LtTypeWithLifetimeTwinNormalImpl.frbInternalDcoDecode( raw as List); } @protected - LtSubStructTwinNormal - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtTypeWithMultiDepTwinNormal + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return LtSubStructTwinNormalImpl.frbInternalDcoDecode(raw as List); + return LtTypeWithMultiDepTwinNormalImpl.frbInternalDcoDecode( + raw as List); } @protected - SimpleLogger - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + LtNestedTypeWithLifetimeTwinNormal + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return SimpleLoggerImpl.frbInternalDcoDecode(raw as List); + return LtNestedTypeWithLifetimeTwinNormalImpl.frbInternalDcoDecode( + raw as List); } @protected - LtNestedTypeWithLifetimeTwinNormal - dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + LtOwnedStructTwinNormal + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - throw UnimplementedError( - 'Not implemented in this codec, please use the other one'); + return LtOwnedStructTwinNormalImpl.frbInternalDcoDecode( + raw as List); + } + + @protected + LtSubStructTwinNormal + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtSubStructTwinNormalImpl.frbInternalDcoDecode(raw as List); } @protected LtTypeWithLifetimeTwinNormal - dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - throw UnimplementedError( - 'Not implemented in this codec, please use the other one'); + return LtTypeWithLifetimeTwinNormalImpl.frbInternalDcoDecode( + raw as List); } @protected LtTypeWithMultiDepTwinNormal - dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - throw UnimplementedError( - 'Not implemented in this codec, please use the other one'); + return LtTypeWithMultiDepTwinNormalImpl.frbInternalDcoDecode( + raw as List); + } + + @protected + SimpleLogger + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return SimpleLoggerImpl.frbInternalDcoDecode(raw as List); } @protected LtNestedTypeWithLifetimeTwinNormal - dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs throw UnimplementedError( @@ -952,7 +1093,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { @protected LtTypeWithLifetimeTwinNormal - dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs throw UnimplementedError( @@ -961,7 +1102,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { @protected LtTypeWithMultiDepTwinNormal - dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs throw UnimplementedError( @@ -995,6 +1136,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { raw as List); } + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtNestedTypeWithLifetimeTwinNormalImpl.frbInternalDcoDecode( + raw as List); + } + @protected LtOwnedStructTwinNormal dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -1012,6 +1162,24 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return LtSubStructTwinNormalImpl.frbInternalDcoDecode(raw as List); } + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtTypeWithLifetimeTwinNormalImpl.frbInternalDcoDecode( + raw as List); + } + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtTypeWithMultiDepTwinNormalImpl.frbInternalDcoDecode( + raw as List); + } + @protected SimpleLogger dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -1095,6 +1263,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return inner; } + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtNestedTypeWithLifetimeTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected LtOwnedStructTwinNormal sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -1113,6 +1290,24 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtTypeWithLifetimeTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtTypeWithMultiDepTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected SimpleLogger sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -1122,6 +1317,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtNestedTypeWithLifetimeTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected LtSubStructTwinNormal sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( @@ -1132,68 +1336,80 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - LtOwnedStructTwinNormal - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtTypeWithLifetimeTwinNormal + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return LtOwnedStructTwinNormalImpl.frbInternalSseDecode( + return LtTypeWithLifetimeTwinNormalImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - LtSubStructTwinNormal - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtTypeWithMultiDepTwinNormal + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return LtSubStructTwinNormalImpl.frbInternalSseDecode( + return LtTypeWithMultiDepTwinNormalImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - SimpleLogger - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + LtNestedTypeWithLifetimeTwinNormal + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return SimpleLoggerImpl.frbInternalSseDecode( + return LtNestedTypeWithLifetimeTwinNormalImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - LtNestedTypeWithLifetimeTwinNormal - sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + LtOwnedStructTwinNormal + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var inner = - sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - deserializer); - return inner; + return LtOwnedStructTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + LtSubStructTwinNormal + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtSubStructTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected LtTypeWithLifetimeTwinNormal - sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var inner = - sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - deserializer); - return inner; + return LtTypeWithLifetimeTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected LtTypeWithMultiDepTwinNormal - sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtTypeWithMultiDepTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + SimpleLogger + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - var inner = - sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - deserializer); - return inner; + return SimpleLoggerImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected LtNestedTypeWithLifetimeTwinNormal - sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs var inner = @@ -1204,7 +1420,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { @protected LtTypeWithLifetimeTwinNormal - sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs var inner = @@ -1215,7 +1431,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { @protected LtTypeWithMultiDepTwinNormal - sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs var inner = @@ -1251,6 +1467,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtNestedTypeWithLifetimeTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected LtOwnedStructTwinNormal sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -1269,6 +1494,24 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtTypeWithLifetimeTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtTypeWithMultiDepTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected SimpleLogger sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -1360,6 +1603,17 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { self, serializer); } + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtNestedTypeWithLifetimeTwinNormalImpl) + .frbInternalSseEncode(move: true), + serializer); + } + @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -1380,6 +1634,28 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtTypeWithLifetimeTwinNormalImpl) + .frbInternalSseEncode(move: true), + serializer); + } + + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtTypeWithMultiDepTwinNormalImpl) + .frbInternalSseEncode(move: true), + serializer); + } + @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -1390,6 +1666,17 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } + @protected + void + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtNestedTypeWithLifetimeTwinNormalImpl) + .frbInternalSseEncode(move: false), + serializer); + } + @protected void sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( @@ -1402,64 +1689,92 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - LtOwnedStructTwinNormal self, SseSerializer serializer) { + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_usize( - (self as LtOwnedStructTwinNormalImpl).frbInternalSseEncode(move: false), + (self as LtTypeWithLifetimeTwinNormalImpl) + .frbInternalSseEncode(move: false), serializer); } @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - LtSubStructTwinNormal self, SseSerializer serializer) { + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_usize( - (self as LtSubStructTwinNormalImpl).frbInternalSseEncode(move: false), + (self as LtTypeWithMultiDepTwinNormalImpl) + .frbInternalSseEncode(move: false), serializer); } @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - SimpleLogger self, SseSerializer serializer) { + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_usize( - (self as SimpleLoggerImpl).frbInternalSseEncode(move: false), + (self as LtNestedTypeWithLifetimeTwinNormalImpl) + .frbInternalSseEncode(move: false), serializer); } @protected void - sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( - LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer) { + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtOwnedStructTwinNormal self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - self, serializer); + sse_encode_usize( + (self as LtOwnedStructTwinNormalImpl).frbInternalSseEncode(move: false), + serializer); } @protected void - sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtSubStructTwinNormalImpl).frbInternalSseEncode(move: false), + serializer); + } + + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( LtTypeWithLifetimeTwinNormal self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - self, serializer); + sse_encode_usize( + (self as LtTypeWithLifetimeTwinNormalImpl) + .frbInternalSseEncode(move: false), + serializer); } @protected void - sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( LtTypeWithMultiDepTwinNormal self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - self, serializer); + sse_encode_usize( + (self as LtTypeWithMultiDepTwinNormalImpl) + .frbInternalSseEncode(move: false), + serializer); + } + + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as SimpleLoggerImpl).frbInternalSseEncode(move: false), + serializer); } @protected void - sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( @@ -1468,7 +1783,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { @protected void - sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( LtTypeWithLifetimeTwinNormal self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( @@ -1477,7 +1792,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { @protected void - sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( LtTypeWithMultiDepTwinNormal self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( @@ -1517,6 +1832,17 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtNestedTypeWithLifetimeTwinNormalImpl) + .frbInternalSseEncode(move: null), + serializer); + } + @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -1537,6 +1863,28 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtTypeWithLifetimeTwinNormalImpl) + .frbInternalSseEncode(move: null), + serializer); + } + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtTypeWithMultiDepTwinNormalImpl) + .frbInternalSseEncode(move: null), + serializer); + } + @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -1623,12 +1971,45 @@ class LtNestedTypeWithLifetimeTwinNormalImpl extends RustOpaque ); Future greetBorrowMutSelfTwinNormal() => RustLib.instance.api - .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( + .crateApiMinimalLtNestedTypeWithLifetimeTwinNormalGreetBorrowMutSelfTwinNormal( + that: this, + ); + + Future greetBorrowSelfTwinNormal() => RustLib.instance.api + .crateApiMinimalLtNestedTypeWithLifetimeTwinNormalGreetBorrowSelfTwinNormal( + that: this, + ); +} + +@sealed +class LtNestedTypeWithLifetimeTwinNormalImpl extends RustOpaque + implements LtNestedTypeWithLifetimeTwinNormal { + // Not to be used by end users + LtNestedTypeWithLifetimeTwinNormalImpl.frbInternalDcoDecode( + List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + LtNestedTypeWithLifetimeTwinNormalImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: RustLib.instance.api + .rust_arc_increment_strong_count_LtNestedTypeWithLifetimeTwinNormal, + rustArcDecrementStrongCount: RustLib.instance.api + .rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormal, + rustArcDecrementStrongCountPtr: RustLib.instance.api + .rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormalPtr, + ); + + Future greetBorrowMutSelfTwinNormal() => RustLib.instance.api + .crateApiMinimalLtNestedTypeWithLifetimeTwinNormalGreetBorrowMutSelfTwinNormal( that: this, ); Future greetBorrowSelfTwinNormal() => RustLib.instance.api - .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormal( + .crateApiMinimalLtNestedTypeWithLifetimeTwinNormalGreetBorrowSelfTwinNormal( that: this, ); } @@ -1726,15 +2107,95 @@ class LtTypeWithLifetimeTwinNormalImpl extends RustOpaque .rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormalPtr, ); + /// Input lifetimeable and output another lifetimeable + Future + computeNestedTypeWithLifetimeTwinNormal() => RustLib.instance.api + .crateApiMinimalLtTypeWithLifetimeTwinNormalComputeNestedTypeWithLifetimeTwinNormal( + that: this, + ); + + /// `&mut T` where T is lifetimeable + Future greetBorrowMutSelfTwinNormal() => RustLib.instance.api + .crateApiMinimalLtTypeWithLifetimeTwinNormalGreetBorrowMutSelfTwinNormal( + that: this, + ); + + /// `&T` where T is lifetimeable + Future greetBorrowSelfTwinNormal() => RustLib.instance.api + .crateApiMinimalLtTypeWithLifetimeTwinNormalGreetBorrowSelfTwinNormal( + that: this, + ); +} + +@sealed +class LtTypeWithLifetimeTwinNormalImpl extends RustOpaque + implements LtTypeWithLifetimeTwinNormal { + // Not to be used by end users + LtTypeWithLifetimeTwinNormalImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + LtTypeWithLifetimeTwinNormalImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: RustLib.instance.api + .rust_arc_increment_strong_count_LtTypeWithLifetimeTwinNormal, + rustArcDecrementStrongCount: RustLib.instance.api + .rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormal, + rustArcDecrementStrongCountPtr: RustLib.instance.api + .rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormalPtr, + ); + + /// Input lifetimeable and output another lifetimeable + Future + computeNestedTypeWithLifetimeTwinNormal() => RustLib.instance.api + .crateApiMinimalLtTypeWithLifetimeTwinNormalComputeNestedTypeWithLifetimeTwinNormal( + that: this, + ); + /// `&mut T` where T is lifetimeable Future greetBorrowMutSelfTwinNormal() => RustLib.instance.api - .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( + .crateApiMinimalLtTypeWithLifetimeTwinNormalGreetBorrowMutSelfTwinNormal( that: this, ); /// `&T` where T is lifetimeable Future greetBorrowSelfTwinNormal() => RustLib.instance.api - .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormal( + .crateApiMinimalLtTypeWithLifetimeTwinNormalGreetBorrowSelfTwinNormal( + that: this, + ); +} + +@sealed +class LtTypeWithMultiDepTwinNormalImpl extends RustOpaque + implements LtTypeWithMultiDepTwinNormal { + // Not to be used by end users + LtTypeWithMultiDepTwinNormalImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + LtTypeWithMultiDepTwinNormalImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: RustLib.instance.api + .rust_arc_increment_strong_count_LtTypeWithMultiDepTwinNormal, + rustArcDecrementStrongCount: RustLib.instance.api + .rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormal, + rustArcDecrementStrongCountPtr: RustLib.instance.api + .rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr, + ); + + Future> greetBorrowMutSelfTwinNormal() => RustLib.instance.api + .crateApiMinimalLtTypeWithMultiDepTwinNormalGreetBorrowMutSelfTwinNormal( + that: this, + ); + + Future> greetBorrowSelfTwinNormal() => RustLib.instance.api + .crateApiMinimalLtTypeWithMultiDepTwinNormalGreetBorrowSelfTwinNormal( that: this, ); } @@ -1761,12 +2222,12 @@ class LtTypeWithMultiDepTwinNormalImpl extends RustOpaque ); Future> greetBorrowMutSelfTwinNormal() => RustLib.instance.api - .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowMutSelfTwinNormal( + .crateApiMinimalLtTypeWithMultiDepTwinNormalGreetBorrowMutSelfTwinNormal( that: this, ); Future> greetBorrowSelfTwinNormal() => RustLib.instance.api - .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowSelfTwinNormal( + .crateApiMinimalLtTypeWithMultiDepTwinNormalGreetBorrowSelfTwinNormal( that: this, ); } diff --git a/frb_example/dart_minimal/lib/src/rust/frb_generated.io.dart b/frb_example/dart_minimal/lib/src/rust/frb_generated.io.dart index ce97862986..69455b8cdc 100644 --- a/frb_example/dart_minimal/lib/src/rust/frb_generated.io.dart +++ b/frb_example/dart_minimal/lib/src/rust/frb_generated.io.dart @@ -30,6 +30,10 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr => wire ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstaticPtr; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormalPtr => + wire._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_Ptr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_LtOwnedStructTwinNormalPtr => wire ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormalPtr; @@ -38,6 +42,14 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { get rust_arc_decrement_strong_count_LtSubStructTwinNormalPtr => wire ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormalPtr; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormalPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_Ptr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_Ptr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_SimpleLoggerPtr => wire ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLoggerPtr; @@ -57,6 +69,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( dynamic raw); + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + dynamic raw); + @protected LtOwnedStructTwinNormal dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -67,16 +84,46 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( dynamic raw); + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + dynamic raw); + @protected SimpleLogger dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( dynamic raw); + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + dynamic raw); + @protected LtSubStructTwinNormal dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( dynamic raw); + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + dynamic raw); + + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + dynamic raw); + @protected LtOwnedStructTwinNormal dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -87,6 +134,16 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( dynamic raw); + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + dynamic raw); + @protected SimpleLogger dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -109,42 +166,42 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected LtNestedTypeWithLifetimeTwinNormal - dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( dynamic raw); @protected LtTypeWithLifetimeTwinNormal - dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( dynamic raw); @protected LtTypeWithMultiDepTwinNormal - dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( dynamic raw); @protected LtNestedTypeWithLifetimeTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( dynamic raw); @protected - LtTypeWithLifetimeTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + LtOwnedStructTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( dynamic raw); @protected - LtTypeWithMultiDepTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + LtSubStructTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( dynamic raw); @protected - LtOwnedStructTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtTypeWithLifetimeTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( dynamic raw); @protected - LtSubStructTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtTypeWithMultiDepTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( dynamic raw); @protected @@ -188,6 +245,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( SseDeserializer deserializer); + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + SseDeserializer deserializer); + @protected LtOwnedStructTwinNormal sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -198,16 +260,46 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( SseDeserializer deserializer); + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + SseDeserializer deserializer); + @protected SimpleLogger sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( SseDeserializer deserializer); + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + SseDeserializer deserializer); + @protected LtSubStructTwinNormal sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( SseDeserializer deserializer); + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + SseDeserializer deserializer); + + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + SseDeserializer deserializer); + @protected LtOwnedStructTwinNormal sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -218,6 +310,16 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( SseDeserializer deserializer); + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + SseDeserializer deserializer); + @protected SimpleLogger sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -240,42 +342,42 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected LtNestedTypeWithLifetimeTwinNormal - sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( SseDeserializer deserializer); @protected LtTypeWithLifetimeTwinNormal - sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( SseDeserializer deserializer); @protected LtTypeWithMultiDepTwinNormal - sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( SseDeserializer deserializer); @protected LtNestedTypeWithLifetimeTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( SseDeserializer deserializer); @protected - LtTypeWithLifetimeTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + LtOwnedStructTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( SseDeserializer deserializer); @protected - LtTypeWithMultiDepTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + LtSubStructTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( SseDeserializer deserializer); @protected - LtOwnedStructTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtTypeWithLifetimeTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( SseDeserializer deserializer); @protected - LtSubStructTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtTypeWithMultiDepTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( SseDeserializer deserializer); @protected @@ -322,6 +424,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -332,16 +439,46 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( LtSubStructTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( SimpleLogger self, SseSerializer serializer); + @protected + void + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + @protected void sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( LtSubStructTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + @protected void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -352,6 +489,16 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( LtSubStructTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + @protected void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -374,43 +521,43 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected void - sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); @protected void - sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); @protected void - sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtOwnedStructTwinNormal self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - LtOwnedStructTwinNormal self, SseSerializer serializer); + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - LtSubStructTwinNormal self, SseSerializer serializer); + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); @protected void @@ -553,6 +700,38 @@ class RustLibWire implements BaseWire { _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstaticPtr .asFunction)>(); + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_Ptr = + _lookup)>>( + 'frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_ = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_Ptr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_Ptr = + _lookup)>>( + 'frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_ = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_Ptr + .asFunction)>(); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( ffi.Pointer ptr, @@ -617,6 +796,70 @@ class RustLibWire implements BaseWire { _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormalPtr .asFunction)>(); + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_Ptr = + _lookup)>>( + 'frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_ = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_Ptr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_Ptr = + _lookup)>>( + 'frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_ = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_Ptr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_Ptr = + _lookup)>>( + 'frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_ = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_Ptr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_Ptr = + _lookup)>>( + 'frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_ = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_Ptr + .asFunction)>(); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( ffi.Pointer ptr, diff --git a/frb_example/dart_minimal/lib/src/rust/frb_generated.web.dart b/frb_example/dart_minimal/lib/src/rust/frb_generated.web.dart index 6a530b29e6..fdbb5bce35 100644 --- a/frb_example/dart_minimal/lib/src/rust/frb_generated.web.dart +++ b/frb_example/dart_minimal/lib/src/rust/frb_generated.web.dart @@ -32,6 +32,10 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr => wire .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormalPtr => + wire.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_LtOwnedStructTwinNormalPtr => wire .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal; @@ -40,6 +44,14 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { get rust_arc_decrement_strong_count_LtSubStructTwinNormalPtr => wire .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormalPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_SimpleLoggerPtr => wire .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger; @@ -59,6 +71,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( dynamic raw); + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + dynamic raw); + @protected LtOwnedStructTwinNormal dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -69,16 +86,46 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( dynamic raw); + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + dynamic raw); + @protected SimpleLogger dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( dynamic raw); + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + dynamic raw); + @protected LtSubStructTwinNormal dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( dynamic raw); + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + dynamic raw); + + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + dynamic raw); + @protected LtOwnedStructTwinNormal dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -89,6 +136,16 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( dynamic raw); + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + dynamic raw); + @protected SimpleLogger dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -111,42 +168,42 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected LtNestedTypeWithLifetimeTwinNormal - dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( dynamic raw); @protected LtTypeWithLifetimeTwinNormal - dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( dynamic raw); @protected LtTypeWithMultiDepTwinNormal - dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( dynamic raw); @protected LtNestedTypeWithLifetimeTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( dynamic raw); @protected - LtTypeWithLifetimeTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + LtOwnedStructTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( dynamic raw); @protected - LtTypeWithMultiDepTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + LtSubStructTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( dynamic raw); @protected - LtOwnedStructTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtTypeWithLifetimeTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( dynamic raw); @protected - LtSubStructTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtTypeWithMultiDepTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( dynamic raw); @protected @@ -190,6 +247,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( SseDeserializer deserializer); + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + SseDeserializer deserializer); + @protected LtOwnedStructTwinNormal sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -200,16 +262,46 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( SseDeserializer deserializer); + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + SseDeserializer deserializer); + @protected SimpleLogger sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( SseDeserializer deserializer); + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + SseDeserializer deserializer); + @protected LtSubStructTwinNormal sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( SseDeserializer deserializer); + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + SseDeserializer deserializer); + + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + SseDeserializer deserializer); + @protected LtOwnedStructTwinNormal sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -220,6 +312,16 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( SseDeserializer deserializer); + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + SseDeserializer deserializer); + @protected SimpleLogger sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -242,42 +344,42 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected LtNestedTypeWithLifetimeTwinNormal - sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( SseDeserializer deserializer); @protected LtTypeWithLifetimeTwinNormal - sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( SseDeserializer deserializer); @protected LtTypeWithMultiDepTwinNormal - sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( SseDeserializer deserializer); @protected LtNestedTypeWithLifetimeTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( SseDeserializer deserializer); @protected - LtTypeWithLifetimeTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + LtOwnedStructTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( SseDeserializer deserializer); @protected - LtTypeWithMultiDepTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + LtSubStructTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( SseDeserializer deserializer); @protected - LtOwnedStructTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtTypeWithLifetimeTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( SseDeserializer deserializer); @protected - LtSubStructTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtTypeWithMultiDepTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( SseDeserializer deserializer); @protected @@ -324,6 +426,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -334,16 +441,46 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( LtSubStructTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( SimpleLogger self, SseSerializer serializer); + @protected + void + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + @protected void sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( LtSubStructTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + @protected void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -354,6 +491,16 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( LtSubStructTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + @protected void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -376,43 +523,43 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected void - sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); @protected void - sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); @protected void - sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtOwnedStructTwinNormal self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - LtOwnedStructTwinNormal self, SseSerializer serializer); + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - LtSubStructTwinNormal self, SseSerializer serializer); + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); @protected void @@ -486,6 +633,18 @@ class RustLibWire implements BaseWire { .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( ptr); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + ptr); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( int ptr) => wasmModule @@ -510,6 +669,30 @@ class RustLibWire implements BaseWire { .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( ptr); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + ptr); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( int ptr) => wasmModule @@ -553,6 +736,14 @@ extension type RustLibWasmModule._(JSObject _) implements JSObject { rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( int ptr); + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + int ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + int ptr); + external void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( int ptr); @@ -569,6 +760,22 @@ extension type RustLibWasmModule._(JSObject _) implements JSObject { rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( int ptr); + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + int ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + int ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + int ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + int ptr); + external void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( int ptr); diff --git a/frb_example/dart_minimal/rust/src/frb_generated.io.rs b/frb_example/dart_minimal/rust/src/frb_generated.io.rs index 5b7eda542c..707d7f6cf9 100644 --- a/frb_example/dart_minimal/rust/src/frb_generated.io.rs +++ b/frb_example/dart_minimal/rust/src/frb_generated.io.rs @@ -79,6 +79,28 @@ pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_coun >::decrement_strong_count(ptr as _); } +#[no_mangle] +pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + LtNestedTypeWithLifetimeTwinNormal<'_>, + >, + >::increment_strong_count(ptr as _); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + LtNestedTypeWithLifetimeTwinNormal<'_>, + >, + >::decrement_strong_count(ptr as _); +} + #[no_mangle] pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( ptr: *const std::ffi::c_void, @@ -107,6 +129,42 @@ pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_coun MoiArc::>::decrement_strong_count(ptr as _); } +#[no_mangle] +pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner>, + >::increment_strong_count(ptr as _); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner>, + >::decrement_strong_count(ptr as _); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner>, + >::increment_strong_count(ptr as _); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner>, + >::decrement_strong_count(ptr as _); +} + #[no_mangle] pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( ptr: *const std::ffi::c_void, diff --git a/frb_example/dart_minimal/rust/src/frb_generated.rs b/frb_example/dart_minimal/rust/src/frb_generated.rs index 6cfa499e7c..f542aa2fef 100644 --- a/frb_example/dart_minimal/rust/src/frb_generated.rs +++ b/frb_example/dart_minimal/rust/src/frb_generated.rs @@ -34,7 +34,7 @@ flutter_rust_bridge::frb_generated_boilerplate!( default_rust_auto_opaque = RustAutoOpaqueMoi, ); pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.0.0-dev.39"; -pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = 1535573962; +pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = 1484454083; // Section: executor @@ -42,208 +42,40 @@ flutter_rust_bridge::frb_generated_default_handler!(); // Section: wire_funcs -fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl( +fn wire__crate__api__minimal__LtNestedTypeWithLifetimeTwinNormal_greet_borrow_mut_self_twin_normal_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, rust_vec_len_: i32, data_len_: i32, ) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtNestedTypeWithLifetimeTwinNormal_greet_borrow_mut_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + let api_that = >>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { transform_result_sse::<_, ()>((move || { let mut api_that_guard = None; -let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); - for i in decode_indices_ { - match i { - 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), - _ => unreachable!(), - } - } - let api_that_guard = api_that_guard.unwrap(); - let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtNestedTypeWithLifetimeTwinNormal ::greet_borrow_mut_self_twin_normal(&*api_that_guard))?; Ok(output_ok) - })()) - } }) -} -fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, - rust_vec_len_: i32, - data_len_: i32, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { - let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; - let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { - transform_result_sse::<_, ()>((move || { - let mut api_that_guard = None; -let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); - for i in decode_indices_ { - match i { - 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), - _ => unreachable!(), - } - } - let api_that_guard = api_that_guard.unwrap(); - let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtNestedTypeWithLifetimeTwinNormal ::greet_borrow_self_twin_normal(&*&api_that_guard))?; Ok(output_ok) - })()) - } }) -} -fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, - rust_vec_len_: i32, - data_len_: i32, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { - let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; - let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_arg = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { - transform_result_sse::<_, ()>((move || { - let api_arg_illegal_static_ref = unsafe { - flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg) - };let mut api_arg_guard = None; -let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_arg, 0, false)]); - for i in decode_indices_ { - match i { - 0 => api_arg_guard = Some(api_arg_illegal_static_ref.lockable_decode_sync_ref()), - _ => unreachable!(), - } - } - let api_arg_guard = api_arg_guard.unwrap(); -let api_arg_guard = Arc::new(api_arg_guard); - let api_arg_guard_illegal_static_ref = unsafe { - flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithLifetimeTwinNormal ::compute_arg_generic_lifetime_twin_normal(&*api_arg_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(flutter_rust_bridge::for_generated::Lifetimeable::new(output_ok, vec![Box::new(api_arg.clone()), Box::new(api_arg_guard.clone())])); Ok(output_ok) - })()) - } }) -} -fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, - rust_vec_len_: i32, - data_len_: i32, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { - let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; - let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { - transform_result_sse::<_, ()>((move || { - let mut api_that_guard = None; -let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); - for i in decode_indices_ { - match i { - 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), - _ => unreachable!(), - } - } - let api_that_guard = api_that_guard.unwrap(); - let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithLifetimeTwinNormal ::greet_borrow_mut_self_twin_normal(&*api_that_guard))?; Ok(output_ok) - })()) - } }) -} -fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, - rust_vec_len_: i32, - data_len_: i32, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { - let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; - let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { - transform_result_sse::<_, ()>((move || { - let mut api_that_guard = None; -let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); - for i in decode_indices_ { - match i { - 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), - _ => unreachable!(), - } - } - let api_that_guard = api_that_guard.unwrap(); - let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithLifetimeTwinNormal ::greet_borrow_self_twin_normal(&*&api_that_guard))?; Ok(output_ok) - })()) - } }) -} -fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, - rust_vec_len_: i32, - data_len_: i32, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { - let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; - let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_a = >>::sse_decode(&mut deserializer); -let api_b = >>::sse_decode(&mut deserializer); -let api_unrelated_borrowed = >>::sse_decode(&mut deserializer); -let api_unrelated_owned = ::sse_decode(&mut deserializer);deserializer.end(); move |context| { - transform_result_sse::<_, ()>((move || { - let api_a_illegal_static_ref = unsafe { - flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_a) - };let api_b_illegal_static_ref = unsafe { - flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_b) - };let mut api_a_guard = None; -let mut api_b_guard = None; -let mut api_unrelated_borrowed_guard = None; -let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_a, 0, false), flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_b, 1, false), flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_unrelated_borrowed, 2, false)]); - for i in decode_indices_ { - match i { - 0 => api_a_guard = Some(api_a_illegal_static_ref.lockable_decode_sync_ref()), -1 => api_b_guard = Some(api_b_illegal_static_ref.lockable_decode_sync_ref()), -2 => api_unrelated_borrowed_guard = Some(api_unrelated_borrowed.lockable_decode_sync_ref()), - _ => unreachable!(), - } - } - let api_a_guard = api_a_guard.unwrap(); -let api_b_guard = api_b_guard.unwrap(); -let api_unrelated_borrowed_guard = api_unrelated_borrowed_guard.unwrap(); -let api_a_guard = Arc::new(api_a_guard); - let api_a_guard_illegal_static_ref = unsafe { - flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_a_guard) - };let api_b_guard = Arc::new(api_b_guard); - let api_b_guard_illegal_static_ref = unsafe { - flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_b_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithMultiDepTwinNormal ::compute_with_multi_arg_having_lifetime_twin_normal(&*api_a_guard_illegal_static_ref, &*api_b_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; let output_ok = RustAutoOpaque::new(flutter_rust_bridge::for_generated::Lifetimeable::new(output_ok, vec![Box::new(api_a.clone()), Box::new(api_a_guard.clone()), Box::new(api_b.clone()), Box::new(api_b_guard.clone())])); Ok(output_ok) - })()) - } }) -} -fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, - rust_vec_len_: i32, - data_len_: i32, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { - let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; - let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { - transform_result_sse::<_, ()>((move || { - let mut api_that_guard = None; -let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true)]); for i in decode_indices_ { match i { - 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), _ => unreachable!(), } } - let api_that_guard = api_that_guard.unwrap(); - let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithMultiDepTwinNormal ::greet_borrow_mut_self_twin_normal(&*api_that_guard))?; Ok(output_ok) + let mut api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtNestedTypeWithLifetimeTwinNormal ::greet_borrow_mut_self_twin_normal(&mut *api_that_guard))?; Ok(output_ok) })()) } }) } -fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal_impl( +fn wire__crate__api__minimal__LtNestedTypeWithLifetimeTwinNormal_greet_borrow_self_twin_normal_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, rust_vec_len_: i32, data_len_: i32, ) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtNestedTypeWithLifetimeTwinNormal_greet_borrow_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + let api_that = >>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { transform_result_sse::<_, ()>((move || { let mut api_that_guard = None; let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); @@ -254,7 +86,7 @@ let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decod } } let api_that_guard = api_that_guard.unwrap(); - let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithMultiDepTwinNormal ::greet_borrow_self_twin_normal(&*&api_that_guard))?; Ok(output_ok) + let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtNestedTypeWithLifetimeTwinNormal ::greet_borrow_self_twin_normal(&*api_that_guard))?; Ok(output_ok) })()) } }) } @@ -413,16 +245,242 @@ fn wire__crate__api__minimal__LtOwnedStructTwinNormal_create_with_logger_impl( }, ) } -fn wire__crate__api__minimal__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal_impl( +fn wire__crate__api__minimal__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), + _ => unreachable!(), + } + } + let mut api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtSubStructTwinNormal::greet_borrow_mut_self_twin_normal(&mut *api_that_guard))?; Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__minimal__LtSubStructTwinNormal_greet_borrow_self_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "LtSubStructTwinNormal_greet_borrow_self_twin_normal", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let message = unsafe { + flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire( + ptr_, + rust_vec_len_, + data_len_, + ) + }; + let mut deserializer = + flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = , + >>::sse_decode(&mut deserializer); + deserializer.end(); + move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_, ()>::Ok( + crate::api::minimal::LtSubStructTwinNormal::greet_borrow_self_twin_normal( + &*api_that_guard, + ), + )?; + Ok(output_ok) + })()) + } + }, + ) +} +fn wire__crate__api__minimal__LtTypeWithLifetimeTwinNormal_compute_arg_generic_lifetime_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtTypeWithLifetimeTwinNormal_compute_arg_generic_lifetime_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_arg = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let api_arg_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg) + };let mut api_arg_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_arg, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_arg_guard = Some(api_arg_illegal_static_ref.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_arg_guard = api_arg_guard.unwrap(); +let api_arg_guard = Arc::new(api_arg_guard); + let api_arg_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg_guard) + }; let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithLifetimeTwinNormal ::compute_arg_generic_lifetime_twin_normal(&*api_arg_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(flutter_rust_bridge::for_generated::Lifetimeable::new(output_ok, vec![Box::new(api_arg.clone()), Box::new(api_arg_guard.clone())])); Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__minimal__LtTypeWithLifetimeTwinNormal_compute_nested_type_with_lifetime_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtTypeWithLifetimeTwinNormal_compute_nested_type_with_lifetime_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let api_that_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that) + };let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that_illegal_static_ref.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); +let api_that_guard = Arc::new(api_that_guard); + let api_that_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that_guard) + }; let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithLifetimeTwinNormal ::compute_nested_type_with_lifetime_twin_normal(&*api_that_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(flutter_rust_bridge::for_generated::Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__minimal__LtTypeWithLifetimeTwinNormal_greet_borrow_mut_self_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtTypeWithLifetimeTwinNormal_greet_borrow_mut_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), + _ => unreachable!(), + } + } + let mut api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithLifetimeTwinNormal ::greet_borrow_mut_self_twin_normal(&mut *api_that_guard))?; Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__minimal__LtTypeWithLifetimeTwinNormal_greet_borrow_self_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtTypeWithLifetimeTwinNormal_greet_borrow_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithLifetimeTwinNormal ::greet_borrow_self_twin_normal(&*api_that_guard))?; Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__minimal__LtTypeWithMultiDepTwinNormal_compute_with_multi_arg_having_lifetime_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtTypeWithMultiDepTwinNormal_compute_with_multi_arg_having_lifetime_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_a = >>::sse_decode(&mut deserializer); +let api_b = >>::sse_decode(&mut deserializer); +let api_unrelated_borrowed = >>::sse_decode(&mut deserializer); +let api_unrelated_owned = ::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let api_a_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_a) + };let api_b_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_b) + };let mut api_a_guard = None; +let mut api_b_guard = None; +let mut api_unrelated_borrowed_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_a, 0, false), flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_b, 1, false), flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_unrelated_borrowed, 2, false)]); + for i in decode_indices_ { + match i { + 0 => api_a_guard = Some(api_a_illegal_static_ref.lockable_decode_sync_ref()), +1 => api_b_guard = Some(api_b_illegal_static_ref.lockable_decode_sync_ref()), +2 => api_unrelated_borrowed_guard = Some(api_unrelated_borrowed.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_a_guard = api_a_guard.unwrap(); +let api_b_guard = api_b_guard.unwrap(); +let api_unrelated_borrowed_guard = api_unrelated_borrowed_guard.unwrap(); +let api_a_guard = Arc::new(api_a_guard); + let api_a_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_a_guard) + };let api_b_guard = Arc::new(api_b_guard); + let api_b_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_b_guard) + }; let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithMultiDepTwinNormal ::compute_with_multi_arg_having_lifetime_twin_normal(&*api_a_guard_illegal_static_ref, &*api_b_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; let output_ok = RustAutoOpaque::new(flutter_rust_bridge::for_generated::Lifetimeable::new(output_ok, vec![Box::new(api_a.clone()), Box::new(api_a_guard.clone()), Box::new(api_b.clone()), Box::new(api_b_guard.clone())])); Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__minimal__LtTypeWithMultiDepTwinNormal_greet_borrow_mut_self_twin_normal_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, rust_vec_len_: i32, data_len_: i32, ) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtTypeWithMultiDepTwinNormal_greet_borrow_mut_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_that = >>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + let api_that = >>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { transform_result_sse::<_, ()>((move || { let mut api_that_guard = None; let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true)]); @@ -433,62 +491,33 @@ let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decod } } let mut api_that_guard = api_that_guard.unwrap(); - let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtSubStructTwinNormal::greet_borrow_mut_self_twin_normal(&mut *api_that_guard))?; Ok(output_ok) + let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithMultiDepTwinNormal ::greet_borrow_mut_self_twin_normal(&mut *api_that_guard))?; Ok(output_ok) })()) } }) } -fn wire__crate__api__minimal__LtSubStructTwinNormal_greet_borrow_self_twin_normal_impl( +fn wire__crate__api__minimal__LtTypeWithMultiDepTwinNormal_greet_borrow_self_twin_normal_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, rust_vec_len_: i32, data_len_: i32, ) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( - flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "LtSubStructTwinNormal_greet_borrow_self_twin_normal", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, - }, - move || { - let message = unsafe { - flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire( - ptr_, - rust_vec_len_, - data_len_, - ) - }; - let mut deserializer = - flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_that = , - >>::sse_decode(&mut deserializer); - deserializer.end(); - move |context| { - transform_result_sse::<_, ()>((move || { - let mut api_that_guard = None; - let decode_indices_ = - flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ - flutter_rust_bridge::for_generated::LockableOrderInfo::new( - &api_that, 0, false, - ), - ]); - for i in decode_indices_ { - match i { - 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), - _ => unreachable!(), - } - } - let api_that_guard = api_that_guard.unwrap(); - let output_ok = Result::<_, ()>::Ok( - crate::api::minimal::LtSubStructTwinNormal::greet_borrow_self_twin_normal( - &*api_that_guard, - ), - )?; - Ok(output_ok) - })()) + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtTypeWithMultiDepTwinNormal_greet_borrow_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), } - }, - ) + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithMultiDepTwinNormal ::greet_borrow_self_twin_normal(&*api_that_guard))?; Ok(output_ok) + })()) + } }) } fn wire__crate__api__minimal__SimpleLogger_get_and_reset_impl( port_: flutter_rust_bridge::for_generated::MessagePort, @@ -727,12 +756,21 @@ flutter_rust_bridge::frb_generated_moi_arc_impl_value!( Lifetimeable>, > ); +flutter_rust_bridge::frb_generated_moi_arc_impl_value!( + flutter_rust_bridge::for_generated::RustAutoOpaqueInner> +); flutter_rust_bridge::frb_generated_moi_arc_impl_value!( flutter_rust_bridge::for_generated::RustAutoOpaqueInner ); flutter_rust_bridge::frb_generated_moi_arc_impl_value!( flutter_rust_bridge::for_generated::RustAutoOpaqueInner ); +flutter_rust_bridge::frb_generated_moi_arc_impl_value!( + flutter_rust_bridge::for_generated::RustAutoOpaqueInner> +); +flutter_rust_bridge::frb_generated_moi_arc_impl_value!( + flutter_rust_bridge::for_generated::RustAutoOpaqueInner> +); flutter_rust_bridge::frb_generated_moi_arc_impl_value!( flutter_rust_bridge::for_generated::RustAutoOpaqueInner ); @@ -775,6 +813,18 @@ impl SseDecode for RustAutoOpaqueMoi { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = , + >, + >>::sse_decode(deserializer); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); + } +} + impl SseDecode for LtOwnedStructTwinNormal { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -795,6 +845,30 @@ impl SseDecode for LtSubStructTwinNormal { } } +impl SseDecode for LtTypeWithLifetimeTwinNormal<'_> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = , + >, + >>::sse_decode(deserializer); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); + } +} + +impl SseDecode for LtTypeWithMultiDepTwinNormal<'_> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = , + >, + >>::sse_decode(deserializer); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); + } +} + impl SseDecode for SimpleLogger { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -847,6 +921,20 @@ impl SseDecode } } +impl SseDecode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + LtNestedTypeWithLifetimeTwinNormal<'_>, + >, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return decode_rust_opaque_moi(inner); + } +} + impl SseDecode for RustOpaqueMoi< flutter_rust_bridge::for_generated::RustAutoOpaqueInner, @@ -871,6 +959,30 @@ impl SseDecode } } +impl SseDecode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner>, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return decode_rust_opaque_moi(inner); + } +} + +impl SseDecode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner>, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return decode_rust_opaque_moi(inner); + } +} + impl SseDecode for RustOpaqueMoi> { @@ -955,24 +1067,25 @@ fn pde_ffi_dispatcher_primary_impl( ) { // Codec=Pde (Serialization + dispatch), see doc to use other codecs match func_id { - 1 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), -2 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), -3 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal_impl(port, ptr, rust_vec_len, data_len), -4 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), -5 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), -6 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal_impl(port, ptr, rust_vec_len, data_len), -7 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), -8 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), -9 => wire__crate__api__minimal__LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal_impl(port, ptr, rust_vec_len, data_len), -10 => wire__crate__api__minimal__LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal_impl(port, ptr, rust_vec_len, data_len), -11 => wire__crate__api__minimal__LtOwnedStructTwinNormal_create_impl(port, ptr, rust_vec_len, data_len), -12 => wire__crate__api__minimal__LtOwnedStructTwinNormal_create_with_logger_impl(port, ptr, rust_vec_len, data_len), -13 => wire__crate__api__minimal__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), -14 => wire__crate__api__minimal__LtSubStructTwinNormal_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), -15 => wire__crate__api__minimal__SimpleLogger_get_and_reset_impl(port, ptr, rust_vec_len, data_len), -17 => wire__crate__api__minimal__init_app_impl(port, ptr, rust_vec_len, data_len), -18 => wire__crate__api__minimal__lt_compute_with_lifetime_function_twin_normal_impl(port, ptr, rust_vec_len, data_len), -19 => wire__crate__api__minimal__minimal_adder_impl(port, ptr, rust_vec_len, data_len), + 1 => wire__crate__api__minimal__LtNestedTypeWithLifetimeTwinNormal_greet_borrow_mut_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +2 => wire__crate__api__minimal__LtNestedTypeWithLifetimeTwinNormal_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +3 => wire__crate__api__minimal__LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal_impl(port, ptr, rust_vec_len, data_len), +4 => wire__crate__api__minimal__LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal_impl(port, ptr, rust_vec_len, data_len), +5 => wire__crate__api__minimal__LtOwnedStructTwinNormal_create_impl(port, ptr, rust_vec_len, data_len), +6 => wire__crate__api__minimal__LtOwnedStructTwinNormal_create_with_logger_impl(port, ptr, rust_vec_len, data_len), +7 => wire__crate__api__minimal__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +8 => wire__crate__api__minimal__LtSubStructTwinNormal_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +9 => wire__crate__api__minimal__LtTypeWithLifetimeTwinNormal_compute_arg_generic_lifetime_twin_normal_impl(port, ptr, rust_vec_len, data_len), +10 => wire__crate__api__minimal__LtTypeWithLifetimeTwinNormal_compute_nested_type_with_lifetime_twin_normal_impl(port, ptr, rust_vec_len, data_len), +11 => wire__crate__api__minimal__LtTypeWithLifetimeTwinNormal_greet_borrow_mut_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +12 => wire__crate__api__minimal__LtTypeWithLifetimeTwinNormal_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +13 => wire__crate__api__minimal__LtTypeWithMultiDepTwinNormal_compute_with_multi_arg_having_lifetime_twin_normal_impl(port, ptr, rust_vec_len, data_len), +14 => wire__crate__api__minimal__LtTypeWithMultiDepTwinNormal_greet_borrow_mut_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +15 => wire__crate__api__minimal__LtTypeWithMultiDepTwinNormal_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +16 => wire__crate__api__minimal__SimpleLogger_get_and_reset_impl(port, ptr, rust_vec_len, data_len), +18 => wire__crate__api__minimal__init_app_impl(port, ptr, rust_vec_len, data_len), +19 => wire__crate__api__minimal__lt_compute_with_lifetime_function_twin_normal_impl(port, ptr, rust_vec_len, data_len), +20 => wire__crate__api__minimal__minimal_adder_impl(port, ptr, rust_vec_len, data_len), _ => unreachable!(), } } @@ -985,13 +1098,33 @@ fn pde_ffi_dispatcher_sync_impl( ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { // Codec=Pde (Serialization + dispatch), see doc to use other codecs match func_id { - 16 => wire__crate__api__minimal__SimpleLogger_new_impl(ptr, rust_vec_len, data_len), + 17 => wire__crate__api__minimal__SimpleLogger_new_impl(ptr, rust_vec_len, data_len), _ => unreachable!(), } } // Section: rust2dart +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for FrbWrapper> { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self.0) + .into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for FrbWrapper> +{ +} + +impl flutter_rust_bridge::IntoIntoDart>> + for LtNestedTypeWithLifetimeTwinNormal<'_> +{ + fn into_into_dart(self) -> FrbWrapper> { + self.into() + } +} + // Codec=Dco (DartCObject based), see doc to use other codecs impl flutter_rust_bridge::IntoDart for FrbWrapper { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { @@ -1032,6 +1165,46 @@ impl flutter_rust_bridge::IntoIntoDart> } } +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for FrbWrapper> { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self.0) + .into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for FrbWrapper> +{ +} + +impl flutter_rust_bridge::IntoIntoDart>> + for LtTypeWithLifetimeTwinNormal<'_> +{ + fn into_into_dart(self) -> FrbWrapper> { + self.into() + } +} + +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for FrbWrapper> { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self.0) + .into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for FrbWrapper> +{ +} + +impl flutter_rust_bridge::IntoIntoDart>> + for LtTypeWithMultiDepTwinNormal<'_> +{ + fn into_into_dart(self) -> FrbWrapper> { + self.into() + } +} + // Codec=Dco (DartCObject based), see doc to use other codecs impl flutter_rust_bridge::IntoDart for FrbWrapper { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { @@ -1089,6 +1262,20 @@ impl SseEncode for RustAutoOpaqueMoi { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + , + >, + >>::sse_encode( + flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self), + serializer, + ); + } +} + impl SseEncode for LtOwnedStructTwinNormal { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -1113,6 +1300,34 @@ impl SseEncode for LtSubStructTwinNormal { } } +impl SseEncode for LtTypeWithLifetimeTwinNormal<'_> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + , + >, + >>::sse_encode( + flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self), + serializer, + ); + } +} + +impl SseEncode for LtTypeWithMultiDepTwinNormal<'_> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + , + >, + >>::sse_encode( + flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self), + serializer, + ); + } +} + impl SseEncode for SimpleLogger { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -1165,6 +1380,21 @@ impl SseEncode } } +impl SseEncode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + LtNestedTypeWithLifetimeTwinNormal<'_>, + >, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + impl SseEncode for RustOpaqueMoi< flutter_rust_bridge::for_generated::RustAutoOpaqueInner, @@ -1191,6 +1421,32 @@ impl SseEncode } } +impl SseEncode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner>, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + +impl SseEncode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner>, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + impl SseEncode for RustOpaqueMoi> { diff --git a/frb_example/dart_minimal/rust/src/frb_generated.web.rs b/frb_example/dart_minimal/rust/src/frb_generated.web.rs index 793c3a1131..8e95bcebce 100644 --- a/frb_example/dart_minimal/rust/src/frb_generated.web.rs +++ b/frb_example/dart_minimal/rust/src/frb_generated.web.rs @@ -81,6 +81,28 @@ pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generat >::decrement_strong_count(ptr as _); } +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + LtNestedTypeWithLifetimeTwinNormal<'_>, + >, + >::increment_strong_count(ptr as _); +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + LtNestedTypeWithLifetimeTwinNormal<'_>, + >, + >::decrement_strong_count(ptr as _); +} + #[wasm_bindgen] pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( ptr: *const std::ffi::c_void, @@ -109,6 +131,42 @@ pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generat MoiArc::>::decrement_strong_count(ptr as _); } +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner>, + >::increment_strong_count(ptr as _); +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner>, + >::decrement_strong_count(ptr as _); +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner>, + >::increment_strong_count(ptr as _); +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner>, + >::decrement_strong_count(ptr as _); +} + #[wasm_bindgen] pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( ptr: *const std::ffi::c_void, From 0ef022ad7ba3bf89ed821d0f38cc9b70a7457b63 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:23:10 +0800 Subject: [PATCH 049/117] Revert "chore: codegen" This reverts commit ec54a7df55830b6190d7091d29f1c1e6e7016994. --- .../lib/src/rust/api/minimal.dart | 59 +- .../lib/src/rust/frb_generated.dart | 987 +++++------------- .../lib/src/rust/frb_generated.io.dart | 315 +----- .../lib/src/rust/frb_generated.web.dart | 279 +---- .../dart_minimal/rust/src/frb_generated.io.rs | 58 - .../dart_minimal/rust/src/frb_generated.rs | 760 +++++--------- .../rust/src/frb_generated.web.rs | 58 - 7 files changed, 590 insertions(+), 1926 deletions(-) diff --git a/frb_example/dart_minimal/lib/src/rust/api/minimal.dart b/frb_example/dart_minimal/lib/src/rust/api/minimal.dart index 7b2c3f6c3f..bfb8aa0e71 100644 --- a/frb_example/dart_minimal/lib/src/rust/api/minimal.dart +++ b/frb_example/dart_minimal/lib/src/rust/api/minimal.dart @@ -7,6 +7,7 @@ import '../frb_generated.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; // These functions are ignored because they are not marked as `pub`: `log` +// These functions have error during generation (see debug logs or enable `stop_on_error: true` for more details): `compute_nested_type_with_lifetime_twin_normal` Future minimalAdder({required int a, required int b}) => RustLib.instance.api.crateApiMinimalMinimalAdder(a: a, b: b); @@ -32,13 +33,9 @@ abstract class LtTypeWithLifetimeTwinNormal implements RustOpaqueInterface { LtTypeWithLifetimeTwinNormal> computeArgGenericLifetimeTwinNormal( {required LtTypeWithLifetimeTwinNormal arg}) => RustLib.instance.api - .crateApiMinimalLtTypeWithLifetimeTwinNormalComputeArgGenericLifetimeTwinNormal( + .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeArgGenericLifetimeTwinNormal( arg: arg); - /// Input lifetimeable and output another lifetimeable - Future - computeNestedTypeWithLifetimeTwinNormal(); - /// `&mut T` where T is lifetimeable Future greetBorrowMutSelfTwinNormal(); @@ -56,7 +53,7 @@ abstract class LtTypeWithMultiDepTwinNormal implements RustOpaqueInterface { required LtOwnedStructTwinNormal unrelatedBorrowed, required LtOwnedStructTwinNormal unrelatedOwned}) => RustLib.instance.api - .crateApiMinimalLtTypeWithMultiDepTwinNormalComputeWithMultiArgHavingLifetimeTwinNormal( + .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticComputeWithMultiArgHavingLifetimeTwinNormal( a: a, b: b, unrelatedBorrowed: unrelatedBorrowed, @@ -67,14 +64,6 @@ abstract class LtTypeWithMultiDepTwinNormal implements RustOpaqueInterface { Future> greetBorrowSelfTwinNormal(); } -// Rust type: RustOpaqueMoi>> -abstract class LtNestedTypeWithLifetimeTwinNormal - implements RustOpaqueInterface { - Future greetBorrowMutSelfTwinNormal(); - - Future greetBorrowSelfTwinNormal(); -} - // Rust type: RustOpaqueMoi> abstract class LtOwnedStructTwinNormal implements RustOpaqueInterface { /// `fn f(x: &'a T) -> S<'a>` @@ -104,48 +93,6 @@ abstract class LtSubStructTwinNormal implements RustOpaqueInterface { Future greetBorrowSelfTwinNormal(); } -// Rust type: RustOpaqueMoi>> -abstract class LtTypeWithLifetimeTwinNormal implements RustOpaqueInterface { - /// Input argument has type `T<'a>` (other tests mainly are `&'a T`) - static Future< - LtTypeWithLifetimeTwinNormal> computeArgGenericLifetimeTwinNormal( - {required LtTypeWithLifetimeTwinNormal arg}) => - RustLib.instance.api - .crateApiMinimalLtTypeWithLifetimeTwinNormalComputeArgGenericLifetimeTwinNormal( - arg: arg); - - /// Input lifetimeable and output another lifetimeable - Future - computeNestedTypeWithLifetimeTwinNormal(); - - /// `&mut T` where T is lifetimeable - Future greetBorrowMutSelfTwinNormal(); - - /// `&T` where T is lifetimeable - Future greetBorrowSelfTwinNormal(); -} - -// Rust type: RustOpaqueMoi>> -abstract class LtTypeWithMultiDepTwinNormal implements RustOpaqueInterface { - /// Multiple input args have lifetime - static Future< - LtTypeWithMultiDepTwinNormal> computeWithMultiArgHavingLifetimeTwinNormal( - {required LtOwnedStructTwinNormal a, - required LtOwnedStructTwinNormal b, - required LtOwnedStructTwinNormal unrelatedBorrowed, - required LtOwnedStructTwinNormal unrelatedOwned}) => - RustLib.instance.api - .crateApiMinimalLtTypeWithMultiDepTwinNormalComputeWithMultiArgHavingLifetimeTwinNormal( - a: a, - b: b, - unrelatedBorrowed: unrelatedBorrowed, - unrelatedOwned: unrelatedOwned); - - Future> greetBorrowMutSelfTwinNormal(); - - Future> greetBorrowSelfTwinNormal(); -} - // Rust type: RustOpaqueMoi> abstract class SimpleLogger implements RustOpaqueInterface { Future> getAndReset(); diff --git a/frb_example/dart_minimal/lib/src/rust/frb_generated.dart b/frb_example/dart_minimal/lib/src/rust/frb_generated.dart index e1687a604b..83449d14c7 100644 --- a/frb_example/dart_minimal/lib/src/rust/frb_generated.dart +++ b/frb_example/dart_minimal/lib/src/rust/frb_generated.dart @@ -57,7 +57,7 @@ class RustLib extends BaseEntrypoint { String get codegenVersion => '2.0.0-dev.39'; @override - int get rustContentHash => 1484454083; + int get rustContentHash => 1535573962; static const kDefaultExternalLibraryLoaderConfig = ExternalLibraryLoaderConfig( @@ -69,13 +69,40 @@ class RustLib extends BaseEntrypoint { abstract class RustLibApi extends BaseApi { Future - crateApiMinimalLtNestedTypeWithLifetimeTwinNormalGreetBorrowMutSelfTwinNormal( + crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( {required LtNestedTypeWithLifetimeTwinNormal that}); Future - crateApiMinimalLtNestedTypeWithLifetimeTwinNormalGreetBorrowSelfTwinNormal( + crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormal( {required LtNestedTypeWithLifetimeTwinNormal that}); + Future + crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeArgGenericLifetimeTwinNormal( + {required LtTypeWithLifetimeTwinNormal arg}); + + Future + crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( + {required LtTypeWithLifetimeTwinNormal that}); + + Future + crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormal( + {required LtTypeWithLifetimeTwinNormal that}); + + Future + crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticComputeWithMultiArgHavingLifetimeTwinNormal( + {required LtOwnedStructTwinNormal a, + required LtOwnedStructTwinNormal b, + required LtOwnedStructTwinNormal unrelatedBorrowed, + required LtOwnedStructTwinNormal unrelatedOwned}); + + Future> + crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowMutSelfTwinNormal( + {required LtTypeWithMultiDepTwinNormal that}); + + Future> + crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowSelfTwinNormal( + {required LtTypeWithMultiDepTwinNormal that}); + Future crateApiMinimalLtOwnedStructTwinNormalComputeTypeWithLifetimeTwinNormal( {required LtOwnedStructTwinNormal that}); @@ -100,37 +127,6 @@ abstract class RustLibApi extends BaseApi { Future crateApiMinimalLtSubStructTwinNormalGreetBorrowSelfTwinNormal( {required LtSubStructTwinNormal that}); - Future - crateApiMinimalLtTypeWithLifetimeTwinNormalComputeArgGenericLifetimeTwinNormal( - {required LtTypeWithLifetimeTwinNormal arg}); - - Future - crateApiMinimalLtTypeWithLifetimeTwinNormalComputeNestedTypeWithLifetimeTwinNormal( - {required LtTypeWithLifetimeTwinNormal that}); - - Future - crateApiMinimalLtTypeWithLifetimeTwinNormalGreetBorrowMutSelfTwinNormal( - {required LtTypeWithLifetimeTwinNormal that}); - - Future - crateApiMinimalLtTypeWithLifetimeTwinNormalGreetBorrowSelfTwinNormal( - {required LtTypeWithLifetimeTwinNormal that}); - - Future - crateApiMinimalLtTypeWithMultiDepTwinNormalComputeWithMultiArgHavingLifetimeTwinNormal( - {required LtOwnedStructTwinNormal a, - required LtOwnedStructTwinNormal b, - required LtOwnedStructTwinNormal unrelatedBorrowed, - required LtOwnedStructTwinNormal unrelatedOwned}); - - Future> - crateApiMinimalLtTypeWithMultiDepTwinNormalGreetBorrowMutSelfTwinNormal( - {required LtTypeWithMultiDepTwinNormal that}); - - Future> - crateApiMinimalLtTypeWithMultiDepTwinNormalGreetBorrowSelfTwinNormal( - {required LtTypeWithMultiDepTwinNormal that}); - Future> crateApiMinimalSimpleLoggerGetAndReset( {required SimpleLogger that}); @@ -171,15 +167,6 @@ abstract class RustLibApi extends BaseApi { CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr; - RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_LtNestedTypeWithLifetimeTwinNormal; - - RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormal; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormalPtr; - RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_LtOwnedStructTwinNormal; @@ -198,24 +185,6 @@ abstract class RustLibApi extends BaseApi { CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_LtSubStructTwinNormalPtr; - RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_LtTypeWithLifetimeTwinNormal; - - RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormal; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormalPtr; - - RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_LtTypeWithMultiDepTwinNormal; - - RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormal; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr; - RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_SimpleLogger; @@ -235,12 +204,12 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { @override Future - crateApiMinimalLtNestedTypeWithLifetimeTwinNormalGreetBorrowMutSelfTwinNormal( + crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( {required LtNestedTypeWithLifetimeTwinNormal that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1, port: port_); @@ -250,28 +219,28 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { decodeErrorData: null, ), constMeta: - kCrateApiMinimalLtNestedTypeWithLifetimeTwinNormalGreetBorrowMutSelfTwinNormalConstMeta, + kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormalConstMeta, argValues: [that], apiImpl: this, )); } TaskConstMeta - get kCrateApiMinimalLtNestedTypeWithLifetimeTwinNormalGreetBorrowMutSelfTwinNormalConstMeta => + get kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormalConstMeta => const TaskConstMeta( debugName: - "LtNestedTypeWithLifetimeTwinNormal_greet_borrow_mut_self_twin_normal", + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal", argNames: ["that"], ); @override Future - crateApiMinimalLtNestedTypeWithLifetimeTwinNormalGreetBorrowSelfTwinNormal( + crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormal( {required LtNestedTypeWithLifetimeTwinNormal that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 2, port: port_); @@ -281,29 +250,29 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { decodeErrorData: null, ), constMeta: - kCrateApiMinimalLtNestedTypeWithLifetimeTwinNormalGreetBorrowSelfTwinNormalConstMeta, + kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormalConstMeta, argValues: [that], apiImpl: this, )); } TaskConstMeta - get kCrateApiMinimalLtNestedTypeWithLifetimeTwinNormalGreetBorrowSelfTwinNormalConstMeta => + get kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormalConstMeta => const TaskConstMeta( debugName: - "LtNestedTypeWithLifetimeTwinNormal_greet_borrow_self_twin_normal", + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal", argNames: ["that"], ); @override Future - crateApiMinimalLtOwnedStructTwinNormalComputeTypeWithLifetimeTwinNormal( - {required LtOwnedStructTwinNormal that}) { + crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeArgGenericLifetimeTwinNormal( + {required LtTypeWithLifetimeTwinNormal arg}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - that, serializer); + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 3, port: port_); }, @@ -313,186 +282,194 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { decodeErrorData: null, ), constMeta: - kCrateApiMinimalLtOwnedStructTwinNormalComputeTypeWithLifetimeTwinNormalConstMeta, - argValues: [that], + kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeArgGenericLifetimeTwinNormalConstMeta, + argValues: [arg], apiImpl: this, )); } TaskConstMeta - get kCrateApiMinimalLtOwnedStructTwinNormalComputeTypeWithLifetimeTwinNormalConstMeta => + get kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeArgGenericLifetimeTwinNormalConstMeta => const TaskConstMeta( debugName: - "LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal", - argNames: ["that"], + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal", + argNames: ["arg"], ); @override - Future - crateApiMinimalLtOwnedStructTwinNormalComputeWithUnrelatedBorrowedArgTwinNormal( - {required LtOwnedStructTwinNormal that, - required LtOwnedStructTwinNormal unrelatedBorrowed, - required LtOwnedStructTwinNormal unrelatedOwned}) { + Future + crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( + {required LtTypeWithLifetimeTwinNormal that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( that, serializer); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - unrelatedBorrowed, serializer); - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - unrelatedOwned, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 4, port: port_); }, codec: SseCodec( - decodeSuccessData: - sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic, + decodeSuccessData: sse_decode_String, decodeErrorData: null, ), constMeta: - kCrateApiMinimalLtOwnedStructTwinNormalComputeWithUnrelatedBorrowedArgTwinNormalConstMeta, - argValues: [that, unrelatedBorrowed, unrelatedOwned], + kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormalConstMeta, + argValues: [that], apiImpl: this, )); } TaskConstMeta - get kCrateApiMinimalLtOwnedStructTwinNormalComputeWithUnrelatedBorrowedArgTwinNormalConstMeta => + get kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormalConstMeta => const TaskConstMeta( debugName: - "LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal", - argNames: ["that", "unrelatedBorrowed", "unrelatedOwned"], + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal", + argNames: ["that"], ); @override - Future crateApiMinimalLtOwnedStructTwinNormalCreate( - {required String value}) { + Future + crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormal( + {required LtTypeWithLifetimeTwinNormal that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_String(value, serializer); + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 5, port: port_); }, codec: SseCodec( - decodeSuccessData: - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal, + decodeSuccessData: sse_decode_String, decodeErrorData: null, ), - constMeta: kCrateApiMinimalLtOwnedStructTwinNormalCreateConstMeta, - argValues: [value], + constMeta: + kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormalConstMeta, + argValues: [that], apiImpl: this, )); } - TaskConstMeta get kCrateApiMinimalLtOwnedStructTwinNormalCreateConstMeta => - const TaskConstMeta( - debugName: "LtOwnedStructTwinNormal_create", - argNames: ["value"], - ); + TaskConstMeta + get kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal", + argNames: ["that"], + ); @override - Future - crateApiMinimalLtOwnedStructTwinNormalCreateWithLogger( - {required String value, required SimpleLogger logger}) { + Future + crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticComputeWithMultiArgHavingLifetimeTwinNormal( + {required LtOwnedStructTwinNormal a, + required LtOwnedStructTwinNormal b, + required LtOwnedStructTwinNormal unrelatedBorrowed, + required LtOwnedStructTwinNormal unrelatedOwned}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_String(value, serializer); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - logger, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + a, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + b, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + unrelatedBorrowed, serializer); + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + unrelatedOwned, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 6, port: port_); }, codec: SseCodec( decodeSuccessData: - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal, + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic, decodeErrorData: null, ), constMeta: - kCrateApiMinimalLtOwnedStructTwinNormalCreateWithLoggerConstMeta, - argValues: [value, logger], + kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticComputeWithMultiArgHavingLifetimeTwinNormalConstMeta, + argValues: [a, b, unrelatedBorrowed, unrelatedOwned], apiImpl: this, )); } TaskConstMeta - get kCrateApiMinimalLtOwnedStructTwinNormalCreateWithLoggerConstMeta => + get kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticComputeWithMultiArgHavingLifetimeTwinNormalConstMeta => const TaskConstMeta( - debugName: "LtOwnedStructTwinNormal_create_with_logger", - argNames: ["value", "logger"], + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal", + argNames: ["a", "b", "unrelatedBorrowed", "unrelatedOwned"], ); @override - Future - crateApiMinimalLtSubStructTwinNormalGreetBorrowMutSelfTwinNormal( - {required LtSubStructTwinNormal that}) { + Future> + crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowMutSelfTwinNormal( + {required LtTypeWithMultiDepTwinNormal that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 7, port: port_); }, codec: SseCodec( - decodeSuccessData: sse_decode_String, + decodeSuccessData: sse_decode_list_String, decodeErrorData: null, ), constMeta: - kCrateApiMinimalLtSubStructTwinNormalGreetBorrowMutSelfTwinNormalConstMeta, + kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowMutSelfTwinNormalConstMeta, argValues: [that], apiImpl: this, )); } TaskConstMeta - get kCrateApiMinimalLtSubStructTwinNormalGreetBorrowMutSelfTwinNormalConstMeta => + get kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowMutSelfTwinNormalConstMeta => const TaskConstMeta( debugName: - "LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal", + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal", argNames: ["that"], ); @override - Future crateApiMinimalLtSubStructTwinNormalGreetBorrowSelfTwinNormal( - {required LtSubStructTwinNormal that}) { + Future> + crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowSelfTwinNormal( + {required LtTypeWithMultiDepTwinNormal that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 8, port: port_); }, codec: SseCodec( - decodeSuccessData: sse_decode_String, + decodeSuccessData: sse_decode_list_String, decodeErrorData: null, ), constMeta: - kCrateApiMinimalLtSubStructTwinNormalGreetBorrowSelfTwinNormalConstMeta, + kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowSelfTwinNormalConstMeta, argValues: [that], apiImpl: this, )); } TaskConstMeta - get kCrateApiMinimalLtSubStructTwinNormalGreetBorrowSelfTwinNormalConstMeta => + get kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowSelfTwinNormalConstMeta => const TaskConstMeta( - debugName: "LtSubStructTwinNormal_greet_borrow_self_twin_normal", + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal", argNames: ["that"], ); @override Future - crateApiMinimalLtTypeWithLifetimeTwinNormalComputeArgGenericLifetimeTwinNormal( - {required LtTypeWithLifetimeTwinNormal arg}) { + crateApiMinimalLtOwnedStructTwinNormalComputeTypeWithLifetimeTwinNormal( + {required LtOwnedStructTwinNormal that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( - arg, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 9, port: port_); }, @@ -502,214 +479,174 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { decodeErrorData: null, ), constMeta: - kCrateApiMinimalLtTypeWithLifetimeTwinNormalComputeArgGenericLifetimeTwinNormalConstMeta, - argValues: [arg], + kCrateApiMinimalLtOwnedStructTwinNormalComputeTypeWithLifetimeTwinNormalConstMeta, + argValues: [that], apiImpl: this, )); } TaskConstMeta - get kCrateApiMinimalLtTypeWithLifetimeTwinNormalComputeArgGenericLifetimeTwinNormalConstMeta => + get kCrateApiMinimalLtOwnedStructTwinNormalComputeTypeWithLifetimeTwinNormalConstMeta => const TaskConstMeta( debugName: - "LtTypeWithLifetimeTwinNormal_compute_arg_generic_lifetime_twin_normal", - argNames: ["arg"], + "LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal", + argNames: ["that"], ); @override - Future - crateApiMinimalLtTypeWithLifetimeTwinNormalComputeNestedTypeWithLifetimeTwinNormal( - {required LtTypeWithLifetimeTwinNormal that}) { + Future + crateApiMinimalLtOwnedStructTwinNormalComputeWithUnrelatedBorrowedArgTwinNormal( + {required LtOwnedStructTwinNormal that, + required LtOwnedStructTwinNormal unrelatedBorrowed, + required LtOwnedStructTwinNormal unrelatedOwned}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( that, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + unrelatedBorrowed, serializer); + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + unrelatedOwned, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 10, port: port_); }, codec: SseCodec( decodeSuccessData: - sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic, + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic, decodeErrorData: null, ), constMeta: - kCrateApiMinimalLtTypeWithLifetimeTwinNormalComputeNestedTypeWithLifetimeTwinNormalConstMeta, - argValues: [that], + kCrateApiMinimalLtOwnedStructTwinNormalComputeWithUnrelatedBorrowedArgTwinNormalConstMeta, + argValues: [that, unrelatedBorrowed, unrelatedOwned], apiImpl: this, )); } TaskConstMeta - get kCrateApiMinimalLtTypeWithLifetimeTwinNormalComputeNestedTypeWithLifetimeTwinNormalConstMeta => + get kCrateApiMinimalLtOwnedStructTwinNormalComputeWithUnrelatedBorrowedArgTwinNormalConstMeta => const TaskConstMeta( debugName: - "LtTypeWithLifetimeTwinNormal_compute_nested_type_with_lifetime_twin_normal", - argNames: ["that"], + "LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal", + argNames: ["that", "unrelatedBorrowed", "unrelatedOwned"], ); @override - Future - crateApiMinimalLtTypeWithLifetimeTwinNormalGreetBorrowMutSelfTwinNormal( - {required LtTypeWithLifetimeTwinNormal that}) { + Future crateApiMinimalLtOwnedStructTwinNormalCreate( + {required String value}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - that, serializer); + sse_encode_String(value, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 11, port: port_); }, codec: SseCodec( - decodeSuccessData: sse_decode_String, - decodeErrorData: null, - ), - constMeta: - kCrateApiMinimalLtTypeWithLifetimeTwinNormalGreetBorrowMutSelfTwinNormalConstMeta, - argValues: [that], - apiImpl: this, - )); - } - - TaskConstMeta - get kCrateApiMinimalLtTypeWithLifetimeTwinNormalGreetBorrowMutSelfTwinNormalConstMeta => - const TaskConstMeta( - debugName: - "LtTypeWithLifetimeTwinNormal_greet_borrow_mut_self_twin_normal", - argNames: ["that"], - ); - - @override - Future - crateApiMinimalLtTypeWithLifetimeTwinNormalGreetBorrowSelfTwinNormal( - {required LtTypeWithLifetimeTwinNormal that}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { - final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - that, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 12, port: port_); - }, - codec: SseCodec( - decodeSuccessData: sse_decode_String, + decodeSuccessData: + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal, decodeErrorData: null, ), - constMeta: - kCrateApiMinimalLtTypeWithLifetimeTwinNormalGreetBorrowSelfTwinNormalConstMeta, - argValues: [that], + constMeta: kCrateApiMinimalLtOwnedStructTwinNormalCreateConstMeta, + argValues: [value], apiImpl: this, )); } - TaskConstMeta - get kCrateApiMinimalLtTypeWithLifetimeTwinNormalGreetBorrowSelfTwinNormalConstMeta => - const TaskConstMeta( - debugName: - "LtTypeWithLifetimeTwinNormal_greet_borrow_self_twin_normal", - argNames: ["that"], - ); + TaskConstMeta get kCrateApiMinimalLtOwnedStructTwinNormalCreateConstMeta => + const TaskConstMeta( + debugName: "LtOwnedStructTwinNormal_create", + argNames: ["value"], + ); @override - Future - crateApiMinimalLtTypeWithMultiDepTwinNormalComputeWithMultiArgHavingLifetimeTwinNormal( - {required LtOwnedStructTwinNormal a, - required LtOwnedStructTwinNormal b, - required LtOwnedStructTwinNormal unrelatedBorrowed, - required LtOwnedStructTwinNormal unrelatedOwned}) { + Future + crateApiMinimalLtOwnedStructTwinNormalCreateWithLogger( + {required String value, required SimpleLogger logger}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - a, serializer); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - b, serializer); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - unrelatedBorrowed, serializer); - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - unrelatedOwned, serializer); + sse_encode_String(value, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + logger, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 13, port: port_); + funcId: 12, port: port_); }, codec: SseCodec( decodeSuccessData: - sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic, + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal, decodeErrorData: null, ), constMeta: - kCrateApiMinimalLtTypeWithMultiDepTwinNormalComputeWithMultiArgHavingLifetimeTwinNormalConstMeta, - argValues: [a, b, unrelatedBorrowed, unrelatedOwned], + kCrateApiMinimalLtOwnedStructTwinNormalCreateWithLoggerConstMeta, + argValues: [value, logger], apiImpl: this, )); } TaskConstMeta - get kCrateApiMinimalLtTypeWithMultiDepTwinNormalComputeWithMultiArgHavingLifetimeTwinNormalConstMeta => + get kCrateApiMinimalLtOwnedStructTwinNormalCreateWithLoggerConstMeta => const TaskConstMeta( - debugName: - "LtTypeWithMultiDepTwinNormal_compute_with_multi_arg_having_lifetime_twin_normal", - argNames: ["a", "b", "unrelatedBorrowed", "unrelatedOwned"], + debugName: "LtOwnedStructTwinNormal_create_with_logger", + argNames: ["value", "logger"], ); @override - Future> - crateApiMinimalLtTypeWithMultiDepTwinNormalGreetBorrowMutSelfTwinNormal( - {required LtTypeWithMultiDepTwinNormal that}) { + Future + crateApiMinimalLtSubStructTwinNormalGreetBorrowMutSelfTwinNormal( + {required LtSubStructTwinNormal that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 14, port: port_); + funcId: 13, port: port_); }, codec: SseCodec( - decodeSuccessData: sse_decode_list_String, + decodeSuccessData: sse_decode_String, decodeErrorData: null, ), constMeta: - kCrateApiMinimalLtTypeWithMultiDepTwinNormalGreetBorrowMutSelfTwinNormalConstMeta, + kCrateApiMinimalLtSubStructTwinNormalGreetBorrowMutSelfTwinNormalConstMeta, argValues: [that], apiImpl: this, )); } TaskConstMeta - get kCrateApiMinimalLtTypeWithMultiDepTwinNormalGreetBorrowMutSelfTwinNormalConstMeta => + get kCrateApiMinimalLtSubStructTwinNormalGreetBorrowMutSelfTwinNormalConstMeta => const TaskConstMeta( debugName: - "LtTypeWithMultiDepTwinNormal_greet_borrow_mut_self_twin_normal", + "LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal", argNames: ["that"], ); @override - Future> - crateApiMinimalLtTypeWithMultiDepTwinNormalGreetBorrowSelfTwinNormal( - {required LtTypeWithMultiDepTwinNormal that}) { + Future crateApiMinimalLtSubStructTwinNormalGreetBorrowSelfTwinNormal( + {required LtSubStructTwinNormal that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 15, port: port_); + funcId: 14, port: port_); }, codec: SseCodec( - decodeSuccessData: sse_decode_list_String, + decodeSuccessData: sse_decode_String, decodeErrorData: null, ), constMeta: - kCrateApiMinimalLtTypeWithMultiDepTwinNormalGreetBorrowSelfTwinNormalConstMeta, + kCrateApiMinimalLtSubStructTwinNormalGreetBorrowSelfTwinNormalConstMeta, argValues: [that], apiImpl: this, )); } TaskConstMeta - get kCrateApiMinimalLtTypeWithMultiDepTwinNormalGreetBorrowSelfTwinNormalConstMeta => + get kCrateApiMinimalLtSubStructTwinNormalGreetBorrowSelfTwinNormalConstMeta => const TaskConstMeta( - debugName: - "LtTypeWithMultiDepTwinNormal_greet_borrow_self_twin_normal", + debugName: "LtSubStructTwinNormal_greet_borrow_self_twin_normal", argNames: ["that"], ); @@ -722,7 +659,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 16, port: port_); + funcId: 15, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_String, @@ -745,7 +682,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 17)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 16)!; }, codec: SseCodec( decodeSuccessData: @@ -770,7 +707,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 18, port: port_); + funcId: 17, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -797,7 +734,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 19, port: port_); + funcId: 18, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -826,7 +763,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_i_32(a, serializer); sse_encode_i_32(b, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 20, port: port_); + funcId: 19, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -868,14 +805,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormal => wire .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic; - RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_LtNestedTypeWithLifetimeTwinNormal => - wire.rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_; - - RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormal => - wire.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_; - RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_LtOwnedStructTwinNormal => wire .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal; @@ -892,22 +821,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { get rust_arc_decrement_strong_count_LtSubStructTwinNormal => wire .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal; - RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_LtTypeWithLifetimeTwinNormal => wire - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_; - - RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormal => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_; - - RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_LtTypeWithMultiDepTwinNormal => wire - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_; - - RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormal => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_; - RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_SimpleLogger => wire .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger; @@ -943,15 +856,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { raw); } - @protected - LtNestedTypeWithLifetimeTwinNormal - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return LtNestedTypeWithLifetimeTwinNormalImpl.frbInternalDcoDecode( - raw as List); - } - @protected LtOwnedStructTwinNormal dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -969,24 +873,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return LtSubStructTwinNormalImpl.frbInternalDcoDecode(raw as List); } - @protected - LtTypeWithLifetimeTwinNormal - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return LtTypeWithLifetimeTwinNormalImpl.frbInternalDcoDecode( - raw as List); - } - - @protected - LtTypeWithMultiDepTwinNormal - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return LtTypeWithMultiDepTwinNormalImpl.frbInternalDcoDecode( - raw as List); - } - @protected SimpleLogger dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -995,15 +881,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return SimpleLoggerImpl.frbInternalDcoDecode(raw as List); } - @protected - LtNestedTypeWithLifetimeTwinNormal - dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return LtNestedTypeWithLifetimeTwinNormalImpl.frbInternalDcoDecode( - raw as List); - } - @protected LtSubStructTwinNormal dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( @@ -1013,78 +890,60 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - LtTypeWithLifetimeTwinNormal - dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return LtTypeWithLifetimeTwinNormalImpl.frbInternalDcoDecode( - raw as List); - } - - @protected - LtTypeWithMultiDepTwinNormal - dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + LtOwnedStructTwinNormal + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return LtTypeWithMultiDepTwinNormalImpl.frbInternalDcoDecode( + return LtOwnedStructTwinNormalImpl.frbInternalDcoDecode( raw as List); } @protected - LtNestedTypeWithLifetimeTwinNormal - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + LtSubStructTwinNormal + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return LtNestedTypeWithLifetimeTwinNormalImpl.frbInternalDcoDecode( - raw as List); + return LtSubStructTwinNormalImpl.frbInternalDcoDecode(raw as List); } @protected - LtOwnedStructTwinNormal - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + SimpleLogger + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return LtOwnedStructTwinNormalImpl.frbInternalDcoDecode( - raw as List); + return SimpleLoggerImpl.frbInternalDcoDecode(raw as List); } @protected - LtSubStructTwinNormal - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtNestedTypeWithLifetimeTwinNormal + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return LtSubStructTwinNormalImpl.frbInternalDcoDecode(raw as List); + throw UnimplementedError( + 'Not implemented in this codec, please use the other one'); } @protected LtTypeWithLifetimeTwinNormal - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return LtTypeWithLifetimeTwinNormalImpl.frbInternalDcoDecode( - raw as List); + throw UnimplementedError( + 'Not implemented in this codec, please use the other one'); } @protected LtTypeWithMultiDepTwinNormal - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return LtTypeWithMultiDepTwinNormalImpl.frbInternalDcoDecode( - raw as List); - } - - @protected - SimpleLogger - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return SimpleLoggerImpl.frbInternalDcoDecode(raw as List); + throw UnimplementedError( + 'Not implemented in this codec, please use the other one'); } @protected LtNestedTypeWithLifetimeTwinNormal - dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs throw UnimplementedError( @@ -1093,7 +952,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { @protected LtTypeWithLifetimeTwinNormal - dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs throw UnimplementedError( @@ -1102,7 +961,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { @protected LtTypeWithMultiDepTwinNormal - dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs throw UnimplementedError( @@ -1136,15 +995,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { raw as List); } - @protected - LtNestedTypeWithLifetimeTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return LtNestedTypeWithLifetimeTwinNormalImpl.frbInternalDcoDecode( - raw as List); - } - @protected LtOwnedStructTwinNormal dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -1162,24 +1012,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return LtSubStructTwinNormalImpl.frbInternalDcoDecode(raw as List); } - @protected - LtTypeWithLifetimeTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return LtTypeWithLifetimeTwinNormalImpl.frbInternalDcoDecode( - raw as List); - } - - @protected - LtTypeWithMultiDepTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return LtTypeWithMultiDepTwinNormalImpl.frbInternalDcoDecode( - raw as List); - } - @protected SimpleLogger dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -1263,15 +1095,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return inner; } - @protected - LtNestedTypeWithLifetimeTwinNormal - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - return LtNestedTypeWithLifetimeTwinNormalImpl.frbInternalSseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); - } - @protected LtOwnedStructTwinNormal sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -1290,24 +1113,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } - @protected - LtTypeWithLifetimeTwinNormal - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - return LtTypeWithLifetimeTwinNormalImpl.frbInternalSseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); - } - - @protected - LtTypeWithMultiDepTwinNormal - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - return LtTypeWithMultiDepTwinNormalImpl.frbInternalSseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); - } - @protected SimpleLogger sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -1317,15 +1122,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } - @protected - LtNestedTypeWithLifetimeTwinNormal - sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - return LtNestedTypeWithLifetimeTwinNormalImpl.frbInternalSseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); - } - @protected LtSubStructTwinNormal sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( @@ -1336,80 +1132,68 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - LtTypeWithLifetimeTwinNormal - sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - return LtTypeWithLifetimeTwinNormalImpl.frbInternalSseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); - } - - @protected - LtTypeWithMultiDepTwinNormal - sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + LtOwnedStructTwinNormal + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return LtTypeWithMultiDepTwinNormalImpl.frbInternalSseDecode( + return LtOwnedStructTwinNormalImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - LtNestedTypeWithLifetimeTwinNormal - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + LtSubStructTwinNormal + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return LtNestedTypeWithLifetimeTwinNormalImpl.frbInternalSseDecode( + return LtSubStructTwinNormalImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - LtOwnedStructTwinNormal - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + SimpleLogger + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return LtOwnedStructTwinNormalImpl.frbInternalSseDecode( + return SimpleLoggerImpl.frbInternalSseDecode( sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - LtSubStructTwinNormal - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtNestedTypeWithLifetimeTwinNormal + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return LtSubStructTwinNormalImpl.frbInternalSseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + var inner = + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + deserializer); + return inner; } @protected LtTypeWithLifetimeTwinNormal - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return LtTypeWithLifetimeTwinNormalImpl.frbInternalSseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + var inner = + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + deserializer); + return inner; } @protected LtTypeWithMultiDepTwinNormal - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - return LtTypeWithMultiDepTwinNormalImpl.frbInternalSseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); - } - - @protected - SimpleLogger - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return SimpleLoggerImpl.frbInternalSseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + var inner = + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + deserializer); + return inner; } @protected LtNestedTypeWithLifetimeTwinNormal - sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs var inner = @@ -1420,7 +1204,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { @protected LtTypeWithLifetimeTwinNormal - sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs var inner = @@ -1431,7 +1215,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { @protected LtTypeWithMultiDepTwinNormal - sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs var inner = @@ -1467,15 +1251,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } - @protected - LtNestedTypeWithLifetimeTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - return LtNestedTypeWithLifetimeTwinNormalImpl.frbInternalSseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); - } - @protected LtOwnedStructTwinNormal sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -1494,24 +1269,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } - @protected - LtTypeWithLifetimeTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - return LtTypeWithLifetimeTwinNormalImpl.frbInternalSseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); - } - - @protected - LtTypeWithMultiDepTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - return LtTypeWithMultiDepTwinNormalImpl.frbInternalSseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); - } - @protected SimpleLogger sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -1603,17 +1360,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { self, serializer); } - @protected - void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize( - (self as LtNestedTypeWithLifetimeTwinNormalImpl) - .frbInternalSseEncode(move: true), - serializer); - } - @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -1634,28 +1380,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } - @protected - void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - LtTypeWithLifetimeTwinNormal self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize( - (self as LtTypeWithLifetimeTwinNormalImpl) - .frbInternalSseEncode(move: true), - serializer); - } - - @protected - void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - LtTypeWithMultiDepTwinNormal self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize( - (self as LtTypeWithMultiDepTwinNormalImpl) - .frbInternalSseEncode(move: true), - serializer); - } - @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -1666,17 +1390,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } - @protected - void - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize( - (self as LtNestedTypeWithLifetimeTwinNormalImpl) - .frbInternalSseEncode(move: false), - serializer); - } - @protected void sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( @@ -1689,92 +1402,64 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { @protected void - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - LtTypeWithLifetimeTwinNormal self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize( - (self as LtTypeWithLifetimeTwinNormalImpl) - .frbInternalSseEncode(move: false), - serializer); - } - - @protected - void - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - LtTypeWithMultiDepTwinNormal self, SseSerializer serializer) { + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtOwnedStructTwinNormal self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_usize( - (self as LtTypeWithMultiDepTwinNormalImpl) - .frbInternalSseEncode(move: false), + (self as LtOwnedStructTwinNormalImpl).frbInternalSseEncode(move: false), serializer); } @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer) { + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_usize( - (self as LtNestedTypeWithLifetimeTwinNormalImpl) - .frbInternalSseEncode(move: false), + (self as LtSubStructTwinNormalImpl).frbInternalSseEncode(move: false), serializer); } @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - LtOwnedStructTwinNormal self, SseSerializer serializer) { + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_usize( - (self as LtOwnedStructTwinNormalImpl).frbInternalSseEncode(move: false), + (self as SimpleLoggerImpl).frbInternalSseEncode(move: false), serializer); } @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - LtSubStructTwinNormal self, SseSerializer serializer) { + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize( - (self as LtSubStructTwinNormalImpl).frbInternalSseEncode(move: false), - serializer); + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + self, serializer); } @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( LtTypeWithLifetimeTwinNormal self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize( - (self as LtTypeWithLifetimeTwinNormalImpl) - .frbInternalSseEncode(move: false), - serializer); + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + self, serializer); } @protected void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( LtTypeWithMultiDepTwinNormal self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize( - (self as LtTypeWithMultiDepTwinNormalImpl) - .frbInternalSseEncode(move: false), - serializer); - } - - @protected - void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - SimpleLogger self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize( - (self as SimpleLoggerImpl).frbInternalSseEncode(move: false), - serializer); + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + self, serializer); } @protected void - sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( @@ -1783,7 +1468,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { @protected void - sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( LtTypeWithLifetimeTwinNormal self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( @@ -1792,7 +1477,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { @protected void - sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( LtTypeWithMultiDepTwinNormal self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( @@ -1832,17 +1517,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } - @protected - void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize( - (self as LtNestedTypeWithLifetimeTwinNormalImpl) - .frbInternalSseEncode(move: null), - serializer); - } - @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -1863,28 +1537,6 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } - @protected - void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - LtTypeWithLifetimeTwinNormal self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize( - (self as LtTypeWithLifetimeTwinNormalImpl) - .frbInternalSseEncode(move: null), - serializer); - } - - @protected - void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - LtTypeWithMultiDepTwinNormal self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize( - (self as LtTypeWithMultiDepTwinNormalImpl) - .frbInternalSseEncode(move: null), - serializer); - } - @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -1971,45 +1623,12 @@ class LtNestedTypeWithLifetimeTwinNormalImpl extends RustOpaque ); Future greetBorrowMutSelfTwinNormal() => RustLib.instance.api - .crateApiMinimalLtNestedTypeWithLifetimeTwinNormalGreetBorrowMutSelfTwinNormal( - that: this, - ); - - Future greetBorrowSelfTwinNormal() => RustLib.instance.api - .crateApiMinimalLtNestedTypeWithLifetimeTwinNormalGreetBorrowSelfTwinNormal( - that: this, - ); -} - -@sealed -class LtNestedTypeWithLifetimeTwinNormalImpl extends RustOpaque - implements LtNestedTypeWithLifetimeTwinNormal { - // Not to be used by end users - LtNestedTypeWithLifetimeTwinNormalImpl.frbInternalDcoDecode( - List wire) - : super.frbInternalDcoDecode(wire, _kStaticData); - - // Not to be used by end users - LtNestedTypeWithLifetimeTwinNormalImpl.frbInternalSseDecode( - BigInt ptr, int externalSizeOnNative) - : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: RustLib.instance.api - .rust_arc_increment_strong_count_LtNestedTypeWithLifetimeTwinNormal, - rustArcDecrementStrongCount: RustLib.instance.api - .rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormal, - rustArcDecrementStrongCountPtr: RustLib.instance.api - .rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormalPtr, - ); - - Future greetBorrowMutSelfTwinNormal() => RustLib.instance.api - .crateApiMinimalLtNestedTypeWithLifetimeTwinNormalGreetBorrowMutSelfTwinNormal( + .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( that: this, ); Future greetBorrowSelfTwinNormal() => RustLib.instance.api - .crateApiMinimalLtNestedTypeWithLifetimeTwinNormalGreetBorrowSelfTwinNormal( + .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormal( that: this, ); } @@ -2107,95 +1726,15 @@ class LtTypeWithLifetimeTwinNormalImpl extends RustOpaque .rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormalPtr, ); - /// Input lifetimeable and output another lifetimeable - Future - computeNestedTypeWithLifetimeTwinNormal() => RustLib.instance.api - .crateApiMinimalLtTypeWithLifetimeTwinNormalComputeNestedTypeWithLifetimeTwinNormal( - that: this, - ); - - /// `&mut T` where T is lifetimeable - Future greetBorrowMutSelfTwinNormal() => RustLib.instance.api - .crateApiMinimalLtTypeWithLifetimeTwinNormalGreetBorrowMutSelfTwinNormal( - that: this, - ); - - /// `&T` where T is lifetimeable - Future greetBorrowSelfTwinNormal() => RustLib.instance.api - .crateApiMinimalLtTypeWithLifetimeTwinNormalGreetBorrowSelfTwinNormal( - that: this, - ); -} - -@sealed -class LtTypeWithLifetimeTwinNormalImpl extends RustOpaque - implements LtTypeWithLifetimeTwinNormal { - // Not to be used by end users - LtTypeWithLifetimeTwinNormalImpl.frbInternalDcoDecode(List wire) - : super.frbInternalDcoDecode(wire, _kStaticData); - - // Not to be used by end users - LtTypeWithLifetimeTwinNormalImpl.frbInternalSseDecode( - BigInt ptr, int externalSizeOnNative) - : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: RustLib.instance.api - .rust_arc_increment_strong_count_LtTypeWithLifetimeTwinNormal, - rustArcDecrementStrongCount: RustLib.instance.api - .rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormal, - rustArcDecrementStrongCountPtr: RustLib.instance.api - .rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormalPtr, - ); - - /// Input lifetimeable and output another lifetimeable - Future - computeNestedTypeWithLifetimeTwinNormal() => RustLib.instance.api - .crateApiMinimalLtTypeWithLifetimeTwinNormalComputeNestedTypeWithLifetimeTwinNormal( - that: this, - ); - /// `&mut T` where T is lifetimeable Future greetBorrowMutSelfTwinNormal() => RustLib.instance.api - .crateApiMinimalLtTypeWithLifetimeTwinNormalGreetBorrowMutSelfTwinNormal( + .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( that: this, ); /// `&T` where T is lifetimeable Future greetBorrowSelfTwinNormal() => RustLib.instance.api - .crateApiMinimalLtTypeWithLifetimeTwinNormalGreetBorrowSelfTwinNormal( - that: this, - ); -} - -@sealed -class LtTypeWithMultiDepTwinNormalImpl extends RustOpaque - implements LtTypeWithMultiDepTwinNormal { - // Not to be used by end users - LtTypeWithMultiDepTwinNormalImpl.frbInternalDcoDecode(List wire) - : super.frbInternalDcoDecode(wire, _kStaticData); - - // Not to be used by end users - LtTypeWithMultiDepTwinNormalImpl.frbInternalSseDecode( - BigInt ptr, int externalSizeOnNative) - : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: RustLib.instance.api - .rust_arc_increment_strong_count_LtTypeWithMultiDepTwinNormal, - rustArcDecrementStrongCount: RustLib.instance.api - .rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormal, - rustArcDecrementStrongCountPtr: RustLib.instance.api - .rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr, - ); - - Future> greetBorrowMutSelfTwinNormal() => RustLib.instance.api - .crateApiMinimalLtTypeWithMultiDepTwinNormalGreetBorrowMutSelfTwinNormal( - that: this, - ); - - Future> greetBorrowSelfTwinNormal() => RustLib.instance.api - .crateApiMinimalLtTypeWithMultiDepTwinNormalGreetBorrowSelfTwinNormal( + .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormal( that: this, ); } @@ -2222,12 +1761,12 @@ class LtTypeWithMultiDepTwinNormalImpl extends RustOpaque ); Future> greetBorrowMutSelfTwinNormal() => RustLib.instance.api - .crateApiMinimalLtTypeWithMultiDepTwinNormalGreetBorrowMutSelfTwinNormal( + .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowMutSelfTwinNormal( that: this, ); Future> greetBorrowSelfTwinNormal() => RustLib.instance.api - .crateApiMinimalLtTypeWithMultiDepTwinNormalGreetBorrowSelfTwinNormal( + .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowSelfTwinNormal( that: this, ); } diff --git a/frb_example/dart_minimal/lib/src/rust/frb_generated.io.dart b/frb_example/dart_minimal/lib/src/rust/frb_generated.io.dart index 69455b8cdc..ce97862986 100644 --- a/frb_example/dart_minimal/lib/src/rust/frb_generated.io.dart +++ b/frb_example/dart_minimal/lib/src/rust/frb_generated.io.dart @@ -30,10 +30,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr => wire ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstaticPtr; - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormalPtr => - wire._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_Ptr; - CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_LtOwnedStructTwinNormalPtr => wire ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormalPtr; @@ -42,14 +38,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { get rust_arc_decrement_strong_count_LtSubStructTwinNormalPtr => wire ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormalPtr; - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormalPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_Ptr; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_Ptr; - CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_SimpleLoggerPtr => wire ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLoggerPtr; @@ -69,11 +57,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( dynamic raw); - @protected - LtNestedTypeWithLifetimeTwinNormal - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - dynamic raw); - @protected LtOwnedStructTwinNormal dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -84,46 +67,16 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( dynamic raw); - @protected - LtTypeWithLifetimeTwinNormal - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - dynamic raw); - - @protected - LtTypeWithMultiDepTwinNormal - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - dynamic raw); - @protected SimpleLogger dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( dynamic raw); - @protected - LtNestedTypeWithLifetimeTwinNormal - dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - dynamic raw); - @protected LtSubStructTwinNormal dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( dynamic raw); - @protected - LtTypeWithLifetimeTwinNormal - dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - dynamic raw); - - @protected - LtTypeWithMultiDepTwinNormal - dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - dynamic raw); - - @protected - LtNestedTypeWithLifetimeTwinNormal - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - dynamic raw); - @protected LtOwnedStructTwinNormal dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -134,16 +87,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( dynamic raw); - @protected - LtTypeWithLifetimeTwinNormal - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - dynamic raw); - - @protected - LtTypeWithMultiDepTwinNormal - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - dynamic raw); - @protected SimpleLogger dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -166,42 +109,42 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected LtNestedTypeWithLifetimeTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( dynamic raw); @protected LtTypeWithLifetimeTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( dynamic raw); @protected LtTypeWithMultiDepTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( dynamic raw); @protected LtNestedTypeWithLifetimeTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( dynamic raw); @protected - LtOwnedStructTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtTypeWithLifetimeTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( dynamic raw); @protected - LtSubStructTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtTypeWithMultiDepTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( dynamic raw); @protected - LtTypeWithLifetimeTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + LtOwnedStructTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( dynamic raw); @protected - LtTypeWithMultiDepTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + LtSubStructTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( dynamic raw); @protected @@ -245,11 +188,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( SseDeserializer deserializer); - @protected - LtNestedTypeWithLifetimeTwinNormal - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - SseDeserializer deserializer); - @protected LtOwnedStructTwinNormal sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -260,46 +198,16 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( SseDeserializer deserializer); - @protected - LtTypeWithLifetimeTwinNormal - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - SseDeserializer deserializer); - - @protected - LtTypeWithMultiDepTwinNormal - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - SseDeserializer deserializer); - @protected SimpleLogger sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( SseDeserializer deserializer); - @protected - LtNestedTypeWithLifetimeTwinNormal - sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - SseDeserializer deserializer); - @protected LtSubStructTwinNormal sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( SseDeserializer deserializer); - @protected - LtTypeWithLifetimeTwinNormal - sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - SseDeserializer deserializer); - - @protected - LtTypeWithMultiDepTwinNormal - sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - SseDeserializer deserializer); - - @protected - LtNestedTypeWithLifetimeTwinNormal - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - SseDeserializer deserializer); - @protected LtOwnedStructTwinNormal sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -310,16 +218,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( SseDeserializer deserializer); - @protected - LtTypeWithLifetimeTwinNormal - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - SseDeserializer deserializer); - - @protected - LtTypeWithMultiDepTwinNormal - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - SseDeserializer deserializer); - @protected SimpleLogger sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -342,42 +240,42 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected LtNestedTypeWithLifetimeTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( SseDeserializer deserializer); @protected LtTypeWithLifetimeTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( SseDeserializer deserializer); @protected LtTypeWithMultiDepTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( SseDeserializer deserializer); @protected LtNestedTypeWithLifetimeTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( SseDeserializer deserializer); @protected - LtOwnedStructTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtTypeWithLifetimeTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( SseDeserializer deserializer); @protected - LtSubStructTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtTypeWithMultiDepTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( SseDeserializer deserializer); @protected - LtTypeWithLifetimeTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + LtOwnedStructTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( SseDeserializer deserializer); @protected - LtTypeWithMultiDepTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + LtSubStructTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( SseDeserializer deserializer); @protected @@ -424,11 +322,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); - @protected - void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); - @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -439,46 +332,16 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( LtSubStructTwinNormal self, SseSerializer serializer); - @protected - void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); - @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( SimpleLogger self, SseSerializer serializer); - @protected - void - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); - @protected void sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( LtSubStructTwinNormal self, SseSerializer serializer); - @protected - void - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); - @protected void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -489,16 +352,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( LtSubStructTwinNormal self, SseSerializer serializer); - @protected - void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); - @protected void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -521,43 +374,43 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - LtOwnedStructTwinNormal self, SseSerializer serializer); + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - LtSubStructTwinNormal self, SseSerializer serializer); + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtOwnedStructTwinNormal self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer); @protected void @@ -700,38 +553,6 @@ class RustLibWire implements BaseWire { _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstaticPtr .asFunction)>(); - void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - ffi.Pointer ptr, - ) { - return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - ptr, - ); - } - - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_Ptr = - _lookup)>>( - 'frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_'); - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_ = - _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_Ptr - .asFunction)>(); - - void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - ffi.Pointer ptr, - ) { - return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - ptr, - ); - } - - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_Ptr = - _lookup)>>( - 'frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_'); - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_ = - _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_Ptr - .asFunction)>(); - void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( ffi.Pointer ptr, @@ -796,70 +617,6 @@ class RustLibWire implements BaseWire { _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormalPtr .asFunction)>(); - void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - ffi.Pointer ptr, - ) { - return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - ptr, - ); - } - - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_Ptr = - _lookup)>>( - 'frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_'); - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_ = - _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_Ptr - .asFunction)>(); - - void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - ffi.Pointer ptr, - ) { - return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - ptr, - ); - } - - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_Ptr = - _lookup)>>( - 'frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_'); - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_ = - _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_Ptr - .asFunction)>(); - - void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - ffi.Pointer ptr, - ) { - return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - ptr, - ); - } - - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_Ptr = - _lookup)>>( - 'frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_'); - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_ = - _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_Ptr - .asFunction)>(); - - void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - ffi.Pointer ptr, - ) { - return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - ptr, - ); - } - - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_Ptr = - _lookup)>>( - 'frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_'); - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_ = - _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_Ptr - .asFunction)>(); - void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( ffi.Pointer ptr, diff --git a/frb_example/dart_minimal/lib/src/rust/frb_generated.web.dart b/frb_example/dart_minimal/lib/src/rust/frb_generated.web.dart index fdbb5bce35..6a530b29e6 100644 --- a/frb_example/dart_minimal/lib/src/rust/frb_generated.web.dart +++ b/frb_example/dart_minimal/lib/src/rust/frb_generated.web.dart @@ -32,10 +32,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr => wire .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic; - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormalPtr => - wire.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_; - CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_LtOwnedStructTwinNormalPtr => wire .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal; @@ -44,14 +40,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { get rust_arc_decrement_strong_count_LtSubStructTwinNormalPtr => wire .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal; - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormalPtr => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_; - CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_SimpleLoggerPtr => wire .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger; @@ -71,11 +59,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( dynamic raw); - @protected - LtNestedTypeWithLifetimeTwinNormal - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - dynamic raw); - @protected LtOwnedStructTwinNormal dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -86,46 +69,16 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( dynamic raw); - @protected - LtTypeWithLifetimeTwinNormal - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - dynamic raw); - - @protected - LtTypeWithMultiDepTwinNormal - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - dynamic raw); - @protected SimpleLogger dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( dynamic raw); - @protected - LtNestedTypeWithLifetimeTwinNormal - dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - dynamic raw); - @protected LtSubStructTwinNormal dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( dynamic raw); - @protected - LtTypeWithLifetimeTwinNormal - dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - dynamic raw); - - @protected - LtTypeWithMultiDepTwinNormal - dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - dynamic raw); - - @protected - LtNestedTypeWithLifetimeTwinNormal - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - dynamic raw); - @protected LtOwnedStructTwinNormal dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -136,16 +89,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( dynamic raw); - @protected - LtTypeWithLifetimeTwinNormal - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - dynamic raw); - - @protected - LtTypeWithMultiDepTwinNormal - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - dynamic raw); - @protected SimpleLogger dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -168,42 +111,42 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected LtNestedTypeWithLifetimeTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( dynamic raw); @protected LtTypeWithLifetimeTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( dynamic raw); @protected LtTypeWithMultiDepTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( dynamic raw); @protected LtNestedTypeWithLifetimeTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( dynamic raw); @protected - LtOwnedStructTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtTypeWithLifetimeTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( dynamic raw); @protected - LtSubStructTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtTypeWithMultiDepTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( dynamic raw); @protected - LtTypeWithLifetimeTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + LtOwnedStructTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( dynamic raw); @protected - LtTypeWithMultiDepTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + LtSubStructTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( dynamic raw); @protected @@ -247,11 +190,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( SseDeserializer deserializer); - @protected - LtNestedTypeWithLifetimeTwinNormal - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - SseDeserializer deserializer); - @protected LtOwnedStructTwinNormal sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -262,46 +200,16 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( SseDeserializer deserializer); - @protected - LtTypeWithLifetimeTwinNormal - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - SseDeserializer deserializer); - - @protected - LtTypeWithMultiDepTwinNormal - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - SseDeserializer deserializer); - @protected SimpleLogger sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( SseDeserializer deserializer); - @protected - LtNestedTypeWithLifetimeTwinNormal - sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - SseDeserializer deserializer); - @protected LtSubStructTwinNormal sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( SseDeserializer deserializer); - @protected - LtTypeWithLifetimeTwinNormal - sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - SseDeserializer deserializer); - - @protected - LtTypeWithMultiDepTwinNormal - sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - SseDeserializer deserializer); - - @protected - LtNestedTypeWithLifetimeTwinNormal - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - SseDeserializer deserializer); - @protected LtOwnedStructTwinNormal sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -312,16 +220,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( SseDeserializer deserializer); - @protected - LtTypeWithLifetimeTwinNormal - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - SseDeserializer deserializer); - - @protected - LtTypeWithMultiDepTwinNormal - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - SseDeserializer deserializer); - @protected SimpleLogger sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -344,42 +242,42 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected LtNestedTypeWithLifetimeTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( SseDeserializer deserializer); @protected LtTypeWithLifetimeTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( SseDeserializer deserializer); @protected LtTypeWithMultiDepTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( SseDeserializer deserializer); @protected LtNestedTypeWithLifetimeTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( SseDeserializer deserializer); @protected - LtOwnedStructTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtTypeWithLifetimeTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( SseDeserializer deserializer); @protected - LtSubStructTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtTypeWithMultiDepTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( SseDeserializer deserializer); @protected - LtTypeWithLifetimeTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( + LtOwnedStructTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( SseDeserializer deserializer); @protected - LtTypeWithMultiDepTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( + LtSubStructTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( SseDeserializer deserializer); @protected @@ -426,11 +324,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); - @protected - void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); - @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -441,46 +334,16 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( LtSubStructTwinNormal self, SseSerializer serializer); - @protected - void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); - @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( SimpleLogger self, SseSerializer serializer); - @protected - void - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); - @protected void sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( LtSubStructTwinNormal self, SseSerializer serializer); - @protected - void - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); - @protected void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -491,16 +354,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( LtSubStructTwinNormal self, SseSerializer serializer); - @protected - void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); - @protected void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( @@ -523,43 +376,43 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - LtOwnedStructTwinNormal self, SseSerializer serializer); + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - LtSubStructTwinNormal self, SseSerializer serializer); + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtOwnedStructTwinNormal self, SseSerializer serializer); @protected void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer); @protected void @@ -633,18 +486,6 @@ class RustLibWire implements BaseWire { .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( ptr); - void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - int ptr) => - wasmModule - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - ptr); - - void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - int ptr) => - wasmModule - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - ptr); - void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( int ptr) => wasmModule @@ -669,30 +510,6 @@ class RustLibWire implements BaseWire { .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( ptr); - void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - int ptr) => - wasmModule - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - ptr); - - void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - int ptr) => - wasmModule - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - ptr); - - void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - int ptr) => - wasmModule - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - ptr); - - void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - int ptr) => - wasmModule - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - ptr); - void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( int ptr) => wasmModule @@ -736,14 +553,6 @@ extension type RustLibWasmModule._(JSObject _) implements JSObject { rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( int ptr); - external void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - int ptr); - - external void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - int ptr); - external void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( int ptr); @@ -760,22 +569,6 @@ extension type RustLibWasmModule._(JSObject _) implements JSObject { rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( int ptr); - external void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - int ptr); - - external void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - int ptr); - - external void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - int ptr); - - external void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - int ptr); - external void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( int ptr); diff --git a/frb_example/dart_minimal/rust/src/frb_generated.io.rs b/frb_example/dart_minimal/rust/src/frb_generated.io.rs index 707d7f6cf9..5b7eda542c 100644 --- a/frb_example/dart_minimal/rust/src/frb_generated.io.rs +++ b/frb_example/dart_minimal/rust/src/frb_generated.io.rs @@ -79,28 +79,6 @@ pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_coun >::decrement_strong_count(ptr as _); } -#[no_mangle] -pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - ptr: *const std::ffi::c_void, -) { - MoiArc::< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner< - LtNestedTypeWithLifetimeTwinNormal<'_>, - >, - >::increment_strong_count(ptr as _); -} - -#[no_mangle] -pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - ptr: *const std::ffi::c_void, -) { - MoiArc::< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner< - LtNestedTypeWithLifetimeTwinNormal<'_>, - >, - >::decrement_strong_count(ptr as _); -} - #[no_mangle] pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( ptr: *const std::ffi::c_void, @@ -129,42 +107,6 @@ pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_coun MoiArc::>::decrement_strong_count(ptr as _); } -#[no_mangle] -pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - ptr: *const std::ffi::c_void, -) { - MoiArc::< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner>, - >::increment_strong_count(ptr as _); -} - -#[no_mangle] -pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - ptr: *const std::ffi::c_void, -) { - MoiArc::< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner>, - >::decrement_strong_count(ptr as _); -} - -#[no_mangle] -pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - ptr: *const std::ffi::c_void, -) { - MoiArc::< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner>, - >::increment_strong_count(ptr as _); -} - -#[no_mangle] -pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - ptr: *const std::ffi::c_void, -) { - MoiArc::< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner>, - >::decrement_strong_count(ptr as _); -} - #[no_mangle] pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( ptr: *const std::ffi::c_void, diff --git a/frb_example/dart_minimal/rust/src/frb_generated.rs b/frb_example/dart_minimal/rust/src/frb_generated.rs index f542aa2fef..6cfa499e7c 100644 --- a/frb_example/dart_minimal/rust/src/frb_generated.rs +++ b/frb_example/dart_minimal/rust/src/frb_generated.rs @@ -34,7 +34,7 @@ flutter_rust_bridge::frb_generated_boilerplate!( default_rust_auto_opaque = RustAutoOpaqueMoi, ); pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.0.0-dev.39"; -pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = 1484454083; +pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = 1535573962; // Section: executor @@ -42,40 +42,208 @@ flutter_rust_bridge::frb_generated_default_handler!(); // Section: wire_funcs -fn wire__crate__api__minimal__LtNestedTypeWithLifetimeTwinNormal_greet_borrow_mut_self_twin_normal_impl( +fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, rust_vec_len_: i32, data_len_: i32, ) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtNestedTypeWithLifetimeTwinNormal_greet_borrow_mut_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_that = >>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { transform_result_sse::<_, ()>((move || { let mut api_that_guard = None; -let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true)]); +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); for i in decode_indices_ { match i { - 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), _ => unreachable!(), } } - let mut api_that_guard = api_that_guard.unwrap(); - let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtNestedTypeWithLifetimeTwinNormal ::greet_borrow_mut_self_twin_normal(&mut *api_that_guard))?; Ok(output_ok) + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtNestedTypeWithLifetimeTwinNormal ::greet_borrow_mut_self_twin_normal(&*api_that_guard))?; Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtNestedTypeWithLifetimeTwinNormal ::greet_borrow_self_twin_normal(&*&api_that_guard))?; Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_arg = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let api_arg_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg) + };let mut api_arg_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_arg, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_arg_guard = Some(api_arg_illegal_static_ref.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_arg_guard = api_arg_guard.unwrap(); +let api_arg_guard = Arc::new(api_arg_guard); + let api_arg_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg_guard) + }; let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithLifetimeTwinNormal ::compute_arg_generic_lifetime_twin_normal(&*api_arg_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(flutter_rust_bridge::for_generated::Lifetimeable::new(output_ok, vec![Box::new(api_arg.clone()), Box::new(api_arg_guard.clone())])); Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithLifetimeTwinNormal ::greet_borrow_mut_self_twin_normal(&*api_that_guard))?; Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithLifetimeTwinNormal ::greet_borrow_self_twin_normal(&*&api_that_guard))?; Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_a = >>::sse_decode(&mut deserializer); +let api_b = >>::sse_decode(&mut deserializer); +let api_unrelated_borrowed = >>::sse_decode(&mut deserializer); +let api_unrelated_owned = ::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let api_a_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_a) + };let api_b_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_b) + };let mut api_a_guard = None; +let mut api_b_guard = None; +let mut api_unrelated_borrowed_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_a, 0, false), flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_b, 1, false), flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_unrelated_borrowed, 2, false)]); + for i in decode_indices_ { + match i { + 0 => api_a_guard = Some(api_a_illegal_static_ref.lockable_decode_sync_ref()), +1 => api_b_guard = Some(api_b_illegal_static_ref.lockable_decode_sync_ref()), +2 => api_unrelated_borrowed_guard = Some(api_unrelated_borrowed.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_a_guard = api_a_guard.unwrap(); +let api_b_guard = api_b_guard.unwrap(); +let api_unrelated_borrowed_guard = api_unrelated_borrowed_guard.unwrap(); +let api_a_guard = Arc::new(api_a_guard); + let api_a_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_a_guard) + };let api_b_guard = Arc::new(api_b_guard); + let api_b_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_b_guard) + }; let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithMultiDepTwinNormal ::compute_with_multi_arg_having_lifetime_twin_normal(&*api_a_guard_illegal_static_ref, &*api_b_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; let output_ok = RustAutoOpaque::new(flutter_rust_bridge::for_generated::Lifetimeable::new(output_ok, vec![Box::new(api_a.clone()), Box::new(api_a_guard.clone()), Box::new(api_b.clone()), Box::new(api_b_guard.clone())])); Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithMultiDepTwinNormal ::greet_borrow_mut_self_twin_normal(&*api_that_guard))?; Ok(output_ok) })()) } }) } -fn wire__crate__api__minimal__LtNestedTypeWithLifetimeTwinNormal_greet_borrow_self_twin_normal_impl( +fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, rust_vec_len_: i32, data_len_: i32, ) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtNestedTypeWithLifetimeTwinNormal_greet_borrow_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_that = >>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { transform_result_sse::<_, ()>((move || { let mut api_that_guard = None; let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); @@ -86,7 +254,7 @@ let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decod } } let api_that_guard = api_that_guard.unwrap(); - let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtNestedTypeWithLifetimeTwinNormal ::greet_borrow_self_twin_normal(&*api_that_guard))?; Ok(output_ok) + let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithMultiDepTwinNormal ::greet_borrow_self_twin_normal(&*&api_that_guard))?; Ok(output_ok) })()) } }) } @@ -241,246 +409,20 @@ fn wire__crate__api__minimal__LtOwnedStructTwinNormal_create_with_logger_impl( )?; Ok(output_ok) })()) - } - }, - ) -} -fn wire__crate__api__minimal__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, - rust_vec_len_: i32, - data_len_: i32, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { - let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; - let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_that = >>::sse_decode(&mut deserializer);deserializer.end(); move |context| { - transform_result_sse::<_, ()>((move || { - let mut api_that_guard = None; -let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true)]); - for i in decode_indices_ { - match i { - 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), - _ => unreachable!(), - } - } - let mut api_that_guard = api_that_guard.unwrap(); - let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtSubStructTwinNormal::greet_borrow_mut_self_twin_normal(&mut *api_that_guard))?; Ok(output_ok) - })()) - } }) -} -fn wire__crate__api__minimal__LtSubStructTwinNormal_greet_borrow_self_twin_normal_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, - rust_vec_len_: i32, - data_len_: i32, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( - flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "LtSubStructTwinNormal_greet_borrow_self_twin_normal", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, - }, - move || { - let message = unsafe { - flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire( - ptr_, - rust_vec_len_, - data_len_, - ) - }; - let mut deserializer = - flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_that = , - >>::sse_decode(&mut deserializer); - deserializer.end(); - move |context| { - transform_result_sse::<_, ()>((move || { - let mut api_that_guard = None; - let decode_indices_ = - flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ - flutter_rust_bridge::for_generated::LockableOrderInfo::new( - &api_that, 0, false, - ), - ]); - for i in decode_indices_ { - match i { - 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), - _ => unreachable!(), - } - } - let api_that_guard = api_that_guard.unwrap(); - let output_ok = Result::<_, ()>::Ok( - crate::api::minimal::LtSubStructTwinNormal::greet_borrow_self_twin_normal( - &*api_that_guard, - ), - )?; - Ok(output_ok) - })()) - } - }, - ) -} -fn wire__crate__api__minimal__LtTypeWithLifetimeTwinNormal_compute_arg_generic_lifetime_twin_normal_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, - rust_vec_len_: i32, - data_len_: i32, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtTypeWithLifetimeTwinNormal_compute_arg_generic_lifetime_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { - let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; - let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_arg = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { - transform_result_sse::<_, ()>((move || { - let api_arg_illegal_static_ref = unsafe { - flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg) - };let mut api_arg_guard = None; -let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_arg, 0, false)]); - for i in decode_indices_ { - match i { - 0 => api_arg_guard = Some(api_arg_illegal_static_ref.lockable_decode_sync_ref()), - _ => unreachable!(), - } - } - let api_arg_guard = api_arg_guard.unwrap(); -let api_arg_guard = Arc::new(api_arg_guard); - let api_arg_guard_illegal_static_ref = unsafe { - flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithLifetimeTwinNormal ::compute_arg_generic_lifetime_twin_normal(&*api_arg_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(flutter_rust_bridge::for_generated::Lifetimeable::new(output_ok, vec![Box::new(api_arg.clone()), Box::new(api_arg_guard.clone())])); Ok(output_ok) - })()) - } }) -} -fn wire__crate__api__minimal__LtTypeWithLifetimeTwinNormal_compute_nested_type_with_lifetime_twin_normal_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, - rust_vec_len_: i32, - data_len_: i32, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtTypeWithLifetimeTwinNormal_compute_nested_type_with_lifetime_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { - let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; - let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_that = >>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { - transform_result_sse::<_, ()>((move || { - let api_that_illegal_static_ref = unsafe { - flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that) - };let mut api_that_guard = None; -let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); - for i in decode_indices_ { - match i { - 0 => api_that_guard = Some(api_that_illegal_static_ref.lockable_decode_sync_ref()), - _ => unreachable!(), - } - } - let api_that_guard = api_that_guard.unwrap(); -let api_that_guard = Arc::new(api_that_guard); - let api_that_guard_illegal_static_ref = unsafe { - flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithLifetimeTwinNormal ::compute_nested_type_with_lifetime_twin_normal(&*api_that_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(flutter_rust_bridge::for_generated::Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) - })()) - } }) -} -fn wire__crate__api__minimal__LtTypeWithLifetimeTwinNormal_greet_borrow_mut_self_twin_normal_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, - rust_vec_len_: i32, - data_len_: i32, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtTypeWithLifetimeTwinNormal_greet_borrow_mut_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { - let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; - let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_that = >>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { - transform_result_sse::<_, ()>((move || { - let mut api_that_guard = None; -let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true)]); - for i in decode_indices_ { - match i { - 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), - _ => unreachable!(), - } - } - let mut api_that_guard = api_that_guard.unwrap(); - let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithLifetimeTwinNormal ::greet_borrow_mut_self_twin_normal(&mut *api_that_guard))?; Ok(output_ok) - })()) - } }) -} -fn wire__crate__api__minimal__LtTypeWithLifetimeTwinNormal_greet_borrow_self_twin_normal_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, - rust_vec_len_: i32, - data_len_: i32, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtTypeWithLifetimeTwinNormal_greet_borrow_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { - let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; - let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_that = >>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { - transform_result_sse::<_, ()>((move || { - let mut api_that_guard = None; -let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); - for i in decode_indices_ { - match i { - 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), - _ => unreachable!(), - } - } - let api_that_guard = api_that_guard.unwrap(); - let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithLifetimeTwinNormal ::greet_borrow_self_twin_normal(&*api_that_guard))?; Ok(output_ok) - })()) - } }) -} -fn wire__crate__api__minimal__LtTypeWithMultiDepTwinNormal_compute_with_multi_arg_having_lifetime_twin_normal_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, - rust_vec_len_: i32, - data_len_: i32, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtTypeWithMultiDepTwinNormal_compute_with_multi_arg_having_lifetime_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { - let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; - let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_a = >>::sse_decode(&mut deserializer); -let api_b = >>::sse_decode(&mut deserializer); -let api_unrelated_borrowed = >>::sse_decode(&mut deserializer); -let api_unrelated_owned = ::sse_decode(&mut deserializer);deserializer.end(); move |context| { - transform_result_sse::<_, ()>((move || { - let api_a_illegal_static_ref = unsafe { - flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_a) - };let api_b_illegal_static_ref = unsafe { - flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_b) - };let mut api_a_guard = None; -let mut api_b_guard = None; -let mut api_unrelated_borrowed_guard = None; -let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_a, 0, false), flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_b, 1, false), flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_unrelated_borrowed, 2, false)]); - for i in decode_indices_ { - match i { - 0 => api_a_guard = Some(api_a_illegal_static_ref.lockable_decode_sync_ref()), -1 => api_b_guard = Some(api_b_illegal_static_ref.lockable_decode_sync_ref()), -2 => api_unrelated_borrowed_guard = Some(api_unrelated_borrowed.lockable_decode_sync_ref()), - _ => unreachable!(), - } - } - let api_a_guard = api_a_guard.unwrap(); -let api_b_guard = api_b_guard.unwrap(); -let api_unrelated_borrowed_guard = api_unrelated_borrowed_guard.unwrap(); -let api_a_guard = Arc::new(api_a_guard); - let api_a_guard_illegal_static_ref = unsafe { - flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_a_guard) - };let api_b_guard = Arc::new(api_b_guard); - let api_b_guard_illegal_static_ref = unsafe { - flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_b_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithMultiDepTwinNormal ::compute_with_multi_arg_having_lifetime_twin_normal(&*api_a_guard_illegal_static_ref, &*api_b_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; let output_ok = RustAutoOpaque::new(flutter_rust_bridge::for_generated::Lifetimeable::new(output_ok, vec![Box::new(api_a.clone()), Box::new(api_a_guard.clone()), Box::new(api_b.clone()), Box::new(api_b_guard.clone())])); Ok(output_ok) - })()) - } }) + } + }, + ) } -fn wire__crate__api__minimal__LtTypeWithMultiDepTwinNormal_greet_borrow_mut_self_twin_normal_impl( +fn wire__crate__api__minimal__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, rust_vec_len_: i32, data_len_: i32, ) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtTypeWithMultiDepTwinNormal_greet_borrow_mut_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_that = >>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + let api_that = >>::sse_decode(&mut deserializer);deserializer.end(); move |context| { transform_result_sse::<_, ()>((move || { let mut api_that_guard = None; let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true)]); @@ -491,33 +433,62 @@ let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decod } } let mut api_that_guard = api_that_guard.unwrap(); - let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithMultiDepTwinNormal ::greet_borrow_mut_self_twin_normal(&mut *api_that_guard))?; Ok(output_ok) + let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtSubStructTwinNormal::greet_borrow_mut_self_twin_normal(&mut *api_that_guard))?; Ok(output_ok) })()) } }) } -fn wire__crate__api__minimal__LtTypeWithMultiDepTwinNormal_greet_borrow_self_twin_normal_impl( +fn wire__crate__api__minimal__LtSubStructTwinNormal_greet_borrow_self_twin_normal_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, rust_vec_len_: i32, data_len_: i32, ) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtTypeWithMultiDepTwinNormal_greet_borrow_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { - let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; - let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_that = >>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { - transform_result_sse::<_, ()>((move || { - let mut api_that_guard = None; -let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); - for i in decode_indices_ { - match i { - 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), - _ => unreachable!(), + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "LtSubStructTwinNormal_greet_borrow_self_twin_normal", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let message = unsafe { + flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire( + ptr_, + rust_vec_len_, + data_len_, + ) + }; + let mut deserializer = + flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = , + >>::sse_decode(&mut deserializer); + deserializer.end(); + move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_, ()>::Ok( + crate::api::minimal::LtSubStructTwinNormal::greet_borrow_self_twin_normal( + &*api_that_guard, + ), + )?; + Ok(output_ok) + })()) } - } - let api_that_guard = api_that_guard.unwrap(); - let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithMultiDepTwinNormal ::greet_borrow_self_twin_normal(&*api_that_guard))?; Ok(output_ok) - })()) - } }) + }, + ) } fn wire__crate__api__minimal__SimpleLogger_get_and_reset_impl( port_: flutter_rust_bridge::for_generated::MessagePort, @@ -756,21 +727,12 @@ flutter_rust_bridge::frb_generated_moi_arc_impl_value!( Lifetimeable>, > ); -flutter_rust_bridge::frb_generated_moi_arc_impl_value!( - flutter_rust_bridge::for_generated::RustAutoOpaqueInner> -); flutter_rust_bridge::frb_generated_moi_arc_impl_value!( flutter_rust_bridge::for_generated::RustAutoOpaqueInner ); flutter_rust_bridge::frb_generated_moi_arc_impl_value!( flutter_rust_bridge::for_generated::RustAutoOpaqueInner ); -flutter_rust_bridge::frb_generated_moi_arc_impl_value!( - flutter_rust_bridge::for_generated::RustAutoOpaqueInner> -); -flutter_rust_bridge::frb_generated_moi_arc_impl_value!( - flutter_rust_bridge::for_generated::RustAutoOpaqueInner> -); flutter_rust_bridge::frb_generated_moi_arc_impl_value!( flutter_rust_bridge::for_generated::RustAutoOpaqueInner ); @@ -813,18 +775,6 @@ impl SseDecode for RustAutoOpaqueMoi { - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - let mut inner = , - >, - >>::sse_decode(deserializer); - return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); - } -} - impl SseDecode for LtOwnedStructTwinNormal { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -845,30 +795,6 @@ impl SseDecode for LtSubStructTwinNormal { } } -impl SseDecode for LtTypeWithLifetimeTwinNormal<'_> { - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - let mut inner = , - >, - >>::sse_decode(deserializer); - return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); - } -} - -impl SseDecode for LtTypeWithMultiDepTwinNormal<'_> { - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - let mut inner = , - >, - >>::sse_decode(deserializer); - return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); - } -} - impl SseDecode for SimpleLogger { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -921,20 +847,6 @@ impl SseDecode } } -impl SseDecode - for RustOpaqueMoi< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner< - LtNestedTypeWithLifetimeTwinNormal<'_>, - >, - > -{ - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - let mut inner = ::sse_decode(deserializer); - return decode_rust_opaque_moi(inner); - } -} - impl SseDecode for RustOpaqueMoi< flutter_rust_bridge::for_generated::RustAutoOpaqueInner, @@ -959,30 +871,6 @@ impl SseDecode } } -impl SseDecode - for RustOpaqueMoi< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner>, - > -{ - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - let mut inner = ::sse_decode(deserializer); - return decode_rust_opaque_moi(inner); - } -} - -impl SseDecode - for RustOpaqueMoi< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner>, - > -{ - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - let mut inner = ::sse_decode(deserializer); - return decode_rust_opaque_moi(inner); - } -} - impl SseDecode for RustOpaqueMoi> { @@ -1067,25 +955,24 @@ fn pde_ffi_dispatcher_primary_impl( ) { // Codec=Pde (Serialization + dispatch), see doc to use other codecs match func_id { - 1 => wire__crate__api__minimal__LtNestedTypeWithLifetimeTwinNormal_greet_borrow_mut_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), -2 => wire__crate__api__minimal__LtNestedTypeWithLifetimeTwinNormal_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), -3 => wire__crate__api__minimal__LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal_impl(port, ptr, rust_vec_len, data_len), -4 => wire__crate__api__minimal__LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal_impl(port, ptr, rust_vec_len, data_len), -5 => wire__crate__api__minimal__LtOwnedStructTwinNormal_create_impl(port, ptr, rust_vec_len, data_len), -6 => wire__crate__api__minimal__LtOwnedStructTwinNormal_create_with_logger_impl(port, ptr, rust_vec_len, data_len), -7 => wire__crate__api__minimal__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), -8 => wire__crate__api__minimal__LtSubStructTwinNormal_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), -9 => wire__crate__api__minimal__LtTypeWithLifetimeTwinNormal_compute_arg_generic_lifetime_twin_normal_impl(port, ptr, rust_vec_len, data_len), -10 => wire__crate__api__minimal__LtTypeWithLifetimeTwinNormal_compute_nested_type_with_lifetime_twin_normal_impl(port, ptr, rust_vec_len, data_len), -11 => wire__crate__api__minimal__LtTypeWithLifetimeTwinNormal_greet_borrow_mut_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), -12 => wire__crate__api__minimal__LtTypeWithLifetimeTwinNormal_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), -13 => wire__crate__api__minimal__LtTypeWithMultiDepTwinNormal_compute_with_multi_arg_having_lifetime_twin_normal_impl(port, ptr, rust_vec_len, data_len), -14 => wire__crate__api__minimal__LtTypeWithMultiDepTwinNormal_greet_borrow_mut_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), -15 => wire__crate__api__minimal__LtTypeWithMultiDepTwinNormal_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), -16 => wire__crate__api__minimal__SimpleLogger_get_and_reset_impl(port, ptr, rust_vec_len, data_len), -18 => wire__crate__api__minimal__init_app_impl(port, ptr, rust_vec_len, data_len), -19 => wire__crate__api__minimal__lt_compute_with_lifetime_function_twin_normal_impl(port, ptr, rust_vec_len, data_len), -20 => wire__crate__api__minimal__minimal_adder_impl(port, ptr, rust_vec_len, data_len), + 1 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +2 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +3 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal_impl(port, ptr, rust_vec_len, data_len), +4 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +5 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +6 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal_impl(port, ptr, rust_vec_len, data_len), +7 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +8 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +9 => wire__crate__api__minimal__LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal_impl(port, ptr, rust_vec_len, data_len), +10 => wire__crate__api__minimal__LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal_impl(port, ptr, rust_vec_len, data_len), +11 => wire__crate__api__minimal__LtOwnedStructTwinNormal_create_impl(port, ptr, rust_vec_len, data_len), +12 => wire__crate__api__minimal__LtOwnedStructTwinNormal_create_with_logger_impl(port, ptr, rust_vec_len, data_len), +13 => wire__crate__api__minimal__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +14 => wire__crate__api__minimal__LtSubStructTwinNormal_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +15 => wire__crate__api__minimal__SimpleLogger_get_and_reset_impl(port, ptr, rust_vec_len, data_len), +17 => wire__crate__api__minimal__init_app_impl(port, ptr, rust_vec_len, data_len), +18 => wire__crate__api__minimal__lt_compute_with_lifetime_function_twin_normal_impl(port, ptr, rust_vec_len, data_len), +19 => wire__crate__api__minimal__minimal_adder_impl(port, ptr, rust_vec_len, data_len), _ => unreachable!(), } } @@ -1098,33 +985,13 @@ fn pde_ffi_dispatcher_sync_impl( ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { // Codec=Pde (Serialization + dispatch), see doc to use other codecs match func_id { - 17 => wire__crate__api__minimal__SimpleLogger_new_impl(ptr, rust_vec_len, data_len), + 16 => wire__crate__api__minimal__SimpleLogger_new_impl(ptr, rust_vec_len, data_len), _ => unreachable!(), } } // Section: rust2dart -// Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for FrbWrapper> { - fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { - flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self.0) - .into_dart() - } -} -impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive - for FrbWrapper> -{ -} - -impl flutter_rust_bridge::IntoIntoDart>> - for LtNestedTypeWithLifetimeTwinNormal<'_> -{ - fn into_into_dart(self) -> FrbWrapper> { - self.into() - } -} - // Codec=Dco (DartCObject based), see doc to use other codecs impl flutter_rust_bridge::IntoDart for FrbWrapper { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { @@ -1165,46 +1032,6 @@ impl flutter_rust_bridge::IntoIntoDart> } } -// Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for FrbWrapper> { - fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { - flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self.0) - .into_dart() - } -} -impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive - for FrbWrapper> -{ -} - -impl flutter_rust_bridge::IntoIntoDart>> - for LtTypeWithLifetimeTwinNormal<'_> -{ - fn into_into_dart(self) -> FrbWrapper> { - self.into() - } -} - -// Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for FrbWrapper> { - fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { - flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self.0) - .into_dart() - } -} -impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive - for FrbWrapper> -{ -} - -impl flutter_rust_bridge::IntoIntoDart>> - for LtTypeWithMultiDepTwinNormal<'_> -{ - fn into_into_dart(self) -> FrbWrapper> { - self.into() - } -} - // Codec=Dco (DartCObject based), see doc to use other codecs impl flutter_rust_bridge::IntoDart for FrbWrapper { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { @@ -1262,20 +1089,6 @@ impl SseEncode for RustAutoOpaqueMoi { - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - , - >, - >>::sse_encode( - flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self), - serializer, - ); - } -} - impl SseEncode for LtOwnedStructTwinNormal { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -1300,34 +1113,6 @@ impl SseEncode for LtSubStructTwinNormal { } } -impl SseEncode for LtTypeWithLifetimeTwinNormal<'_> { - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - , - >, - >>::sse_encode( - flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self), - serializer, - ); - } -} - -impl SseEncode for LtTypeWithMultiDepTwinNormal<'_> { - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - , - >, - >>::sse_encode( - flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self), - serializer, - ); - } -} - impl SseEncode for SimpleLogger { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -1380,21 +1165,6 @@ impl SseEncode } } -impl SseEncode - for RustOpaqueMoi< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner< - LtNestedTypeWithLifetimeTwinNormal<'_>, - >, - > -{ - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - let (ptr, size) = self.sse_encode_raw(); - ::sse_encode(ptr, serializer); - ::sse_encode(size, serializer); - } -} - impl SseEncode for RustOpaqueMoi< flutter_rust_bridge::for_generated::RustAutoOpaqueInner, @@ -1421,32 +1191,6 @@ impl SseEncode } } -impl SseEncode - for RustOpaqueMoi< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner>, - > -{ - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - let (ptr, size) = self.sse_encode_raw(); - ::sse_encode(ptr, serializer); - ::sse_encode(size, serializer); - } -} - -impl SseEncode - for RustOpaqueMoi< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner>, - > -{ - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - let (ptr, size) = self.sse_encode_raw(); - ::sse_encode(ptr, serializer); - ::sse_encode(size, serializer); - } -} - impl SseEncode for RustOpaqueMoi> { diff --git a/frb_example/dart_minimal/rust/src/frb_generated.web.rs b/frb_example/dart_minimal/rust/src/frb_generated.web.rs index 8e95bcebce..793c3a1131 100644 --- a/frb_example/dart_minimal/rust/src/frb_generated.web.rs +++ b/frb_example/dart_minimal/rust/src/frb_generated.web.rs @@ -81,28 +81,6 @@ pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generat >::decrement_strong_count(ptr as _); } -#[wasm_bindgen] -pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - ptr: *const std::ffi::c_void, -) { - MoiArc::< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner< - LtNestedTypeWithLifetimeTwinNormal<'_>, - >, - >::increment_strong_count(ptr as _); -} - -#[wasm_bindgen] -pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormal_( - ptr: *const std::ffi::c_void, -) { - MoiArc::< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner< - LtNestedTypeWithLifetimeTwinNormal<'_>, - >, - >::decrement_strong_count(ptr as _); -} - #[wasm_bindgen] pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( ptr: *const std::ffi::c_void, @@ -131,42 +109,6 @@ pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generat MoiArc::>::decrement_strong_count(ptr as _); } -#[wasm_bindgen] -pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - ptr: *const std::ffi::c_void, -) { - MoiArc::< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner>, - >::increment_strong_count(ptr as _); -} - -#[wasm_bindgen] -pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormal_( - ptr: *const std::ffi::c_void, -) { - MoiArc::< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner>, - >::decrement_strong_count(ptr as _); -} - -#[wasm_bindgen] -pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - ptr: *const std::ffi::c_void, -) { - MoiArc::< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner>, - >::increment_strong_count(ptr as _); -} - -#[wasm_bindgen] -pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormal_( - ptr: *const std::ffi::c_void, -) { - MoiArc::< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner>, - >::decrement_strong_count(ptr as _); -} - #[wasm_bindgen] pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( ptr: *const std::ffi::c_void, From 02e5704ce1fc80cc5b331a75e85cda732f515492 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:23:10 +0800 Subject: [PATCH 050/117] Revert "feat: more" This reverts commit 5a28708ac66e06aad2c3472f624f8bc5797ce344. --- .../codegen/parser/mir/parser/function/real/lifetime.rs | 4 ++-- .../library/codegen/parser/mir/parser/lifetime_extractor.rs | 5 ++--- .../library/codegen/parser/mir/parser/lifetime_replacer.rs | 2 +- .../src/library/codegen/parser/mir/parser/ty/lifetimeable.rs | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/frb_codegen/src/library/codegen/parser/mir/parser/function/real/lifetime.rs b/frb_codegen/src/library/codegen/parser/mir/parser/function/real/lifetime.rs index d0a5d49701..53771b96d6 100644 --- a/frb_codegen/src/library/codegen/parser/mir/parser/function/real/lifetime.rs +++ b/frb_codegen/src/library/codegen/parser/mir/parser/function/real/lifetime.rs @@ -12,13 +12,13 @@ pub(crate) fn parse_function_lifetime( ) -> anyhow::Result { let inputs_lifetimes = (sig.inputs.iter()) .map(|x| { - Ok(LifetimeExtractor::extract_skipping_static_and_anonymous( + Ok(LifetimeExtractor::extract_skipping_static( &parse_argument_ty_and_name(x, owner)?.0, )) }) .collect::>>()?; let output_lifetimes = match &sig.output { - ReturnType::Type(_, ty) => LifetimeExtractor::extract_skipping_static_and_anonymous(ty), + ReturnType::Type(_, ty) => LifetimeExtractor::extract_skipping_static(ty), ReturnType::Default => vec![], }; diff --git a/frb_codegen/src/library/codegen/parser/mir/parser/lifetime_extractor.rs b/frb_codegen/src/library/codegen/parser/mir/parser/lifetime_extractor.rs index 6bd8fd3cae..510271d2f9 100644 --- a/frb_codegen/src/library/codegen/parser/mir/parser/lifetime_extractor.rs +++ b/frb_codegen/src/library/codegen/parser/mir/parser/lifetime_extractor.rs @@ -5,10 +5,10 @@ use syn::{GenericArgument, Type}; pub(crate) struct LifetimeExtractor; impl LifetimeExtractor { - pub(crate) fn extract_skipping_static_and_anonymous(ty: &Type) -> Vec { + pub(crate) fn extract_skipping_static(ty: &Type) -> Vec { // log::debug!("extract_skipping_static ans={ans:?} ty={ty:?}"); (Self::extract(ty).into_iter()) - .filter(|lifetime| lifetime.0 != LIFETIME_STATIC && lifetime.0 != LIFETIME_ANONYMOUS) + .filter(|lifetime| lifetime.0 != LIFETIME_STATIC) .collect_vec() } @@ -38,7 +38,6 @@ impl LifetimeExtractor { } pub(crate) const LIFETIME_STATIC: &str = "static"; -pub(crate) const LIFETIME_ANONYMOUS: &str = "_"; // TODO maybe move #[derive(Debug, Clone, PartialEq, Eq, Hash)] diff --git a/frb_codegen/src/library/codegen/parser/mir/parser/lifetime_replacer.rs b/frb_codegen/src/library/codegen/parser/mir/parser/lifetime_replacer.rs index 7f9494d1dc..271821af6a 100644 --- a/frb_codegen/src/library/codegen/parser/mir/parser/lifetime_replacer.rs +++ b/frb_codegen/src/library/codegen/parser/mir/parser/lifetime_replacer.rs @@ -6,7 +6,7 @@ use syn::Type; pub(crate) fn replace_all_lifetimes_to_static(ty_str: &str) -> String { let ty: Type = syn::parse_str(ty_str).unwrap(); - let lifetimes = LifetimeExtractor::extract_skipping_static_and_anonymous(&ty); + let lifetimes = LifetimeExtractor::extract_skipping_static(&ty); replace_lifetimes_to_static(ty_str, &lifetimes) } diff --git a/frb_codegen/src/library/codegen/parser/mir/parser/ty/lifetimeable.rs b/frb_codegen/src/library/codegen/parser/mir/parser/ty/lifetimeable.rs index 926d708c25..2b35ea60f3 100644 --- a/frb_codegen/src/library/codegen/parser/mir/parser/ty/lifetimeable.rs +++ b/frb_codegen/src/library/codegen/parser/mir/parser/ty/lifetimeable.rs @@ -20,7 +20,7 @@ impl<'a, 'b, 'c> TypeParserWithContext<'a, 'b, 'c> { let ty_str = &original.raw.string.with_original_lifetime(); let ty: Type = syn::parse_str(ty_str)?; - let lifetimes = LifetimeExtractor::extract_skipping_static_and_anonymous(&ty); + let lifetimes = LifetimeExtractor::extract_skipping_static(&ty); if lifetimes.is_empty() { return Ok(MirType::RustAutoOpaqueImplicit(original)); } From 359383e62c246ec635a5e6828b60c95b3fbd530e Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:23:56 +0800 Subject: [PATCH 051/117] refactor: fn --- .../codegen/parser/mir/parser/lifetime_extractor.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frb_codegen/src/library/codegen/parser/mir/parser/lifetime_extractor.rs b/frb_codegen/src/library/codegen/parser/mir/parser/lifetime_extractor.rs index 510271d2f9..e95173db87 100644 --- a/frb_codegen/src/library/codegen/parser/mir/parser/lifetime_extractor.rs +++ b/frb_codegen/src/library/codegen/parser/mir/parser/lifetime_extractor.rs @@ -8,7 +8,7 @@ impl LifetimeExtractor { pub(crate) fn extract_skipping_static(ty: &Type) -> Vec { // log::debug!("extract_skipping_static ans={ans:?} ty={ty:?}"); (Self::extract(ty).into_iter()) - .filter(|lifetime| lifetime.0 != LIFETIME_STATIC) + .filter(|lifetime| !lifetime.is_static()) .collect_vec() } @@ -43,6 +43,12 @@ pub(crate) const LIFETIME_STATIC: &str = "static"; #[derive(Debug, Clone, PartialEq, Eq, Hash)] pub(crate) struct Lifetime(pub String); +impl Lifetime { + pub(crate) fn is_static(&self) -> bool { + self.0 == LIFETIME_STATIC + } +} + impl From<&syn::Lifetime> for Lifetime { fn from(value: &syn::Lifetime) -> Self { Self(value.ident.to_string()) From 438fb78f70efcb679adfb1a877a2af8e382fe8b6 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:24:11 +0800 Subject: [PATCH 052/117] feat: more --- .../library/codegen/parser/mir/parser/lifetime_extractor.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frb_codegen/src/library/codegen/parser/mir/parser/lifetime_extractor.rs b/frb_codegen/src/library/codegen/parser/mir/parser/lifetime_extractor.rs index e95173db87..c9c8acefeb 100644 --- a/frb_codegen/src/library/codegen/parser/mir/parser/lifetime_extractor.rs +++ b/frb_codegen/src/library/codegen/parser/mir/parser/lifetime_extractor.rs @@ -38,6 +38,7 @@ impl LifetimeExtractor { } pub(crate) const LIFETIME_STATIC: &str = "static"; +pub(crate) const LIFETIME_ANONYMOUS: &str = "_"; // TODO maybe move #[derive(Debug, Clone, PartialEq, Eq, Hash)] @@ -47,6 +48,10 @@ impl Lifetime { pub(crate) fn is_static(&self) -> bool { self.0 == LIFETIME_STATIC } + + pub(crate) fn is_anonymous(&self) -> bool { + self.0 == LIFETIME_ANONYMOUS + } } impl From<&syn::Lifetime> for Lifetime { From 45e57dc24e08bd11bc26e432c830ae8e5252a094 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:25:10 +0800 Subject: [PATCH 053/117] feat: parse_function_lifetime skip anonymous --- .../parser/mir/parser/function/real/lifetime.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/frb_codegen/src/library/codegen/parser/mir/parser/function/real/lifetime.rs b/frb_codegen/src/library/codegen/parser/mir/parser/function/real/lifetime.rs index 53771b96d6..c239d0acf0 100644 --- a/frb_codegen/src/library/codegen/parser/mir/parser/function/real/lifetime.rs +++ b/frb_codegen/src/library/codegen/parser/mir/parser/function/real/lifetime.rs @@ -4,7 +4,7 @@ use crate::codegen::parser::mir::parser::lifetime_extractor::{Lifetime, Lifetime use anyhow::ensure; use itertools::Itertools; use std::collections::HashSet; -use syn::{ReturnType, Signature}; +use syn::{ReturnType, Signature, Type}; pub(crate) fn parse_function_lifetime( sig: &Signature, @@ -12,13 +12,13 @@ pub(crate) fn parse_function_lifetime( ) -> anyhow::Result { let inputs_lifetimes = (sig.inputs.iter()) .map(|x| { - Ok(LifetimeExtractor::extract_skipping_static( + Ok(extract_lifetime_skipping_static_and_anonymous( &parse_argument_ty_and_name(x, owner)?.0, )) }) .collect::>>()?; let output_lifetimes = match &sig.output { - ReturnType::Type(_, ty) => LifetimeExtractor::extract_skipping_static(ty), + ReturnType::Type(_, ty) => extract_lifetime_skipping_static_and_anonymous(ty), ReturnType::Default => vec![], }; @@ -37,6 +37,12 @@ pub(crate) fn parse_function_lifetime( Ok(ans) } +fn extract_lifetime_skipping_static_and_anonymous(ty: &Type) -> Vec { + (LifetimeExtractor::extract_skipping_static(ty).into_iter()) + .filter(|x| !x.is_anonymous()) + .collect_vec() +} + fn ensure_one_lifetime( inputs_lifetimes: &[Vec], output_lifetimes: &[Lifetime], From 153c2179609f8485614bc75b925add2d899bfed9 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:25:45 +0800 Subject: [PATCH 054/117] chore: codegen --- .../lib/src/rust/api/minimal.dart | 5 +- .../lib/src/rust/frb_generated.dart | 77 +++++++++++++++---- .../dart_minimal/rust/src/frb_generated.rs | 64 +++++++++++---- 3 files changed, 111 insertions(+), 35 deletions(-) diff --git a/frb_example/dart_minimal/lib/src/rust/api/minimal.dart b/frb_example/dart_minimal/lib/src/rust/api/minimal.dart index bfb8aa0e71..b580ebe47c 100644 --- a/frb_example/dart_minimal/lib/src/rust/api/minimal.dart +++ b/frb_example/dart_minimal/lib/src/rust/api/minimal.dart @@ -7,7 +7,6 @@ import '../frb_generated.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; // These functions are ignored because they are not marked as `pub`: `log` -// These functions have error during generation (see debug logs or enable `stop_on_error: true` for more details): `compute_nested_type_with_lifetime_twin_normal` Future minimalAdder({required int a, required int b}) => RustLib.instance.api.crateApiMinimalMinimalAdder(a: a, b: b); @@ -36,6 +35,10 @@ abstract class LtTypeWithLifetimeTwinNormal implements RustOpaqueInterface { .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeArgGenericLifetimeTwinNormal( arg: arg); + /// Input lifetimeable and output another lifetimeable + Future + computeNestedTypeWithLifetimeTwinNormal(); + /// `&mut T` where T is lifetimeable Future greetBorrowMutSelfTwinNormal(); diff --git a/frb_example/dart_minimal/lib/src/rust/frb_generated.dart b/frb_example/dart_minimal/lib/src/rust/frb_generated.dart index 83449d14c7..9c6f1c4577 100644 --- a/frb_example/dart_minimal/lib/src/rust/frb_generated.dart +++ b/frb_example/dart_minimal/lib/src/rust/frb_generated.dart @@ -57,7 +57,7 @@ class RustLib extends BaseEntrypoint { String get codegenVersion => '2.0.0-dev.39'; @override - int get rustContentHash => 1535573962; + int get rustContentHash => 660839085; static const kDefaultExternalLibraryLoaderConfig = ExternalLibraryLoaderConfig( @@ -80,6 +80,10 @@ abstract class RustLibApi extends BaseApi { crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeArgGenericLifetimeTwinNormal( {required LtTypeWithLifetimeTwinNormal arg}); + Future + crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeNestedTypeWithLifetimeTwinNormal( + {required LtTypeWithLifetimeTwinNormal that}); + Future crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( {required LtTypeWithLifetimeTwinNormal that}); @@ -296,6 +300,38 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { argNames: ["arg"], ); + @override + Future + crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeNestedTypeWithLifetimeTwinNormal( + {required LtTypeWithLifetimeTwinNormal that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + that, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 4, port: port_); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic, + decodeErrorData: null, + ), + constMeta: + kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeNestedTypeWithLifetimeTwinNormalConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeNestedTypeWithLifetimeTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_nested_type_with_lifetime_twin_normal", + argNames: ["that"], + ); + @override Future crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( @@ -306,7 +342,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 4, port: port_); + funcId: 5, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -337,7 +373,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 5, port: port_); + funcId: 6, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -377,7 +413,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( unrelatedOwned, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 6, port: port_); + funcId: 7, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -409,7 +445,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 7, port: port_); + funcId: 8, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_String, @@ -440,7 +476,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 8, port: port_); + funcId: 9, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_String, @@ -471,7 +507,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 9, port: port_); + funcId: 10, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -509,7 +545,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( unrelatedOwned, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 10, port: port_); + funcId: 11, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -539,7 +575,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_String(value, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 11, port: port_); + funcId: 12, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -569,7 +605,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( logger, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 12, port: port_); + funcId: 13, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -600,7 +636,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 13, port: port_); + funcId: 14, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -630,7 +666,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 14, port: port_); + funcId: 15, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -659,7 +695,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 15, port: port_); + funcId: 16, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_String, @@ -682,7 +718,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 16)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 17)!; }, codec: SseCodec( decodeSuccessData: @@ -707,7 +743,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 17, port: port_); + funcId: 18, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -734,7 +770,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 18, port: port_); + funcId: 19, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -763,7 +799,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_i_32(a, serializer); sse_encode_i_32(b, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 19, port: port_); + funcId: 20, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -1726,6 +1762,13 @@ class LtTypeWithLifetimeTwinNormalImpl extends RustOpaque .rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormalPtr, ); + /// Input lifetimeable and output another lifetimeable + Future + computeNestedTypeWithLifetimeTwinNormal() => RustLib.instance.api + .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeNestedTypeWithLifetimeTwinNormal( + that: this, + ); + /// `&mut T` where T is lifetimeable Future greetBorrowMutSelfTwinNormal() => RustLib.instance.api .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( diff --git a/frb_example/dart_minimal/rust/src/frb_generated.rs b/frb_example/dart_minimal/rust/src/frb_generated.rs index 6cfa499e7c..dde4722fd7 100644 --- a/frb_example/dart_minimal/rust/src/frb_generated.rs +++ b/frb_example/dart_minimal/rust/src/frb_generated.rs @@ -34,7 +34,7 @@ flutter_rust_bridge::frb_generated_boilerplate!( default_rust_auto_opaque = RustAutoOpaqueMoi, ); pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.0.0-dev.39"; -pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = 1535573962; +pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = 660839085; // Section: executor @@ -119,6 +119,35 @@ let api_arg_guard = Arc::new(api_arg_guard); })()) } }) } +fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_nested_type_with_lifetime_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_nested_type_with_lifetime_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let api_that_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that) + };let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that_illegal_static_ref.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); +let api_that_guard = Arc::new(api_that_guard); + let api_that_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that_guard) + }; let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithLifetimeTwinNormal ::compute_nested_type_with_lifetime_twin_normal(&*&api_that_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(flutter_rust_bridge::for_generated::Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) + })()) + } }) +} fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, @@ -958,21 +987,22 @@ fn pde_ffi_dispatcher_primary_impl( 1 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), 2 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), 3 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal_impl(port, ptr, rust_vec_len, data_len), -4 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), -5 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), -6 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal_impl(port, ptr, rust_vec_len, data_len), -7 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), -8 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), -9 => wire__crate__api__minimal__LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal_impl(port, ptr, rust_vec_len, data_len), -10 => wire__crate__api__minimal__LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal_impl(port, ptr, rust_vec_len, data_len), -11 => wire__crate__api__minimal__LtOwnedStructTwinNormal_create_impl(port, ptr, rust_vec_len, data_len), -12 => wire__crate__api__minimal__LtOwnedStructTwinNormal_create_with_logger_impl(port, ptr, rust_vec_len, data_len), -13 => wire__crate__api__minimal__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), -14 => wire__crate__api__minimal__LtSubStructTwinNormal_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), -15 => wire__crate__api__minimal__SimpleLogger_get_and_reset_impl(port, ptr, rust_vec_len, data_len), -17 => wire__crate__api__minimal__init_app_impl(port, ptr, rust_vec_len, data_len), -18 => wire__crate__api__minimal__lt_compute_with_lifetime_function_twin_normal_impl(port, ptr, rust_vec_len, data_len), -19 => wire__crate__api__minimal__minimal_adder_impl(port, ptr, rust_vec_len, data_len), +4 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_nested_type_with_lifetime_twin_normal_impl(port, ptr, rust_vec_len, data_len), +5 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +6 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +7 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal_impl(port, ptr, rust_vec_len, data_len), +8 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +9 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +10 => wire__crate__api__minimal__LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal_impl(port, ptr, rust_vec_len, data_len), +11 => wire__crate__api__minimal__LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal_impl(port, ptr, rust_vec_len, data_len), +12 => wire__crate__api__minimal__LtOwnedStructTwinNormal_create_impl(port, ptr, rust_vec_len, data_len), +13 => wire__crate__api__minimal__LtOwnedStructTwinNormal_create_with_logger_impl(port, ptr, rust_vec_len, data_len), +14 => wire__crate__api__minimal__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +15 => wire__crate__api__minimal__LtSubStructTwinNormal_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +16 => wire__crate__api__minimal__SimpleLogger_get_and_reset_impl(port, ptr, rust_vec_len, data_len), +18 => wire__crate__api__minimal__init_app_impl(port, ptr, rust_vec_len, data_len), +19 => wire__crate__api__minimal__lt_compute_with_lifetime_function_twin_normal_impl(port, ptr, rust_vec_len, data_len), +20 => wire__crate__api__minimal__minimal_adder_impl(port, ptr, rust_vec_len, data_len), _ => unreachable!(), } } @@ -985,7 +1015,7 @@ fn pde_ffi_dispatcher_sync_impl( ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { // Codec=Pde (Serialization + dispatch), see doc to use other codecs match func_id { - 16 => wire__crate__api__minimal__SimpleLogger_new_impl(ptr, rust_vec_len, data_len), + 17 => wire__crate__api__minimal__SimpleLogger_new_impl(ptr, rust_vec_len, data_len), _ => unreachable!(), } } From d3d8fc4741416c9aff89d4d8ec435fd09d0dc1bf Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:26:02 +0800 Subject: [PATCH 055/117] fix: err --- frb_example/dart_minimal/test/minimal_test.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frb_example/dart_minimal/test/minimal_test.dart b/frb_example/dart_minimal/test/minimal_test.dart index d3a522efc3..f6aa6c6bc8 100644 --- a/frb_example/dart_minimal/test/minimal_test.dart +++ b/frb_example/dart_minimal/test/minimal_test.dart @@ -97,8 +97,8 @@ Future main() async { value: 'a', logger: simpleLogger); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinNormal(); - final nestedTypeWithLifetime = await typeWithLifetime - .computeNestedTypeWithLifetimeTwinNormal(arg: ownedStruct); + final nestedTypeWithLifetime = + await typeWithLifetime.computeNestedTypeWithLifetimeTwinNormal(); ownedStruct.dispose(); expect(simpleLogger.getAndReset(), [ From dfafb0e30c417a006f913d151ca584de26b60b44 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:26:37 +0800 Subject: [PATCH 056/117] fix: err --- frb_example/dart_minimal/rust/src/api/minimal.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frb_example/dart_minimal/rust/src/api/minimal.rs b/frb_example/dart_minimal/rust/src/api/minimal.rs index 0dd158bcbf..091ca7972a 100644 --- a/frb_example/dart_minimal/rust/src/api/minimal.rs +++ b/frb_example/dart_minimal/rust/src/api/minimal.rs @@ -86,13 +86,13 @@ impl Drop for LtSubStructTwinNormal { } } -impl Drop for LtTypeWithLifetimeTwinNormal { +impl Drop for LtTypeWithLifetimeTwinNormal<'_> { fn drop(&mut self) { (self.field.sub.logger).log("LtTypeWithLifetimeTwinNormal.drop"); } } -impl Drop for LtNestedTypeWithLifetimeTwinNormal { +impl Drop for LtNestedTypeWithLifetimeTwinNormal<'_> { fn drop(&mut self) { (self.field.field.sub.logger).log("LtNestedTypeWithLifetimeTwinNormal.drop"); } From 4a82693452fae00afa76180c2ffad65321f1673a Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:27:57 +0800 Subject: [PATCH 057/117] feat: more --- .../wire/rust/spec_generator/misc/function/lifetime.rs | 2 +- .../codegen/generator/wire/rust/spec_generator/misc/mod.rs | 2 +- .../src/library/codegen/parser/mir/parser/ty/lifetimeable.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frb_codegen/src/library/codegen/generator/wire/rust/spec_generator/misc/function/lifetime.rs b/frb_codegen/src/library/codegen/generator/wire/rust/spec_generator/misc/function/lifetime.rs index 032cf9434a..33f27b42a0 100644 --- a/frb_codegen/src/library/codegen/generator/wire/rust/spec_generator/misc/function/lifetime.rs +++ b/frb_codegen/src/library/codegen/generator/wire/rust/spec_generator/misc/function/lifetime.rs @@ -77,5 +77,5 @@ pub(super) fn generate_code_postprocess_inner_output(func: &MirFunc) -> String { }) .map(|var_name| format!("Box::new({var_name}.clone())")) .join(", "); - format!("let output_ok = RustAutoOpaque::new(flutter_rust_bridge::for_generated::Lifetimeable::new(output_ok, vec![{dependencies}]));") + format!("let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![{dependencies}]));") } diff --git a/frb_codegen/src/library/codegen/generator/wire/rust/spec_generator/misc/mod.rs b/frb_codegen/src/library/codegen/generator/wire/rust/spec_generator/misc/mod.rs index c66b836e3f..eb0348f770 100644 --- a/frb_codegen/src/library/codegen/generator/wire/rust/spec_generator/misc/mod.rs +++ b/frb_codegen/src/library/codegen/generator/wire/rust/spec_generator/misc/mod.rs @@ -117,7 +117,7 @@ fn generate_imports( // NOTE Do *not* use imports when possible, instead use fully specified name directly let static_imports = "use flutter_rust_bridge::{Handler, IntoIntoDart}; -use flutter_rust_bridge::for_generated::{Lockable, transform_result_dco}; +use flutter_rust_bridge::for_generated::{Lockable, transform_result_dco, Lifetimeable}; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, WriteBytesExt, ReadBytesExt};"; Acc::new(|target| { diff --git a/frb_codegen/src/library/codegen/parser/mir/parser/ty/lifetimeable.rs b/frb_codegen/src/library/codegen/parser/mir/parser/ty/lifetimeable.rs index 2b35ea60f3..2ea108b05e 100644 --- a/frb_codegen/src/library/codegen/parser/mir/parser/ty/lifetimeable.rs +++ b/frb_codegen/src/library/codegen/parser/mir/parser/ty/lifetimeable.rs @@ -26,7 +26,7 @@ impl<'a, 'b, 'c> TypeParserWithContext<'a, 'b, 'c> { } let delegate_ty_str = format!( - "flutter_rust_bridge::for_generated::Lifetimeable<{}>", + "Lifetimeable<{}>", replace_lifetimes_to_static(ty_str, &lifetimes) ); From c90fc5d45925baa7bfb820bdae6df2568204163f Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:28:40 +0800 Subject: [PATCH 058/117] chore: codegen --- .../lib/src/rust/api/minimal.dart | 6 +-- .../dart_minimal/rust/src/frb_generated.io.rs | 2 +- .../dart_minimal/rust/src/frb_generated.rs | 37 +++++++++---------- .../rust/src/frb_generated.web.rs | 2 +- 4 files changed, 23 insertions(+), 24 deletions(-) diff --git a/frb_example/dart_minimal/lib/src/rust/api/minimal.dart b/frb_example/dart_minimal/lib/src/rust/api/minimal.dart index b580ebe47c..08863ddbf6 100644 --- a/frb_example/dart_minimal/lib/src/rust/api/minimal.dart +++ b/frb_example/dart_minimal/lib/src/rust/api/minimal.dart @@ -17,7 +17,7 @@ Future ltComputeWithLifetimeFunctionTwinNormal( RustLib.instance.api .crateApiMinimalLtComputeWithLifetimeFunctionTwinNormal(arg: arg); -// Rust type: RustOpaqueMoi >>> +// Rust type: RustOpaqueMoi >>> abstract class LtNestedTypeWithLifetimeTwinNormal implements RustOpaqueInterface { Future greetBorrowMutSelfTwinNormal(); @@ -25,7 +25,7 @@ abstract class LtNestedTypeWithLifetimeTwinNormal Future greetBorrowSelfTwinNormal(); } -// Rust type: RustOpaqueMoi >>> +// Rust type: RustOpaqueMoi >>> abstract class LtTypeWithLifetimeTwinNormal implements RustOpaqueInterface { /// Input argument has type `T<'a>` (other tests mainly are `&'a T`) static Future< @@ -46,7 +46,7 @@ abstract class LtTypeWithLifetimeTwinNormal implements RustOpaqueInterface { Future greetBorrowSelfTwinNormal(); } -// Rust type: RustOpaqueMoi >>> +// Rust type: RustOpaqueMoi >>> abstract class LtTypeWithMultiDepTwinNormal implements RustOpaqueInterface { /// Multiple input args have lifetime static Future< diff --git a/frb_example/dart_minimal/rust/src/frb_generated.io.rs b/frb_example/dart_minimal/rust/src/frb_generated.io.rs index 5b7eda542c..35a548267d 100644 --- a/frb_example/dart_minimal/rust/src/frb_generated.io.rs +++ b/frb_example/dart_minimal/rust/src/frb_generated.io.rs @@ -6,7 +6,7 @@ use super::*; use crate::api::minimal::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; -use flutter_rust_bridge::for_generated::{transform_result_dco, Lockable}; +use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; // Section: boilerplate diff --git a/frb_example/dart_minimal/rust/src/frb_generated.rs b/frb_example/dart_minimal/rust/src/frb_generated.rs index dde4722fd7..8182d5b9c5 100644 --- a/frb_example/dart_minimal/rust/src/frb_generated.rs +++ b/frb_example/dart_minimal/rust/src/frb_generated.rs @@ -23,7 +23,7 @@ use crate::api::minimal::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; -use flutter_rust_bridge::for_generated::{transform_result_dco, Lockable}; +use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; // Section: boilerplate @@ -51,7 +51,7 @@ fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_br FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { transform_result_sse::<_, ()>((move || { let mut api_that_guard = None; let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); @@ -75,7 +75,7 @@ fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_br FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { transform_result_sse::<_, ()>((move || { let mut api_that_guard = None; let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); @@ -99,7 +99,7 @@ fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_br FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_arg = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + let api_arg = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { transform_result_sse::<_, ()>((move || { let api_arg_illegal_static_ref = unsafe { flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg) @@ -115,7 +115,7 @@ let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decod let api_arg_guard = Arc::new(api_arg_guard); let api_arg_guard_illegal_static_ref = unsafe { flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithLifetimeTwinNormal ::compute_arg_generic_lifetime_twin_normal(&*api_arg_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(flutter_rust_bridge::for_generated::Lifetimeable::new(output_ok, vec![Box::new(api_arg.clone()), Box::new(api_arg_guard.clone())])); Ok(output_ok) + }; let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithLifetimeTwinNormal ::compute_arg_generic_lifetime_twin_normal(&*api_arg_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_arg.clone()), Box::new(api_arg_guard.clone())])); Ok(output_ok) })()) } }) } @@ -128,7 +128,7 @@ fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_br FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_nested_type_with_lifetime_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { transform_result_sse::<_, ()>((move || { let api_that_illegal_static_ref = unsafe { flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that) @@ -144,7 +144,7 @@ let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decod let api_that_guard = Arc::new(api_that_guard); let api_that_guard_illegal_static_ref = unsafe { flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithLifetimeTwinNormal ::compute_nested_type_with_lifetime_twin_normal(&*&api_that_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(flutter_rust_bridge::for_generated::Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) + }; let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithLifetimeTwinNormal ::compute_nested_type_with_lifetime_twin_normal(&*&api_that_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) })()) } }) } @@ -157,7 +157,7 @@ fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_br FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { transform_result_sse::<_, ()>((move || { let mut api_that_guard = None; let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); @@ -181,7 +181,7 @@ fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_br FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { transform_result_sse::<_, ()>((move || { let mut api_that_guard = None; let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); @@ -235,7 +235,7 @@ let api_a_guard = Arc::new(api_a_guard); };let api_b_guard = Arc::new(api_b_guard); let api_b_guard_illegal_static_ref = unsafe { flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_b_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithMultiDepTwinNormal ::compute_with_multi_arg_having_lifetime_twin_normal(&*api_a_guard_illegal_static_ref, &*api_b_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; let output_ok = RustAutoOpaque::new(flutter_rust_bridge::for_generated::Lifetimeable::new(output_ok, vec![Box::new(api_a.clone()), Box::new(api_a_guard.clone()), Box::new(api_b.clone()), Box::new(api_b_guard.clone())])); Ok(output_ok) + }; let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithMultiDepTwinNormal ::compute_with_multi_arg_having_lifetime_twin_normal(&*api_a_guard_illegal_static_ref, &*api_b_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_a.clone()), Box::new(api_a_guard.clone()), Box::new(api_b.clone()), Box::new(api_b_guard.clone())])); Ok(output_ok) })()) } }) } @@ -248,7 +248,7 @@ fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_br FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { transform_result_sse::<_, ()>((move || { let mut api_that_guard = None; let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); @@ -272,7 +272,7 @@ fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_br FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { transform_result_sse::<_, ()>((move || { let mut api_that_guard = None; let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); @@ -312,7 +312,7 @@ let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decod let api_that_guard = Arc::new(api_that_guard); let api_that_guard_illegal_static_ref = unsafe { flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtOwnedStructTwinNormal::compute_type_with_lifetime_twin_normal(&*api_that_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(flutter_rust_bridge::for_generated::Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) + }; let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtOwnedStructTwinNormal::compute_type_with_lifetime_twin_normal(&*api_that_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) })()) } }) } @@ -346,7 +346,7 @@ let api_unrelated_borrowed_guard = api_unrelated_borrowed_guard.unwrap(); let api_that_guard = Arc::new(api_that_guard); let api_that_guard_illegal_static_ref = unsafe { flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtOwnedStructTwinNormal::compute_with_unrelated_borrowed_arg_twin_normal(&*api_that_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; let output_ok = RustAutoOpaque::new(flutter_rust_bridge::for_generated::Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) + }; let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtOwnedStructTwinNormal::compute_with_unrelated_borrowed_arg_twin_normal(&*api_that_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) })()) } }) } @@ -692,11 +692,10 @@ fn wire__crate__api__minimal__lt_compute_with_lifetime_function_twin_normal_impl &*api_arg_guard_illegal_static_ref, ), )?; - let output_ok = - RustAutoOpaque::new(flutter_rust_bridge::for_generated::Lifetimeable::new( - output_ok, - vec![Box::new(api_arg.clone()), Box::new(api_arg_guard.clone())], - )); + let output_ok = RustAutoOpaque::new(Lifetimeable::new( + output_ok, + vec![Box::new(api_arg.clone()), Box::new(api_arg_guard.clone())], + )); Ok(output_ok) })()) } diff --git a/frb_example/dart_minimal/rust/src/frb_generated.web.rs b/frb_example/dart_minimal/rust/src/frb_generated.web.rs index 793c3a1131..c23bc23e99 100644 --- a/frb_example/dart_minimal/rust/src/frb_generated.web.rs +++ b/frb_example/dart_minimal/rust/src/frb_generated.web.rs @@ -8,7 +8,7 @@ use crate::api::minimal::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; use flutter_rust_bridge::for_generated::wasm_bindgen; use flutter_rust_bridge::for_generated::wasm_bindgen::prelude::*; -use flutter_rust_bridge::for_generated::{transform_result_dco, Lockable}; +use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; // Section: boilerplate From bf87ea93aaf018426e6a87a5fad3e77de18fe7fe Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:33:02 +0800 Subject: [PATCH 059/117] feat: try --- .../wire/rust/spec_generator/misc/function/lockable.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frb_codegen/src/library/codegen/generator/wire/rust/spec_generator/misc/function/lockable.rs b/frb_codegen/src/library/codegen/generator/wire/rust/spec_generator/misc/function/lockable.rs index e33252e456..15b618c7d6 100644 --- a/frb_codegen/src/library/codegen/generator/wire/rust/spec_generator/misc/function/lockable.rs +++ b/frb_codegen/src/library/codegen/generator/wire/rust/spec_generator/misc/function/lockable.rs @@ -105,7 +105,9 @@ fn compute_interest_field_ownership_mode(ty: &MirType) -> Option } // temporarily only support Ref MirType::Delegate(MirTypeDelegate::DynTrait(_)) => Some(OwnershipMode::Ref), - MirType::Delegate(MirTypeDelegate::Lifetimeable(_)) => Some(OwnershipMode::Ref), + MirType::Delegate(MirTypeDelegate::Lifetimeable(mir)) => { + compute_interest_field_ownership_mode(&*mir.api_type) + } _ => None, } } From 9e506d7b33543b7568c1d08dd6d83937b6b03d1d Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:34:20 +0800 Subject: [PATCH 060/117] Revert "feat: try" This reverts commit bf87ea93aaf018426e6a87a5fad3e77de18fe7fe. --- .../wire/rust/spec_generator/misc/function/lockable.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frb_codegen/src/library/codegen/generator/wire/rust/spec_generator/misc/function/lockable.rs b/frb_codegen/src/library/codegen/generator/wire/rust/spec_generator/misc/function/lockable.rs index 15b618c7d6..e33252e456 100644 --- a/frb_codegen/src/library/codegen/generator/wire/rust/spec_generator/misc/function/lockable.rs +++ b/frb_codegen/src/library/codegen/generator/wire/rust/spec_generator/misc/function/lockable.rs @@ -105,9 +105,7 @@ fn compute_interest_field_ownership_mode(ty: &MirType) -> Option } // temporarily only support Ref MirType::Delegate(MirTypeDelegate::DynTrait(_)) => Some(OwnershipMode::Ref), - MirType::Delegate(MirTypeDelegate::Lifetimeable(mir)) => { - compute_interest_field_ownership_mode(&*mir.api_type) - } + MirType::Delegate(MirTypeDelegate::Lifetimeable(_)) => Some(OwnershipMode::Ref), _ => None, } } From 7d7fec161cf04470b4e522eb61131de3f12dff70 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:37:40 +0800 Subject: [PATCH 061/117] feaT: ir --- frb_codegen/src/library/codegen/ir/mir/ty/delegate.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frb_codegen/src/library/codegen/ir/mir/ty/delegate.rs b/frb_codegen/src/library/codegen/ir/mir/ty/delegate.rs index 734dea13e6..e8cdcea0a5 100644 --- a/frb_codegen/src/library/codegen/ir/mir/ty/delegate.rs +++ b/frb_codegen/src/library/codegen/ir/mir/ty/delegate.rs @@ -5,7 +5,7 @@ use crate::codegen::ir::mir::ty::general_list::{mir_list, MirTypeGeneralList}; use crate::codegen::ir::mir::ty::primitive::MirTypePrimitive; use crate::codegen::ir::mir::ty::primitive_list::MirTypePrimitiveList; use crate::codegen::ir::mir::ty::record::MirTypeRecord; -use crate::codegen::ir::mir::ty::rust_auto_opaque_implicit::MirRustAutoOpaqueRaw; +use crate::codegen::ir::mir::ty::rust_auto_opaque_implicit::{MirRustAutoOpaqueRaw, MirTypeRustAutoOpaqueImplicit}; use crate::codegen::ir::mir::ty::rust_opaque::MirTypeRustOpaque; use crate::codegen::ir::mir::ty::{MirContext, MirType, MirTypeTrait}; use crate::utils::namespace::{Namespace, NamespacedName}; @@ -113,7 +113,7 @@ pub struct MirTypeDelegateDynTrait { } pub struct MirTypeDelegateLifetimeable { - pub api_type: Box, + pub api_type: MirTypeRustAutoOpaqueImplicit, pub delegate: MirTypeDelegateRustAutoOpaqueExplicit, } From dc56d4b9f9815c4776f5ad1d83e587d828ac0062 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:38:07 +0800 Subject: [PATCH 062/117] feat: usage --- frb_codegen/src/library/codegen/ir/mir/func.rs | 2 +- .../library/codegen/parser/mir/parser/function/real/mod.rs | 4 +++- .../src/library/codegen/parser/mir/parser/ty/lifetimeable.rs | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/frb_codegen/src/library/codegen/ir/mir/func.rs b/frb_codegen/src/library/codegen/ir/mir/func.rs index 1562c6cc59..662f1afddb 100644 --- a/frb_codegen/src/library/codegen/ir/mir/func.rs +++ b/frb_codegen/src/library/codegen/ir/mir/func.rs @@ -209,7 +209,7 @@ pub(crate) fn compute_interest_name_of_owner_ty(owner_ty: &MirType) -> Option { - return compute_interest_name_of_owner_ty(&ty.api_type) + return compute_interest_name_of_owner_ty(&MirType::RustAutoOpaqueImplicit(ty.api_type.clone())) } MirType::TraitDef(ty) => ty.name.clone(), _ => return None, diff --git a/frb_codegen/src/library/codegen/parser/mir/parser/function/real/mod.rs b/frb_codegen/src/library/codegen/parser/mir/parser/function/real/mod.rs index ff86d9626d..366869794a 100644 --- a/frb_codegen/src/library/codegen/parser/mir/parser/function/real/mod.rs +++ b/frb_codegen/src/library/codegen/parser/mir/parser/function/real/mod.rs @@ -328,7 +328,9 @@ pub(crate) fn is_struct_or_enum_or_opaque_from_them(ty: &MirType) -> bool { ty.reason == Some(MirTypeRustAutoOpaqueImplicitReason::StructOrEnumRequireOpaque) } MirType::Delegate(MirTypeDelegate::Lifetimeable(ty)) => { - is_struct_or_enum_or_opaque_from_them(&ty.api_type) + is_struct_or_enum_or_opaque_from_them(&MirType::RustAutoOpaqueImplicit( + ty.api_type.clone(), + )) } _ => false, } diff --git a/frb_codegen/src/library/codegen/parser/mir/parser/ty/lifetimeable.rs b/frb_codegen/src/library/codegen/parser/mir/parser/ty/lifetimeable.rs index 2ea108b05e..caeb02312a 100644 --- a/frb_codegen/src/library/codegen/parser/mir/parser/ty/lifetimeable.rs +++ b/frb_codegen/src/library/codegen/parser/mir/parser/ty/lifetimeable.rs @@ -34,7 +34,7 @@ impl<'a, 'b, 'c> TypeParserWithContext<'a, 'b, 'c> { Ok(MirType::Delegate(MirTypeDelegate::Lifetimeable( MirTypeDelegateLifetimeable { - api_type: Box::new(MirType::RustAutoOpaqueImplicit(original)), + api_type: original, delegate: self.parse_rust_auto_opaque_explicit_typed( &syn::parse_str(&delegate_ty_str)?, namespace, From 07ef68878e7e16d73052b2a1081316713c512679 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:38:44 +0800 Subject: [PATCH 063/117] feat: more --- .../wire/rust/spec_generator/misc/function/lockable.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frb_codegen/src/library/codegen/generator/wire/rust/spec_generator/misc/function/lockable.rs b/frb_codegen/src/library/codegen/generator/wire/rust/spec_generator/misc/function/lockable.rs index e33252e456..37527cdcc0 100644 --- a/frb_codegen/src/library/codegen/generator/wire/rust/spec_generator/misc/function/lockable.rs +++ b/frb_codegen/src/library/codegen/generator/wire/rust/spec_generator/misc/function/lockable.rs @@ -105,7 +105,13 @@ fn compute_interest_field_ownership_mode(ty: &MirType) -> Option } // temporarily only support Ref MirType::Delegate(MirTypeDelegate::DynTrait(_)) => Some(OwnershipMode::Ref), - MirType::Delegate(MirTypeDelegate::Lifetimeable(_)) => Some(OwnershipMode::Ref), + MirType::Delegate(MirTypeDelegate::Lifetimeable(mir)) => { + Some(if mir.api_type.ownership_mode == OwnershipMode::RefMut { + OwnershipMode::RefMut + } else { + OwnershipMode::Ref + }) + } _ => None, } } From 5f98567fae1b3f8b26e4384febb7a710e1f39af9 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:39:28 +0800 Subject: [PATCH 064/117] chore: codegen --- .../dart_minimal/rust/src/frb_generated.rs | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/frb_example/dart_minimal/rust/src/frb_generated.rs b/frb_example/dart_minimal/rust/src/frb_generated.rs index 8182d5b9c5..ab54c6a340 100644 --- a/frb_example/dart_minimal/rust/src/frb_generated.rs +++ b/frb_example/dart_minimal/rust/src/frb_generated.rs @@ -54,15 +54,15 @@ fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_br let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { transform_result_sse::<_, ()>((move || { let mut api_that_guard = None; -let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true)]); for i in decode_indices_ { match i { - 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), _ => unreachable!(), } } - let api_that_guard = api_that_guard.unwrap(); - let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtNestedTypeWithLifetimeTwinNormal ::greet_borrow_mut_self_twin_normal(&*api_that_guard))?; Ok(output_ok) + let mut api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtNestedTypeWithLifetimeTwinNormal ::greet_borrow_mut_self_twin_normal(&mut *api_that_guard))?; Ok(output_ok) })()) } }) } @@ -160,15 +160,15 @@ fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_br let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { transform_result_sse::<_, ()>((move || { let mut api_that_guard = None; -let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true)]); for i in decode_indices_ { match i { - 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), _ => unreachable!(), } } - let api_that_guard = api_that_guard.unwrap(); - let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithLifetimeTwinNormal ::greet_borrow_mut_self_twin_normal(&*api_that_guard))?; Ok(output_ok) + let mut api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithLifetimeTwinNormal ::greet_borrow_mut_self_twin_normal(&mut *api_that_guard))?; Ok(output_ok) })()) } }) } @@ -251,15 +251,15 @@ fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_br let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { transform_result_sse::<_, ()>((move || { let mut api_that_guard = None; -let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true)]); for i in decode_indices_ { match i { - 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), _ => unreachable!(), } } - let api_that_guard = api_that_guard.unwrap(); - let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithMultiDepTwinNormal ::greet_borrow_mut_self_twin_normal(&*api_that_guard))?; Ok(output_ok) + let mut api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithMultiDepTwinNormal ::greet_borrow_mut_self_twin_normal(&mut *api_that_guard))?; Ok(output_ok) })()) } }) } From a3ca47530e9ffe0c2a5e7cde4da67eb2ca3bfa75 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:40:25 +0800 Subject: [PATCH 065/117] fix: err --- frb_example/dart_minimal/rust/src/api/minimal.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frb_example/dart_minimal/rust/src/api/minimal.rs b/frb_example/dart_minimal/rust/src/api/minimal.rs index 091ca7972a..9c4c54d6c2 100644 --- a/frb_example/dart_minimal/rust/src/api/minimal.rs +++ b/frb_example/dart_minimal/rust/src/api/minimal.rs @@ -180,7 +180,7 @@ impl LtTypeWithLifetimeTwinNormal<'_> { /// Input argument has type `T<'a>` (other tests mainly are `&'a T`) pub fn compute_arg_generic_lifetime_twin_normal<'a>( - arg: LtTypeWithLifetimeTwinNormal<'a>, + arg: &LtTypeWithLifetimeTwinNormal<'a>, ) -> LtTypeWithLifetimeTwinNormal<'a> { LtTypeWithLifetimeTwinNormal { field: arg.field } } From 480f13c27b8fb905c94df28637e7351f3ff88a4b Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:40:58 +0800 Subject: [PATCH 066/117] chore: codegen --- frb_example/dart_minimal/rust/src/frb_generated.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frb_example/dart_minimal/rust/src/frb_generated.rs b/frb_example/dart_minimal/rust/src/frb_generated.rs index ab54c6a340..6c4f1d8640 100644 --- a/frb_example/dart_minimal/rust/src/frb_generated.rs +++ b/frb_example/dart_minimal/rust/src/frb_generated.rs @@ -115,7 +115,7 @@ let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decod let api_arg_guard = Arc::new(api_arg_guard); let api_arg_guard_illegal_static_ref = unsafe { flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithLifetimeTwinNormal ::compute_arg_generic_lifetime_twin_normal(&*api_arg_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_arg.clone()), Box::new(api_arg_guard.clone())])); Ok(output_ok) + }; let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithLifetimeTwinNormal ::compute_arg_generic_lifetime_twin_normal(&*&api_arg_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_arg.clone()), Box::new(api_arg_guard.clone())])); Ok(output_ok) })()) } }) } From 982e5dd45685bb3529100a172b4121a183685415 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:41:46 +0800 Subject: [PATCH 067/117] fix: err --- frb_example/dart_minimal/rust/src/api/minimal.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frb_example/dart_minimal/rust/src/api/minimal.rs b/frb_example/dart_minimal/rust/src/api/minimal.rs index 9c4c54d6c2..95fd5b93ef 100644 --- a/frb_example/dart_minimal/rust/src/api/minimal.rs +++ b/frb_example/dart_minimal/rust/src/api/minimal.rs @@ -206,7 +206,7 @@ impl LtTypeWithMultiDepTwinNormal<'_> { ) -> LtTypeWithMultiDepTwinNormal<'a> { assert_eq!(&unrelated_borrowed.sub.value, "hi"); assert_eq!(&unrelated_owned.sub.value, "hi"); - Self { fields: vec![a, b] } + LtTypeWithMultiDepTwinNormal { fields: vec![a, b] } } pub fn greet_borrow_self_twin_normal(&self) -> Vec { From a5a20156cb485757495ad3d30fdb7b0b93589d33 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:42:38 +0800 Subject: [PATCH 068/117] fix: err --- frb_example/dart_minimal/rust/src/api/minimal.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/frb_example/dart_minimal/rust/src/api/minimal.rs b/frb_example/dart_minimal/rust/src/api/minimal.rs index 95fd5b93ef..96b8817153 100644 --- a/frb_example/dart_minimal/rust/src/api/minimal.rs +++ b/frb_example/dart_minimal/rust/src/api/minimal.rs @@ -31,6 +31,7 @@ impl SimpleLogger { self.0.lock().unwrap().push(message.to_owned()); } + #[frb(sync)] pub fn get_and_reset(&self) -> Vec { self.0.lock().unwrap().drain(..).collect() } From c5aaa99be350ea311a6b490503999f206812c609 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:42:54 +0800 Subject: [PATCH 069/117] chore: codegen --- .../lib/src/rust/api/minimal.dart | 2 +- .../lib/src/rust/frb_generated.dart | 13 +++-- .../dart_minimal/rust/src/frb_generated.rs | 53 +++++++++---------- 3 files changed, 33 insertions(+), 35 deletions(-) diff --git a/frb_example/dart_minimal/lib/src/rust/api/minimal.dart b/frb_example/dart_minimal/lib/src/rust/api/minimal.dart index 08863ddbf6..0ff7d730de 100644 --- a/frb_example/dart_minimal/lib/src/rust/api/minimal.dart +++ b/frb_example/dart_minimal/lib/src/rust/api/minimal.dart @@ -98,7 +98,7 @@ abstract class LtSubStructTwinNormal implements RustOpaqueInterface { // Rust type: RustOpaqueMoi> abstract class SimpleLogger implements RustOpaqueInterface { - Future> getAndReset(); + List getAndReset(); factory SimpleLogger() => RustLib.instance.api.crateApiMinimalSimpleLoggerNew(); diff --git a/frb_example/dart_minimal/lib/src/rust/frb_generated.dart b/frb_example/dart_minimal/lib/src/rust/frb_generated.dart index 9c6f1c4577..afe7aae6df 100644 --- a/frb_example/dart_minimal/lib/src/rust/frb_generated.dart +++ b/frb_example/dart_minimal/lib/src/rust/frb_generated.dart @@ -131,7 +131,7 @@ abstract class RustLibApi extends BaseApi { Future crateApiMinimalLtSubStructTwinNormalGreetBorrowSelfTwinNormal( {required LtSubStructTwinNormal that}); - Future> crateApiMinimalSimpleLoggerGetAndReset( + List crateApiMinimalSimpleLoggerGetAndReset( {required SimpleLogger that}); SimpleLogger crateApiMinimalSimpleLoggerNew(); @@ -687,15 +687,14 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { ); @override - Future> crateApiMinimalSimpleLoggerGetAndReset( + List crateApiMinimalSimpleLoggerGetAndReset( {required SimpleLogger that}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { + return handler.executeSync(SyncTask( + callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( that, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 16, port: port_); + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 16)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_String, @@ -1833,7 +1832,7 @@ class SimpleLoggerImpl extends RustOpaque implements SimpleLogger { RustLib.instance.api.rust_arc_decrement_strong_count_SimpleLoggerPtr, ); - Future> getAndReset() => + List getAndReset() => RustLib.instance.api.crateApiMinimalSimpleLoggerGetAndReset( that: this, ); diff --git a/frb_example/dart_minimal/rust/src/frb_generated.rs b/frb_example/dart_minimal/rust/src/frb_generated.rs index 6c4f1d8640..15be31876b 100644 --- a/frb_example/dart_minimal/rust/src/frb_generated.rs +++ b/frb_example/dart_minimal/rust/src/frb_generated.rs @@ -520,16 +520,15 @@ fn wire__crate__api__minimal__LtSubStructTwinNormal_greet_borrow_self_twin_norma ) } fn wire__crate__api__minimal__SimpleLogger_get_and_reset_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, rust_vec_len_: i32, data_len_: i32, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( flutter_rust_bridge::for_generated::TaskInfo { debug_name: "SimpleLogger_get_and_reset", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, }, move || { let message = unsafe { @@ -545,28 +544,26 @@ fn wire__crate__api__minimal__SimpleLogger_get_and_reset_impl( flutter_rust_bridge::for_generated::RustAutoOpaqueInner, >>::sse_decode(&mut deserializer); deserializer.end(); - move |context| { - transform_result_sse::<_, ()>((move || { - let mut api_that_guard = None; - let decode_indices_ = - flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ - flutter_rust_bridge::for_generated::LockableOrderInfo::new( - &api_that, 0, false, - ), - ]); - for i in decode_indices_ { - match i { - 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), - _ => unreachable!(), - } + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), } - let api_that_guard = api_that_guard.unwrap(); - let output_ok = Result::<_, ()>::Ok( - crate::api::minimal::SimpleLogger::get_and_reset(&*api_that_guard), - )?; - Ok(output_ok) - })()) - } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_, ()>::Ok( + crate::api::minimal::SimpleLogger::get_and_reset(&*api_that_guard), + )?; + Ok(output_ok) + })()) }, ) } @@ -998,7 +995,6 @@ fn pde_ffi_dispatcher_primary_impl( 13 => wire__crate__api__minimal__LtOwnedStructTwinNormal_create_with_logger_impl(port, ptr, rust_vec_len, data_len), 14 => wire__crate__api__minimal__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), 15 => wire__crate__api__minimal__LtSubStructTwinNormal_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), -16 => wire__crate__api__minimal__SimpleLogger_get_and_reset_impl(port, ptr, rust_vec_len, data_len), 18 => wire__crate__api__minimal__init_app_impl(port, ptr, rust_vec_len, data_len), 19 => wire__crate__api__minimal__lt_compute_with_lifetime_function_twin_normal_impl(port, ptr, rust_vec_len, data_len), 20 => wire__crate__api__minimal__minimal_adder_impl(port, ptr, rust_vec_len, data_len), @@ -1014,6 +1010,9 @@ fn pde_ffi_dispatcher_sync_impl( ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { // Codec=Pde (Serialization + dispatch), see doc to use other codecs match func_id { + 16 => { + wire__crate__api__minimal__SimpleLogger_get_and_reset_impl(ptr, rust_vec_len, data_len) + } 17 => wire__crate__api__minimal__SimpleLogger_new_impl(ptr, rust_vec_len, data_len), _ => unreachable!(), } From b357641588eeb1415a30ed638305305d84b023ef Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:44:06 +0800 Subject: [PATCH 070/117] fix: err --- frb_example/dart_minimal/test/minimal_test.dart | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/frb_example/dart_minimal/test/minimal_test.dart b/frb_example/dart_minimal/test/minimal_test.dart index f6aa6c6bc8..fca6783702 100644 --- a/frb_example/dart_minimal/test/minimal_test.dart +++ b/frb_example/dart_minimal/test/minimal_test.dart @@ -27,8 +27,10 @@ Future main() async { expect(simpleLogger.getAndReset(), []); ownedStruct.dispose(); - expect( - simpleLogger.getAndReset(), ['LtOwnedStructTwinNormal.drop']); + expect(simpleLogger.getAndReset(), [ + 'LtOwnedStructTwinNormal.drop', + 'LtOwnedSubStructTwinNormal.drop', + ]); }); test('dispose ownedStruct - dispose typeWithLifetime', () async { @@ -48,6 +50,7 @@ Future main() async { // NOTE order: Firstly the borrowed type, secondly the owned type 'LtTypeWithLifetimeTwinNormal.drop', 'LtOwnedStructTwinNormal.drop', + 'LtOwnedSubStructTwinNormal.drop', ]); }); @@ -66,6 +69,7 @@ Future main() async { ownedStruct.dispose(); expect(simpleLogger.getAndReset(), [ 'LtOwnedStructTwinNormal.drop', + 'LtOwnedSubStructTwinNormal.drop', ]); }); @@ -86,6 +90,7 @@ Future main() async { // NOTE order: Firstly the borrowed type, secondly the owned type 'LtTypeWithLifetimeTwinNormal.drop', 'LtOwnedStructTwinNormal.drop', + 'LtOwnedSubStructTwinNormal.drop', ]); }); @@ -116,6 +121,7 @@ Future main() async { 'LtNestedTypeWithLifetimeTwinNormal.drop', 'LtTypeWithLifetimeTwinNormal.drop', 'LtOwnedStructTwinNormal.drop', + 'LtOwnedSubStructTwinNormal.drop', ]); }); }); From a2ed4e8ba5399b3ce540a4acb7ee6d1a7facedab Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:44:52 +0800 Subject: [PATCH 071/117] chore: temp disable --- .../dart_minimal/test/minimal_test.dart | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/frb_example/dart_minimal/test/minimal_test.dart b/frb_example/dart_minimal/test/minimal_test.dart index fca6783702..8dec995451 100644 --- a/frb_example/dart_minimal/test/minimal_test.dart +++ b/frb_example/dart_minimal/test/minimal_test.dart @@ -151,15 +151,17 @@ Future main() async { await _testTypeWithLifetime(ownedStruct, typeWithLifetime); }); - test('computeNestedTypeWithLifetimeTwinNormal', () async { - final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); - final typeWithLifetime = - await ownedStruct.computeTypeWithLifetimeTwinNormal(); - final nestedTypeWithLifetime = - await typeWithLifetime.computeNestedTypeWithLifetimeTwinNormal(); - await _testNestedTypeWithLifetime( - ownedStruct, typeWithLifetime, nestedTypeWithLifetime); - }); + // TODO + if (false) + test('computeNestedTypeWithLifetimeTwinNormal', () async { + final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinNormal(); + final nestedTypeWithLifetime = + await typeWithLifetime.computeNestedTypeWithLifetimeTwinNormal(); + await _testNestedTypeWithLifetime( + ownedStruct, typeWithLifetime, nestedTypeWithLifetime); + }); test('computeArgGenericLifetimeTwinNormal', () async { final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); From d81d309a4794bf1093c56d396ce831cf159e3cae Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 18:45:58 +0800 Subject: [PATCH 072/117] feat: more --- .../dart_minimal/test/minimal_test.dart | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/frb_example/dart_minimal/test/minimal_test.dart b/frb_example/dart_minimal/test/minimal_test.dart index 8dec995451..a13471218c 100644 --- a/frb_example/dart_minimal/test/minimal_test.dart +++ b/frb_example/dart_minimal/test/minimal_test.dart @@ -151,17 +151,15 @@ Future main() async { await _testTypeWithLifetime(ownedStruct, typeWithLifetime); }); - // TODO - if (false) - test('computeNestedTypeWithLifetimeTwinNormal', () async { - final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); - final typeWithLifetime = - await ownedStruct.computeTypeWithLifetimeTwinNormal(); - final nestedTypeWithLifetime = - await typeWithLifetime.computeNestedTypeWithLifetimeTwinNormal(); - await _testNestedTypeWithLifetime( - ownedStruct, typeWithLifetime, nestedTypeWithLifetime); - }); + test('computeNestedTypeWithLifetimeTwinNormal', () async { + final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinNormal(); + final nestedTypeWithLifetime = + await typeWithLifetime.computeNestedTypeWithLifetimeTwinNormal(); + await _testNestedTypeWithLifetime( + ownedStruct, typeWithLifetime, nestedTypeWithLifetime); + }); test('computeArgGenericLifetimeTwinNormal', () async { final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); @@ -211,7 +209,8 @@ Future _testNestedTypeWithLifetime( LtNestedTypeWithLifetimeTwinNormal nestedTypeWithLifetime, ) async { expect(await typeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); - expect(await typeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); + // cannot mut borrow, since nestedTypeWithLifetime has borrowed typeWithLifetime + // expect(await typeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); expect(await nestedTypeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); expect(await nestedTypeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); From 1fe05c7886e7a28d180915cf2c0cdceb8c492c61 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 19:35:52 +0800 Subject: [PATCH 073/117] fix: err --- frb_rust/src/generalized_arc/moi_arc.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/frb_rust/src/generalized_arc/moi_arc.rs b/frb_rust/src/generalized_arc/moi_arc.rs index 1739777474..ddcc197fa4 100644 --- a/frb_rust/src/generalized_arc/moi_arc.rs +++ b/frb_rust/src/generalized_arc/moi_arc.rs @@ -117,14 +117,19 @@ macro_rules! frb_generated_moi_arc_def { } pub fn decrement_strong_count(raw: usize) { - Self::decrement_strong_count_raw(raw, &mut T::get_pool().write().unwrap()) + let mut pool = T::get_pool().write().unwrap(); + let object = Self::decrement_strong_count_raw(raw, &mut pool); + drop(pool); + drop(object); } - fn decrement_strong_count_raw(raw: usize, pool: &mut MoiArcPoolInner) { + fn decrement_strong_count_raw(raw: usize, pool: &mut MoiArcPoolInner) -> Option { let value = pool.map.get_mut(&raw).unwrap(); value.ref_count -= 1; if value.ref_count == 0 { - pool.map.remove(&raw).unwrap(); + pool.map.remove(&raw) + } else { + None } } } From 1048119173c61d82f03e586f58214e3fda2fc157 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 19:38:21 +0800 Subject: [PATCH 074/117] fix: err --- frb_rust/src/generalized_arc/moi_arc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frb_rust/src/generalized_arc/moi_arc.rs b/frb_rust/src/generalized_arc/moi_arc.rs index ddcc197fa4..54d12f6bca 100644 --- a/frb_rust/src/generalized_arc/moi_arc.rs +++ b/frb_rust/src/generalized_arc/moi_arc.rs @@ -123,7 +123,7 @@ macro_rules! frb_generated_moi_arc_def { drop(object); } - fn decrement_strong_count_raw(raw: usize, pool: &mut MoiArcPoolInner) -> Option { + fn decrement_strong_count_raw(raw: usize, pool: &mut MoiArcPoolInner) -> Option> { let value = pool.map.get_mut(&raw).unwrap(); value.ref_count -= 1; if value.ref_count == 0 { From 04e7ff89f67d7beaf9732948fa6884a810f4ba52 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 19:40:19 +0800 Subject: [PATCH 075/117] feat: mv test --- .../dart_minimal/flutter_rust_bridge.yaml | 4 +- .../dart_minimal/rust/src/api/minimal.rs | 210 ----------------- .../dart_minimal/test/minimal_test.dart | 205 ----------------- .../pure_dart/flutter_rust_bridge.yaml | 2 + .../pure_dart/rust/src/api/lifetimeable.rs | 202 +++++++++++++++++ .../rust/src/api/misc_no_twin_example_a.rs | 21 ++ frb_example/pure_dart/rust/src/api/mod.rs | 1 + .../pure_dart/test/api/lifetimeable_test.dart | 214 ++++++++++++++++++ 8 files changed, 442 insertions(+), 417 deletions(-) create mode 100644 frb_example/pure_dart/rust/src/api/lifetimeable.rs create mode 100644 frb_example/pure_dart/test/api/lifetimeable_test.dart diff --git a/frb_example/dart_minimal/flutter_rust_bridge.yaml b/frb_example/dart_minimal/flutter_rust_bridge.yaml index 540840ecd1..f98e28e477 100644 --- a/frb_example/dart_minimal/flutter_rust_bridge.yaml +++ b/frb_example/dart_minimal/flutter_rust_bridge.yaml @@ -7,5 +7,5 @@ local: true # TODO temp #full_dep: true -enable_lifetime: true -stop_on_error: true +#enable_lifetime: true +#stop_on_error: true diff --git a/frb_example/dart_minimal/rust/src/api/minimal.rs b/frb_example/dart_minimal/rust/src/api/minimal.rs index 96b8817153..517e29973f 100644 --- a/frb_example/dart_minimal/rust/src/api/minimal.rs +++ b/frb_example/dart_minimal/rust/src/api/minimal.rs @@ -1,7 +1,3 @@ -#![allow(clippy::needless_lifetimes)] - -use std::sync::{Arc, Mutex}; - use flutter_rust_bridge::frb; #[frb(init)] @@ -12,209 +8,3 @@ pub fn init_app() { pub fn minimal_adder(a: i32, b: i32) -> i32 { a + b } - -// ------------------------------------------------------------------------------------------------- - -// TODO move this to a separate file that has *no* auto twin - -#[derive(Debug, Clone)] -#[frb(opaque)] -pub struct SimpleLogger(Arc>>); - -impl SimpleLogger { - #[frb(sync)] - pub fn new() -> Self { - Self(Arc::new(Mutex::new(vec![]))) - } - - pub(crate) fn log(&self, message: &str) { - self.0.lock().unwrap().push(message.to_owned()); - } - - #[frb(sync)] - pub fn get_and_reset(&self) -> Vec { - self.0.lock().unwrap().drain(..).collect() - } -} - -// ------------------------------------------------------------------------------------------------- - -// --------------------------- struct definitions --------------------------- - -/// Try *NOT* to impl Clone for these types in order to ensure there are no extra clones -#[frb(opaque)] -#[derive(Debug)] -pub struct LtOwnedStructTwinNormal { - sub: LtSubStructTwinNormal, -} - -#[frb(opaque)] -#[derive(Debug)] -pub struct LtSubStructTwinNormal { - value: String, - logger: SimpleLogger, -} - -#[frb(opaque)] -#[derive(Debug)] -pub struct LtTypeWithLifetimeTwinNormal<'a> { - field: &'a LtOwnedStructTwinNormal, -} - -#[frb(opaque)] -#[derive(Debug)] -pub struct LtNestedTypeWithLifetimeTwinNormal<'a> { - field: &'a LtTypeWithLifetimeTwinNormal<'a>, -} - -#[frb(opaque)] -#[derive(Debug)] -pub struct LtTypeWithMultiDepTwinNormal<'a> { - fields: Vec<&'a LtOwnedStructTwinNormal>, -} - -// --------------------------- drops --------------------------- - -impl Drop for LtOwnedStructTwinNormal { - fn drop(&mut self) { - self.sub.logger.log("LtOwnedStructTwinNormal.drop"); - } -} - -impl Drop for LtSubStructTwinNormal { - fn drop(&mut self) { - self.logger.log("LtOwnedSubStructTwinNormal.drop"); - } -} - -impl Drop for LtTypeWithLifetimeTwinNormal<'_> { - fn drop(&mut self) { - (self.field.sub.logger).log("LtTypeWithLifetimeTwinNormal.drop"); - } -} - -impl Drop for LtNestedTypeWithLifetimeTwinNormal<'_> { - fn drop(&mut self) { - (self.field.field.sub.logger).log("LtNestedTypeWithLifetimeTwinNormal.drop"); - } -} - -// --------------------------- methods --------------------------- - -impl LtOwnedStructTwinNormal { - pub fn create(value: String) -> Self { - Self { - sub: LtSubStructTwinNormal { - value, - logger: SimpleLogger::new(), - }, - } - } - - pub fn create_with_logger(value: String, logger: &SimpleLogger) -> Self { - Self { - sub: LtSubStructTwinNormal { - value, - logger: logger.clone(), - }, - } - } - - /// `fn f(x: &'a T) -> S<'a>` - pub fn compute_type_with_lifetime_twin_normal<'a>( - &'a self, - ) -> LtTypeWithLifetimeTwinNormal<'a> { - LtTypeWithLifetimeTwinNormal { field: self } - } - - // /// `fn f(x: &'a T) -> &'a S` - // pub fn compute_sub_struct_twin_normal<'a>(&'a self) -> &'a LtSubStructTwinNormal { - // &self.sub - // } - - /// The unrelated arg should not affect results - pub fn compute_with_unrelated_borrowed_arg_twin_normal<'a>( - &'a self, - unrelated_borrowed: &LtOwnedStructTwinNormal, - unrelated_owned: LtOwnedStructTwinNormal, - ) -> LtTypeWithLifetimeTwinNormal<'a> { - assert_eq!(&unrelated_borrowed.sub.value, "hi"); - assert_eq!(&unrelated_owned.sub.value, "hi"); - LtTypeWithLifetimeTwinNormal { field: self } - } -} - -/// Functions (other tests are mainly methods) -pub fn lt_compute_with_lifetime_function_twin_normal<'a>( - arg: &'a LtOwnedStructTwinNormal, -) -> LtTypeWithLifetimeTwinNormal<'a> { - LtTypeWithLifetimeTwinNormal { field: arg } -} - -impl LtSubStructTwinNormal { - pub fn greet_borrow_self_twin_normal(&self) -> String { - self.value.clone() - } - - pub fn greet_borrow_mut_self_twin_normal(&mut self) -> String { - self.value.clone() - } -} - -impl LtTypeWithLifetimeTwinNormal<'_> { - /// `&T` where T is lifetimeable - pub fn greet_borrow_self_twin_normal(&self) -> String { - self.field.sub.value.clone() - } - - /// `&mut T` where T is lifetimeable - pub fn greet_borrow_mut_self_twin_normal(&mut self) -> String { - self.field.sub.value.clone() - } - - /// Input lifetimeable and output another lifetimeable - pub fn compute_nested_type_with_lifetime_twin_normal<'a>( - &'a self, - ) -> LtNestedTypeWithLifetimeTwinNormal<'a> { - LtNestedTypeWithLifetimeTwinNormal { field: self } - } - - /// Input argument has type `T<'a>` (other tests mainly are `&'a T`) - pub fn compute_arg_generic_lifetime_twin_normal<'a>( - arg: &LtTypeWithLifetimeTwinNormal<'a>, - ) -> LtTypeWithLifetimeTwinNormal<'a> { - LtTypeWithLifetimeTwinNormal { field: arg.field } - } -} - -impl LtNestedTypeWithLifetimeTwinNormal<'_> { - pub fn greet_borrow_self_twin_normal(&self) -> String { - self.field.field.sub.value.clone() - } - - pub fn greet_borrow_mut_self_twin_normal(&mut self) -> String { - self.field.field.sub.value.clone() - } -} - -impl LtTypeWithMultiDepTwinNormal<'_> { - /// Multiple input args have lifetime - pub fn compute_with_multi_arg_having_lifetime_twin_normal<'a>( - a: &'a LtOwnedStructTwinNormal, - b: &'a LtOwnedStructTwinNormal, - unrelated_borrowed: &LtOwnedStructTwinNormal, - unrelated_owned: LtOwnedStructTwinNormal, - ) -> LtTypeWithMultiDepTwinNormal<'a> { - assert_eq!(&unrelated_borrowed.sub.value, "hi"); - assert_eq!(&unrelated_owned.sub.value, "hi"); - LtTypeWithMultiDepTwinNormal { fields: vec![a, b] } - } - - pub fn greet_borrow_self_twin_normal(&self) -> Vec { - self.fields.iter().map(|x| x.sub.value.clone()).collect() - } - - pub fn greet_borrow_mut_self_twin_normal(&mut self) -> Vec { - self.fields.iter().map(|x| x.sub.value.clone()).collect() - } -} diff --git a/frb_example/dart_minimal/test/minimal_test.dart b/frb_example/dart_minimal/test/minimal_test.dart index a13471218c..9592272552 100644 --- a/frb_example/dart_minimal/test/minimal_test.dart +++ b/frb_example/dart_minimal/test/minimal_test.dart @@ -16,209 +16,4 @@ Future main() async { print('Action: Call rust (after)'); }); print('Action: Configure tests (end)'); - - // ---------------------------------------------------------------- - - group('when to dispose and the dispose order', () { - test('dispose ownedStruct', () async { - final simpleLogger = SimpleLogger(); - final ownedStruct = await LtOwnedStructTwinNormal.createWithLogger( - value: 'a', logger: simpleLogger); - expect(simpleLogger.getAndReset(), []); - - ownedStruct.dispose(); - expect(simpleLogger.getAndReset(), [ - 'LtOwnedStructTwinNormal.drop', - 'LtOwnedSubStructTwinNormal.drop', - ]); - }); - - test('dispose ownedStruct - dispose typeWithLifetime', () async { - final simpleLogger = SimpleLogger(); - final ownedStruct = await LtOwnedStructTwinNormal.createWithLogger( - value: 'a', logger: simpleLogger); - final typeWithLifetime = - await ownedStruct.computeTypeWithLifetimeTwinNormal(); - - ownedStruct.dispose(); - expect(simpleLogger.getAndReset(), [ - // Do *not* really dispose ownedStruct - ]); - - typeWithLifetime.dispose(); - expect(simpleLogger.getAndReset(), [ - // NOTE order: Firstly the borrowed type, secondly the owned type - 'LtTypeWithLifetimeTwinNormal.drop', - 'LtOwnedStructTwinNormal.drop', - 'LtOwnedSubStructTwinNormal.drop', - ]); - }); - - test('dispose typeWithLifetime - dispose ownedStruct', () async { - final simpleLogger = SimpleLogger(); - final ownedStruct = await LtOwnedStructTwinNormal.createWithLogger( - value: 'a', logger: simpleLogger); - final typeWithLifetime = - await ownedStruct.computeTypeWithLifetimeTwinNormal(); - - typeWithLifetime.dispose(); - expect(simpleLogger.getAndReset(), [ - 'LtTypeWithLifetimeTwinNormal.drop', - ]); - - ownedStruct.dispose(); - expect(simpleLogger.getAndReset(), [ - 'LtOwnedStructTwinNormal.drop', - 'LtOwnedSubStructTwinNormal.drop', - ]); - }); - - test('dispose ownedStruct - dispose typeWithLifetime', () async { - final simpleLogger = SimpleLogger(); - final ownedStruct = await LtOwnedStructTwinNormal.createWithLogger( - value: 'a', logger: simpleLogger); - final typeWithLifetime = - await ownedStruct.computeTypeWithLifetimeTwinNormal(); - - ownedStruct.dispose(); - expect(simpleLogger.getAndReset(), [ - // Do *not* really dispose ownedStruct - ]); - - typeWithLifetime.dispose(); - expect(simpleLogger.getAndReset(), [ - // NOTE order: Firstly the borrowed type, secondly the owned type - 'LtTypeWithLifetimeTwinNormal.drop', - 'LtOwnedStructTwinNormal.drop', - 'LtOwnedSubStructTwinNormal.drop', - ]); - }); - - test( - 'dispose ownedStruct - dispose typeWithLifetime - dispose nestedTypeWithLifetime', - () async { - final simpleLogger = SimpleLogger(); - final ownedStruct = await LtOwnedStructTwinNormal.createWithLogger( - value: 'a', logger: simpleLogger); - final typeWithLifetime = - await ownedStruct.computeTypeWithLifetimeTwinNormal(); - final nestedTypeWithLifetime = - await typeWithLifetime.computeNestedTypeWithLifetimeTwinNormal(); - - ownedStruct.dispose(); - expect(simpleLogger.getAndReset(), [ - // Do *not* really dispose - ]); - - typeWithLifetime.dispose(); - expect(simpleLogger.getAndReset(), [ - // Do *not* really dispose - ]); - - nestedTypeWithLifetime.dispose(); - expect(simpleLogger.getAndReset(), [ - // NOTE the order - 'LtNestedTypeWithLifetimeTwinNormal.drop', - 'LtTypeWithLifetimeTwinNormal.drop', - 'LtOwnedStructTwinNormal.drop', - 'LtOwnedSubStructTwinNormal.drop', - ]); - }); - }); - - group('features', () { - test('computeTypeWithLifetimeTwinNormal', () async { - final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); - final typeWithLifetime = - await ownedStruct.computeTypeWithLifetimeTwinNormal(); - await _testTypeWithLifetime(ownedStruct, typeWithLifetime); - }); - - test('computeWithUnrelatedBorrowedArgTwinNormal', () async { - final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); - final typeWithLifetime = - await ownedStruct.computeWithUnrelatedBorrowedArgTwinNormal( - unrelatedBorrowed: await LtOwnedStructTwinNormal.create(value: 'hi'), - unrelatedOwned: await LtOwnedStructTwinNormal.create(value: 'hi'), - ); - await _testTypeWithLifetime(ownedStruct, typeWithLifetime); - }); - - test('ltComputeWithLifetimeFunctionTwinNormal', () async { - final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); - final typeWithLifetime = - await ltComputeWithLifetimeFunctionTwinNormal(arg: ownedStruct); - await _testTypeWithLifetime(ownedStruct, typeWithLifetime); - }); - - test('computeNestedTypeWithLifetimeTwinNormal', () async { - final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); - final typeWithLifetime = - await ownedStruct.computeTypeWithLifetimeTwinNormal(); - final nestedTypeWithLifetime = - await typeWithLifetime.computeNestedTypeWithLifetimeTwinNormal(); - await _testNestedTypeWithLifetime( - ownedStruct, typeWithLifetime, nestedTypeWithLifetime); - }); - - test('computeArgGenericLifetimeTwinNormal', () async { - final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); - final typeWithLifetime = - await ownedStruct.computeTypeWithLifetimeTwinNormal(); - final anotherTypeWithLifetime = await LtTypeWithLifetimeTwinNormal - .computeArgGenericLifetimeTwinNormal(arg: typeWithLifetime); - - expect(await anotherTypeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); - expect(await anotherTypeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); - - ownedStruct.dispose(); - typeWithLifetime.dispose(); - - expect(await anotherTypeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); - expect(await anotherTypeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); - }); - - test('computeWithMultiArgHavingLifetimeTwinNormal', () async { - final typeWithMultiDep = await LtTypeWithMultiDepTwinNormal - .computeWithMultiArgHavingLifetimeTwinNormal( - a: await LtOwnedStructTwinNormal.create(value: 'a'), - b: await LtOwnedStructTwinNormal.create(value: 'b'), - unrelatedBorrowed: await LtOwnedStructTwinNormal.create(value: 'hi'), - unrelatedOwned: await LtOwnedStructTwinNormal.create(value: 'hi'), - ); - expect(await typeWithMultiDep.greetBorrowSelfTwinNormal(), ['a', 'b']); - expect(await typeWithMultiDep.greetBorrowMutSelfTwinNormal(), ['a', 'b']); - }); - }); -} - -Future _testTypeWithLifetime( - LtOwnedStructTwinNormal ownedStruct, - LtTypeWithLifetimeTwinNormal typeWithLifetime, -) async { - expect(await typeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); - expect(await typeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); - ownedStruct.dispose(); - expect(await typeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); - expect(await typeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); -} - -Future _testNestedTypeWithLifetime( - LtOwnedStructTwinNormal ownedStruct, - LtTypeWithLifetimeTwinNormal typeWithLifetime, - LtNestedTypeWithLifetimeTwinNormal nestedTypeWithLifetime, -) async { - expect(await typeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); - // cannot mut borrow, since nestedTypeWithLifetime has borrowed typeWithLifetime - // expect(await typeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); - - expect(await nestedTypeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); - expect(await nestedTypeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); - - ownedStruct.dispose(); - typeWithLifetime.dispose(); - - // can still call - expect(await nestedTypeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); - expect(await nestedTypeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); } diff --git a/frb_example/pure_dart/flutter_rust_bridge.yaml b/frb_example/pure_dart/flutter_rust_bridge.yaml index 7cad3040cc..e81f7bd4dc 100644 --- a/frb_example/pure_dart/flutter_rust_bridge.yaml +++ b/frb_example/pure_dart/flutter_rust_bridge.yaml @@ -12,6 +12,8 @@ rust_preamble: "// test for rust_preamble" # To help developing flutter_rust_bridge; normal users usually do not set this stop_on_error: true +enable_lifetime: true + # only for development of flutter_rust_bridge, not for normal users (dump all debug information) dump_all: true # only for development of flutter_rust_bridge, not for normal users (use local dependency) diff --git a/frb_example/pure_dart/rust/src/api/lifetimeable.rs b/frb_example/pure_dart/rust/src/api/lifetimeable.rs new file mode 100644 index 0000000000..c4de463cef --- /dev/null +++ b/frb_example/pure_dart/rust/src/api/lifetimeable.rs @@ -0,0 +1,202 @@ +// FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "sse", "sync sse", "rustAsync sse"]} + +#![allow(clippy::needless_lifetimes)] + +use flutter_rust_bridge::frb; +use crate::api::misc_no_twin_example_a::SimpleLogger; + +// --------------------------- struct definitions --------------------------- + +/// Try *NOT* to impl Clone for these types in order to ensure there are no extra clones +#[frb(opaque)] +#[derive(Debug)] +pub struct LtOwnedStructTwinNormal { + sub: LtSubStructTwinNormal, +} + +#[frb(opaque)] +#[derive(Debug)] +pub struct LtSubStructTwinNormal { + value: String, + logger: SimpleLogger, +} + +#[frb(opaque)] +#[derive(Debug)] +pub struct LtTypeWithLifetimeTwinNormal<'a> { + field: &'a LtOwnedStructTwinNormal, +} + +#[frb(opaque)] +#[derive(Debug)] +pub struct LtNestedTypeWithLifetimeTwinNormal<'a> { + field: &'a LtTypeWithLifetimeTwinNormal<'a>, +} + +#[frb(opaque)] +#[derive(Debug)] +pub struct LtTypeWithMultiDepTwinNormal<'a> { + fields: Vec<&'a LtOwnedStructTwinNormal>, +} + +// --------------------------- drops --------------------------- + +impl Drop for LtOwnedStructTwinNormal { + fn drop(&mut self) { + self.sub.logger.log("LtOwnedStructTwinNormal.drop"); + } +} + +impl Drop for LtSubStructTwinNormal { + fn drop(&mut self) { + self.logger.log("LtOwnedSubStructTwinNormal.drop"); + } +} + +impl Drop for LtTypeWithLifetimeTwinNormal<'_> { + fn drop(&mut self) { + (self.field.sub.logger).log("LtTypeWithLifetimeTwinNormal.drop"); + } +} + +impl Drop for LtNestedTypeWithLifetimeTwinNormal<'_> { + fn drop(&mut self) { + (self.field.field.sub.logger).log("LtNestedTypeWithLifetimeTwinNormal.drop"); + } +} + +// --------------------------- methods --------------------------- + +impl LtOwnedStructTwinNormal { + #[frb(serialize)] + pub fn create(value: String) -> Self { + Self { + sub: LtSubStructTwinNormal { + value, + logger: SimpleLogger::new(), + }, + } + } + + #[frb(serialize)] + pub fn create_with_logger(value: String, logger: &SimpleLogger) -> Self { + Self { + sub: LtSubStructTwinNormal { + value, + logger: logger.clone(), + }, + } + } + + /// `fn f(x: &'a T) -> S<'a>` + #[frb(serialize)] + pub fn compute_type_with_lifetime_twin_normal<'a>( + &'a self, + ) -> LtTypeWithLifetimeTwinNormal<'a> { + LtTypeWithLifetimeTwinNormal { field: self } + } + + // /// `fn f(x: &'a T) -> &'a S` + // pub fn compute_sub_struct_twin_normal<'a>(&'a self) -> &'a LtSubStructTwinNormal { + // &self.sub + // } + + /// The unrelated arg should not affect results + #[frb(serialize)] + pub fn compute_with_unrelated_borrowed_arg_twin_normal<'a>( + &'a self, + unrelated_borrowed: &LtOwnedStructTwinNormal, + unrelated_owned: LtOwnedStructTwinNormal, + ) -> LtTypeWithLifetimeTwinNormal<'a> { + assert_eq!(&unrelated_borrowed.sub.value, "hi"); + assert_eq!(&unrelated_owned.sub.value, "hi"); + LtTypeWithLifetimeTwinNormal { field: self } + } +} + +/// Functions (other tests are mainly methods) +#[frb(serialize)] +pub fn lt_compute_with_lifetime_function_twin_normal<'a>( + arg: &'a LtOwnedStructTwinNormal, +) -> LtTypeWithLifetimeTwinNormal<'a> { + LtTypeWithLifetimeTwinNormal { field: arg } +} + +impl LtSubStructTwinNormal { + #[frb(serialize)] + pub fn greet_borrow_self_twin_normal(&self) -> String { + self.value.clone() + } + + #[frb(serialize)] + pub fn greet_borrow_mut_self_twin_normal(&mut self) -> String { + self.value.clone() + } +} + +impl LtTypeWithLifetimeTwinNormal<'_> { + /// `&T` where T is lifetimeable + #[frb(serialize)] + pub fn greet_borrow_self_twin_normal(&self) -> String { + self.field.sub.value.clone() + } + + /// `&mut T` where T is lifetimeable + #[frb(serialize)] + pub fn greet_borrow_mut_self_twin_normal(&mut self) -> String { + self.field.sub.value.clone() + } + + /// Input lifetimeable and output another lifetimeable + #[frb(serialize)] + pub fn compute_nested_type_with_lifetime_twin_normal<'a>( + &'a self, + ) -> LtNestedTypeWithLifetimeTwinNormal<'a> { + LtNestedTypeWithLifetimeTwinNormal { field: self } + } + + /// Input argument has type `T<'a>` (other tests mainly are `&'a T`) + #[frb(serialize)] + pub fn compute_arg_generic_lifetime_twin_normal<'a>( + arg: &LtTypeWithLifetimeTwinNormal<'a>, + ) -> LtTypeWithLifetimeTwinNormal<'a> { + LtTypeWithLifetimeTwinNormal { field: arg.field } + } +} + +impl LtNestedTypeWithLifetimeTwinNormal<'_> { + #[frb(serialize)] + pub fn greet_borrow_self_twin_normal(&self) -> String { + self.field.field.sub.value.clone() + } + + #[frb(serialize)] + pub fn greet_borrow_mut_self_twin_normal(&mut self) -> String { + self.field.field.sub.value.clone() + } +} + +impl LtTypeWithMultiDepTwinNormal<'_> { + /// Multiple input args have lifetime + #[frb(serialize)] + pub fn compute_with_multi_arg_having_lifetime_twin_normal<'a>( + a: &'a LtOwnedStructTwinNormal, + b: &'a LtOwnedStructTwinNormal, + unrelated_borrowed: &LtOwnedStructTwinNormal, + unrelated_owned: LtOwnedStructTwinNormal, + ) -> LtTypeWithMultiDepTwinNormal<'a> { + assert_eq!(&unrelated_borrowed.sub.value, "hi"); + assert_eq!(&unrelated_owned.sub.value, "hi"); + LtTypeWithMultiDepTwinNormal { fields: vec![a, b] } + } + + #[frb(serialize)] + pub fn greet_borrow_self_twin_normal(&self) -> Vec { + self.fields.iter().map(|x| x.sub.value.clone()).collect() + } + + #[frb(serialize)] + pub fn greet_borrow_mut_self_twin_normal(&mut self) -> Vec { + self.fields.iter().map(|x| x.sub.value.clone()).collect() + } +} diff --git a/frb_example/pure_dart/rust/src/api/misc_no_twin_example_a.rs b/frb_example/pure_dart/rust/src/api/misc_no_twin_example_a.rs index f5fcdb6107..fd0b527b20 100644 --- a/frb_example/pure_dart/rust/src/api/misc_no_twin_example_a.rs +++ b/frb_example/pure_dart/rust/src/api/misc_no_twin_example_a.rs @@ -3,6 +3,7 @@ use crate::frb_generated::RustAutoOpaque; use flutter_rust_bridge::frb; pub use std::any::Any; +use std::sync::{Arc, Mutex}; // Reproduce #1630 #[frb(opaque)] @@ -132,3 +133,23 @@ impl DeliberateFailSanityCheckTwinNormal { pub fn function_with_arg_type_name_override(a: Box) { let _ = a; } + +#[derive(Debug, Clone)] +#[frb(opaque)] +pub struct SimpleLogger(Arc>>); + +impl SimpleLogger { + #[frb(sync)] + pub fn new() -> Self { + Self(Arc::new(Mutex::new(vec![]))) + } + + pub(crate) fn log(&self, message: &str) { + self.0.lock().unwrap().push(message.to_owned()); + } + + #[frb(sync)] + pub fn get_and_reset(&self) -> Vec { + self.0.lock().unwrap().drain(..).collect() + } +} diff --git a/frb_example/pure_dart/rust/src/api/mod.rs b/frb_example/pure_dart/rust/src/api/mod.rs index 638a9fc6e8..0720a3ac55 100644 --- a/frb_example/pure_dart/rust/src/api/mod.rs +++ b/frb_example/pure_dart/rust/src/api/mod.rs @@ -56,5 +56,6 @@ pub mod structure; pub mod tuple; pub mod type_alias; pub mod uuid_type; +mod lifetimeable; pub fn function_at_api_mod_rs() {} diff --git a/frb_example/pure_dart/test/api/lifetimeable_test.dart b/frb_example/pure_dart/test/api/lifetimeable_test.dart new file mode 100644 index 0000000000..1e395fd5e2 --- /dev/null +++ b/frb_example/pure_dart/test/api/lifetimeable_test.dart @@ -0,0 +1,214 @@ +// FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "sse", "sync sse", "rustAsync sse"]} + +import 'dart:async'; + +import 'package:frb_example_pure_dart/src/rust/api/lifetimeable.dart'; +import 'package:frb_example_pure_dart/src/rust/frb_generated.dart'; +import 'package:test/test.dart'; + +Future main({bool skipRustLibInit = false}) async { + if (!skipRustLibInit) await RustLib.init(); + + group('when to dispose and the dispose order', () { + test('dispose ownedStruct', () async { + final simpleLogger = SimpleLogger(); + final ownedStruct = await LtOwnedStructTwinNormal.createWithLogger( + value: 'a', logger: simpleLogger); + expect(simpleLogger.getAndReset(), []); + + ownedStruct.dispose(); + expect(simpleLogger.getAndReset(), [ + 'LtOwnedStructTwinNormal.drop', + 'LtOwnedSubStructTwinNormal.drop', + ]); + }); + + test('dispose ownedStruct - dispose typeWithLifetime', () async { + final simpleLogger = SimpleLogger(); + final ownedStruct = await LtOwnedStructTwinNormal.createWithLogger( + value: 'a', logger: simpleLogger); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinNormal(); + + ownedStruct.dispose(); + expect(simpleLogger.getAndReset(), [ + // Do *not* really dispose ownedStruct + ]); + + typeWithLifetime.dispose(); + expect(simpleLogger.getAndReset(), [ + // NOTE order: Firstly the borrowed type, secondly the owned type + 'LtTypeWithLifetimeTwinNormal.drop', + 'LtOwnedStructTwinNormal.drop', + 'LtOwnedSubStructTwinNormal.drop', + ]); + }); + + test('dispose typeWithLifetime - dispose ownedStruct', () async { + final simpleLogger = SimpleLogger(); + final ownedStruct = await LtOwnedStructTwinNormal.createWithLogger( + value: 'a', logger: simpleLogger); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinNormal(); + + typeWithLifetime.dispose(); + expect(simpleLogger.getAndReset(), [ + 'LtTypeWithLifetimeTwinNormal.drop', + ]); + + ownedStruct.dispose(); + expect(simpleLogger.getAndReset(), [ + 'LtOwnedStructTwinNormal.drop', + 'LtOwnedSubStructTwinNormal.drop', + ]); + }); + + test('dispose ownedStruct - dispose typeWithLifetime', () async { + final simpleLogger = SimpleLogger(); + final ownedStruct = await LtOwnedStructTwinNormal.createWithLogger( + value: 'a', logger: simpleLogger); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinNormal(); + + ownedStruct.dispose(); + expect(simpleLogger.getAndReset(), [ + // Do *not* really dispose ownedStruct + ]); + + typeWithLifetime.dispose(); + expect(simpleLogger.getAndReset(), [ + // NOTE order: Firstly the borrowed type, secondly the owned type + 'LtTypeWithLifetimeTwinNormal.drop', + 'LtOwnedStructTwinNormal.drop', + 'LtOwnedSubStructTwinNormal.drop', + ]); + }); + + test( + 'dispose ownedStruct - dispose typeWithLifetime - dispose nestedTypeWithLifetime', + () async { + final simpleLogger = SimpleLogger(); + final ownedStruct = await LtOwnedStructTwinNormal.createWithLogger( + value: 'a', logger: simpleLogger); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinNormal(); + final nestedTypeWithLifetime = + await typeWithLifetime.computeNestedTypeWithLifetimeTwinNormal(); + + ownedStruct.dispose(); + expect(simpleLogger.getAndReset(), [ + // Do *not* really dispose + ]); + + typeWithLifetime.dispose(); + expect(simpleLogger.getAndReset(), [ + // Do *not* really dispose + ]); + + nestedTypeWithLifetime.dispose(); + expect(simpleLogger.getAndReset(), [ + // NOTE the order + 'LtNestedTypeWithLifetimeTwinNormal.drop', + 'LtTypeWithLifetimeTwinNormal.drop', + 'LtOwnedStructTwinNormal.drop', + 'LtOwnedSubStructTwinNormal.drop', + ]); + }); + }); + + group('features', () { + test('computeTypeWithLifetimeTwinNormal', () async { + final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinNormal(); + await _testTypeWithLifetime(ownedStruct, typeWithLifetime); + }); + + test('computeWithUnrelatedBorrowedArgTwinNormal', () async { + final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); + final typeWithLifetime = + await ownedStruct.computeWithUnrelatedBorrowedArgTwinNormal( + unrelatedBorrowed: await LtOwnedStructTwinNormal.create(value: 'hi'), + unrelatedOwned: await LtOwnedStructTwinNormal.create(value: 'hi'), + ); + await _testTypeWithLifetime(ownedStruct, typeWithLifetime); + }); + + test('ltComputeWithLifetimeFunctionTwinNormal', () async { + final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); + final typeWithLifetime = + await ltComputeWithLifetimeFunctionTwinNormal(arg: ownedStruct); + await _testTypeWithLifetime(ownedStruct, typeWithLifetime); + }); + + test('computeNestedTypeWithLifetimeTwinNormal', () async { + final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinNormal(); + final nestedTypeWithLifetime = + await typeWithLifetime.computeNestedTypeWithLifetimeTwinNormal(); + await _testNestedTypeWithLifetime( + ownedStruct, typeWithLifetime, nestedTypeWithLifetime); + }); + + test('computeArgGenericLifetimeTwinNormal', () async { + final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinNormal(); + final anotherTypeWithLifetime = await LtTypeWithLifetimeTwinNormal + .computeArgGenericLifetimeTwinNormal(arg: typeWithLifetime); + + expect(await anotherTypeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); + expect(await anotherTypeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); + + ownedStruct.dispose(); + typeWithLifetime.dispose(); + + expect(await anotherTypeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); + expect(await anotherTypeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); + }); + + test('computeWithMultiArgHavingLifetimeTwinNormal', () async { + final typeWithMultiDep = await LtTypeWithMultiDepTwinNormal + .computeWithMultiArgHavingLifetimeTwinNormal( + a: await LtOwnedStructTwinNormal.create(value: 'a'), + b: await LtOwnedStructTwinNormal.create(value: 'b'), + unrelatedBorrowed: await LtOwnedStructTwinNormal.create(value: 'hi'), + unrelatedOwned: await LtOwnedStructTwinNormal.create(value: 'hi'), + ); + expect(await typeWithMultiDep.greetBorrowSelfTwinNormal(), ['a', 'b']); + expect(await typeWithMultiDep.greetBorrowMutSelfTwinNormal(), ['a', 'b']); + }); + }); +} + +Future _testTypeWithLifetime( + LtOwnedStructTwinNormal ownedStruct, + LtTypeWithLifetimeTwinNormal typeWithLifetime, +) async { + expect(await typeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); + expect(await typeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); + ownedStruct.dispose(); + expect(await typeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); + expect(await typeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); +} + +Future _testNestedTypeWithLifetime( + LtOwnedStructTwinNormal ownedStruct, + LtTypeWithLifetimeTwinNormal typeWithLifetime, + LtNestedTypeWithLifetimeTwinNormal nestedTypeWithLifetime, +) async { + expect(await typeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); + // cannot mut borrow, since nestedTypeWithLifetime has borrowed typeWithLifetime + // expect(await typeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); + + expect(await nestedTypeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); + expect(await nestedTypeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); + + ownedStruct.dispose(); + typeWithLifetime.dispose(); + + // can still call + expect(await nestedTypeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); + expect(await nestedTypeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); +} From 02297599fe3a1a5806ebc232cf2ee049b83f87d2 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 19:45:33 +0800 Subject: [PATCH 076/117] chore: codegen --- .../lib/src/rust/api/minimal.dart | 95 - .../lib/src/rust/frb_generated.dart | 1761 +---------------- .../lib/src/rust/frb_generated.io.dart | 592 ------ .../lib/src/rust/frb_generated.web.dart | 522 +---- .../dart_minimal/rust/src/frb_generated.io.rs | 109 - .../dart_minimal/rust/src/frb_generated.rs | 1123 +---------- .../rust/src/frb_generated.web.rs | 109 - 7 files changed, 56 insertions(+), 4255 deletions(-) diff --git a/frb_example/dart_minimal/lib/src/rust/api/minimal.dart b/frb_example/dart_minimal/lib/src/rust/api/minimal.dart index 0ff7d730de..6aa0ea1da5 100644 --- a/frb_example/dart_minimal/lib/src/rust/api/minimal.dart +++ b/frb_example/dart_minimal/lib/src/rust/api/minimal.dart @@ -6,100 +6,5 @@ import '../frb_generated.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; -// These functions are ignored because they are not marked as `pub`: `log` - Future minimalAdder({required int a, required int b}) => RustLib.instance.api.crateApiMinimalMinimalAdder(a: a, b: b); - -/// Functions (other tests are mainly methods) -Future ltComputeWithLifetimeFunctionTwinNormal( - {required LtOwnedStructTwinNormal arg}) => - RustLib.instance.api - .crateApiMinimalLtComputeWithLifetimeFunctionTwinNormal(arg: arg); - -// Rust type: RustOpaqueMoi >>> -abstract class LtNestedTypeWithLifetimeTwinNormal - implements RustOpaqueInterface { - Future greetBorrowMutSelfTwinNormal(); - - Future greetBorrowSelfTwinNormal(); -} - -// Rust type: RustOpaqueMoi >>> -abstract class LtTypeWithLifetimeTwinNormal implements RustOpaqueInterface { - /// Input argument has type `T<'a>` (other tests mainly are `&'a T`) - static Future< - LtTypeWithLifetimeTwinNormal> computeArgGenericLifetimeTwinNormal( - {required LtTypeWithLifetimeTwinNormal arg}) => - RustLib.instance.api - .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeArgGenericLifetimeTwinNormal( - arg: arg); - - /// Input lifetimeable and output another lifetimeable - Future - computeNestedTypeWithLifetimeTwinNormal(); - - /// `&mut T` where T is lifetimeable - Future greetBorrowMutSelfTwinNormal(); - - /// `&T` where T is lifetimeable - Future greetBorrowSelfTwinNormal(); -} - -// Rust type: RustOpaqueMoi >>> -abstract class LtTypeWithMultiDepTwinNormal implements RustOpaqueInterface { - /// Multiple input args have lifetime - static Future< - LtTypeWithMultiDepTwinNormal> computeWithMultiArgHavingLifetimeTwinNormal( - {required LtOwnedStructTwinNormal a, - required LtOwnedStructTwinNormal b, - required LtOwnedStructTwinNormal unrelatedBorrowed, - required LtOwnedStructTwinNormal unrelatedOwned}) => - RustLib.instance.api - .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticComputeWithMultiArgHavingLifetimeTwinNormal( - a: a, - b: b, - unrelatedBorrowed: unrelatedBorrowed, - unrelatedOwned: unrelatedOwned); - - Future> greetBorrowMutSelfTwinNormal(); - - Future> greetBorrowSelfTwinNormal(); -} - -// Rust type: RustOpaqueMoi> -abstract class LtOwnedStructTwinNormal implements RustOpaqueInterface { - /// `fn f(x: &'a T) -> S<'a>` - Future computeTypeWithLifetimeTwinNormal(); - - /// The unrelated arg should not affect results - Future - computeWithUnrelatedBorrowedArgTwinNormal( - {required LtOwnedStructTwinNormal unrelatedBorrowed, - required LtOwnedStructTwinNormal unrelatedOwned}); - - static Future create({required String value}) => - RustLib.instance.api - .crateApiMinimalLtOwnedStructTwinNormalCreate(value: value); - - static Future createWithLogger( - {required String value, required SimpleLogger logger}) => - RustLib.instance.api - .crateApiMinimalLtOwnedStructTwinNormalCreateWithLogger( - value: value, logger: logger); -} - -// Rust type: RustOpaqueMoi> -abstract class LtSubStructTwinNormal implements RustOpaqueInterface { - Future greetBorrowMutSelfTwinNormal(); - - Future greetBorrowSelfTwinNormal(); -} - -// Rust type: RustOpaqueMoi> -abstract class SimpleLogger implements RustOpaqueInterface { - List getAndReset(); - - factory SimpleLogger() => - RustLib.instance.api.crateApiMinimalSimpleLoggerNew(); -} diff --git a/frb_example/dart_minimal/lib/src/rust/frb_generated.dart b/frb_example/dart_minimal/lib/src/rust/frb_generated.dart index afe7aae6df..2efde2003e 100644 --- a/frb_example/dart_minimal/lib/src/rust/frb_generated.dart +++ b/frb_example/dart_minimal/lib/src/rust/frb_generated.dart @@ -57,7 +57,7 @@ class RustLib extends BaseEntrypoint { String get codegenVersion => '2.0.0-dev.39'; @override - int get rustContentHash => 660839085; + int get rustContentHash => -2119384465; static const kDefaultExternalLibraryLoaderConfig = ExternalLibraryLoaderConfig( @@ -68,134 +68,9 @@ class RustLib extends BaseEntrypoint { } abstract class RustLibApi extends BaseApi { - Future - crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( - {required LtNestedTypeWithLifetimeTwinNormal that}); - - Future - crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormal( - {required LtNestedTypeWithLifetimeTwinNormal that}); - - Future - crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeArgGenericLifetimeTwinNormal( - {required LtTypeWithLifetimeTwinNormal arg}); - - Future - crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeNestedTypeWithLifetimeTwinNormal( - {required LtTypeWithLifetimeTwinNormal that}); - - Future - crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( - {required LtTypeWithLifetimeTwinNormal that}); - - Future - crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormal( - {required LtTypeWithLifetimeTwinNormal that}); - - Future - crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticComputeWithMultiArgHavingLifetimeTwinNormal( - {required LtOwnedStructTwinNormal a, - required LtOwnedStructTwinNormal b, - required LtOwnedStructTwinNormal unrelatedBorrowed, - required LtOwnedStructTwinNormal unrelatedOwned}); - - Future> - crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowMutSelfTwinNormal( - {required LtTypeWithMultiDepTwinNormal that}); - - Future> - crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowSelfTwinNormal( - {required LtTypeWithMultiDepTwinNormal that}); - - Future - crateApiMinimalLtOwnedStructTwinNormalComputeTypeWithLifetimeTwinNormal( - {required LtOwnedStructTwinNormal that}); - - Future - crateApiMinimalLtOwnedStructTwinNormalComputeWithUnrelatedBorrowedArgTwinNormal( - {required LtOwnedStructTwinNormal that, - required LtOwnedStructTwinNormal unrelatedBorrowed, - required LtOwnedStructTwinNormal unrelatedOwned}); - - Future crateApiMinimalLtOwnedStructTwinNormalCreate( - {required String value}); - - Future - crateApiMinimalLtOwnedStructTwinNormalCreateWithLogger( - {required String value, required SimpleLogger logger}); - - Future - crateApiMinimalLtSubStructTwinNormalGreetBorrowMutSelfTwinNormal( - {required LtSubStructTwinNormal that}); - - Future crateApiMinimalLtSubStructTwinNormalGreetBorrowSelfTwinNormal( - {required LtSubStructTwinNormal that}); - - List crateApiMinimalSimpleLoggerGetAndReset( - {required SimpleLogger that}); - - SimpleLogger crateApiMinimalSimpleLoggerNew(); - Future crateApiMinimalInitApp(); - Future - crateApiMinimalLtComputeWithLifetimeFunctionTwinNormal( - {required LtOwnedStructTwinNormal arg}); - Future crateApiMinimalMinimalAdder({required int a, required int b}); - - RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_LtNestedTypeWithLifetimeTwinNormal; - - RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormal; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormalPtr; - - RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_LtTypeWithLifetimeTwinNormal; - - RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormal; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormalPtr; - - RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_LtTypeWithMultiDepTwinNormal; - - RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormal; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr; - - RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_LtOwnedStructTwinNormal; - - RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_LtOwnedStructTwinNormal; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_LtOwnedStructTwinNormalPtr; - - RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_LtSubStructTwinNormal; - - RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_LtSubStructTwinNormal; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_LtSubStructTwinNormalPtr; - - RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_SimpleLogger; - - RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_SimpleLogger; - - CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_SimpleLoggerPtr; } class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { @@ -207,1633 +82,97 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { }); @override - Future - crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( - {required LtNestedTypeWithLifetimeTwinNormal that}) { + Future crateApiMinimalInitApp() { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( - that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1, port: port_); }, codec: SseCodec( - decodeSuccessData: sse_decode_String, + decodeSuccessData: sse_decode_unit, decodeErrorData: null, ), - constMeta: - kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormalConstMeta, - argValues: [that], + constMeta: kCrateApiMinimalInitAppConstMeta, + argValues: [], apiImpl: this, )); } - TaskConstMeta - get kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormalConstMeta => - const TaskConstMeta( - debugName: - "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal", - argNames: ["that"], - ); + TaskConstMeta get kCrateApiMinimalInitAppConstMeta => const TaskConstMeta( + debugName: "init_app", + argNames: [], + ); @override - Future - crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormal( - {required LtNestedTypeWithLifetimeTwinNormal that}) { + Future crateApiMinimalMinimalAdder({required int a, required int b}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( - that, serializer); + sse_encode_i_32(a, serializer); + sse_encode_i_32(b, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 2, port: port_); }, codec: SseCodec( - decodeSuccessData: sse_decode_String, - decodeErrorData: null, - ), - constMeta: - kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormalConstMeta, - argValues: [that], - apiImpl: this, - )); - } - - TaskConstMeta - get kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormalConstMeta => - const TaskConstMeta( - debugName: - "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal", - argNames: ["that"], - ); - - @override - Future - crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeArgGenericLifetimeTwinNormal( - {required LtTypeWithLifetimeTwinNormal arg}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { - final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( - arg, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 3, port: port_); - }, - codec: SseCodec( - decodeSuccessData: - sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic, - decodeErrorData: null, - ), - constMeta: - kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeArgGenericLifetimeTwinNormalConstMeta, - argValues: [arg], - apiImpl: this, - )); - } - - TaskConstMeta - get kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeArgGenericLifetimeTwinNormalConstMeta => - const TaskConstMeta( - debugName: - "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal", - argNames: ["arg"], - ); - - @override - Future - crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeNestedTypeWithLifetimeTwinNormal( - {required LtTypeWithLifetimeTwinNormal that}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { - final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( - that, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 4, port: port_); - }, - codec: SseCodec( - decodeSuccessData: - sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic, - decodeErrorData: null, - ), - constMeta: - kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeNestedTypeWithLifetimeTwinNormalConstMeta, - argValues: [that], - apiImpl: this, - )); - } - - TaskConstMeta - get kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeNestedTypeWithLifetimeTwinNormalConstMeta => - const TaskConstMeta( - debugName: - "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_nested_type_with_lifetime_twin_normal", - argNames: ["that"], - ); - - @override - Future - crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( - {required LtTypeWithLifetimeTwinNormal that}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { - final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( - that, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 5, port: port_); - }, - codec: SseCodec( - decodeSuccessData: sse_decode_String, - decodeErrorData: null, - ), - constMeta: - kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormalConstMeta, - argValues: [that], - apiImpl: this, - )); - } - - TaskConstMeta - get kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormalConstMeta => - const TaskConstMeta( - debugName: - "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal", - argNames: ["that"], - ); - - @override - Future - crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormal( - {required LtTypeWithLifetimeTwinNormal that}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { - final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( - that, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 6, port: port_); - }, - codec: SseCodec( - decodeSuccessData: sse_decode_String, - decodeErrorData: null, - ), - constMeta: - kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormalConstMeta, - argValues: [that], - apiImpl: this, - )); - } - - TaskConstMeta - get kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormalConstMeta => - const TaskConstMeta( - debugName: - "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal", - argNames: ["that"], - ); - - @override - Future - crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticComputeWithMultiArgHavingLifetimeTwinNormal( - {required LtOwnedStructTwinNormal a, - required LtOwnedStructTwinNormal b, - required LtOwnedStructTwinNormal unrelatedBorrowed, - required LtOwnedStructTwinNormal unrelatedOwned}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { - final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - a, serializer); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - b, serializer); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - unrelatedBorrowed, serializer); - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - unrelatedOwned, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 7, port: port_); - }, - codec: SseCodec( - decodeSuccessData: - sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic, + decodeSuccessData: sse_decode_i_32, decodeErrorData: null, ), - constMeta: - kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticComputeWithMultiArgHavingLifetimeTwinNormalConstMeta, - argValues: [a, b, unrelatedBorrowed, unrelatedOwned], + constMeta: kCrateApiMinimalMinimalAdderConstMeta, + argValues: [a, b], apiImpl: this, )); } - TaskConstMeta - get kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticComputeWithMultiArgHavingLifetimeTwinNormalConstMeta => - const TaskConstMeta( - debugName: - "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal", - argNames: ["a", "b", "unrelatedBorrowed", "unrelatedOwned"], - ); + TaskConstMeta get kCrateApiMinimalMinimalAdderConstMeta => + const TaskConstMeta( + debugName: "minimal_adder", + argNames: ["a", "b"], + ); - @override - Future> - crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowMutSelfTwinNormal( - {required LtTypeWithMultiDepTwinNormal that}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { - final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - that, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 8, port: port_); - }, - codec: SseCodec( - decodeSuccessData: sse_decode_list_String, - decodeErrorData: null, - ), - constMeta: - kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowMutSelfTwinNormalConstMeta, - argValues: [that], - apiImpl: this, - )); + @protected + int dco_decode_i_32(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return raw as int; } - TaskConstMeta - get kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowMutSelfTwinNormalConstMeta => - const TaskConstMeta( - debugName: - "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal", - argNames: ["that"], - ); - - @override - Future> - crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowSelfTwinNormal( - {required LtTypeWithMultiDepTwinNormal that}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { - final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - that, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 9, port: port_); - }, - codec: SseCodec( - decodeSuccessData: sse_decode_list_String, - decodeErrorData: null, - ), - constMeta: - kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowSelfTwinNormalConstMeta, - argValues: [that], - apiImpl: this, - )); + @protected + void dco_decode_unit(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return; } - TaskConstMeta - get kCrateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowSelfTwinNormalConstMeta => - const TaskConstMeta( - debugName: - "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal", - argNames: ["that"], - ); - - @override - Future - crateApiMinimalLtOwnedStructTwinNormalComputeTypeWithLifetimeTwinNormal( - {required LtOwnedStructTwinNormal that}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { - final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - that, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 10, port: port_); - }, - codec: SseCodec( - decodeSuccessData: - sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic, - decodeErrorData: null, - ), - constMeta: - kCrateApiMinimalLtOwnedStructTwinNormalComputeTypeWithLifetimeTwinNormalConstMeta, - argValues: [that], - apiImpl: this, - )); + @protected + int sse_decode_i_32(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return deserializer.buffer.getInt32(); } - TaskConstMeta - get kCrateApiMinimalLtOwnedStructTwinNormalComputeTypeWithLifetimeTwinNormalConstMeta => - const TaskConstMeta( - debugName: - "LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal", - argNames: ["that"], - ); - - @override - Future - crateApiMinimalLtOwnedStructTwinNormalComputeWithUnrelatedBorrowedArgTwinNormal( - {required LtOwnedStructTwinNormal that, - required LtOwnedStructTwinNormal unrelatedBorrowed, - required LtOwnedStructTwinNormal unrelatedOwned}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { - final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - that, serializer); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - unrelatedBorrowed, serializer); - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - unrelatedOwned, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 11, port: port_); - }, - codec: SseCodec( - decodeSuccessData: - sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic, - decodeErrorData: null, - ), - constMeta: - kCrateApiMinimalLtOwnedStructTwinNormalComputeWithUnrelatedBorrowedArgTwinNormalConstMeta, - argValues: [that, unrelatedBorrowed, unrelatedOwned], - apiImpl: this, - )); + @protected + void sse_decode_unit(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs } - TaskConstMeta - get kCrateApiMinimalLtOwnedStructTwinNormalComputeWithUnrelatedBorrowedArgTwinNormalConstMeta => - const TaskConstMeta( - debugName: - "LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal", - argNames: ["that", "unrelatedBorrowed", "unrelatedOwned"], - ); - - @override - Future crateApiMinimalLtOwnedStructTwinNormalCreate( - {required String value}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { - final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_String(value, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 12, port: port_); - }, - codec: SseCodec( - decodeSuccessData: - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal, - decodeErrorData: null, - ), - constMeta: kCrateApiMinimalLtOwnedStructTwinNormalCreateConstMeta, - argValues: [value], - apiImpl: this, - )); + @protected + bool sse_decode_bool(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return deserializer.buffer.getUint8() != 0; } - TaskConstMeta get kCrateApiMinimalLtOwnedStructTwinNormalCreateConstMeta => - const TaskConstMeta( - debugName: "LtOwnedStructTwinNormal_create", - argNames: ["value"], - ); - - @override - Future - crateApiMinimalLtOwnedStructTwinNormalCreateWithLogger( - {required String value, required SimpleLogger logger}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { - final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_String(value, serializer); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - logger, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 13, port: port_); - }, - codec: SseCodec( - decodeSuccessData: - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal, - decodeErrorData: null, - ), - constMeta: - kCrateApiMinimalLtOwnedStructTwinNormalCreateWithLoggerConstMeta, - argValues: [value, logger], - apiImpl: this, - )); + @protected + void sse_encode_i_32(int self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + serializer.buffer.putInt32(self); } - TaskConstMeta - get kCrateApiMinimalLtOwnedStructTwinNormalCreateWithLoggerConstMeta => - const TaskConstMeta( - debugName: "LtOwnedStructTwinNormal_create_with_logger", - argNames: ["value", "logger"], - ); - - @override - Future - crateApiMinimalLtSubStructTwinNormalGreetBorrowMutSelfTwinNormal( - {required LtSubStructTwinNormal that}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { - final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - that, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 14, port: port_); - }, - codec: SseCodec( - decodeSuccessData: sse_decode_String, - decodeErrorData: null, - ), - constMeta: - kCrateApiMinimalLtSubStructTwinNormalGreetBorrowMutSelfTwinNormalConstMeta, - argValues: [that], - apiImpl: this, - )); + @protected + void sse_encode_unit(void self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs } - TaskConstMeta - get kCrateApiMinimalLtSubStructTwinNormalGreetBorrowMutSelfTwinNormalConstMeta => - const TaskConstMeta( - debugName: - "LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal", - argNames: ["that"], - ); - - @override - Future crateApiMinimalLtSubStructTwinNormalGreetBorrowSelfTwinNormal( - {required LtSubStructTwinNormal that}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { - final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - that, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 15, port: port_); - }, - codec: SseCodec( - decodeSuccessData: sse_decode_String, - decodeErrorData: null, - ), - constMeta: - kCrateApiMinimalLtSubStructTwinNormalGreetBorrowSelfTwinNormalConstMeta, - argValues: [that], - apiImpl: this, - )); + @protected + void sse_encode_bool(bool self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + serializer.buffer.putUint8(self ? 1 : 0); } - - TaskConstMeta - get kCrateApiMinimalLtSubStructTwinNormalGreetBorrowSelfTwinNormalConstMeta => - const TaskConstMeta( - debugName: "LtSubStructTwinNormal_greet_borrow_self_twin_normal", - argNames: ["that"], - ); - - @override - List crateApiMinimalSimpleLoggerGetAndReset( - {required SimpleLogger that}) { - return handler.executeSync(SyncTask( - callFfi: () { - final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - that, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 16)!; - }, - codec: SseCodec( - decodeSuccessData: sse_decode_list_String, - decodeErrorData: null, - ), - constMeta: kCrateApiMinimalSimpleLoggerGetAndResetConstMeta, - argValues: [that], - apiImpl: this, - )); - } - - TaskConstMeta get kCrateApiMinimalSimpleLoggerGetAndResetConstMeta => - const TaskConstMeta( - debugName: "SimpleLogger_get_and_reset", - argNames: ["that"], - ); - - @override - SimpleLogger crateApiMinimalSimpleLoggerNew() { - return handler.executeSync(SyncTask( - callFfi: () { - final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 17)!; - }, - codec: SseCodec( - decodeSuccessData: - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger, - decodeErrorData: null, - ), - constMeta: kCrateApiMinimalSimpleLoggerNewConstMeta, - argValues: [], - apiImpl: this, - )); - } - - TaskConstMeta get kCrateApiMinimalSimpleLoggerNewConstMeta => - const TaskConstMeta( - debugName: "SimpleLogger_new", - argNames: [], - ); - - @override - Future crateApiMinimalInitApp() { - return handler.executeNormal(NormalTask( - callFfi: (port_) { - final serializer = SseSerializer(generalizedFrbRustBinding); - pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 18, port: port_); - }, - codec: SseCodec( - decodeSuccessData: sse_decode_unit, - decodeErrorData: null, - ), - constMeta: kCrateApiMinimalInitAppConstMeta, - argValues: [], - apiImpl: this, - )); - } - - TaskConstMeta get kCrateApiMinimalInitAppConstMeta => const TaskConstMeta( - debugName: "init_app", - argNames: [], - ); - - @override - Future - crateApiMinimalLtComputeWithLifetimeFunctionTwinNormal( - {required LtOwnedStructTwinNormal arg}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { - final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - arg, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 19, port: port_); - }, - codec: SseCodec( - decodeSuccessData: - sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic, - decodeErrorData: null, - ), - constMeta: - kCrateApiMinimalLtComputeWithLifetimeFunctionTwinNormalConstMeta, - argValues: [arg], - apiImpl: this, - )); - } - - TaskConstMeta - get kCrateApiMinimalLtComputeWithLifetimeFunctionTwinNormalConstMeta => - const TaskConstMeta( - debugName: "lt_compute_with_lifetime_function_twin_normal", - argNames: ["arg"], - ); - - @override - Future crateApiMinimalMinimalAdder({required int a, required int b}) { - return handler.executeNormal(NormalTask( - callFfi: (port_) { - final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_i_32(a, serializer); - sse_encode_i_32(b, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 20, port: port_); - }, - codec: SseCodec( - decodeSuccessData: sse_decode_i_32, - decodeErrorData: null, - ), - constMeta: kCrateApiMinimalMinimalAdderConstMeta, - argValues: [a, b], - apiImpl: this, - )); - } - - TaskConstMeta get kCrateApiMinimalMinimalAdderConstMeta => - const TaskConstMeta( - debugName: "minimal_adder", - argNames: ["a", "b"], - ); - - RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_LtNestedTypeWithLifetimeTwinNormal => - wire.rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic; - - RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormal => - wire.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic; - - RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_LtTypeWithLifetimeTwinNormal => wire - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic; - - RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormal => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic; - - RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_LtTypeWithMultiDepTwinNormal => wire - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic; - - RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormal => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic; - - RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_LtOwnedStructTwinNormal => wire - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal; - - RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_LtOwnedStructTwinNormal => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal; - - RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_LtSubStructTwinNormal => wire - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal; - - RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_LtSubStructTwinNormal => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal; - - RustArcIncrementStrongCountFnType - get rust_arc_increment_strong_count_SimpleLogger => wire - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger; - - RustArcDecrementStrongCountFnType - get rust_arc_decrement_strong_count_SimpleLogger => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger; - - @protected - LtNestedTypeWithLifetimeTwinNormal - dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - raw); - } - - @protected - LtTypeWithLifetimeTwinNormal - dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - raw); - } - - @protected - LtTypeWithMultiDepTwinNormal - dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - raw); - } - - @protected - LtOwnedStructTwinNormal - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return LtOwnedStructTwinNormalImpl.frbInternalDcoDecode( - raw as List); - } - - @protected - LtSubStructTwinNormal - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return LtSubStructTwinNormalImpl.frbInternalDcoDecode(raw as List); - } - - @protected - SimpleLogger - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return SimpleLoggerImpl.frbInternalDcoDecode(raw as List); - } - - @protected - LtSubStructTwinNormal - dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return LtSubStructTwinNormalImpl.frbInternalDcoDecode(raw as List); - } - - @protected - LtOwnedStructTwinNormal - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return LtOwnedStructTwinNormalImpl.frbInternalDcoDecode( - raw as List); - } - - @protected - LtSubStructTwinNormal - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return LtSubStructTwinNormalImpl.frbInternalDcoDecode(raw as List); - } - - @protected - SimpleLogger - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return SimpleLoggerImpl.frbInternalDcoDecode(raw as List); - } - - @protected - LtNestedTypeWithLifetimeTwinNormal - dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( - dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - throw UnimplementedError( - 'Not implemented in this codec, please use the other one'); - } - - @protected - LtTypeWithLifetimeTwinNormal - dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( - dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - throw UnimplementedError( - 'Not implemented in this codec, please use the other one'); - } - - @protected - LtTypeWithMultiDepTwinNormal - dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - throw UnimplementedError( - 'Not implemented in this codec, please use the other one'); - } - - @protected - LtNestedTypeWithLifetimeTwinNormal - dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( - dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - throw UnimplementedError( - 'Not implemented in this codec, please use the other one'); - } - - @protected - LtTypeWithLifetimeTwinNormal - dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( - dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - throw UnimplementedError( - 'Not implemented in this codec, please use the other one'); - } - - @protected - LtTypeWithMultiDepTwinNormal - dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - throw UnimplementedError( - 'Not implemented in this codec, please use the other one'); - } - - @protected - LtNestedTypeWithLifetimeTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return LtNestedTypeWithLifetimeTwinNormalImpl.frbInternalDcoDecode( - raw as List); - } - - @protected - LtTypeWithLifetimeTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return LtTypeWithLifetimeTwinNormalImpl.frbInternalDcoDecode( - raw as List); - } - - @protected - LtTypeWithMultiDepTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return LtTypeWithMultiDepTwinNormalImpl.frbInternalDcoDecode( - raw as List); - } - - @protected - LtOwnedStructTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return LtOwnedStructTwinNormalImpl.frbInternalDcoDecode( - raw as List); - } - - @protected - LtSubStructTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return LtSubStructTwinNormalImpl.frbInternalDcoDecode(raw as List); - } - - @protected - SimpleLogger - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return SimpleLoggerImpl.frbInternalDcoDecode(raw as List); - } - - @protected - String dco_decode_String(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return raw as String; - } - - @protected - int dco_decode_i_32(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return raw as int; - } - - @protected - List dco_decode_list_String(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return (raw as List).map(dco_decode_String).toList(); - } - - @protected - Uint8List dco_decode_list_prim_u_8_strict(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return raw as Uint8List; - } - - @protected - int dco_decode_u_8(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return raw as int; - } - - @protected - void dco_decode_unit(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return; - } - - @protected - BigInt dco_decode_usize(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - return dcoDecodeU64(raw); - } - - @protected - LtNestedTypeWithLifetimeTwinNormal - sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - var inner = - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - deserializer); - return inner; - } - - @protected - LtTypeWithLifetimeTwinNormal - sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - var inner = - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - deserializer); - return inner; - } - - @protected - LtTypeWithMultiDepTwinNormal - sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - var inner = - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - deserializer); - return inner; - } - - @protected - LtOwnedStructTwinNormal - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - return LtOwnedStructTwinNormalImpl.frbInternalSseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); - } - - @protected - LtSubStructTwinNormal - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - return LtSubStructTwinNormalImpl.frbInternalSseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); - } - - @protected - SimpleLogger - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - return SimpleLoggerImpl.frbInternalSseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); - } - - @protected - LtSubStructTwinNormal - sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - return LtSubStructTwinNormalImpl.frbInternalSseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); - } - - @protected - LtOwnedStructTwinNormal - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - return LtOwnedStructTwinNormalImpl.frbInternalSseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); - } - - @protected - LtSubStructTwinNormal - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - return LtSubStructTwinNormalImpl.frbInternalSseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); - } - - @protected - SimpleLogger - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - return SimpleLoggerImpl.frbInternalSseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); - } - - @protected - LtNestedTypeWithLifetimeTwinNormal - sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - var inner = - sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - deserializer); - return inner; - } - - @protected - LtTypeWithLifetimeTwinNormal - sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - var inner = - sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - deserializer); - return inner; - } - - @protected - LtTypeWithMultiDepTwinNormal - sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - var inner = - sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - deserializer); - return inner; - } - - @protected - LtNestedTypeWithLifetimeTwinNormal - sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - var inner = - sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - deserializer); - return inner; - } - - @protected - LtTypeWithLifetimeTwinNormal - sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - var inner = - sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - deserializer); - return inner; - } - - @protected - LtTypeWithMultiDepTwinNormal - sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - var inner = - sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - deserializer); - return inner; - } - - @protected - LtNestedTypeWithLifetimeTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - return LtNestedTypeWithLifetimeTwinNormalImpl.frbInternalSseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); - } - - @protected - LtTypeWithLifetimeTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - return LtTypeWithLifetimeTwinNormalImpl.frbInternalSseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); - } - - @protected - LtTypeWithMultiDepTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - return LtTypeWithMultiDepTwinNormalImpl.frbInternalSseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); - } - - @protected - LtOwnedStructTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - return LtOwnedStructTwinNormalImpl.frbInternalSseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); - } - - @protected - LtSubStructTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - return LtSubStructTwinNormalImpl.frbInternalSseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); - } - - @protected - SimpleLogger - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - return SimpleLoggerImpl.frbInternalSseDecode( - sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); - } - - @protected - String sse_decode_String(SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - var inner = sse_decode_list_prim_u_8_strict(deserializer); - return utf8.decoder.convert(inner); - } - - @protected - int sse_decode_i_32(SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - return deserializer.buffer.getInt32(); - } - - @protected - List sse_decode_list_String(SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - - var len_ = sse_decode_i_32(deserializer); - var ans_ = []; - for (var idx_ = 0; idx_ < len_; ++idx_) { - ans_.add(sse_decode_String(deserializer)); - } - return ans_; - } - - @protected - Uint8List sse_decode_list_prim_u_8_strict(SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - var len_ = sse_decode_i_32(deserializer); - return deserializer.buffer.getUint8List(len_); - } - - @protected - int sse_decode_u_8(SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - return deserializer.buffer.getUint8(); - } - - @protected - void sse_decode_unit(SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - } - - @protected - BigInt sse_decode_usize(SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - return deserializer.buffer.getBigUint64(); - } - - @protected - bool sse_decode_bool(SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - return deserializer.buffer.getUint8() != 0; - } - - @protected - void - sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - self, serializer); - } - - @protected - void - sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - LtTypeWithLifetimeTwinNormal self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - self, serializer); - } - - @protected - void - sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - LtTypeWithMultiDepTwinNormal self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - self, serializer); - } - - @protected - void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - LtOwnedStructTwinNormal self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize( - (self as LtOwnedStructTwinNormalImpl).frbInternalSseEncode(move: true), - serializer); - } - - @protected - void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - LtSubStructTwinNormal self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize( - (self as LtSubStructTwinNormalImpl).frbInternalSseEncode(move: true), - serializer); - } - - @protected - void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - SimpleLogger self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize( - (self as SimpleLoggerImpl).frbInternalSseEncode(move: true), - serializer); - } - - @protected - void - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - LtSubStructTwinNormal self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize( - (self as LtSubStructTwinNormalImpl).frbInternalSseEncode(move: false), - serializer); - } - - @protected - void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - LtOwnedStructTwinNormal self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize( - (self as LtOwnedStructTwinNormalImpl).frbInternalSseEncode(move: false), - serializer); - } - - @protected - void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - LtSubStructTwinNormal self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize( - (self as LtSubStructTwinNormalImpl).frbInternalSseEncode(move: false), - serializer); - } - - @protected - void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - SimpleLogger self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize( - (self as SimpleLoggerImpl).frbInternalSseEncode(move: false), - serializer); - } - - @protected - void - sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( - LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - self, serializer); - } - - @protected - void - sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( - LtTypeWithLifetimeTwinNormal self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - self, serializer); - } - - @protected - void - sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - LtTypeWithMultiDepTwinNormal self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - self, serializer); - } - - @protected - void - sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( - LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - self, serializer); - } - - @protected - void - sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( - LtTypeWithLifetimeTwinNormal self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - self, serializer); - } - - @protected - void - sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - LtTypeWithMultiDepTwinNormal self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - self, serializer); - } - - @protected - void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize( - (self as LtNestedTypeWithLifetimeTwinNormalImpl) - .frbInternalSseEncode(move: null), - serializer); - } - - @protected - void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - LtTypeWithLifetimeTwinNormal self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize( - (self as LtTypeWithLifetimeTwinNormalImpl) - .frbInternalSseEncode(move: null), - serializer); - } - - @protected - void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - LtTypeWithMultiDepTwinNormal self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize( - (self as LtTypeWithMultiDepTwinNormalImpl) - .frbInternalSseEncode(move: null), - serializer); - } - - @protected - void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - LtOwnedStructTwinNormal self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize( - (self as LtOwnedStructTwinNormalImpl).frbInternalSseEncode(move: null), - serializer); - } - - @protected - void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - LtSubStructTwinNormal self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize( - (self as LtSubStructTwinNormalImpl).frbInternalSseEncode(move: null), - serializer); - } - - @protected - void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - SimpleLogger self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize( - (self as SimpleLoggerImpl).frbInternalSseEncode(move: null), - serializer); - } - - @protected - void sse_encode_String(String self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_list_prim_u_8_strict(utf8.encoder.convert(self), serializer); - } - - @protected - void sse_encode_i_32(int self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - serializer.buffer.putInt32(self); - } - - @protected - void sse_encode_list_String(List self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_i_32(self.length, serializer); - for (final item in self) { - sse_encode_String(item, serializer); - } - } - - @protected - void sse_encode_list_prim_u_8_strict( - Uint8List self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_i_32(self.length, serializer); - serializer.buffer.putUint8List(self); - } - - @protected - void sse_encode_u_8(int self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - serializer.buffer.putUint8(self); - } - - @protected - void sse_encode_unit(void self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - } - - @protected - void sse_encode_usize(BigInt self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - serializer.buffer.putBigUint64(self); - } - - @protected - void sse_encode_bool(bool self, SseSerializer serializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - serializer.buffer.putUint8(self ? 1 : 0); - } -} - -@sealed -class LtNestedTypeWithLifetimeTwinNormalImpl extends RustOpaque - implements LtNestedTypeWithLifetimeTwinNormal { - // Not to be used by end users - LtNestedTypeWithLifetimeTwinNormalImpl.frbInternalDcoDecode( - List wire) - : super.frbInternalDcoDecode(wire, _kStaticData); - - // Not to be used by end users - LtNestedTypeWithLifetimeTwinNormalImpl.frbInternalSseDecode( - BigInt ptr, int externalSizeOnNative) - : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: RustLib.instance.api - .rust_arc_increment_strong_count_LtNestedTypeWithLifetimeTwinNormal, - rustArcDecrementStrongCount: RustLib.instance.api - .rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormal, - rustArcDecrementStrongCountPtr: RustLib.instance.api - .rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormalPtr, - ); - - Future greetBorrowMutSelfTwinNormal() => RustLib.instance.api - .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( - that: this, - ); - - Future greetBorrowSelfTwinNormal() => RustLib.instance.api - .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormal( - that: this, - ); -} - -@sealed -class LtOwnedStructTwinNormalImpl extends RustOpaque - implements LtOwnedStructTwinNormal { - // Not to be used by end users - LtOwnedStructTwinNormalImpl.frbInternalDcoDecode(List wire) - : super.frbInternalDcoDecode(wire, _kStaticData); - - // Not to be used by end users - LtOwnedStructTwinNormalImpl.frbInternalSseDecode( - BigInt ptr, int externalSizeOnNative) - : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: RustLib - .instance.api.rust_arc_increment_strong_count_LtOwnedStructTwinNormal, - rustArcDecrementStrongCount: RustLib - .instance.api.rust_arc_decrement_strong_count_LtOwnedStructTwinNormal, - rustArcDecrementStrongCountPtr: RustLib.instance.api - .rust_arc_decrement_strong_count_LtOwnedStructTwinNormalPtr, - ); - - /// `fn f(x: &'a T) -> S<'a>` - Future computeTypeWithLifetimeTwinNormal() => - RustLib.instance.api - .crateApiMinimalLtOwnedStructTwinNormalComputeTypeWithLifetimeTwinNormal( - that: this, - ); - - /// The unrelated arg should not affect results - Future< - LtTypeWithLifetimeTwinNormal> computeWithUnrelatedBorrowedArgTwinNormal( - {required LtOwnedStructTwinNormal unrelatedBorrowed, - required LtOwnedStructTwinNormal unrelatedOwned}) => - RustLib.instance.api - .crateApiMinimalLtOwnedStructTwinNormalComputeWithUnrelatedBorrowedArgTwinNormal( - that: this, - unrelatedBorrowed: unrelatedBorrowed, - unrelatedOwned: unrelatedOwned); -} - -@sealed -class LtSubStructTwinNormalImpl extends RustOpaque - implements LtSubStructTwinNormal { - // Not to be used by end users - LtSubStructTwinNormalImpl.frbInternalDcoDecode(List wire) - : super.frbInternalDcoDecode(wire, _kStaticData); - - // Not to be used by end users - LtSubStructTwinNormalImpl.frbInternalSseDecode( - BigInt ptr, int externalSizeOnNative) - : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: RustLib - .instance.api.rust_arc_increment_strong_count_LtSubStructTwinNormal, - rustArcDecrementStrongCount: RustLib - .instance.api.rust_arc_decrement_strong_count_LtSubStructTwinNormal, - rustArcDecrementStrongCountPtr: RustLib - .instance.api.rust_arc_decrement_strong_count_LtSubStructTwinNormalPtr, - ); - - Future greetBorrowMutSelfTwinNormal() => RustLib.instance.api - .crateApiMinimalLtSubStructTwinNormalGreetBorrowMutSelfTwinNormal( - that: this, - ); - - Future greetBorrowSelfTwinNormal() => RustLib.instance.api - .crateApiMinimalLtSubStructTwinNormalGreetBorrowSelfTwinNormal( - that: this, - ); -} - -@sealed -class LtTypeWithLifetimeTwinNormalImpl extends RustOpaque - implements LtTypeWithLifetimeTwinNormal { - // Not to be used by end users - LtTypeWithLifetimeTwinNormalImpl.frbInternalDcoDecode(List wire) - : super.frbInternalDcoDecode(wire, _kStaticData); - - // Not to be used by end users - LtTypeWithLifetimeTwinNormalImpl.frbInternalSseDecode( - BigInt ptr, int externalSizeOnNative) - : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: RustLib.instance.api - .rust_arc_increment_strong_count_LtTypeWithLifetimeTwinNormal, - rustArcDecrementStrongCount: RustLib.instance.api - .rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormal, - rustArcDecrementStrongCountPtr: RustLib.instance.api - .rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormalPtr, - ); - - /// Input lifetimeable and output another lifetimeable - Future - computeNestedTypeWithLifetimeTwinNormal() => RustLib.instance.api - .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeNestedTypeWithLifetimeTwinNormal( - that: this, - ); - - /// `&mut T` where T is lifetimeable - Future greetBorrowMutSelfTwinNormal() => RustLib.instance.api - .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( - that: this, - ); - - /// `&T` where T is lifetimeable - Future greetBorrowSelfTwinNormal() => RustLib.instance.api - .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormal( - that: this, - ); -} - -@sealed -class LtTypeWithMultiDepTwinNormalImpl extends RustOpaque - implements LtTypeWithMultiDepTwinNormal { - // Not to be used by end users - LtTypeWithMultiDepTwinNormalImpl.frbInternalDcoDecode(List wire) - : super.frbInternalDcoDecode(wire, _kStaticData); - - // Not to be used by end users - LtTypeWithMultiDepTwinNormalImpl.frbInternalSseDecode( - BigInt ptr, int externalSizeOnNative) - : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: RustLib.instance.api - .rust_arc_increment_strong_count_LtTypeWithMultiDepTwinNormal, - rustArcDecrementStrongCount: RustLib.instance.api - .rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormal, - rustArcDecrementStrongCountPtr: RustLib.instance.api - .rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr, - ); - - Future> greetBorrowMutSelfTwinNormal() => RustLib.instance.api - .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowMutSelfTwinNormal( - that: this, - ); - - Future> greetBorrowSelfTwinNormal() => RustLib.instance.api - .crateApiMinimalLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowSelfTwinNormal( - that: this, - ); -} - -@sealed -class SimpleLoggerImpl extends RustOpaque implements SimpleLogger { - // Not to be used by end users - SimpleLoggerImpl.frbInternalDcoDecode(List wire) - : super.frbInternalDcoDecode(wire, _kStaticData); - - // Not to be used by end users - SimpleLoggerImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) - : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: - RustLib.instance.api.rust_arc_increment_strong_count_SimpleLogger, - rustArcDecrementStrongCount: - RustLib.instance.api.rust_arc_decrement_strong_count_SimpleLogger, - rustArcDecrementStrongCountPtr: - RustLib.instance.api.rust_arc_decrement_strong_count_SimpleLoggerPtr, - ); - - List getAndReset() => - RustLib.instance.api.crateApiMinimalSimpleLoggerGetAndReset( - that: this, - ); } diff --git a/frb_example/dart_minimal/lib/src/rust/frb_generated.io.dart b/frb_example/dart_minimal/lib/src/rust/frb_generated.io.dart index ce97862986..068e5b3ab3 100644 --- a/frb_example/dart_minimal/lib/src/rust/frb_generated.io.dart +++ b/frb_example/dart_minimal/lib/src/rust/frb_generated.io.dart @@ -18,427 +18,27 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { required super.portManager, }); - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormalPtr => - wire._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstaticPtr; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormalPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstaticPtr; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstaticPtr; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_LtOwnedStructTwinNormalPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormalPtr; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_LtSubStructTwinNormalPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormalPtr; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_SimpleLoggerPtr => wire - ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLoggerPtr; - - @protected - LtNestedTypeWithLifetimeTwinNormal - dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - dynamic raw); - - @protected - LtTypeWithLifetimeTwinNormal - dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - dynamic raw); - - @protected - LtTypeWithMultiDepTwinNormal - dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - dynamic raw); - - @protected - LtOwnedStructTwinNormal - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - dynamic raw); - - @protected - LtSubStructTwinNormal - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - dynamic raw); - - @protected - SimpleLogger - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - dynamic raw); - - @protected - LtSubStructTwinNormal - dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - dynamic raw); - - @protected - LtOwnedStructTwinNormal - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - dynamic raw); - - @protected - LtSubStructTwinNormal - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - dynamic raw); - - @protected - SimpleLogger - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - dynamic raw); - - @protected - LtNestedTypeWithLifetimeTwinNormal - dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( - dynamic raw); - - @protected - LtTypeWithLifetimeTwinNormal - dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( - dynamic raw); - - @protected - LtTypeWithMultiDepTwinNormal - dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - dynamic raw); - - @protected - LtNestedTypeWithLifetimeTwinNormal - dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( - dynamic raw); - - @protected - LtTypeWithLifetimeTwinNormal - dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( - dynamic raw); - - @protected - LtTypeWithMultiDepTwinNormal - dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - dynamic raw); - - @protected - LtNestedTypeWithLifetimeTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - dynamic raw); - - @protected - LtTypeWithLifetimeTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - dynamic raw); - - @protected - LtTypeWithMultiDepTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - dynamic raw); - - @protected - LtOwnedStructTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - dynamic raw); - - @protected - LtSubStructTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - dynamic raw); - - @protected - SimpleLogger - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - dynamic raw); - - @protected - String dco_decode_String(dynamic raw); - @protected int dco_decode_i_32(dynamic raw); - @protected - List dco_decode_list_String(dynamic raw); - - @protected - Uint8List dco_decode_list_prim_u_8_strict(dynamic raw); - - @protected - int dco_decode_u_8(dynamic raw); - @protected void dco_decode_unit(dynamic raw); - @protected - BigInt dco_decode_usize(dynamic raw); - - @protected - LtNestedTypeWithLifetimeTwinNormal - sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - SseDeserializer deserializer); - - @protected - LtTypeWithLifetimeTwinNormal - sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - SseDeserializer deserializer); - - @protected - LtTypeWithMultiDepTwinNormal - sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - SseDeserializer deserializer); - - @protected - LtOwnedStructTwinNormal - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - SseDeserializer deserializer); - - @protected - LtSubStructTwinNormal - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - SseDeserializer deserializer); - - @protected - SimpleLogger - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - SseDeserializer deserializer); - - @protected - LtSubStructTwinNormal - sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - SseDeserializer deserializer); - - @protected - LtOwnedStructTwinNormal - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - SseDeserializer deserializer); - - @protected - LtSubStructTwinNormal - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - SseDeserializer deserializer); - - @protected - SimpleLogger - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - SseDeserializer deserializer); - - @protected - LtNestedTypeWithLifetimeTwinNormal - sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( - SseDeserializer deserializer); - - @protected - LtTypeWithLifetimeTwinNormal - sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( - SseDeserializer deserializer); - - @protected - LtTypeWithMultiDepTwinNormal - sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - SseDeserializer deserializer); - - @protected - LtNestedTypeWithLifetimeTwinNormal - sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( - SseDeserializer deserializer); - - @protected - LtTypeWithLifetimeTwinNormal - sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( - SseDeserializer deserializer); - - @protected - LtTypeWithMultiDepTwinNormal - sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - SseDeserializer deserializer); - - @protected - LtNestedTypeWithLifetimeTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - SseDeserializer deserializer); - - @protected - LtTypeWithLifetimeTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - SseDeserializer deserializer); - - @protected - LtTypeWithMultiDepTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - SseDeserializer deserializer); - - @protected - LtOwnedStructTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - SseDeserializer deserializer); - - @protected - LtSubStructTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - SseDeserializer deserializer); - - @protected - SimpleLogger - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - SseDeserializer deserializer); - - @protected - String sse_decode_String(SseDeserializer deserializer); - @protected int sse_decode_i_32(SseDeserializer deserializer); - @protected - List sse_decode_list_String(SseDeserializer deserializer); - - @protected - Uint8List sse_decode_list_prim_u_8_strict(SseDeserializer deserializer); - - @protected - int sse_decode_u_8(SseDeserializer deserializer); - @protected void sse_decode_unit(SseDeserializer deserializer); - @protected - BigInt sse_decode_usize(SseDeserializer deserializer); - @protected bool sse_decode_bool(SseDeserializer deserializer); - @protected - void - sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - LtOwnedStructTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - LtSubStructTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - SimpleLogger self, SseSerializer serializer); - - @protected - void - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - LtSubStructTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - LtOwnedStructTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - LtSubStructTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - SimpleLogger self, SseSerializer serializer); - - @protected - void - sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( - LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( - LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( - LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( - LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - LtOwnedStructTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - LtSubStructTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - SimpleLogger self, SseSerializer serializer); - - @protected - void sse_encode_String(String self, SseSerializer serializer); - @protected void sse_encode_i_32(int self, SseSerializer serializer); - @protected - void sse_encode_list_String(List self, SseSerializer serializer); - - @protected - void sse_encode_list_prim_u_8_strict( - Uint8List self, SseSerializer serializer); - - @protected - void sse_encode_u_8(int self, SseSerializer serializer); - @protected void sse_encode_unit(void self, SseSerializer serializer); - @protected - void sse_encode_usize(BigInt self, SseSerializer serializer); - @protected void sse_encode_bool(bool self, SseSerializer serializer); } @@ -456,196 +56,4 @@ class RustLibWire implements BaseWire { /// The symbols are looked up in [dynamicLibrary]. RustLibWire(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; - - void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - ffi.Pointer ptr, - ) { - return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - ptr, - ); - } - - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstaticPtr = - _lookup)>>( - 'frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic'); - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic = - _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstaticPtr - .asFunction)>(); - - void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - ffi.Pointer ptr, - ) { - return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - ptr, - ); - } - - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstaticPtr = - _lookup)>>( - 'frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic'); - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic = - _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstaticPtr - .asFunction)>(); - - void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - ffi.Pointer ptr, - ) { - return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - ptr, - ); - } - - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstaticPtr = - _lookup)>>( - 'frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic'); - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic = - _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstaticPtr - .asFunction)>(); - - void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - ffi.Pointer ptr, - ) { - return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - ptr, - ); - } - - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstaticPtr = - _lookup)>>( - 'frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic'); - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic = - _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstaticPtr - .asFunction)>(); - - void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - ffi.Pointer ptr, - ) { - return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - ptr, - ); - } - - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstaticPtr = - _lookup)>>( - 'frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic'); - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic = - _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstaticPtr - .asFunction)>(); - - void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - ffi.Pointer ptr, - ) { - return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - ptr, - ); - } - - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstaticPtr = - _lookup)>>( - 'frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic'); - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic = - _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstaticPtr - .asFunction)>(); - - void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - ffi.Pointer ptr, - ) { - return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - ptr, - ); - } - - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormalPtr = - _lookup)>>( - 'frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal'); - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal = - _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormalPtr - .asFunction)>(); - - void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - ffi.Pointer ptr, - ) { - return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - ptr, - ); - } - - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormalPtr = - _lookup)>>( - 'frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal'); - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal = - _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormalPtr - .asFunction)>(); - - void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - ffi.Pointer ptr, - ) { - return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - ptr, - ); - } - - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormalPtr = - _lookup)>>( - 'frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal'); - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal = - _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormalPtr - .asFunction)>(); - - void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - ffi.Pointer ptr, - ) { - return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - ptr, - ); - } - - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormalPtr = - _lookup)>>( - 'frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal'); - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal = - _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormalPtr - .asFunction)>(); - - void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - ffi.Pointer ptr, - ) { - return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - ptr, - ); - } - - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLoggerPtr = - _lookup)>>( - 'frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger'); - late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger = - _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLoggerPtr - .asFunction)>(); - - void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - ffi.Pointer ptr, - ) { - return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - ptr, - ); - } - - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLoggerPtr = - _lookup)>>( - 'frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger'); - late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger = - _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLoggerPtr - .asFunction)>(); } diff --git a/frb_example/dart_minimal/lib/src/rust/frb_generated.web.dart b/frb_example/dart_minimal/lib/src/rust/frb_generated.web.dart index 6a530b29e6..11c1f0b387 100644 --- a/frb_example/dart_minimal/lib/src/rust/frb_generated.web.dart +++ b/frb_example/dart_minimal/lib/src/rust/frb_generated.web.dart @@ -20,427 +20,27 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { required super.portManager, }); - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormalPtr => - wire.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormalPtr => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_LtOwnedStructTwinNormalPtr => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_LtSubStructTwinNormalPtr => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal; - - CrossPlatformFinalizerArg - get rust_arc_decrement_strong_count_SimpleLoggerPtr => wire - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger; - - @protected - LtNestedTypeWithLifetimeTwinNormal - dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - dynamic raw); - - @protected - LtTypeWithLifetimeTwinNormal - dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - dynamic raw); - - @protected - LtTypeWithMultiDepTwinNormal - dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - dynamic raw); - - @protected - LtOwnedStructTwinNormal - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - dynamic raw); - - @protected - LtSubStructTwinNormal - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - dynamic raw); - - @protected - SimpleLogger - dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - dynamic raw); - - @protected - LtSubStructTwinNormal - dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - dynamic raw); - - @protected - LtOwnedStructTwinNormal - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - dynamic raw); - - @protected - LtSubStructTwinNormal - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - dynamic raw); - - @protected - SimpleLogger - dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - dynamic raw); - - @protected - LtNestedTypeWithLifetimeTwinNormal - dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( - dynamic raw); - - @protected - LtTypeWithLifetimeTwinNormal - dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( - dynamic raw); - - @protected - LtTypeWithMultiDepTwinNormal - dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - dynamic raw); - - @protected - LtNestedTypeWithLifetimeTwinNormal - dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( - dynamic raw); - - @protected - LtTypeWithLifetimeTwinNormal - dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( - dynamic raw); - - @protected - LtTypeWithMultiDepTwinNormal - dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - dynamic raw); - - @protected - LtNestedTypeWithLifetimeTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - dynamic raw); - - @protected - LtTypeWithLifetimeTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - dynamic raw); - - @protected - LtTypeWithMultiDepTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - dynamic raw); - - @protected - LtOwnedStructTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - dynamic raw); - - @protected - LtSubStructTwinNormal - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - dynamic raw); - - @protected - SimpleLogger - dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - dynamic raw); - - @protected - String dco_decode_String(dynamic raw); - @protected int dco_decode_i_32(dynamic raw); - @protected - List dco_decode_list_String(dynamic raw); - - @protected - Uint8List dco_decode_list_prim_u_8_strict(dynamic raw); - - @protected - int dco_decode_u_8(dynamic raw); - @protected void dco_decode_unit(dynamic raw); - @protected - BigInt dco_decode_usize(dynamic raw); - - @protected - LtNestedTypeWithLifetimeTwinNormal - sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - SseDeserializer deserializer); - - @protected - LtTypeWithLifetimeTwinNormal - sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - SseDeserializer deserializer); - - @protected - LtTypeWithMultiDepTwinNormal - sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - SseDeserializer deserializer); - - @protected - LtOwnedStructTwinNormal - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - SseDeserializer deserializer); - - @protected - LtSubStructTwinNormal - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - SseDeserializer deserializer); - - @protected - SimpleLogger - sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - SseDeserializer deserializer); - - @protected - LtSubStructTwinNormal - sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - SseDeserializer deserializer); - - @protected - LtOwnedStructTwinNormal - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - SseDeserializer deserializer); - - @protected - LtSubStructTwinNormal - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - SseDeserializer deserializer); - - @protected - SimpleLogger - sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - SseDeserializer deserializer); - - @protected - LtNestedTypeWithLifetimeTwinNormal - sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( - SseDeserializer deserializer); - - @protected - LtTypeWithLifetimeTwinNormal - sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( - SseDeserializer deserializer); - - @protected - LtTypeWithMultiDepTwinNormal - sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - SseDeserializer deserializer); - - @protected - LtNestedTypeWithLifetimeTwinNormal - sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( - SseDeserializer deserializer); - - @protected - LtTypeWithLifetimeTwinNormal - sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( - SseDeserializer deserializer); - - @protected - LtTypeWithMultiDepTwinNormal - sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - SseDeserializer deserializer); - - @protected - LtNestedTypeWithLifetimeTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - SseDeserializer deserializer); - - @protected - LtTypeWithLifetimeTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - SseDeserializer deserializer); - - @protected - LtTypeWithMultiDepTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - SseDeserializer deserializer); - - @protected - LtOwnedStructTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - SseDeserializer deserializer); - - @protected - LtSubStructTwinNormal - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - SseDeserializer deserializer); - - @protected - SimpleLogger - sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - SseDeserializer deserializer); - - @protected - String sse_decode_String(SseDeserializer deserializer); - @protected int sse_decode_i_32(SseDeserializer deserializer); - @protected - List sse_decode_list_String(SseDeserializer deserializer); - - @protected - Uint8List sse_decode_list_prim_u_8_strict(SseDeserializer deserializer); - - @protected - int sse_decode_u_8(SseDeserializer deserializer); - @protected void sse_decode_unit(SseDeserializer deserializer); - @protected - BigInt sse_decode_usize(SseDeserializer deserializer); - @protected bool sse_decode_bool(SseDeserializer deserializer); - @protected - void - sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - LtOwnedStructTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - LtSubStructTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - SimpleLogger self, SseSerializer serializer); - - @protected - void - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - LtSubStructTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - LtOwnedStructTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - LtSubStructTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - SimpleLogger self, SseSerializer serializer); - - @protected - void - sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( - LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( - LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( - LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( - LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( - LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - LtOwnedStructTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - LtSubStructTwinNormal self, SseSerializer serializer); - - @protected - void - sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - SimpleLogger self, SseSerializer serializer); - - @protected - void sse_encode_String(String self, SseSerializer serializer); - @protected void sse_encode_i_32(int self, SseSerializer serializer); - @protected - void sse_encode_list_String(List self, SseSerializer serializer); - - @protected - void sse_encode_list_prim_u_8_strict( - Uint8List self, SseSerializer serializer); - - @protected - void sse_encode_u_8(int self, SseSerializer serializer); - @protected void sse_encode_unit(void self, SseSerializer serializer); - @protected - void sse_encode_usize(BigInt self, SseSerializer serializer); - @protected void sse_encode_bool(bool self, SseSerializer serializer); } @@ -449,78 +49,6 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { class RustLibWire implements BaseWire { RustLibWire.fromExternalLibrary(ExternalLibrary lib); - - void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - int ptr) => - wasmModule - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - ptr); - - void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - int ptr) => - wasmModule - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - ptr); - - void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - int ptr) => - wasmModule - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - ptr); - - void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - int ptr) => - wasmModule - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - ptr); - - void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - int ptr) => - wasmModule - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - ptr); - - void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - int ptr) => - wasmModule - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - ptr); - - void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - int ptr) => - wasmModule - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - ptr); - - void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - int ptr) => - wasmModule - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - ptr); - - void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - int ptr) => - wasmModule - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - ptr); - - void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - int ptr) => - wasmModule - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - ptr); - - void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - int ptr) => - wasmModule - .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - ptr); - - void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - int ptr) => - wasmModule - .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - ptr); } @JS('wasm_bindgen') @@ -528,52 +56,4 @@ external RustLibWasmModule get wasmModule; @JS() @anonymous -extension type RustLibWasmModule._(JSObject _) implements JSObject { - external void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - int ptr); - - external void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - int ptr); - - external void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - int ptr); - - external void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - int ptr); - - external void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - int ptr); - - external void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - int ptr); - - external void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - int ptr); - - external void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - int ptr); - - external void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - int ptr); - - external void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - int ptr); - - external void - rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - int ptr); - - external void - rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - int ptr); -} +extension type RustLibWasmModule._(JSObject _) implements JSObject {} diff --git a/frb_example/dart_minimal/rust/src/frb_generated.io.rs b/frb_example/dart_minimal/rust/src/frb_generated.io.rs index 35a548267d..ae9a0b18ac 100644 --- a/frb_example/dart_minimal/rust/src/frb_generated.io.rs +++ b/frb_example/dart_minimal/rust/src/frb_generated.io.rs @@ -4,7 +4,6 @@ // Section: imports use super::*; -use crate::api::minimal::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; @@ -12,111 +11,3 @@ use flutter_rust_bridge::{Handler, IntoIntoDart}; // Section: boilerplate flutter_rust_bridge::frb_generated_boilerplate_io!(); - -#[no_mangle] -pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - ptr: *const std::ffi::c_void, -) { - MoiArc::< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner< - Lifetimeable>, - >, - >::increment_strong_count(ptr as _); -} - -#[no_mangle] -pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - ptr: *const std::ffi::c_void, -) { - MoiArc::< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner< - Lifetimeable>, - >, - >::decrement_strong_count(ptr as _); -} - -#[no_mangle] -pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - ptr: *const std::ffi::c_void, -) { - MoiArc::< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner< - Lifetimeable>, - >, - >::increment_strong_count(ptr as _); -} - -#[no_mangle] -pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - ptr: *const std::ffi::c_void, -) { - MoiArc::< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner< - Lifetimeable>, - >, - >::decrement_strong_count(ptr as _); -} - -#[no_mangle] -pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - ptr: *const std::ffi::c_void, -) { - MoiArc::< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner< - Lifetimeable>, - >, - >::increment_strong_count(ptr as _); -} - -#[no_mangle] -pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - ptr: *const std::ffi::c_void, -) { - MoiArc::< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner< - Lifetimeable>, - >, - >::decrement_strong_count(ptr as _); -} - -#[no_mangle] -pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - ptr: *const std::ffi::c_void, -) { - MoiArc::>::increment_strong_count(ptr as _); -} - -#[no_mangle] -pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - ptr: *const std::ffi::c_void, -) { - MoiArc::>::decrement_strong_count(ptr as _); -} - -#[no_mangle] -pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - ptr: *const std::ffi::c_void, -) { - MoiArc::>::increment_strong_count(ptr as _); -} - -#[no_mangle] -pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - ptr: *const std::ffi::c_void, -) { - MoiArc::>::decrement_strong_count(ptr as _); -} - -#[no_mangle] -pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - ptr: *const std::ffi::c_void, -) { - MoiArc::>::increment_strong_count(ptr as _); -} - -#[no_mangle] -pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - ptr: *const std::ffi::c_void, -) { - MoiArc::>::decrement_strong_count(ptr as _); -} diff --git a/frb_example/dart_minimal/rust/src/frb_generated.rs b/frb_example/dart_minimal/rust/src/frb_generated.rs index 15be31876b..c7b3aefb31 100644 --- a/frb_example/dart_minimal/rust/src/frb_generated.rs +++ b/frb_example/dart_minimal/rust/src/frb_generated.rs @@ -21,7 +21,6 @@ // Section: imports -use crate::api::minimal::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; @@ -34,7 +33,7 @@ flutter_rust_bridge::frb_generated_boilerplate!( default_rust_auto_opaque = RustAutoOpaqueMoi, ); pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.0.0-dev.39"; -pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = 660839085; +pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = -2119384465; // Section: executor @@ -42,560 +41,6 @@ flutter_rust_bridge::frb_generated_default_handler!(); // Section: wire_funcs -fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, - rust_vec_len_: i32, - data_len_: i32, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { - let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; - let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { - transform_result_sse::<_, ()>((move || { - let mut api_that_guard = None; -let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true)]); - for i in decode_indices_ { - match i { - 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), - _ => unreachable!(), - } - } - let mut api_that_guard = api_that_guard.unwrap(); - let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtNestedTypeWithLifetimeTwinNormal ::greet_borrow_mut_self_twin_normal(&mut *api_that_guard))?; Ok(output_ok) - })()) - } }) -} -fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, - rust_vec_len_: i32, - data_len_: i32, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { - let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; - let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { - transform_result_sse::<_, ()>((move || { - let mut api_that_guard = None; -let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); - for i in decode_indices_ { - match i { - 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), - _ => unreachable!(), - } - } - let api_that_guard = api_that_guard.unwrap(); - let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtNestedTypeWithLifetimeTwinNormal ::greet_borrow_self_twin_normal(&*&api_that_guard))?; Ok(output_ok) - })()) - } }) -} -fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, - rust_vec_len_: i32, - data_len_: i32, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { - let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; - let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_arg = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { - transform_result_sse::<_, ()>((move || { - let api_arg_illegal_static_ref = unsafe { - flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg) - };let mut api_arg_guard = None; -let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_arg, 0, false)]); - for i in decode_indices_ { - match i { - 0 => api_arg_guard = Some(api_arg_illegal_static_ref.lockable_decode_sync_ref()), - _ => unreachable!(), - } - } - let api_arg_guard = api_arg_guard.unwrap(); -let api_arg_guard = Arc::new(api_arg_guard); - let api_arg_guard_illegal_static_ref = unsafe { - flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithLifetimeTwinNormal ::compute_arg_generic_lifetime_twin_normal(&*&api_arg_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_arg.clone()), Box::new(api_arg_guard.clone())])); Ok(output_ok) - })()) - } }) -} -fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_nested_type_with_lifetime_twin_normal_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, - rust_vec_len_: i32, - data_len_: i32, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_nested_type_with_lifetime_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { - let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; - let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { - transform_result_sse::<_, ()>((move || { - let api_that_illegal_static_ref = unsafe { - flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that) - };let mut api_that_guard = None; -let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); - for i in decode_indices_ { - match i { - 0 => api_that_guard = Some(api_that_illegal_static_ref.lockable_decode_sync_ref()), - _ => unreachable!(), - } - } - let api_that_guard = api_that_guard.unwrap(); -let api_that_guard = Arc::new(api_that_guard); - let api_that_guard_illegal_static_ref = unsafe { - flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithLifetimeTwinNormal ::compute_nested_type_with_lifetime_twin_normal(&*&api_that_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) - })()) - } }) -} -fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, - rust_vec_len_: i32, - data_len_: i32, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { - let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; - let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { - transform_result_sse::<_, ()>((move || { - let mut api_that_guard = None; -let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true)]); - for i in decode_indices_ { - match i { - 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), - _ => unreachable!(), - } - } - let mut api_that_guard = api_that_guard.unwrap(); - let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithLifetimeTwinNormal ::greet_borrow_mut_self_twin_normal(&mut *api_that_guard))?; Ok(output_ok) - })()) - } }) -} -fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, - rust_vec_len_: i32, - data_len_: i32, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { - let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; - let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { - transform_result_sse::<_, ()>((move || { - let mut api_that_guard = None; -let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); - for i in decode_indices_ { - match i { - 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), - _ => unreachable!(), - } - } - let api_that_guard = api_that_guard.unwrap(); - let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithLifetimeTwinNormal ::greet_borrow_self_twin_normal(&*&api_that_guard))?; Ok(output_ok) - })()) - } }) -} -fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, - rust_vec_len_: i32, - data_len_: i32, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { - let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; - let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_a = >>::sse_decode(&mut deserializer); -let api_b = >>::sse_decode(&mut deserializer); -let api_unrelated_borrowed = >>::sse_decode(&mut deserializer); -let api_unrelated_owned = ::sse_decode(&mut deserializer);deserializer.end(); move |context| { - transform_result_sse::<_, ()>((move || { - let api_a_illegal_static_ref = unsafe { - flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_a) - };let api_b_illegal_static_ref = unsafe { - flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_b) - };let mut api_a_guard = None; -let mut api_b_guard = None; -let mut api_unrelated_borrowed_guard = None; -let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_a, 0, false), flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_b, 1, false), flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_unrelated_borrowed, 2, false)]); - for i in decode_indices_ { - match i { - 0 => api_a_guard = Some(api_a_illegal_static_ref.lockable_decode_sync_ref()), -1 => api_b_guard = Some(api_b_illegal_static_ref.lockable_decode_sync_ref()), -2 => api_unrelated_borrowed_guard = Some(api_unrelated_borrowed.lockable_decode_sync_ref()), - _ => unreachable!(), - } - } - let api_a_guard = api_a_guard.unwrap(); -let api_b_guard = api_b_guard.unwrap(); -let api_unrelated_borrowed_guard = api_unrelated_borrowed_guard.unwrap(); -let api_a_guard = Arc::new(api_a_guard); - let api_a_guard_illegal_static_ref = unsafe { - flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_a_guard) - };let api_b_guard = Arc::new(api_b_guard); - let api_b_guard_illegal_static_ref = unsafe { - flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_b_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithMultiDepTwinNormal ::compute_with_multi_arg_having_lifetime_twin_normal(&*api_a_guard_illegal_static_ref, &*api_b_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_a.clone()), Box::new(api_a_guard.clone()), Box::new(api_b.clone()), Box::new(api_b_guard.clone())])); Ok(output_ok) - })()) - } }) -} -fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, - rust_vec_len_: i32, - data_len_: i32, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { - let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; - let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { - transform_result_sse::<_, ()>((move || { - let mut api_that_guard = None; -let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true)]); - for i in decode_indices_ { - match i { - 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), - _ => unreachable!(), - } - } - let mut api_that_guard = api_that_guard.unwrap(); - let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithMultiDepTwinNormal ::greet_borrow_mut_self_twin_normal(&mut *api_that_guard))?; Ok(output_ok) - })()) - } }) -} -fn wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, - rust_vec_len_: i32, - data_len_: i32, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { - let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; - let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { - transform_result_sse::<_, ()>((move || { - let mut api_that_guard = None; -let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); - for i in decode_indices_ { - match i { - 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), - _ => unreachable!(), - } - } - let api_that_guard = api_that_guard.unwrap(); - let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtTypeWithMultiDepTwinNormal ::greet_borrow_self_twin_normal(&*&api_that_guard))?; Ok(output_ok) - })()) - } }) -} -fn wire__crate__api__minimal__LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, - rust_vec_len_: i32, - data_len_: i32, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { - let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; - let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_that = >>::sse_decode(&mut deserializer);deserializer.end(); move |context| { - transform_result_sse::<_, ()>((move || { - let api_that_illegal_static_ref = unsafe { - flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that) - };let mut api_that_guard = None; -let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); - for i in decode_indices_ { - match i { - 0 => api_that_guard = Some(api_that_illegal_static_ref.lockable_decode_sync_ref()), - _ => unreachable!(), - } - } - let api_that_guard = api_that_guard.unwrap(); -let api_that_guard = Arc::new(api_that_guard); - let api_that_guard_illegal_static_ref = unsafe { - flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtOwnedStructTwinNormal::compute_type_with_lifetime_twin_normal(&*api_that_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) - })()) - } }) -} -fn wire__crate__api__minimal__LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, - rust_vec_len_: i32, - data_len_: i32, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { - let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; - let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_that = >>::sse_decode(&mut deserializer); -let api_unrelated_borrowed = >>::sse_decode(&mut deserializer); -let api_unrelated_owned = ::sse_decode(&mut deserializer);deserializer.end(); move |context| { - transform_result_sse::<_, ()>((move || { - let api_that_illegal_static_ref = unsafe { - flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that) - };let mut api_that_guard = None; -let mut api_unrelated_borrowed_guard = None; -let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false), flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_unrelated_borrowed, 1, false)]); - for i in decode_indices_ { - match i { - 0 => api_that_guard = Some(api_that_illegal_static_ref.lockable_decode_sync_ref()), -1 => api_unrelated_borrowed_guard = Some(api_unrelated_borrowed.lockable_decode_sync_ref()), - _ => unreachable!(), - } - } - let api_that_guard = api_that_guard.unwrap(); -let api_unrelated_borrowed_guard = api_unrelated_borrowed_guard.unwrap(); -let api_that_guard = Arc::new(api_that_guard); - let api_that_guard_illegal_static_ref = unsafe { - flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtOwnedStructTwinNormal::compute_with_unrelated_borrowed_arg_twin_normal(&*api_that_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) - })()) - } }) -} -fn wire__crate__api__minimal__LtOwnedStructTwinNormal_create_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, - rust_vec_len_: i32, - data_len_: i32, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( - flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "LtOwnedStructTwinNormal_create", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, - }, - move || { - let message = unsafe { - flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire( - ptr_, - rust_vec_len_, - data_len_, - ) - }; - let mut deserializer = - flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_value = ::sse_decode(&mut deserializer); - deserializer.end(); - move |context| { - transform_result_sse::<_, ()>((move || { - let output_ok = Result::<_, ()>::Ok( - crate::api::minimal::LtOwnedStructTwinNormal::create(api_value), - )?; - Ok(output_ok) - })()) - } - }, - ) -} -fn wire__crate__api__minimal__LtOwnedStructTwinNormal_create_with_logger_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, - rust_vec_len_: i32, - data_len_: i32, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( - flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "LtOwnedStructTwinNormal_create_with_logger", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, - }, - move || { - let message = unsafe { - flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire( - ptr_, - rust_vec_len_, - data_len_, - ) - }; - let mut deserializer = - flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_value = ::sse_decode(&mut deserializer); - let api_logger = , - >>::sse_decode(&mut deserializer); - deserializer.end(); - move |context| { - transform_result_sse::<_, ()>((move || { - let mut api_logger_guard = None; - let decode_indices_ = - flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ - flutter_rust_bridge::for_generated::LockableOrderInfo::new( - &api_logger, - 0, - false, - ), - ]); - for i in decode_indices_ { - match i { - 0 => api_logger_guard = Some(api_logger.lockable_decode_sync_ref()), - _ => unreachable!(), - } - } - let api_logger_guard = api_logger_guard.unwrap(); - let output_ok = Result::<_, ()>::Ok( - crate::api::minimal::LtOwnedStructTwinNormal::create_with_logger( - api_value, - &*api_logger_guard, - ), - )?; - Ok(output_ok) - })()) - } - }, - ) -} -fn wire__crate__api__minimal__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, - rust_vec_len_: i32, - data_len_: i32, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { - let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; - let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_that = >>::sse_decode(&mut deserializer);deserializer.end(); move |context| { - transform_result_sse::<_, ()>((move || { - let mut api_that_guard = None; -let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true)]); - for i in decode_indices_ { - match i { - 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), - _ => unreachable!(), - } - } - let mut api_that_guard = api_that_guard.unwrap(); - let output_ok = Result::<_,()>::Ok(crate::api::minimal::LtSubStructTwinNormal::greet_borrow_mut_self_twin_normal(&mut *api_that_guard))?; Ok(output_ok) - })()) - } }) -} -fn wire__crate__api__minimal__LtSubStructTwinNormal_greet_borrow_self_twin_normal_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, - rust_vec_len_: i32, - data_len_: i32, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( - flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "LtSubStructTwinNormal_greet_borrow_self_twin_normal", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, - }, - move || { - let message = unsafe { - flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire( - ptr_, - rust_vec_len_, - data_len_, - ) - }; - let mut deserializer = - flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_that = , - >>::sse_decode(&mut deserializer); - deserializer.end(); - move |context| { - transform_result_sse::<_, ()>((move || { - let mut api_that_guard = None; - let decode_indices_ = - flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ - flutter_rust_bridge::for_generated::LockableOrderInfo::new( - &api_that, 0, false, - ), - ]); - for i in decode_indices_ { - match i { - 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), - _ => unreachable!(), - } - } - let api_that_guard = api_that_guard.unwrap(); - let output_ok = Result::<_, ()>::Ok( - crate::api::minimal::LtSubStructTwinNormal::greet_borrow_self_twin_normal( - &*api_that_guard, - ), - )?; - Ok(output_ok) - })()) - } - }, - ) -} -fn wire__crate__api__minimal__SimpleLogger_get_and_reset_impl( - ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, - rust_vec_len_: i32, - data_len_: i32, -) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( - flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "SimpleLogger_get_and_reset", - port: None, - mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, - }, - move || { - let message = unsafe { - flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire( - ptr_, - rust_vec_len_, - data_len_, - ) - }; - let mut deserializer = - flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_that = , - >>::sse_decode(&mut deserializer); - deserializer.end(); - transform_result_sse::<_, ()>((move || { - let mut api_that_guard = None; - let decode_indices_ = - flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ - flutter_rust_bridge::for_generated::LockableOrderInfo::new( - &api_that, 0, false, - ), - ]); - for i in decode_indices_ { - match i { - 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), - _ => unreachable!(), - } - } - let api_that_guard = api_that_guard.unwrap(); - let output_ok = Result::<_, ()>::Ok( - crate::api::minimal::SimpleLogger::get_and_reset(&*api_that_guard), - )?; - Ok(output_ok) - })()) - }, - ) -} -fn wire__crate__api__minimal__SimpleLogger_new_impl( - ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, - rust_vec_len_: i32, - data_len_: i32, -) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( - flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "SimpleLogger_new", - port: None, - mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, - }, - move || { - let message = unsafe { - flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire( - ptr_, - rust_vec_len_, - data_len_, - ) - }; - let mut deserializer = - flutter_rust_bridge::for_generated::SseDeserializer::new(message); - deserializer.end(); - transform_result_sse::<_, ()>((move || { - let output_ok = Result::<_, ()>::Ok(crate::api::minimal::SimpleLogger::new())?; - Ok(output_ok) - })()) - }, - ) -} fn wire__crate__api__minimal__init_app_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, @@ -630,75 +75,6 @@ fn wire__crate__api__minimal__init_app_impl( }, ) } -fn wire__crate__api__minimal__lt_compute_with_lifetime_function_twin_normal_impl( - port_: flutter_rust_bridge::for_generated::MessagePort, - ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, - rust_vec_len_: i32, - data_len_: i32, -) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( - flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "lt_compute_with_lifetime_function_twin_normal", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, - }, - move || { - let message = unsafe { - flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire( - ptr_, - rust_vec_len_, - data_len_, - ) - }; - let mut deserializer = - flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_arg = , - >>::sse_decode(&mut deserializer); - deserializer.end(); - move |context| { - transform_result_sse::<_, ()>((move || { - let api_arg_illegal_static_ref = unsafe { - flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg) - }; - let mut api_arg_guard = None; - let decode_indices_ = - flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ - flutter_rust_bridge::for_generated::LockableOrderInfo::new( - &api_arg, 0, false, - ), - ]); - for i in decode_indices_ { - match i { - 0 => { - api_arg_guard = - Some(api_arg_illegal_static_ref.lockable_decode_sync_ref()) - } - _ => unreachable!(), - } - } - let api_arg_guard = api_arg_guard.unwrap(); - let api_arg_guard = Arc::new(api_arg_guard); - let api_arg_guard_illegal_static_ref = unsafe { - flutter_rust_bridge::for_generated::ouroboros_change_lifetime( - &api_arg_guard, - ) - }; - let output_ok = Result::<_, ()>::Ok( - crate::api::minimal::lt_compute_with_lifetime_function_twin_normal( - &*api_arg_guard_illegal_static_ref, - ), - )?; - let output_ok = RustAutoOpaque::new(Lifetimeable::new( - output_ok, - vec![Box::new(api_arg.clone()), Box::new(api_arg_guard.clone())], - )); - Ok(output_ok) - })()) - } - }, - ) -} fn wire__crate__api__minimal__minimal_adder_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, @@ -735,185 +111,8 @@ fn wire__crate__api__minimal__minimal_adder_impl( ) } -// Section: related_funcs - -flutter_rust_bridge::frb_generated_moi_arc_impl_value!( - flutter_rust_bridge::for_generated::RustAutoOpaqueInner< - Lifetimeable>, - > -); -flutter_rust_bridge::frb_generated_moi_arc_impl_value!( - flutter_rust_bridge::for_generated::RustAutoOpaqueInner< - Lifetimeable>, - > -); -flutter_rust_bridge::frb_generated_moi_arc_impl_value!( - flutter_rust_bridge::for_generated::RustAutoOpaqueInner< - Lifetimeable>, - > -); -flutter_rust_bridge::frb_generated_moi_arc_impl_value!( - flutter_rust_bridge::for_generated::RustAutoOpaqueInner -); -flutter_rust_bridge::frb_generated_moi_arc_impl_value!( - flutter_rust_bridge::for_generated::RustAutoOpaqueInner -); -flutter_rust_bridge::frb_generated_moi_arc_impl_value!( - flutter_rust_bridge::for_generated::RustAutoOpaqueInner -); - // Section: dart2rust -impl SseDecode for RustAutoOpaqueMoi>> { - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - let mut inner = >, - >, - >>::sse_decode(deserializer); - return flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_decode(inner); - } -} - -impl SseDecode for RustAutoOpaqueMoi>> { - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - let mut inner = >, - >, - >>::sse_decode(deserializer); - return flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_decode(inner); - } -} - -impl SseDecode for RustAutoOpaqueMoi>> { - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - let mut inner = >, - >, - >>::sse_decode(deserializer); - return flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_decode(inner); - } -} - -impl SseDecode for LtOwnedStructTwinNormal { - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - let mut inner = , - >>::sse_decode(deserializer); - return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); - } -} - -impl SseDecode for LtSubStructTwinNormal { - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - let mut inner = , - >>::sse_decode(deserializer); - return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); - } -} - -impl SseDecode for SimpleLogger { - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - let mut inner = , - >>::sse_decode(deserializer); - return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); - } -} - -impl SseDecode - for RustOpaqueMoi< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner< - Lifetimeable>, - >, - > -{ - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - let mut inner = ::sse_decode(deserializer); - return decode_rust_opaque_moi(inner); - } -} - -impl SseDecode - for RustOpaqueMoi< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner< - Lifetimeable>, - >, - > -{ - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - let mut inner = ::sse_decode(deserializer); - return decode_rust_opaque_moi(inner); - } -} - -impl SseDecode - for RustOpaqueMoi< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner< - Lifetimeable>, - >, - > -{ - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - let mut inner = ::sse_decode(deserializer); - return decode_rust_opaque_moi(inner); - } -} - -impl SseDecode - for RustOpaqueMoi< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner, - > -{ - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - let mut inner = ::sse_decode(deserializer); - return decode_rust_opaque_moi(inner); - } -} - -impl SseDecode - for RustOpaqueMoi< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner, - > -{ - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - let mut inner = ::sse_decode(deserializer); - return decode_rust_opaque_moi(inner); - } -} - -impl SseDecode - for RustOpaqueMoi> -{ - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - let mut inner = ::sse_decode(deserializer); - return decode_rust_opaque_moi(inner); - } -} - -impl SseDecode for String { - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - let mut inner = >::sse_decode(deserializer); - return String::from_utf8(inner).unwrap(); - } -} - impl SseDecode for i32 { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -921,49 +120,11 @@ impl SseDecode for i32 { } } -impl SseDecode for Vec { - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - let mut len_ = ::sse_decode(deserializer); - let mut ans_ = vec![]; - for idx_ in 0..len_ { - ans_.push(::sse_decode(deserializer)); - } - return ans_; - } -} - -impl SseDecode for Vec { - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - let mut len_ = ::sse_decode(deserializer); - let mut ans_ = vec![]; - for idx_ in 0..len_ { - ans_.push(::sse_decode(deserializer)); - } - return ans_; - } -} - -impl SseDecode for u8 { - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - deserializer.cursor.read_u8().unwrap() - } -} - impl SseDecode for () { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {} } -impl SseDecode for usize { - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { - deserializer.cursor.read_u64::().unwrap() as _ - } -} - impl SseDecode for bool { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -980,26 +141,10 @@ fn pde_ffi_dispatcher_primary_impl( ) { // Codec=Pde (Serialization + dispatch), see doc to use other codecs match func_id { - 1 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), -2 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), -3 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal_impl(port, ptr, rust_vec_len, data_len), -4 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_nested_type_with_lifetime_twin_normal_impl(port, ptr, rust_vec_len, data_len), -5 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), -6 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), -7 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal_impl(port, ptr, rust_vec_len, data_len), -8 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), -9 => wire__crate__api__minimal__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), -10 => wire__crate__api__minimal__LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal_impl(port, ptr, rust_vec_len, data_len), -11 => wire__crate__api__minimal__LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal_impl(port, ptr, rust_vec_len, data_len), -12 => wire__crate__api__minimal__LtOwnedStructTwinNormal_create_impl(port, ptr, rust_vec_len, data_len), -13 => wire__crate__api__minimal__LtOwnedStructTwinNormal_create_with_logger_impl(port, ptr, rust_vec_len, data_len), -14 => wire__crate__api__minimal__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), -15 => wire__crate__api__minimal__LtSubStructTwinNormal_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), -18 => wire__crate__api__minimal__init_app_impl(port, ptr, rust_vec_len, data_len), -19 => wire__crate__api__minimal__lt_compute_with_lifetime_function_twin_normal_impl(port, ptr, rust_vec_len, data_len), -20 => wire__crate__api__minimal__minimal_adder_impl(port, ptr, rust_vec_len, data_len), - _ => unreachable!(), - } + 1 => wire__crate__api__minimal__init_app_impl(port, ptr, rust_vec_len, data_len), + 2 => wire__crate__api__minimal__minimal_adder_impl(port, ptr, rust_vec_len, data_len), + _ => unreachable!(), + } } fn pde_ffi_dispatcher_sync_impl( @@ -1010,233 +155,12 @@ fn pde_ffi_dispatcher_sync_impl( ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { // Codec=Pde (Serialization + dispatch), see doc to use other codecs match func_id { - 16 => { - wire__crate__api__minimal__SimpleLogger_get_and_reset_impl(ptr, rust_vec_len, data_len) - } - 17 => wire__crate__api__minimal__SimpleLogger_new_impl(ptr, rust_vec_len, data_len), _ => unreachable!(), } } // Section: rust2dart -// Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for FrbWrapper { - fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { - flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self.0) - .into_dart() - } -} -impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive - for FrbWrapper -{ -} - -impl flutter_rust_bridge::IntoIntoDart> - for LtOwnedStructTwinNormal -{ - fn into_into_dart(self) -> FrbWrapper { - self.into() - } -} - -// Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for FrbWrapper { - fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { - flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self.0) - .into_dart() - } -} -impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive - for FrbWrapper -{ -} - -impl flutter_rust_bridge::IntoIntoDart> - for LtSubStructTwinNormal -{ - fn into_into_dart(self) -> FrbWrapper { - self.into() - } -} - -// Codec=Dco (DartCObject based), see doc to use other codecs -impl flutter_rust_bridge::IntoDart for FrbWrapper { - fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { - flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self.0) - .into_dart() - } -} -impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper {} - -impl flutter_rust_bridge::IntoIntoDart> for SimpleLogger { - fn into_into_dart(self) -> FrbWrapper { - self.into() - } -} - -impl SseEncode for RustAutoOpaqueMoi>> { - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - >, - >, - >>::sse_encode( - flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_encode(self), - serializer, - ); - } -} - -impl SseEncode for RustAutoOpaqueMoi>> { - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - >, - >, - >>::sse_encode( - flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_encode(self), - serializer, - ); - } -} - -impl SseEncode for RustAutoOpaqueMoi>> { - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - >, - >, - >>::sse_encode( - flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_encode(self), - serializer, - ); - } -} - -impl SseEncode for LtOwnedStructTwinNormal { - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - , - >>::sse_encode( - flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self), - serializer, - ); - } -} - -impl SseEncode for LtSubStructTwinNormal { - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - , - >>::sse_encode( - flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self), - serializer, - ); - } -} - -impl SseEncode for SimpleLogger { - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self), serializer); - } -} - -impl SseEncode - for RustOpaqueMoi< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner< - Lifetimeable>, - >, - > -{ - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - let (ptr, size) = self.sse_encode_raw(); - ::sse_encode(ptr, serializer); - ::sse_encode(size, serializer); - } -} - -impl SseEncode - for RustOpaqueMoi< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner< - Lifetimeable>, - >, - > -{ - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - let (ptr, size) = self.sse_encode_raw(); - ::sse_encode(ptr, serializer); - ::sse_encode(size, serializer); - } -} - -impl SseEncode - for RustOpaqueMoi< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner< - Lifetimeable>, - >, - > -{ - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - let (ptr, size) = self.sse_encode_raw(); - ::sse_encode(ptr, serializer); - ::sse_encode(size, serializer); - } -} - -impl SseEncode - for RustOpaqueMoi< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner, - > -{ - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - let (ptr, size) = self.sse_encode_raw(); - ::sse_encode(ptr, serializer); - ::sse_encode(size, serializer); - } -} - -impl SseEncode - for RustOpaqueMoi< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner, - > -{ - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - let (ptr, size) = self.sse_encode_raw(); - ::sse_encode(ptr, serializer); - ::sse_encode(size, serializer); - } -} - -impl SseEncode - for RustOpaqueMoi> -{ - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - let (ptr, size) = self.sse_encode_raw(); - ::sse_encode(ptr, serializer); - ::sse_encode(size, serializer); - } -} - -impl SseEncode for String { - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - >::sse_encode(self.into_bytes(), serializer); - } -} - impl SseEncode for i32 { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -1244,48 +168,11 @@ impl SseEncode for i32 { } } -impl SseEncode for Vec { - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - ::sse_encode(self.len() as _, serializer); - for item in self { - ::sse_encode(item, serializer); - } - } -} - -impl SseEncode for Vec { - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - ::sse_encode(self.len() as _, serializer); - for item in self { - ::sse_encode(item, serializer); - } - } -} - -impl SseEncode for u8 { - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - serializer.cursor.write_u8(self).unwrap(); - } -} - impl SseEncode for () { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {} } -impl SseEncode for usize { - // Codec=Sse (Serialization based), see doc to use other codecs - fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { - serializer - .cursor - .write_u64::(self as _) - .unwrap(); - } -} - impl SseEncode for bool { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { diff --git a/frb_example/dart_minimal/rust/src/frb_generated.web.rs b/frb_example/dart_minimal/rust/src/frb_generated.web.rs index c23bc23e99..9b5319b77a 100644 --- a/frb_example/dart_minimal/rust/src/frb_generated.web.rs +++ b/frb_example/dart_minimal/rust/src/frb_generated.web.rs @@ -4,7 +4,6 @@ // Section: imports use super::*; -use crate::api::minimal::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; use flutter_rust_bridge::for_generated::wasm_bindgen; use flutter_rust_bridge::for_generated::wasm_bindgen::prelude::*; @@ -14,111 +13,3 @@ use flutter_rust_bridge::{Handler, IntoIntoDart}; // Section: boilerplate flutter_rust_bridge::frb_generated_boilerplate_web!(); - -#[wasm_bindgen] -pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - ptr: *const std::ffi::c_void, -) { - MoiArc::< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner< - Lifetimeable>, - >, - >::increment_strong_count(ptr as _); -} - -#[wasm_bindgen] -pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( - ptr: *const std::ffi::c_void, -) { - MoiArc::< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner< - Lifetimeable>, - >, - >::decrement_strong_count(ptr as _); -} - -#[wasm_bindgen] -pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - ptr: *const std::ffi::c_void, -) { - MoiArc::< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner< - Lifetimeable>, - >, - >::increment_strong_count(ptr as _); -} - -#[wasm_bindgen] -pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( - ptr: *const std::ffi::c_void, -) { - MoiArc::< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner< - Lifetimeable>, - >, - >::decrement_strong_count(ptr as _); -} - -#[wasm_bindgen] -pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - ptr: *const std::ffi::c_void, -) { - MoiArc::< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner< - Lifetimeable>, - >, - >::increment_strong_count(ptr as _); -} - -#[wasm_bindgen] -pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( - ptr: *const std::ffi::c_void, -) { - MoiArc::< - flutter_rust_bridge::for_generated::RustAutoOpaqueInner< - Lifetimeable>, - >, - >::decrement_strong_count(ptr as _); -} - -#[wasm_bindgen] -pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - ptr: *const std::ffi::c_void, -) { - MoiArc::>::increment_strong_count(ptr as _); -} - -#[wasm_bindgen] -pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( - ptr: *const std::ffi::c_void, -) { - MoiArc::>::decrement_strong_count(ptr as _); -} - -#[wasm_bindgen] -pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - ptr: *const std::ffi::c_void, -) { - MoiArc::>::increment_strong_count(ptr as _); -} - -#[wasm_bindgen] -pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( - ptr: *const std::ffi::c_void, -) { - MoiArc::>::decrement_strong_count(ptr as _); -} - -#[wasm_bindgen] -pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - ptr: *const std::ffi::c_void, -) { - MoiArc::>::increment_strong_count(ptr as _); -} - -#[wasm_bindgen] -pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( - ptr: *const std::ffi::c_void, -) { - MoiArc::>::decrement_strong_count(ptr as _); -} From 601dc6497341ef0b4cf1322068ae0f066eba97a2 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 19:52:56 +0800 Subject: [PATCH 077/117] chore: codegen --- frb_example/pure_dart/frb_generated.h | 138 ++ .../lib/src/rust/api/lifetimeable.dart | 93 + .../src/rust/api/misc_no_twin_example_a.dart | 10 + .../pure_dart/lib/src/rust/frb_generated.dart | 1625 ++++++++++++++++- .../lib/src/rust/frb_generated.io.dart | 986 ++++++++++ .../lib/src/rust/frb_generated.web.dart | 759 ++++++++ .../pure_dart/rust/src/frb_generated.io.rs | 353 +++- .../pure_dart/rust/src/frb_generated.rs | 929 +++++++++- .../pure_dart/rust/src/frb_generated.web.rs | 357 +++- 9 files changed, 5245 insertions(+), 5 deletions(-) create mode 100644 frb_example/pure_dart/lib/src/rust/api/lifetimeable.dart diff --git a/frb_example/pure_dart/frb_generated.h b/frb_example/pure_dart/frb_generated.h index 10bc9fb51e..e61abe5896 100644 --- a/frb_example/pure_dart/frb_generated.h +++ b/frb_example/pure_dart/frb_generated.h @@ -3835,6 +3835,86 @@ void frbgen_frb_example_pure_dart_wire__crate__api__inside_macro__another_macro_ void frbgen_frb_example_pure_dart_wire__crate__api__inside_macro__func_macro_struct_twin_normal(int64_t port_, struct wire_cst_macro_struct *arg); +void frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal(int64_t port_, + uint8_t *ptr_, + int32_t rust_vec_len_, + int32_t data_len_); + +void frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal(int64_t port_, + uint8_t *ptr_, + int32_t rust_vec_len_, + int32_t data_len_); + +void frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal(int64_t port_, + uint8_t *ptr_, + int32_t rust_vec_len_, + int32_t data_len_); + +void frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_nested_type_with_lifetime_twin_normal(int64_t port_, + uint8_t *ptr_, + int32_t rust_vec_len_, + int32_t data_len_); + +void frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal(int64_t port_, + uint8_t *ptr_, + int32_t rust_vec_len_, + int32_t data_len_); + +void frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal(int64_t port_, + uint8_t *ptr_, + int32_t rust_vec_len_, + int32_t data_len_); + +void frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal(int64_t port_, + uint8_t *ptr_, + int32_t rust_vec_len_, + int32_t data_len_); + +void frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal(int64_t port_, + uint8_t *ptr_, + int32_t rust_vec_len_, + int32_t data_len_); + +void frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal(int64_t port_, + uint8_t *ptr_, + int32_t rust_vec_len_, + int32_t data_len_); + +void frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal(int64_t port_, + uint8_t *ptr_, + int32_t rust_vec_len_, + int32_t data_len_); + +void frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal(int64_t port_, + uint8_t *ptr_, + int32_t rust_vec_len_, + int32_t data_len_); + +void frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create(int64_t port_, + uint8_t *ptr_, + int32_t rust_vec_len_, + int32_t data_len_); + +void frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger(int64_t port_, + uint8_t *ptr_, + int32_t rust_vec_len_, + int32_t data_len_); + +void frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal(int64_t port_, + uint8_t *ptr_, + int32_t rust_vec_len_, + int32_t data_len_); + +void frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_self_twin_normal(int64_t port_, + uint8_t *ptr_, + int32_t rust_vec_len_, + int32_t data_len_); + +void frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__lt_compute_with_lifetime_function_twin_normal(int64_t port_, + uint8_t *ptr_, + int32_t rust_vec_len_, + int32_t data_len_); + void frbgen_frb_example_pure_dart_wire__crate__api__map_and_set__func_hash_map_i32_i32_twin_normal(int64_t port_, struct wire_cst_list_record_i_32_i_32 *arg); @@ -4083,6 +4163,10 @@ void frbgen_frb_example_pure_dart_wire__crate__api__misc_no_twin_example_a__Item void frbgen_frb_example_pure_dart_wire__crate__api__misc_no_twin_example_a__ItemContainerSolutionOneTwinNormal_get_item_contents_twin_normal(int64_t port_, uintptr_t that); +WireSyncRust2DartDco frbgen_frb_example_pure_dart_wire__crate__api__misc_no_twin_example_a__SimpleLogger_get_and_reset(uintptr_t that); + +WireSyncRust2DartDco frbgen_frb_example_pure_dart_wire__crate__api__misc_no_twin_example_a__SimpleLogger_new(void); + void frbgen_frb_example_pure_dart_wire__crate__api__misc_no_twin_example_a__StructInMiscNoTwinExampleA_sample_function_a(int64_t port_, uintptr_t that); @@ -13688,6 +13772,26 @@ void frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flu void frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal(const void *ptr); +void frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic(const void *ptr); + +void frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic(const void *ptr); + +void frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic(const void *ptr); + +void frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic(const void *ptr); + +void frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic(const void *ptr); + +void frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic(const void *ptr); + +void frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal(const void *ptr); + +void frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal(const void *ptr); + +void frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal(const void *ptr); + +void frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal(const void *ptr); + void frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal(const void *ptr); void frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal(const void *ptr); @@ -13896,6 +14000,10 @@ void frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flu void frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSyncSseMoi(const void *ptr); +void frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger(const void *ptr); + +void frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger(const void *ptr); + void frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod(const void *ptr); void frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod(const void *ptr); @@ -15395,6 +15503,11 @@ static int64_t dummy_method_to_enforce_bundling(void) { dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEnumWithGoodAndOpaqueWithoutOptionTwinSyncSse); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEnumWithGoodAndOpaqueWithoutOptionTwinSyncSseMoi); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyNodeTwinNormal); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleEnumTwinMoi); @@ -15447,6 +15560,7 @@ static int64_t dummy_method_to_enforce_bundling(void) { dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSyncMoi); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSyncSse); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSyncSseMoi); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerStaticGetterOnlyTwinNormal); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerStaticGetterOnlyTwinRustAsync); @@ -15598,6 +15712,11 @@ static int64_t dummy_method_to_enforce_bundling(void) { dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEnumWithGoodAndOpaqueWithoutOptionTwinSyncSse); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEnumWithGoodAndOpaqueWithoutOptionTwinSyncSseMoi); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyNodeTwinNormal); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleEnumTwinMoi); @@ -15650,6 +15769,7 @@ static int64_t dummy_method_to_enforce_bundling(void) { dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSyncMoi); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSyncSse); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSyncSseMoi); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerStaticGetterOnlyTwinNormal); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerStaticGetterOnlyTwinRustAsync); @@ -15851,6 +15971,22 @@ static int64_t dummy_method_to_enforce_bundling(void) { dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__impl_trait__StructTwoWithTraitTwinNormal_simple_trait_fn_with_default_impl_twin_normal); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__inside_macro__another_macro_struct_twin_normal); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__inside_macro__func_macro_struct_twin_normal); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_nested_type_with_lifetime_twin_normal); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_self_twin_normal); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__lt_compute_with_lifetime_function_twin_normal); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__map_and_set__func_hash_map_i32_i32_twin_normal); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__map_and_set__func_hash_map_string_bytes_twin_normal); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__map_and_set__func_hash_map_string_complex_enum_twin_normal); @@ -15935,6 +16071,8 @@ static int64_t dummy_method_to_enforce_bundling(void) { dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__misc_no_twin_example_a__ItemContainerSolutionOneTwinNormal_auto_accessor_set_name); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__misc_no_twin_example_a__ItemContainerSolutionOneTwinNormal_create_twin_normal); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__misc_no_twin_example_a__ItemContainerSolutionOneTwinNormal_get_item_contents_twin_normal); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__misc_no_twin_example_a__SimpleLogger_get_and_reset); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__misc_no_twin_example_a__SimpleLogger_new); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__misc_no_twin_example_a__StructInMiscNoTwinExampleA_sample_function_a); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__misc_no_twin_example_a__StructWithImplBlockInMultiFile_method_in_a); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__misc_no_twin_example_a__StructWithImplBlockInMultiFile_method_in_b); diff --git a/frb_example/pure_dart/lib/src/rust/api/lifetimeable.dart b/frb_example/pure_dart/lib/src/rust/api/lifetimeable.dart new file mode 100644 index 0000000000..67293272af --- /dev/null +++ b/frb_example/pure_dart/lib/src/rust/api/lifetimeable.dart @@ -0,0 +1,93 @@ +// This file is automatically generated, so please do not edit it. +// Generated by `flutter_rust_bridge`@ 2.0.0-dev.39. + +// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import + +import '../frb_generated.dart'; +import 'misc_no_twin_example_a.dart'; +import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; + +/// Functions (other tests are mainly methods) +Future ltComputeWithLifetimeFunctionTwinNormal( + {required LtOwnedStructTwinNormal arg}) => + RustLib.instance.api + .crateApiLifetimeableLtComputeWithLifetimeFunctionTwinNormal(arg: arg); + +// Rust type: RustOpaqueNom >>> +abstract class LtNestedTypeWithLifetimeTwinNormal + implements RustOpaqueInterface { + Future greetBorrowMutSelfTwinNormal(); + + Future greetBorrowSelfTwinNormal(); +} + +// Rust type: RustOpaqueNom >>> +abstract class LtTypeWithLifetimeTwinNormal implements RustOpaqueInterface { + /// Input argument has type `T<'a>` (other tests mainly are `&'a T`) + static Future< + LtTypeWithLifetimeTwinNormal> computeArgGenericLifetimeTwinNormal( + {required LtTypeWithLifetimeTwinNormal arg}) => + RustLib.instance.api + .crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeArgGenericLifetimeTwinNormal( + arg: arg); + + /// Input lifetimeable and output another lifetimeable + Future + computeNestedTypeWithLifetimeTwinNormal(); + + /// `&mut T` where T is lifetimeable + Future greetBorrowMutSelfTwinNormal(); + + /// `&T` where T is lifetimeable + Future greetBorrowSelfTwinNormal(); +} + +// Rust type: RustOpaqueNom >>> +abstract class LtTypeWithMultiDepTwinNormal implements RustOpaqueInterface { + /// Multiple input args have lifetime + static Future< + LtTypeWithMultiDepTwinNormal> computeWithMultiArgHavingLifetimeTwinNormal( + {required LtOwnedStructTwinNormal a, + required LtOwnedStructTwinNormal b, + required LtOwnedStructTwinNormal unrelatedBorrowed, + required LtOwnedStructTwinNormal unrelatedOwned}) => + RustLib.instance.api + .crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticComputeWithMultiArgHavingLifetimeTwinNormal( + a: a, + b: b, + unrelatedBorrowed: unrelatedBorrowed, + unrelatedOwned: unrelatedOwned); + + Future> greetBorrowMutSelfTwinNormal(); + + Future> greetBorrowSelfTwinNormal(); +} + +// Rust type: RustOpaqueNom> +abstract class LtOwnedStructTwinNormal implements RustOpaqueInterface { + /// `fn f(x: &'a T) -> S<'a>` + Future computeTypeWithLifetimeTwinNormal(); + + /// The unrelated arg should not affect results + Future + computeWithUnrelatedBorrowedArgTwinNormal( + {required LtOwnedStructTwinNormal unrelatedBorrowed, + required LtOwnedStructTwinNormal unrelatedOwned}); + + static Future create({required String value}) => + RustLib.instance.api + .crateApiLifetimeableLtOwnedStructTwinNormalCreate(value: value); + + static Future createWithLogger( + {required String value, required SimpleLogger logger}) => + RustLib.instance.api + .crateApiLifetimeableLtOwnedStructTwinNormalCreateWithLogger( + value: value, logger: logger); +} + +// Rust type: RustOpaqueNom> +abstract class LtSubStructTwinNormal implements RustOpaqueInterface { + Future greetBorrowMutSelfTwinNormal(); + + Future greetBorrowSelfTwinNormal(); +} diff --git a/frb_example/pure_dart/lib/src/rust/api/misc_no_twin_example_a.dart b/frb_example/pure_dart/lib/src/rust/api/misc_no_twin_example_a.dart index 14f55ba84a..a7f04f1a24 100644 --- a/frb_example/pure_dart/lib/src/rust/api/misc_no_twin_example_a.dart +++ b/frb_example/pure_dart/lib/src/rust/api/misc_no_twin_example_a.dart @@ -7,6 +7,8 @@ import '../frb_generated.dart'; import 'misc_no_twin_example_b.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; +// These functions are ignored because they are not marked as `pub`: `log` + Future sameFunctionNameInDifferentFiles() => RustLib.instance.api .crateApiMiscNoTwinExampleASameFunctionNameInDifferentFiles(); @@ -69,6 +71,14 @@ abstract class ItemContainerSolutionOneTwinNormal // Rust type: RustOpaqueNom> abstract class OpaqueItemTwinNormal implements RustOpaqueInterface {} +// Rust type: RustOpaqueNom> +abstract class SimpleLogger implements RustOpaqueInterface { + List getAndReset(); + + factory SimpleLogger() => + RustLib.instance.api.crateApiMiscNoTwinExampleASimpleLoggerNew(); +} + // Rust type: RustOpaqueNom> abstract class StructInMiscNoTwinExampleA implements RustOpaqueInterface { Future sampleFunctionA(); diff --git a/frb_example/pure_dart/lib/src/rust/frb_generated.dart b/frb_example/pure_dart/lib/src/rust/frb_generated.dart index a1e89146ea..f021837a44 100644 --- a/frb_example/pure_dart/lib/src/rust/frb_generated.dart +++ b/frb_example/pure_dart/lib/src/rust/frb_generated.dart @@ -34,6 +34,7 @@ import 'api/external_impl.dart'; import 'api/external_type_in_crate.dart'; import 'api/impl_trait.dart'; import 'api/inside_macro.dart'; +import 'api/lifetimeable.dart'; import 'api/map_and_set.dart'; import 'api/method.dart'; import 'api/mirror.dart'; @@ -324,7 +325,7 @@ class RustLib extends BaseEntrypoint { String get codegenVersion => '2.0.0-dev.39'; @override - int get rustContentHash => -1348097527; + int get rustContentHash => -1992972191; static const kDefaultExternalLibraryLoaderConfig = ExternalLibraryLoaderConfig( @@ -832,6 +833,75 @@ abstract class RustLibApi extends BaseApi { Future crateApiInsideMacroFuncMacroStructTwinNormal( {required MacroStruct arg}); + Future + crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( + {required LtNestedTypeWithLifetimeTwinNormal that}); + + Future + crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormal( + {required LtNestedTypeWithLifetimeTwinNormal that}); + + Future + crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeArgGenericLifetimeTwinNormal( + {required LtTypeWithLifetimeTwinNormal arg}); + + Future + crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeNestedTypeWithLifetimeTwinNormal( + {required LtTypeWithLifetimeTwinNormal that}); + + Future + crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( + {required LtTypeWithLifetimeTwinNormal that}); + + Future + crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormal( + {required LtTypeWithLifetimeTwinNormal that}); + + Future + crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticComputeWithMultiArgHavingLifetimeTwinNormal( + {required LtOwnedStructTwinNormal a, + required LtOwnedStructTwinNormal b, + required LtOwnedStructTwinNormal unrelatedBorrowed, + required LtOwnedStructTwinNormal unrelatedOwned}); + + Future> + crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowMutSelfTwinNormal( + {required LtTypeWithMultiDepTwinNormal that}); + + Future> + crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowSelfTwinNormal( + {required LtTypeWithMultiDepTwinNormal that}); + + Future + crateApiLifetimeableLtOwnedStructTwinNormalComputeTypeWithLifetimeTwinNormal( + {required LtOwnedStructTwinNormal that}); + + Future + crateApiLifetimeableLtOwnedStructTwinNormalComputeWithUnrelatedBorrowedArgTwinNormal( + {required LtOwnedStructTwinNormal that, + required LtOwnedStructTwinNormal unrelatedBorrowed, + required LtOwnedStructTwinNormal unrelatedOwned}); + + Future + crateApiLifetimeableLtOwnedStructTwinNormalCreate( + {required String value}); + + Future + crateApiLifetimeableLtOwnedStructTwinNormalCreateWithLogger( + {required String value, required SimpleLogger logger}); + + Future + crateApiLifetimeableLtSubStructTwinNormalGreetBorrowMutSelfTwinNormal( + {required LtSubStructTwinNormal that}); + + Future + crateApiLifetimeableLtSubStructTwinNormalGreetBorrowSelfTwinNormal( + {required LtSubStructTwinNormal that}); + + Future + crateApiLifetimeableLtComputeWithLifetimeFunctionTwinNormal( + {required LtOwnedStructTwinNormal arg}); + Future> crateApiMapAndSetFuncHashMapI32I32TwinNormal( {required Map arg}); @@ -1103,6 +1173,11 @@ abstract class RustLibApi extends BaseApi { crateApiMiscNoTwinExampleAItemContainerSolutionOneTwinNormalGetItemContentsTwinNormal( {required ItemContainerSolutionOneTwinNormal that}); + List crateApiMiscNoTwinExampleASimpleLoggerGetAndReset( + {required SimpleLogger that}); + + SimpleLogger crateApiMiscNoTwinExampleASimpleLoggerNew(); + Future crateApiMiscNoTwinExampleAStructInMiscNoTwinExampleASampleFunctionA( {required StructInMiscNoTwinExampleA that}); @@ -11064,6 +11139,51 @@ abstract class RustLibApi extends BaseApi { CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_ItemContainerSolutionOneTwinNormalPtr; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtNestedTypeWithLifetimeTwinNormal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormal; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormalPtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtTypeWithLifetimeTwinNormal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormal; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormalPtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtTypeWithMultiDepTwinNormal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormal; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtOwnedStructTwinNormal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtOwnedStructTwinNormal; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtOwnedStructTwinNormalPtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtSubStructTwinNormal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtSubStructTwinNormal; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtSubStructTwinNormalPtr; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_MyAudioParamTwinNormal; @@ -11532,6 +11652,14 @@ abstract class RustLibApi extends BaseApi { CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_OpaqueTwoTwinSyncSseMoiPtr; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_SimpleLogger; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_SimpleLogger; + + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_SimpleLoggerPtr; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_SimpleOpaqueExternalStructWithMethod; @@ -16397,6 +16525,552 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { argNames: ["arg"], ); + @override + Future + crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( + {required LtNestedTypeWithLifetimeTwinNormal that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + that, serializer); + final raw_ = serializer.intoRaw(); + return wire + .wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal( + port_, raw_.ptr, raw_.rustVecLen, raw_.dataLen); + }, + codec: SseCodec( + decodeSuccessData: sse_decode_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormalConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal", + argNames: ["that"], + ); + + @override + Future + crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormal( + {required LtNestedTypeWithLifetimeTwinNormal that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + that, serializer); + final raw_ = serializer.intoRaw(); + return wire + .wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal( + port_, raw_.ptr, raw_.rustVecLen, raw_.dataLen); + }, + codec: SseCodec( + decodeSuccessData: sse_decode_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormalConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal", + argNames: ["that"], + ); + + @override + Future + crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeArgGenericLifetimeTwinNormal( + {required LtTypeWithLifetimeTwinNormal arg}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + arg, serializer); + final raw_ = serializer.intoRaw(); + return wire + .wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal( + port_, raw_.ptr, raw_.rustVecLen, raw_.dataLen); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic, + decodeErrorData: null, + ), + constMeta: + kCrateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeArgGenericLifetimeTwinNormalConstMeta, + argValues: [arg], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeArgGenericLifetimeTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal", + argNames: ["arg"], + ); + + @override + Future + crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeNestedTypeWithLifetimeTwinNormal( + {required LtTypeWithLifetimeTwinNormal that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + that, serializer); + final raw_ = serializer.intoRaw(); + return wire + .wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_nested_type_with_lifetime_twin_normal( + port_, raw_.ptr, raw_.rustVecLen, raw_.dataLen); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic, + decodeErrorData: null, + ), + constMeta: + kCrateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeNestedTypeWithLifetimeTwinNormalConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeNestedTypeWithLifetimeTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_nested_type_with_lifetime_twin_normal", + argNames: ["that"], + ); + + @override + Future + crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( + {required LtTypeWithLifetimeTwinNormal that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + that, serializer); + final raw_ = serializer.intoRaw(); + return wire + .wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal( + port_, raw_.ptr, raw_.rustVecLen, raw_.dataLen); + }, + codec: SseCodec( + decodeSuccessData: sse_decode_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormalConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal", + argNames: ["that"], + ); + + @override + Future + crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormal( + {required LtTypeWithLifetimeTwinNormal that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + that, serializer); + final raw_ = serializer.intoRaw(); + return wire + .wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal( + port_, raw_.ptr, raw_.rustVecLen, raw_.dataLen); + }, + codec: SseCodec( + decodeSuccessData: sse_decode_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormalConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal", + argNames: ["that"], + ); + + @override + Future + crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticComputeWithMultiArgHavingLifetimeTwinNormal( + {required LtOwnedStructTwinNormal a, + required LtOwnedStructTwinNormal b, + required LtOwnedStructTwinNormal unrelatedBorrowed, + required LtOwnedStructTwinNormal unrelatedOwned}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + a, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + b, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + unrelatedBorrowed, serializer); + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + unrelatedOwned, serializer); + final raw_ = serializer.intoRaw(); + return wire + .wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal( + port_, raw_.ptr, raw_.rustVecLen, raw_.dataLen); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic, + decodeErrorData: null, + ), + constMeta: + kCrateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticComputeWithMultiArgHavingLifetimeTwinNormalConstMeta, + argValues: [a, b, unrelatedBorrowed, unrelatedOwned], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticComputeWithMultiArgHavingLifetimeTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal", + argNames: ["a", "b", "unrelatedBorrowed", "unrelatedOwned"], + ); + + @override + Future> + crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowMutSelfTwinNormal( + {required LtTypeWithMultiDepTwinNormal that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + that, serializer); + final raw_ = serializer.intoRaw(); + return wire + .wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal( + port_, raw_.ptr, raw_.rustVecLen, raw_.dataLen); + }, + codec: SseCodec( + decodeSuccessData: sse_decode_list_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowMutSelfTwinNormalConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowMutSelfTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal", + argNames: ["that"], + ); + + @override + Future> + crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowSelfTwinNormal( + {required LtTypeWithMultiDepTwinNormal that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + that, serializer); + final raw_ = serializer.intoRaw(); + return wire + .wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal( + port_, raw_.ptr, raw_.rustVecLen, raw_.dataLen); + }, + codec: SseCodec( + decodeSuccessData: sse_decode_list_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowSelfTwinNormalConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowSelfTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal", + argNames: ["that"], + ); + + @override + Future + crateApiLifetimeableLtOwnedStructTwinNormalComputeTypeWithLifetimeTwinNormal( + {required LtOwnedStructTwinNormal that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + that, serializer); + final raw_ = serializer.intoRaw(); + return wire + .wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal( + port_, raw_.ptr, raw_.rustVecLen, raw_.dataLen); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic, + decodeErrorData: null, + ), + constMeta: + kCrateApiLifetimeableLtOwnedStructTwinNormalComputeTypeWithLifetimeTwinNormalConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiLifetimeableLtOwnedStructTwinNormalComputeTypeWithLifetimeTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal", + argNames: ["that"], + ); + + @override + Future + crateApiLifetimeableLtOwnedStructTwinNormalComputeWithUnrelatedBorrowedArgTwinNormal( + {required LtOwnedStructTwinNormal that, + required LtOwnedStructTwinNormal unrelatedBorrowed, + required LtOwnedStructTwinNormal unrelatedOwned}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + that, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + unrelatedBorrowed, serializer); + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + unrelatedOwned, serializer); + final raw_ = serializer.intoRaw(); + return wire + .wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal( + port_, raw_.ptr, raw_.rustVecLen, raw_.dataLen); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic, + decodeErrorData: null, + ), + constMeta: + kCrateApiLifetimeableLtOwnedStructTwinNormalComputeWithUnrelatedBorrowedArgTwinNormalConstMeta, + argValues: [that, unrelatedBorrowed, unrelatedOwned], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiLifetimeableLtOwnedStructTwinNormalComputeWithUnrelatedBorrowedArgTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal", + argNames: ["that", "unrelatedBorrowed", "unrelatedOwned"], + ); + + @override + Future + crateApiLifetimeableLtOwnedStructTwinNormalCreate( + {required String value}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_String(value, serializer); + final raw_ = serializer.intoRaw(); + return wire + .wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create( + port_, raw_.ptr, raw_.rustVecLen, raw_.dataLen); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal, + decodeErrorData: null, + ), + constMeta: kCrateApiLifetimeableLtOwnedStructTwinNormalCreateConstMeta, + argValues: [value], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiLifetimeableLtOwnedStructTwinNormalCreateConstMeta => + const TaskConstMeta( + debugName: "LtOwnedStructTwinNormal_create", + argNames: ["value"], + ); + + @override + Future + crateApiLifetimeableLtOwnedStructTwinNormalCreateWithLogger( + {required String value, required SimpleLogger logger}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_String(value, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + logger, serializer); + final raw_ = serializer.intoRaw(); + return wire + .wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger( + port_, raw_.ptr, raw_.rustVecLen, raw_.dataLen); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal, + decodeErrorData: null, + ), + constMeta: + kCrateApiLifetimeableLtOwnedStructTwinNormalCreateWithLoggerConstMeta, + argValues: [value, logger], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiLifetimeableLtOwnedStructTwinNormalCreateWithLoggerConstMeta => + const TaskConstMeta( + debugName: "LtOwnedStructTwinNormal_create_with_logger", + argNames: ["value", "logger"], + ); + + @override + Future + crateApiLifetimeableLtSubStructTwinNormalGreetBorrowMutSelfTwinNormal( + {required LtSubStructTwinNormal that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + that, serializer); + final raw_ = serializer.intoRaw(); + return wire + .wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal( + port_, raw_.ptr, raw_.rustVecLen, raw_.dataLen); + }, + codec: SseCodec( + decodeSuccessData: sse_decode_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiLifetimeableLtSubStructTwinNormalGreetBorrowMutSelfTwinNormalConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiLifetimeableLtSubStructTwinNormalGreetBorrowMutSelfTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal", + argNames: ["that"], + ); + + @override + Future + crateApiLifetimeableLtSubStructTwinNormalGreetBorrowSelfTwinNormal( + {required LtSubStructTwinNormal that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + that, serializer); + final raw_ = serializer.intoRaw(); + return wire + .wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_self_twin_normal( + port_, raw_.ptr, raw_.rustVecLen, raw_.dataLen); + }, + codec: SseCodec( + decodeSuccessData: sse_decode_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiLifetimeableLtSubStructTwinNormalGreetBorrowSelfTwinNormalConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiLifetimeableLtSubStructTwinNormalGreetBorrowSelfTwinNormalConstMeta => + const TaskConstMeta( + debugName: "LtSubStructTwinNormal_greet_borrow_self_twin_normal", + argNames: ["that"], + ); + + @override + Future + crateApiLifetimeableLtComputeWithLifetimeFunctionTwinNormal( + {required LtOwnedStructTwinNormal arg}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + arg, serializer); + final raw_ = serializer.intoRaw(); + return wire + .wire__crate__api__lifetimeable__lt_compute_with_lifetime_function_twin_normal( + port_, raw_.ptr, raw_.rustVecLen, raw_.dataLen); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic, + decodeErrorData: null, + ), + constMeta: + kCrateApiLifetimeableLtComputeWithLifetimeFunctionTwinNormalConstMeta, + argValues: [arg], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiLifetimeableLtComputeWithLifetimeFunctionTwinNormalConstMeta => + const TaskConstMeta( + debugName: "lt_compute_with_lifetime_function_twin_normal", + argNames: ["arg"], + ); + @override Future> crateApiMapAndSetFuncHashMapI32I32TwinNormal( {required Map arg}) { @@ -18778,6 +19452,59 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { argNames: ["that"], ); + @override + List crateApiMiscNoTwinExampleASimpleLoggerGetAndReset( + {required SimpleLogger that}) { + return handler.executeSync(SyncTask( + callFfi: () { + var arg0 = + cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + that); + return wire + .wire__crate__api__misc_no_twin_example_a__SimpleLogger_get_and_reset( + arg0); + }, + codec: DcoCodec( + decodeSuccessData: dco_decode_list_String, + decodeErrorData: null, + ), + constMeta: kCrateApiMiscNoTwinExampleASimpleLoggerGetAndResetConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiMiscNoTwinExampleASimpleLoggerGetAndResetConstMeta => + const TaskConstMeta( + debugName: "SimpleLogger_get_and_reset", + argNames: ["that"], + ); + + @override + SimpleLogger crateApiMiscNoTwinExampleASimpleLoggerNew() { + return handler.executeSync(SyncTask( + callFfi: () { + return wire + .wire__crate__api__misc_no_twin_example_a__SimpleLogger_new(); + }, + codec: DcoCodec( + decodeSuccessData: + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger, + decodeErrorData: null, + ), + constMeta: kCrateApiMiscNoTwinExampleASimpleLoggerNewConstMeta, + argValues: [], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiMiscNoTwinExampleASimpleLoggerNewConstMeta => + const TaskConstMeta( + debugName: "SimpleLogger_new", + argNames: [], + ); + @override Future crateApiMiscNoTwinExampleAStructInMiscNoTwinExampleASampleFunctionA( @@ -94698,6 +95425,46 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { get rust_arc_decrement_strong_count_ItemContainerSolutionOneTwinNormal => wire.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtNestedTypeWithLifetimeTwinNormal => + wire.rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormal => + wire.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtTypeWithLifetimeTwinNormal => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormal => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtTypeWithMultiDepTwinNormal => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormal => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtOwnedStructTwinNormal => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtOwnedStructTwinNormal => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtSubStructTwinNormal => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtSubStructTwinNormal => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_MyAudioParamTwinNormal => wire .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal; @@ -95114,6 +95881,14 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { get rust_arc_decrement_strong_count_OpaqueTwoTwinSyncSseMoi => wire .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSyncSseMoi; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_SimpleLogger => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_SimpleLogger => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_SimpleOpaqueExternalStructWithMethod => wire.rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod; @@ -95396,6 +96171,33 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return AnyhowException(raw as String); } + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + raw); + } + + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + raw); + } + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + raw); + } + @protected MyNodeTwinNormal dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyNodeTwinNormal( @@ -95852,6 +96654,23 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { raw as List); } + @protected + LtOwnedStructTwinNormal + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtOwnedStructTwinNormalImpl.frbInternalDcoDecode( + raw as List); + } + + @protected + LtSubStructTwinNormal + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtSubStructTwinNormalImpl.frbInternalDcoDecode(raw as List); + } + @protected MyAudioParamTwinNormal dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -96302,6 +97121,14 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { raw as List); } + @protected + SimpleLogger + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return SimpleLoggerImpl.frbInternalDcoDecode(raw as List); + } + @protected SimpleOpaqueExternalStructWithMethod dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -96685,6 +97512,14 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { raw as List); } + @protected + LtSubStructTwinNormal + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtSubStructTwinNormalImpl.frbInternalDcoDecode(raw as List); + } + @protected NonCloneSimpleTwinMoi dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinMoi( @@ -97084,6 +97919,23 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { raw as List); } + @protected + LtOwnedStructTwinNormal + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtOwnedStructTwinNormalImpl.frbInternalDcoDecode( + raw as List); + } + + @protected + LtSubStructTwinNormal + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtSubStructTwinNormalImpl.frbInternalDcoDecode(raw as List); + } + @protected MyAudioParamTwinNormal dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -97324,6 +98176,14 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { raw as List); } + @protected + SimpleLogger + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return SimpleLoggerImpl.frbInternalDcoDecode(raw as List); + } + @protected SimpleOpaqueExternalStructWithMethod dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -97777,6 +98637,60 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return BigInt.parse(raw); } + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + throw UnimplementedError( + 'Not implemented in this codec, please use the other one'); + } + + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + throw UnimplementedError( + 'Not implemented in this codec, please use the other one'); + } + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + throw UnimplementedError( + 'Not implemented in this codec, please use the other one'); + } + + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + throw UnimplementedError( + 'Not implemented in this codec, please use the other one'); + } + + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + throw UnimplementedError( + 'Not implemented in this codec, please use the other one'); + } + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + throw UnimplementedError( + 'Not implemented in this codec, please use the other one'); + } + @protected Map dco_decode_Map_String_String(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs @@ -99261,6 +100175,50 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { raw as List); } + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtNestedTypeWithLifetimeTwinNormalImpl.frbInternalDcoDecode( + raw as List); + } + + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtTypeWithLifetimeTwinNormalImpl.frbInternalDcoDecode( + raw as List); + } + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtTypeWithMultiDepTwinNormalImpl.frbInternalDcoDecode( + raw as List); + } + + @protected + LtOwnedStructTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtOwnedStructTwinNormalImpl.frbInternalDcoDecode( + raw as List); + } + + @protected + LtSubStructTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtSubStructTwinNormalImpl.frbInternalDcoDecode(raw as List); + } + @protected MyAudioParamTwinNormal dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -99711,6 +100669,14 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { raw as List); } + @protected + SimpleLogger + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return SimpleLoggerImpl.frbInternalDcoDecode(raw as List); + } + @protected SimpleOpaqueExternalStructWithMethod dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -116533,6 +117499,39 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return AnyhowException(inner); } + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + deserializer); + return inner; + } + + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + deserializer); + return inner; + } + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + deserializer); + return inner; + } + @protected MyNodeTwinNormal sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyNodeTwinNormal( @@ -117042,6 +118041,24 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } + @protected + LtOwnedStructTwinNormal + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtOwnedStructTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + LtSubStructTwinNormal + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtSubStructTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected MyAudioParamTwinNormal sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -117510,6 +118527,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } + @protected + SimpleLogger + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return SimpleLoggerImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected SimpleOpaqueExternalStructWithMethod sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -117909,6 +118935,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } + @protected + LtSubStructTwinNormal + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtSubStructTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected NonCloneSimpleTwinMoi sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinMoi( @@ -118326,6 +119361,24 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } + @protected + LtOwnedStructTwinNormal + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtOwnedStructTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + LtSubStructTwinNormal + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtSubStructTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected MyAudioParamTwinNormal sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -118569,6 +119622,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } + @protected + SimpleLogger + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return SimpleLoggerImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected SimpleOpaqueExternalStructWithMethod sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -118930,6 +119992,72 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return BigInt.parse(inner); } + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + deserializer); + return inner; + } + + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + deserializer); + return inner; + } + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + deserializer); + return inner; + } + + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + deserializer); + return inner; + } + + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + deserializer); + return inner; + } + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + deserializer); + return inner; + } + @protected Map sse_decode_Map_String_String( SseDeserializer deserializer) { @@ -120510,6 +121638,51 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtNestedTypeWithLifetimeTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtTypeWithLifetimeTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtTypeWithMultiDepTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + LtOwnedStructTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtOwnedStructTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + LtSubStructTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtSubStructTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected MyAudioParamTwinNormal sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -120978,6 +122151,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } + @protected + SimpleLogger + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return SimpleLoggerImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected SimpleOpaqueExternalStructWithMethod sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -139058,6 +140240,14 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return (raw as OpaqueTwoTwinSyncMoiImpl).frbInternalCstEncode(move: true); } + @protected + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger raw) { + // Codec=Cst (C-struct based), see doc to use other codecs +// ignore: invalid_use_of_internal_member + return (raw as SimpleLoggerImpl).frbInternalCstEncode(move: true); + } + @protected int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( SimpleOpaqueExternalStructWithMethod raw) { @@ -139832,6 +141022,14 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { .frbInternalCstEncode(move: false); } + @protected + int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger raw) { + // Codec=Cst (C-struct based), see doc to use other codecs +// ignore: invalid_use_of_internal_member + return (raw as SimpleLoggerImpl).frbInternalCstEncode(move: false); + } + @protected int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( SimpleOpaqueExternalStructWithMethod raw) { @@ -140881,6 +142079,14 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return (raw as OpaqueTwoTwinSyncMoiImpl).frbInternalCstEncode(); } + @protected + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger raw) { + // Codec=Cst (C-struct based), see doc to use other codecs +// ignore: invalid_use_of_internal_member + return (raw as SimpleLoggerImpl).frbInternalCstEncode(); + } + @protected int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( SimpleOpaqueExternalStructWithMethod raw) { @@ -141331,6 +142537,33 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_String(self.message, serializer); } + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + self, serializer); + } + + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + self, serializer); + } + + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + self, serializer); + } + @protected void sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyNodeTwinNormal( @@ -141868,6 +143101,26 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtOwnedStructTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtOwnedStructTwinNormalImpl).frbInternalSseEncode(move: true), + serializer); + } + + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtSubStructTwinNormalImpl).frbInternalSseEncode(move: true), + serializer); + } + @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -142415,6 +143668,16 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as SimpleLoggerImpl).frbInternalSseEncode(move: true), + serializer); + } + @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -142894,6 +144157,16 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } + @protected + void + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtSubStructTwinNormalImpl).frbInternalSseEncode(move: false), + serializer); + } + @protected void sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinMoi( @@ -143394,6 +144667,26 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtOwnedStructTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtOwnedStructTwinNormalImpl).frbInternalSseEncode(move: false), + serializer); + } + + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtSubStructTwinNormalImpl).frbInternalSseEncode(move: false), + serializer); + } + @protected void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -143687,6 +144980,16 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as SimpleLoggerImpl).frbInternalSseEncode(move: false), + serializer); + } + @protected void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -144268,6 +145571,60 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_String(self.toString(), serializer); } + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + self, serializer); + } + + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + self, serializer); + } + + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + self, serializer); + } + + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + self, serializer); + } + + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + self, serializer); + } + + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + self, serializer); + } + @protected void sse_encode_Map_String_String( Map self, SseSerializer serializer) { @@ -145954,6 +147311,59 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtNestedTypeWithLifetimeTwinNormalImpl) + .frbInternalSseEncode(move: null), + serializer); + } + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtTypeWithLifetimeTwinNormalImpl) + .frbInternalSseEncode(move: null), + serializer); + } + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtTypeWithMultiDepTwinNormalImpl) + .frbInternalSseEncode(move: null), + serializer); + } + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtOwnedStructTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtOwnedStructTwinNormalImpl).frbInternalSseEncode(move: null), + serializer); + } + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtSubStructTwinNormalImpl).frbInternalSseEncode(move: null), + serializer); + } + @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -146501,6 +147911,16 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as SimpleLoggerImpl).frbInternalSseEncode(move: null), + serializer); + } + @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -164240,6 +165660,184 @@ class ItemContainerSolutionOneTwinNormalImpl extends RustOpaque ); } +@sealed +class LtNestedTypeWithLifetimeTwinNormalImpl extends RustOpaque + implements LtNestedTypeWithLifetimeTwinNormal { + // Not to be used by end users + LtNestedTypeWithLifetimeTwinNormalImpl.frbInternalDcoDecode( + List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + LtNestedTypeWithLifetimeTwinNormalImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: RustLib.instance.api + .rust_arc_increment_strong_count_LtNestedTypeWithLifetimeTwinNormal, + rustArcDecrementStrongCount: RustLib.instance.api + .rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormal, + rustArcDecrementStrongCountPtr: RustLib.instance.api + .rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormalPtr, + ); + + Future greetBorrowMutSelfTwinNormal() => RustLib.instance.api + .crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( + that: this, + ); + + Future greetBorrowSelfTwinNormal() => RustLib.instance.api + .crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormal( + that: this, + ); +} + +@sealed +class LtOwnedStructTwinNormalImpl extends RustOpaque + implements LtOwnedStructTwinNormal { + // Not to be used by end users + LtOwnedStructTwinNormalImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + LtOwnedStructTwinNormalImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: RustLib + .instance.api.rust_arc_increment_strong_count_LtOwnedStructTwinNormal, + rustArcDecrementStrongCount: RustLib + .instance.api.rust_arc_decrement_strong_count_LtOwnedStructTwinNormal, + rustArcDecrementStrongCountPtr: RustLib.instance.api + .rust_arc_decrement_strong_count_LtOwnedStructTwinNormalPtr, + ); + + /// `fn f(x: &'a T) -> S<'a>` + Future computeTypeWithLifetimeTwinNormal() => + RustLib.instance.api + .crateApiLifetimeableLtOwnedStructTwinNormalComputeTypeWithLifetimeTwinNormal( + that: this, + ); + + /// The unrelated arg should not affect results + Future< + LtTypeWithLifetimeTwinNormal> computeWithUnrelatedBorrowedArgTwinNormal( + {required LtOwnedStructTwinNormal unrelatedBorrowed, + required LtOwnedStructTwinNormal unrelatedOwned}) => + RustLib.instance.api + .crateApiLifetimeableLtOwnedStructTwinNormalComputeWithUnrelatedBorrowedArgTwinNormal( + that: this, + unrelatedBorrowed: unrelatedBorrowed, + unrelatedOwned: unrelatedOwned); +} + +@sealed +class LtSubStructTwinNormalImpl extends RustOpaque + implements LtSubStructTwinNormal { + // Not to be used by end users + LtSubStructTwinNormalImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + LtSubStructTwinNormalImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: RustLib + .instance.api.rust_arc_increment_strong_count_LtSubStructTwinNormal, + rustArcDecrementStrongCount: RustLib + .instance.api.rust_arc_decrement_strong_count_LtSubStructTwinNormal, + rustArcDecrementStrongCountPtr: RustLib + .instance.api.rust_arc_decrement_strong_count_LtSubStructTwinNormalPtr, + ); + + Future greetBorrowMutSelfTwinNormal() => RustLib.instance.api + .crateApiLifetimeableLtSubStructTwinNormalGreetBorrowMutSelfTwinNormal( + that: this, + ); + + Future greetBorrowSelfTwinNormal() => RustLib.instance.api + .crateApiLifetimeableLtSubStructTwinNormalGreetBorrowSelfTwinNormal( + that: this, + ); +} + +@sealed +class LtTypeWithLifetimeTwinNormalImpl extends RustOpaque + implements LtTypeWithLifetimeTwinNormal { + // Not to be used by end users + LtTypeWithLifetimeTwinNormalImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + LtTypeWithLifetimeTwinNormalImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: RustLib.instance.api + .rust_arc_increment_strong_count_LtTypeWithLifetimeTwinNormal, + rustArcDecrementStrongCount: RustLib.instance.api + .rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormal, + rustArcDecrementStrongCountPtr: RustLib.instance.api + .rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormalPtr, + ); + + /// Input lifetimeable and output another lifetimeable + Future + computeNestedTypeWithLifetimeTwinNormal() => RustLib.instance.api + .crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeNestedTypeWithLifetimeTwinNormal( + that: this, + ); + + /// `&mut T` where T is lifetimeable + Future greetBorrowMutSelfTwinNormal() => RustLib.instance.api + .crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( + that: this, + ); + + /// `&T` where T is lifetimeable + Future greetBorrowSelfTwinNormal() => RustLib.instance.api + .crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormal( + that: this, + ); +} + +@sealed +class LtTypeWithMultiDepTwinNormalImpl extends RustOpaque + implements LtTypeWithMultiDepTwinNormal { + // Not to be used by end users + LtTypeWithMultiDepTwinNormalImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + LtTypeWithMultiDepTwinNormalImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: RustLib.instance.api + .rust_arc_increment_strong_count_LtTypeWithMultiDepTwinNormal, + rustArcDecrementStrongCount: RustLib.instance.api + .rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormal, + rustArcDecrementStrongCountPtr: RustLib.instance.api + .rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr, + ); + + Future> greetBorrowMutSelfTwinNormal() => RustLib.instance.api + .crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowMutSelfTwinNormal( + that: this, + ); + + Future> greetBorrowSelfTwinNormal() => RustLib.instance.api + .crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowSelfTwinNormal( + that: this, + ); +} + @sealed class MutexHideDataTwinMoiImpl extends RustOpaque implements MutexHideDataTwinMoi { @@ -166508,6 +168106,31 @@ class RwLockHideDataTwinSyncSseMoiImpl extends RustOpaque ); } +@sealed +class SimpleLoggerImpl extends RustOpaque implements SimpleLogger { + // Not to be used by end users + SimpleLoggerImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + SimpleLoggerImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + RustLib.instance.api.rust_arc_increment_strong_count_SimpleLogger, + rustArcDecrementStrongCount: + RustLib.instance.api.rust_arc_decrement_strong_count_SimpleLogger, + rustArcDecrementStrongCountPtr: + RustLib.instance.api.rust_arc_decrement_strong_count_SimpleLoggerPtr, + ); + + List getAndReset() => + RustLib.instance.api.crateApiMiscNoTwinExampleASimpleLoggerGetAndReset( + that: this, + ); +} + @sealed class SimpleOpaqueExternalStructWithMethodImpl extends RustOpaque implements SimpleOpaqueExternalStructWithMethod { diff --git a/frb_example/pure_dart/lib/src/rust/frb_generated.io.dart b/frb_example/pure_dart/lib/src/rust/frb_generated.io.dart index 6146f85a7c..5256361cea 100644 --- a/frb_example/pure_dart/lib/src/rust/frb_generated.io.dart +++ b/frb_example/pure_dart/lib/src/rust/frb_generated.io.dart @@ -30,6 +30,7 @@ import 'api/external_impl.dart'; import 'api/external_type_in_crate.dart'; import 'api/impl_trait.dart'; import 'api/inside_macro.dart'; +import 'api/lifetimeable.dart'; import 'api/map_and_set.dart'; import 'api/method.dart'; import 'api/mirror.dart'; @@ -741,6 +742,26 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { get rust_arc_decrement_strong_count_ItemContainerSolutionOneTwinNormalPtr => wire._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormalPtr; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormalPtr => + wire._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstaticPtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormalPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstaticPtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstaticPtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtOwnedStructTwinNormalPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormalPtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtSubStructTwinNormalPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormalPtr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_MyAudioParamTwinNormalPtr => wire ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormalPtr; @@ -949,6 +970,10 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { get rust_arc_decrement_strong_count_OpaqueTwoTwinSyncSseMoiPtr => wire ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSyncSseMoiPtr; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_SimpleLoggerPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLoggerPtr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_SimpleOpaqueExternalStructWithMethodPtr => wire._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethodPtr; @@ -1090,6 +1115,21 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected AnyhowException dco_decode_AnyhowException(dynamic raw); + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + dynamic raw); + @protected MyNodeTwinNormal dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyNodeTwinNormal( @@ -1350,6 +1390,16 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( dynamic raw); + @protected + LtOwnedStructTwinNormal + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + dynamic raw); + + @protected + LtSubStructTwinNormal + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + dynamic raw); + @protected MyAudioParamTwinNormal dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -1610,6 +1660,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSyncSseMoi( dynamic raw); + @protected + SimpleLogger + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + dynamic raw); + @protected SimpleOpaqueExternalStructWithMethod dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -1825,6 +1880,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( dynamic raw); + @protected + LtSubStructTwinNormal + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + dynamic raw); + @protected NonCloneSimpleTwinMoi dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinMoi( @@ -2050,6 +2110,16 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( dynamic raw); + @protected + LtOwnedStructTwinNormal + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + dynamic raw); + + @protected + LtSubStructTwinNormal + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + dynamic raw); + @protected MyAudioParamTwinNormal dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -2185,6 +2255,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueStructWithDartCodeTwinNormal( dynamic raw); + @protected + SimpleLogger + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + dynamic raw); + @protected SimpleOpaqueExternalStructWithMethod dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -2437,6 +2512,36 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected BigInt dco_decode_I128(dynamic raw); + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + dynamic raw); + + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + dynamic raw); + @protected Map dco_decode_Map_String_String(dynamic raw); @@ -3173,6 +3278,31 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( dynamic raw); + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + dynamic raw); + + @protected + LtOwnedStructTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + dynamic raw); + + @protected + LtSubStructTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + dynamic raw); + @protected MyAudioParamTwinNormal dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -3433,6 +3563,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSyncSseMoi( dynamic raw); + @protected + SimpleLogger + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + dynamic raw); + @protected SimpleOpaqueExternalStructWithMethod dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -9748,6 +9883,21 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected AnyhowException sse_decode_AnyhowException(SseDeserializer deserializer); + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer); + @protected MyNodeTwinNormal sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyNodeTwinNormal( @@ -10008,6 +10158,16 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( SseDeserializer deserializer); + @protected + LtOwnedStructTwinNormal + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + SseDeserializer deserializer); + + @protected + LtSubStructTwinNormal + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + SseDeserializer deserializer); + @protected MyAudioParamTwinNormal sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -10268,6 +10428,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSyncSseMoi( SseDeserializer deserializer); + @protected + SimpleLogger + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SseDeserializer deserializer); + @protected SimpleOpaqueExternalStructWithMethod sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -10483,6 +10648,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( SseDeserializer deserializer); + @protected + LtSubStructTwinNormal + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + SseDeserializer deserializer); + @protected NonCloneSimpleTwinMoi sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinMoi( @@ -10708,6 +10878,16 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( SseDeserializer deserializer); + @protected + LtOwnedStructTwinNormal + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + SseDeserializer deserializer); + + @protected + LtSubStructTwinNormal + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + SseDeserializer deserializer); + @protected MyAudioParamTwinNormal sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -10843,6 +11023,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueStructWithDartCodeTwinNormal( SseDeserializer deserializer); + @protected + SimpleLogger + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SseDeserializer deserializer); + @protected SimpleOpaqueExternalStructWithMethod sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -11025,6 +11210,36 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected BigInt sse_decode_I128(SseDeserializer deserializer); + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer); + @protected Map sse_decode_Map_String_String( SseDeserializer deserializer); @@ -11831,6 +12046,31 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( SseDeserializer deserializer); + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtOwnedStructTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + SseDeserializer deserializer); + + @protected + LtSubStructTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + SseDeserializer deserializer); + @protected MyAudioParamTwinNormal sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -12091,6 +12331,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSyncSseMoi( SseDeserializer deserializer); + @protected + SimpleLogger + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SseDeserializer deserializer); + @protected SimpleOpaqueExternalStructWithMethod sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -30831,6 +31076,10 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSyncMoi( OpaqueTwoTwinSyncMoi raw); + @protected + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger raw); + @protected int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( SimpleOpaqueExternalStructWithMethod raw); @@ -31175,6 +31424,10 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueStructWithDartCodeTwinNormal( OpaqueStructWithDartCodeTwinNormal raw); + @protected + int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger raw); + @protected int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( SimpleOpaqueExternalStructWithMethod raw); @@ -31674,6 +31927,10 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSyncMoi( OpaqueTwoTwinSyncMoi raw); + @protected + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger raw); + @protected int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( SimpleOpaqueExternalStructWithMethod raw); @@ -31893,6 +32150,21 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { void sse_encode_AnyhowException( AnyhowException self, SseSerializer serializer); + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + @protected void sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyNodeTwinNormal( @@ -32165,6 +32437,16 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( ItemContainerSolutionOneTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtOwnedStructTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer); + @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -32425,6 +32707,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSyncSseMoi( OpaqueTwoTwinSyncSseMoi self, SseSerializer serializer); + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger self, SseSerializer serializer); + @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -32652,6 +32939,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( ItemContainerSolutionOneTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer); + @protected void sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinMoi( @@ -32889,6 +33181,16 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( ItemContainerSolutionOneTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtOwnedStructTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer); + @protected void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -33024,6 +33326,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueStructWithDartCodeTwinNormal( OpaqueStructWithDartCodeTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger self, SseSerializer serializer); + @protected void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -33306,6 +33613,36 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected void sse_encode_I128(BigInt self, SseSerializer serializer); + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + @protected void sse_encode_Map_String_String( Map self, SseSerializer serializer); @@ -34084,6 +34421,31 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( ItemContainerSolutionOneTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtOwnedStructTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer); + @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -34344,6 +34706,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSyncSseMoi( OpaqueTwoTwinSyncSseMoi self, SseSerializer serializer); + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger self, SseSerializer serializer); + @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -44345,6 +44712,405 @@ class RustLibWire implements BaseWire { _wire__crate__api__inside_macro__func_macro_struct_twin_normalPtr .asFunction)>(); + void + wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal( + int port_, + ffi.Pointer ptr_, + int rust_vec_len_, + int data_len_, + ) { + return _wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal( + port_, + ptr_, + rust_vec_len_, + data_len_, + ); + } + + late final _wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normalPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Int32, ffi.Int32)>>( + 'frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal'); + late final _wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal = + _wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normalPtr + .asFunction, int, int)>(); + + void + wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal( + int port_, + ffi.Pointer ptr_, + int rust_vec_len_, + int data_len_, + ) { + return _wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal( + port_, + ptr_, + rust_vec_len_, + data_len_, + ); + } + + late final _wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normalPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Int32, ffi.Int32)>>( + 'frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal'); + late final _wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal = + _wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normalPtr + .asFunction, int, int)>(); + + void + wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal( + int port_, + ffi.Pointer ptr_, + int rust_vec_len_, + int data_len_, + ) { + return _wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal( + port_, + ptr_, + rust_vec_len_, + data_len_, + ); + } + + late final _wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normalPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Int32, ffi.Int32)>>( + 'frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal'); + late final _wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal = + _wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normalPtr + .asFunction, int, int)>(); + + void + wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_nested_type_with_lifetime_twin_normal( + int port_, + ffi.Pointer ptr_, + int rust_vec_len_, + int data_len_, + ) { + return _wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_nested_type_with_lifetime_twin_normal( + port_, + ptr_, + rust_vec_len_, + data_len_, + ); + } + + late final _wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_nested_type_with_lifetime_twin_normalPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Int32, ffi.Int32)>>( + 'frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_nested_type_with_lifetime_twin_normal'); + late final _wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_nested_type_with_lifetime_twin_normal = + _wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_nested_type_with_lifetime_twin_normalPtr + .asFunction, int, int)>(); + + void + wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal( + int port_, + ffi.Pointer ptr_, + int rust_vec_len_, + int data_len_, + ) { + return _wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal( + port_, + ptr_, + rust_vec_len_, + data_len_, + ); + } + + late final _wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normalPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Int32, ffi.Int32)>>( + 'frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal'); + late final _wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal = + _wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normalPtr + .asFunction, int, int)>(); + + void + wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal( + int port_, + ffi.Pointer ptr_, + int rust_vec_len_, + int data_len_, + ) { + return _wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal( + port_, + ptr_, + rust_vec_len_, + data_len_, + ); + } + + late final _wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normalPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Int32, ffi.Int32)>>( + 'frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal'); + late final _wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal = + _wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normalPtr + .asFunction, int, int)>(); + + void + wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal( + int port_, + ffi.Pointer ptr_, + int rust_vec_len_, + int data_len_, + ) { + return _wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal( + port_, + ptr_, + rust_vec_len_, + data_len_, + ); + } + + late final _wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normalPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Int32, ffi.Int32)>>( + 'frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal'); + late final _wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal = + _wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normalPtr + .asFunction, int, int)>(); + + void + wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal( + int port_, + ffi.Pointer ptr_, + int rust_vec_len_, + int data_len_, + ) { + return _wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal( + port_, + ptr_, + rust_vec_len_, + data_len_, + ); + } + + late final _wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normalPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Int32, ffi.Int32)>>( + 'frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal'); + late final _wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal = + _wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normalPtr + .asFunction, int, int)>(); + + void + wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal( + int port_, + ffi.Pointer ptr_, + int rust_vec_len_, + int data_len_, + ) { + return _wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal( + port_, + ptr_, + rust_vec_len_, + data_len_, + ); + } + + late final _wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normalPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Int32, ffi.Int32)>>( + 'frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal'); + late final _wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal = + _wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normalPtr + .asFunction, int, int)>(); + + void + wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal( + int port_, + ffi.Pointer ptr_, + int rust_vec_len_, + int data_len_, + ) { + return _wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal( + port_, + ptr_, + rust_vec_len_, + data_len_, + ); + } + + late final _wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normalPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Int32, ffi.Int32)>>( + 'frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal'); + late final _wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal = + _wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normalPtr + .asFunction, int, int)>(); + + void + wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal( + int port_, + ffi.Pointer ptr_, + int rust_vec_len_, + int data_len_, + ) { + return _wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal( + port_, + ptr_, + rust_vec_len_, + data_len_, + ); + } + + late final _wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normalPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Int32, ffi.Int32)>>( + 'frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal'); + late final _wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal = + _wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normalPtr + .asFunction, int, int)>(); + + void wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create( + int port_, + ffi.Pointer ptr_, + int rust_vec_len_, + int data_len_, + ) { + return _wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create( + port_, + ptr_, + rust_vec_len_, + data_len_, + ); + } + + late final _wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_createPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Int32, ffi.Int32)>>( + 'frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create'); + late final _wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create = + _wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_createPtr + .asFunction, int, int)>(); + + void + wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger( + int port_, + ffi.Pointer ptr_, + int rust_vec_len_, + int data_len_, + ) { + return _wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger( + port_, + ptr_, + rust_vec_len_, + data_len_, + ); + } + + late final _wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_loggerPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Int32, ffi.Int32)>>( + 'frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger'); + late final _wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger = + _wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_loggerPtr + .asFunction, int, int)>(); + + void + wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal( + int port_, + ffi.Pointer ptr_, + int rust_vec_len_, + int data_len_, + ) { + return _wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal( + port_, + ptr_, + rust_vec_len_, + data_len_, + ); + } + + late final _wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normalPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Int32, ffi.Int32)>>( + 'frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal'); + late final _wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal = + _wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normalPtr + .asFunction, int, int)>(); + + void + wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_self_twin_normal( + int port_, + ffi.Pointer ptr_, + int rust_vec_len_, + int data_len_, + ) { + return _wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_self_twin_normal( + port_, + ptr_, + rust_vec_len_, + data_len_, + ); + } + + late final _wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_self_twin_normalPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Int32, ffi.Int32)>>( + 'frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_self_twin_normal'); + late final _wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_self_twin_normal = + _wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_self_twin_normalPtr + .asFunction, int, int)>(); + + void + wire__crate__api__lifetimeable__lt_compute_with_lifetime_function_twin_normal( + int port_, + ffi.Pointer ptr_, + int rust_vec_len_, + int data_len_, + ) { + return _wire__crate__api__lifetimeable__lt_compute_with_lifetime_function_twin_normal( + port_, + ptr_, + rust_vec_len_, + data_len_, + ); + } + + late final _wire__crate__api__lifetimeable__lt_compute_with_lifetime_function_twin_normalPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Int32, ffi.Int32)>>( + 'frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__lt_compute_with_lifetime_function_twin_normal'); + late final _wire__crate__api__lifetimeable__lt_compute_with_lifetime_function_twin_normal = + _wire__crate__api__lifetimeable__lt_compute_with_lifetime_function_twin_normalPtr + .asFunction, int, int)>(); + void wire__crate__api__map_and_set__func_hash_map_i32_i32_twin_normal( int port_, ffi.Pointer arg, @@ -46069,6 +46835,34 @@ class RustLibWire implements BaseWire { _wire__crate__api__misc_no_twin_example_a__ItemContainerSolutionOneTwinNormal_get_item_contents_twin_normalPtr .asFunction(); + WireSyncRust2DartDco + wire__crate__api__misc_no_twin_example_a__SimpleLogger_get_and_reset( + int that, + ) { + return _wire__crate__api__misc_no_twin_example_a__SimpleLogger_get_and_reset( + that, + ); + } + + late final _wire__crate__api__misc_no_twin_example_a__SimpleLogger_get_and_resetPtr = + _lookup>( + 'frbgen_frb_example_pure_dart_wire__crate__api__misc_no_twin_example_a__SimpleLogger_get_and_reset'); + late final _wire__crate__api__misc_no_twin_example_a__SimpleLogger_get_and_reset = + _wire__crate__api__misc_no_twin_example_a__SimpleLogger_get_and_resetPtr + .asFunction(); + + WireSyncRust2DartDco + wire__crate__api__misc_no_twin_example_a__SimpleLogger_new() { + return _wire__crate__api__misc_no_twin_example_a__SimpleLogger_new(); + } + + late final _wire__crate__api__misc_no_twin_example_a__SimpleLogger_newPtr = + _lookup>( + 'frbgen_frb_example_pure_dart_wire__crate__api__misc_no_twin_example_a__SimpleLogger_new'); + late final _wire__crate__api__misc_no_twin_example_a__SimpleLogger_new = + _wire__crate__api__misc_no_twin_example_a__SimpleLogger_newPtr + .asFunction(); + void wire__crate__api__misc_no_twin_example_a__StructInMiscNoTwinExampleA_sample_function_a( int port_, @@ -104914,6 +105708,166 @@ class RustLibWire implements BaseWire { _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormalPtr .asFunction)>(); + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstaticPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstaticPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstaticPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstaticPtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstaticPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstaticPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstaticPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstaticPtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstaticPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstaticPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstaticPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstaticPtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormalPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormalPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormalPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormalPtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormalPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormalPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormalPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormalPtr + .asFunction)>(); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( ffi.Pointer ptr, @@ -106578,6 +107532,38 @@ class RustLibWire implements BaseWire { _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSyncSseMoiPtr .asFunction)>(); + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLoggerPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLoggerPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLoggerPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLoggerPtr + .asFunction)>(); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( ffi.Pointer ptr, diff --git a/frb_example/pure_dart/lib/src/rust/frb_generated.web.dart b/frb_example/pure_dart/lib/src/rust/frb_generated.web.dart index c45149109c..28bed07771 100644 --- a/frb_example/pure_dart/lib/src/rust/frb_generated.web.dart +++ b/frb_example/pure_dart/lib/src/rust/frb_generated.web.dart @@ -33,6 +33,7 @@ import 'api/external_impl.dart'; import 'api/external_type_in_crate.dart'; import 'api/impl_trait.dart'; import 'api/inside_macro.dart'; +import 'api/lifetimeable.dart'; import 'api/map_and_set.dart'; import 'api/method.dart'; import 'api/mirror.dart'; @@ -743,6 +744,26 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { get rust_arc_decrement_strong_count_ItemContainerSolutionOneTwinNormalPtr => wire.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormalPtr => + wire.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormalPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtOwnedStructTwinNormalPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtSubStructTwinNormalPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_MyAudioParamTwinNormalPtr => wire .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal; @@ -951,6 +972,10 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { get rust_arc_decrement_strong_count_OpaqueTwoTwinSyncSseMoiPtr => wire .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSyncSseMoi; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_SimpleLoggerPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_SimpleOpaqueExternalStructWithMethodPtr => wire.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod; @@ -1092,6 +1117,21 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected AnyhowException dco_decode_AnyhowException(dynamic raw); + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + dynamic raw); + @protected MyNodeTwinNormal dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyNodeTwinNormal( @@ -1352,6 +1392,16 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( dynamic raw); + @protected + LtOwnedStructTwinNormal + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + dynamic raw); + + @protected + LtSubStructTwinNormal + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + dynamic raw); + @protected MyAudioParamTwinNormal dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -1612,6 +1662,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSyncSseMoi( dynamic raw); + @protected + SimpleLogger + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + dynamic raw); + @protected SimpleOpaqueExternalStructWithMethod dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -1827,6 +1882,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( dynamic raw); + @protected + LtSubStructTwinNormal + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + dynamic raw); + @protected NonCloneSimpleTwinMoi dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinMoi( @@ -2052,6 +2112,16 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( dynamic raw); + @protected + LtOwnedStructTwinNormal + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + dynamic raw); + + @protected + LtSubStructTwinNormal + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + dynamic raw); + @protected MyAudioParamTwinNormal dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -2187,6 +2257,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueStructWithDartCodeTwinNormal( dynamic raw); + @protected + SimpleLogger + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + dynamic raw); + @protected SimpleOpaqueExternalStructWithMethod dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -2439,6 +2514,36 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected BigInt dco_decode_I128(dynamic raw); + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + dynamic raw); + + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + dynamic raw); + @protected Map dco_decode_Map_String_String(dynamic raw); @@ -3175,6 +3280,31 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( dynamic raw); + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + dynamic raw); + + @protected + LtOwnedStructTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + dynamic raw); + + @protected + LtSubStructTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + dynamic raw); + @protected MyAudioParamTwinNormal dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -3435,6 +3565,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSyncSseMoi( dynamic raw); + @protected + SimpleLogger + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + dynamic raw); + @protected SimpleOpaqueExternalStructWithMethod dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -9750,6 +9885,21 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected AnyhowException sse_decode_AnyhowException(SseDeserializer deserializer); + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer); + @protected MyNodeTwinNormal sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyNodeTwinNormal( @@ -10010,6 +10160,16 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( SseDeserializer deserializer); + @protected + LtOwnedStructTwinNormal + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + SseDeserializer deserializer); + + @protected + LtSubStructTwinNormal + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + SseDeserializer deserializer); + @protected MyAudioParamTwinNormal sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -10270,6 +10430,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSyncSseMoi( SseDeserializer deserializer); + @protected + SimpleLogger + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SseDeserializer deserializer); + @protected SimpleOpaqueExternalStructWithMethod sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -10485,6 +10650,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( SseDeserializer deserializer); + @protected + LtSubStructTwinNormal + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + SseDeserializer deserializer); + @protected NonCloneSimpleTwinMoi sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinMoi( @@ -10710,6 +10880,16 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( SseDeserializer deserializer); + @protected + LtOwnedStructTwinNormal + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + SseDeserializer deserializer); + + @protected + LtSubStructTwinNormal + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + SseDeserializer deserializer); + @protected MyAudioParamTwinNormal sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -10845,6 +11025,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueStructWithDartCodeTwinNormal( SseDeserializer deserializer); + @protected + SimpleLogger + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SseDeserializer deserializer); + @protected SimpleOpaqueExternalStructWithMethod sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -11027,6 +11212,36 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected BigInt sse_decode_I128(SseDeserializer deserializer); + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer); + @protected Map sse_decode_Map_String_String( SseDeserializer deserializer); @@ -11833,6 +12048,31 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( SseDeserializer deserializer); + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtOwnedStructTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + SseDeserializer deserializer); + + @protected + LtSubStructTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + SseDeserializer deserializer); + @protected MyAudioParamTwinNormal sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -12093,6 +12333,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSyncSseMoi( SseDeserializer deserializer); + @protected + SimpleLogger + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SseDeserializer deserializer); + @protected SimpleOpaqueExternalStructWithMethod sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -27314,6 +27559,10 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSyncMoi( OpaqueTwoTwinSyncMoi raw); + @protected + int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger raw); + @protected int cst_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( SimpleOpaqueExternalStructWithMethod raw); @@ -27658,6 +27907,10 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueStructWithDartCodeTwinNormal( OpaqueStructWithDartCodeTwinNormal raw); + @protected + int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger raw); + @protected int cst_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( SimpleOpaqueExternalStructWithMethod raw); @@ -28157,6 +28410,10 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSyncMoi( OpaqueTwoTwinSyncMoi raw); + @protected + int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger raw); + @protected int cst_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( SimpleOpaqueExternalStructWithMethod raw); @@ -28376,6 +28633,21 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { void sse_encode_AnyhowException( AnyhowException self, SseSerializer serializer); + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + @protected void sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyNodeTwinNormal( @@ -28648,6 +28920,16 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( ItemContainerSolutionOneTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtOwnedStructTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer); + @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -28908,6 +29190,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSyncSseMoi( OpaqueTwoTwinSyncSseMoi self, SseSerializer serializer); + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger self, SseSerializer serializer); + @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -29135,6 +29422,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( ItemContainerSolutionOneTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer); + @protected void sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinMoi( @@ -29372,6 +29664,16 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( ItemContainerSolutionOneTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtOwnedStructTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer); + @protected void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -29507,6 +29809,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueStructWithDartCodeTwinNormal( OpaqueStructWithDartCodeTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger self, SseSerializer serializer); + @protected void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -29789,6 +30096,36 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected void sse_encode_I128(BigInt self, SseSerializer serializer); + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + @protected void sse_encode_Map_String_String( Map self, SseSerializer serializer); @@ -30567,6 +30904,31 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( ItemContainerSolutionOneTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtOwnedStructTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer); + @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -30827,6 +31189,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSyncSseMoi( OpaqueTwoTwinSyncSseMoi self, SseSerializer serializer); + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger self, SseSerializer serializer); + @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -38556,6 +38923,149 @@ class RustLibWire implements BaseWire { wasmModule.wire__crate__api__inside_macro__func_macro_struct_twin_normal( port_, arg); + void wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_) => + wasmModule + .wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal( + port_, ptr_, rust_vec_len_, data_len_); + + void wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_) => + wasmModule + .wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal( + port_, ptr_, rust_vec_len_, data_len_); + + void wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_) => + wasmModule + .wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal( + port_, ptr_, rust_vec_len_, data_len_); + + void wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_nested_type_with_lifetime_twin_normal( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_) => + wasmModule + .wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_nested_type_with_lifetime_twin_normal( + port_, ptr_, rust_vec_len_, data_len_); + + void wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_) => + wasmModule + .wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal( + port_, ptr_, rust_vec_len_, data_len_); + + void wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_) => + wasmModule + .wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal( + port_, ptr_, rust_vec_len_, data_len_); + + void wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_) => + wasmModule + .wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal( + port_, ptr_, rust_vec_len_, data_len_); + + void wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_) => + wasmModule + .wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal( + port_, ptr_, rust_vec_len_, data_len_); + + void wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_) => + wasmModule + .wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal( + port_, ptr_, rust_vec_len_, data_len_); + + void wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_) => + wasmModule + .wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal( + port_, ptr_, rust_vec_len_, data_len_); + + void wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_) => + wasmModule + .wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal( + port_, ptr_, rust_vec_len_, data_len_); + + void wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_) => + wasmModule.wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create( + port_, ptr_, rust_vec_len_, data_len_); + + void wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_) => + wasmModule + .wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger( + port_, ptr_, rust_vec_len_, data_len_); + + void wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_) => + wasmModule + .wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal( + port_, ptr_, rust_vec_len_, data_len_); + + void wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_self_twin_normal( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_) => + wasmModule + .wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_self_twin_normal( + port_, ptr_, rust_vec_len_, data_len_); + + void wire__crate__api__lifetimeable__lt_compute_with_lifetime_function_twin_normal( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_) => + wasmModule + .wire__crate__api__lifetimeable__lt_compute_with_lifetime_function_twin_normal( + port_, ptr_, rust_vec_len_, data_len_); + void wire__crate__api__map_and_set__func_hash_map_i32_i32_twin_normal( NativePortType port_, JSAny arg) => wasmModule @@ -39043,6 +39553,17 @@ class RustLibWire implements BaseWire { .wire__crate__api__misc_no_twin_example_a__ItemContainerSolutionOneTwinNormal_get_item_contents_twin_normal( port_, that); + JSAny? /* flutter_rust_bridge::for_generated::WireSyncRust2DartDco */ + wire__crate__api__misc_no_twin_example_a__SimpleLogger_get_and_reset( + int that) => + wasmModule + .wire__crate__api__misc_no_twin_example_a__SimpleLogger_get_and_reset( + that); + + JSAny? /* flutter_rust_bridge::for_generated::WireSyncRust2DartDco */ + wire__crate__api__misc_no_twin_example_a__SimpleLogger_new() => wasmModule + .wire__crate__api__misc_no_twin_example_a__SimpleLogger_new(); + void wire__crate__api__misc_no_twin_example_a__StructInMiscNoTwinExampleA_sample_function_a( NativePortType port_, int that) => wasmModule @@ -59217,6 +59738,66 @@ class RustLibWire implements BaseWire { .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( ptr); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + ptr); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( int ptr) => wasmModule @@ -59841,6 +60422,18 @@ class RustLibWire implements BaseWire { .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSyncSseMoi( ptr); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + ptr); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( int ptr) => wasmModule @@ -60898,6 +61491,117 @@ extension type RustLibWasmModule._(JSObject _) implements JSObject { external void wire__crate__api__inside_macro__func_macro_struct_twin_normal( NativePortType port_, JSAny arg); + external void + wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_); + + external void + wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_); + + external void + wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_); + + external void + wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_nested_type_with_lifetime_twin_normal( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_); + + external void + wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_); + + external void + wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_); + + external void + wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_); + + external void + wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_); + + external void + wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_); + + external void + wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_); + + external void + wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_); + + external void wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_); + + external void + wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_); + + external void + wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_); + + external void + wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_self_twin_normal( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_); + + external void + wire__crate__api__lifetimeable__lt_compute_with_lifetime_function_twin_normal( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_); + external void wire__crate__api__map_and_set__func_hash_map_i32_i32_twin_normal( NativePortType port_, JSAny arg); @@ -61203,6 +61907,13 @@ extension type RustLibWasmModule._(JSObject _) implements JSObject { wire__crate__api__misc_no_twin_example_a__ItemContainerSolutionOneTwinNormal_get_item_contents_twin_normal( NativePortType port_, int that); + external JSAny? /* flutter_rust_bridge::for_generated::WireSyncRust2DartDco */ + wire__crate__api__misc_no_twin_example_a__SimpleLogger_get_and_reset( + int that); + + external JSAny? /* flutter_rust_bridge::for_generated::WireSyncRust2DartDco */ + wire__crate__api__misc_no_twin_example_a__SimpleLogger_new(); + external void wire__crate__api__misc_no_twin_example_a__StructInMiscNoTwinExampleA_sample_function_a( NativePortType port_, int that); @@ -75234,6 +75945,46 @@ extension type RustLibWasmModule._(JSObject _) implements JSObject { rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( int ptr); + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + int ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + int ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + int ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + int ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + int ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + int ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + int ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + int ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + int ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + int ptr); + external void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( int ptr); @@ -75650,6 +76401,14 @@ extension type RustLibWasmModule._(JSObject _) implements JSObject { rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSyncSseMoi( int ptr); + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + int ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + int ptr); + external void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( int ptr); diff --git a/frb_example/pure_dart/rust/src/frb_generated.io.rs b/frb_example/pure_dart/rust/src/frb_generated.io.rs index b14cea4b9d..e3b57792d1 100644 --- a/frb_example/pure_dart/rust/src/frb_generated.io.rs +++ b/frb_example/pure_dart/rust/src/frb_generated.io.rs @@ -13,6 +13,7 @@ use crate::api::dyn_trait::*; use crate::api::external_impl::*; use crate::api::impl_trait::SimpleTraitTwinNormal; use crate::api::impl_trait::*; +use crate::api::lifetimeable::*; use crate::api::method::*; use crate::api::misc_no_twin_example_a::*; use crate::api::misc_no_twin_example_b::*; @@ -62,7 +63,7 @@ use crate::api::rust_auto_opaque::*; use crate::api::rust_opaque::*; use crate::api::rust_opaque_sync::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; -use flutter_rust_bridge::for_generated::{transform_result_dco, Lockable}; +use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; // Section: boilerplate @@ -755,6 +756,16 @@ impl CstDecode for usize { )) } } +impl CstDecode for usize { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> SimpleLogger { + flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(CstDecode::< + RustOpaqueNom>, + >::cst_decode( + self + )) + } +} impl CstDecode for usize { // Codec=Cst (C-struct based), see doc to use other codecs fn cst_decode(self) -> SimpleOpaqueExternalStructWithMethod { @@ -2771,6 +2782,16 @@ impl decode_rust_opaque_moi(self as _) } } +impl CstDecode>> + for usize +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode( + self, + ) -> RustOpaqueNom> { + unsafe { decode_rust_opaque_nom(self as _) } + } +} impl CstDecode< RustOpaqueNom< @@ -18485,6 +18506,191 @@ pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__inside_macro__f wire__crate__api__inside_macro__func_macro_struct_twin_normal_impl(port_, arg) } +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal( + port_: i64, + ptr_: *mut u8, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl(port_, ptr_, rust_vec_len_, data_len_) +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal( + port_: i64, + ptr_: *mut u8, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal_impl(port_, ptr_, rust_vec_len_, data_len_) +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal( + port_: i64, + ptr_: *mut u8, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal_impl(port_, ptr_, rust_vec_len_, data_len_) +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_nested_type_with_lifetime_twin_normal( + port_: i64, + ptr_: *mut u8, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_nested_type_with_lifetime_twin_normal_impl(port_, ptr_, rust_vec_len_, data_len_) +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal( + port_: i64, + ptr_: *mut u8, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl(port_, ptr_, rust_vec_len_, data_len_) +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal( + port_: i64, + ptr_: *mut u8, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal_impl(port_, ptr_, rust_vec_len_, data_len_) +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal( + port_: i64, + ptr_: *mut u8, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal_impl(port_, ptr_, rust_vec_len_, data_len_) +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal( + port_: i64, + ptr_: *mut u8, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl(port_, ptr_, rust_vec_len_, data_len_) +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal( + port_: i64, + ptr_: *mut u8, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal_impl(port_, ptr_, rust_vec_len_, data_len_) +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal( + port_: i64, + ptr_: *mut u8, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal_impl(port_, ptr_, rust_vec_len_, data_len_) +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal( + port_: i64, + ptr_: *mut u8, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal_impl(port_, ptr_, rust_vec_len_, data_len_) +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create( + port_: i64, + ptr_: *mut u8, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_impl( + port_, + ptr_, + rust_vec_len_, + data_len_, + ) +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger( + port_: i64, + ptr_: *mut u8, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger_impl( + port_, + ptr_, + rust_vec_len_, + data_len_, + ) +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal( + port_: i64, + ptr_: *mut u8, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal_impl( + port_, + ptr_, + rust_vec_len_, + data_len_, + ) +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_self_twin_normal( + port_: i64, + ptr_: *mut u8, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_self_twin_normal_impl( + port_, + ptr_, + rust_vec_len_, + data_len_, + ) +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__lt_compute_with_lifetime_function_twin_normal( + port_: i64, + ptr_: *mut u8, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__lifetimeable__lt_compute_with_lifetime_function_twin_normal_impl( + port_, + ptr_, + rust_vec_len_, + data_len_, + ) +} + #[no_mangle] pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__map_and_set__func_hash_map_i32_i32_twin_normal( port_: i64, @@ -19165,6 +19371,19 @@ pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__misc_no_twin_ex wire__crate__api__misc_no_twin_example_a__ItemContainerSolutionOneTwinNormal_get_item_contents_twin_normal_impl(port_, that) } +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__misc_no_twin_example_a__SimpleLogger_get_and_reset( + that: usize, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__misc_no_twin_example_a__SimpleLogger_get_and_reset_impl(that) +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__misc_no_twin_example_a__SimpleLogger_new( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__misc_no_twin_example_a__SimpleLogger_new_impl() +} + #[no_mangle] pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__misc_no_twin_example_a__StructInMiscNoTwinExampleA_sample_function_a( port_: i64, @@ -44726,6 +44945,120 @@ pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_R } } +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::increment_strong_count(ptr as _); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::decrement_strong_count(ptr as _); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::increment_strong_count(ptr as _); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::decrement_strong_count(ptr as _); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::increment_strong_count(ptr as _); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::decrement_strong_count(ptr as _); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count(ptr as _); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count(ptr as _); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count(ptr as _); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count(ptr as _); + } +} + #[no_mangle] pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( ptr: *const std::ffi::c_void, @@ -45626,6 +45959,24 @@ pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_R MoiArc::>::decrement_strong_count(ptr as _); } +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count(ptr as _); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count(ptr as _); + } +} + #[no_mangle] pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( ptr: *const std::ffi::c_void, diff --git a/frb_example/pure_dart/rust/src/frb_generated.rs b/frb_example/pure_dart/rust/src/frb_generated.rs index 08dbb0b7e7..e7e10a6ce8 100644 --- a/frb_example/pure_dart/rust/src/frb_generated.rs +++ b/frb_example/pure_dart/rust/src/frb_generated.rs @@ -30,6 +30,7 @@ use crate::api::dyn_trait::*; use crate::api::external_impl::*; use crate::api::impl_trait::SimpleTraitTwinNormal; use crate::api::impl_trait::*; +use crate::api::lifetimeable::*; use crate::api::method::*; use crate::api::misc_no_twin_example_a::*; use crate::api::misc_no_twin_example_b::*; @@ -79,7 +80,7 @@ use crate::api::rust_auto_opaque::*; use crate::api::rust_opaque::*; use crate::api::rust_opaque_sync::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; -use flutter_rust_bridge::for_generated::{transform_result_dco, Lockable}; +use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; // Section: boilerplate @@ -92,7 +93,7 @@ flutter_rust_bridge::frb_generated_boilerplate!( default_rust_auto_opaque = RustAutoOpaqueNom, ); pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.0.0-dev.39"; -pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = -1348097527; +pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = -1992972191; // Section: executor @@ -4007,6 +4008,523 @@ fn wire__crate__api__inside_macro__func_macro_struct_twin_normal_impl( }, ) } +fn wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), + _ => unreachable!(), + } + } + let mut api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtNestedTypeWithLifetimeTwinNormal ::greet_borrow_mut_self_twin_normal(&mut *api_that_guard))?; Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtNestedTypeWithLifetimeTwinNormal ::greet_borrow_self_twin_normal(&*&api_that_guard))?; Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_arg = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let api_arg_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg) + };let mut api_arg_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_arg, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_arg_guard = Some(api_arg_illegal_static_ref.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_arg_guard = api_arg_guard.unwrap(); +let api_arg_guard = Arc::new(api_arg_guard); + let api_arg_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg_guard) + }; let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtTypeWithLifetimeTwinNormal ::compute_arg_generic_lifetime_twin_normal(&*&api_arg_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_arg.clone()), Box::new(api_arg_guard.clone())])); Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_nested_type_with_lifetime_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_nested_type_with_lifetime_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let api_that_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that) + };let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that_illegal_static_ref.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); +let api_that_guard = Arc::new(api_that_guard); + let api_that_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that_guard) + }; let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtTypeWithLifetimeTwinNormal ::compute_nested_type_with_lifetime_twin_normal(&*&api_that_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), + _ => unreachable!(), + } + } + let mut api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtTypeWithLifetimeTwinNormal ::greet_borrow_mut_self_twin_normal(&mut *api_that_guard))?; Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtTypeWithLifetimeTwinNormal ::greet_borrow_self_twin_normal(&*&api_that_guard))?; Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_a = >>::sse_decode(&mut deserializer); +let api_b = >>::sse_decode(&mut deserializer); +let api_unrelated_borrowed = >>::sse_decode(&mut deserializer); +let api_unrelated_owned = ::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let api_a_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_a) + };let api_b_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_b) + };let mut api_a_guard = None; +let mut api_b_guard = None; +let mut api_unrelated_borrowed_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_a, 0, false), flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_b, 1, false), flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_unrelated_borrowed, 2, false)]); + for i in decode_indices_ { + match i { + 0 => api_a_guard = Some(api_a_illegal_static_ref.lockable_decode_sync_ref()), +1 => api_b_guard = Some(api_b_illegal_static_ref.lockable_decode_sync_ref()), +2 => api_unrelated_borrowed_guard = Some(api_unrelated_borrowed.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_a_guard = api_a_guard.unwrap(); +let api_b_guard = api_b_guard.unwrap(); +let api_unrelated_borrowed_guard = api_unrelated_borrowed_guard.unwrap(); +let api_a_guard = Arc::new(api_a_guard); + let api_a_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_a_guard) + };let api_b_guard = Arc::new(api_b_guard); + let api_b_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_b_guard) + }; let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtTypeWithMultiDepTwinNormal ::compute_with_multi_arg_having_lifetime_twin_normal(&*api_a_guard_illegal_static_ref, &*api_b_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_a.clone()), Box::new(api_a_guard.clone()), Box::new(api_b.clone()), Box::new(api_b_guard.clone())])); Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), + _ => unreachable!(), + } + } + let mut api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtTypeWithMultiDepTwinNormal ::greet_borrow_mut_self_twin_normal(&mut *api_that_guard))?; Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtTypeWithMultiDepTwinNormal ::greet_borrow_self_twin_normal(&*&api_that_guard))?; Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let api_that_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that) + };let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that_illegal_static_ref.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); +let api_that_guard = Arc::new(api_that_guard); + let api_that_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that_guard) + }; let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtOwnedStructTwinNormal::compute_type_with_lifetime_twin_normal(&*api_that_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>::sse_decode(&mut deserializer); +let api_unrelated_borrowed = >>::sse_decode(&mut deserializer); +let api_unrelated_owned = ::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let api_that_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that) + };let mut api_that_guard = None; +let mut api_unrelated_borrowed_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false), flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_unrelated_borrowed, 1, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that_illegal_static_ref.lockable_decode_sync_ref()), +1 => api_unrelated_borrowed_guard = Some(api_unrelated_borrowed.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); +let api_unrelated_borrowed_guard = api_unrelated_borrowed_guard.unwrap(); +let api_that_guard = Arc::new(api_that_guard); + let api_that_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that_guard) + }; let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtOwnedStructTwinNormal::compute_with_unrelated_borrowed_arg_twin_normal(&*api_that_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "LtOwnedStructTwinNormal_create", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let message = unsafe { + flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire( + ptr_, + rust_vec_len_, + data_len_, + ) + }; + let mut deserializer = + flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_value = ::sse_decode(&mut deserializer); + deserializer.end(); + move |context| { + transform_result_sse::<_, ()>((move || { + let output_ok = Result::<_, ()>::Ok( + crate::api::lifetimeable::LtOwnedStructTwinNormal::create(api_value), + )?; + Ok(output_ok) + })()) + } + }, + ) +} +fn wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "LtOwnedStructTwinNormal_create_with_logger", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let message = unsafe { + flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire( + ptr_, + rust_vec_len_, + data_len_, + ) + }; + let mut deserializer = + flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_value = ::sse_decode(&mut deserializer); + let api_logger = , + >>::sse_decode(&mut deserializer); + deserializer.end(); + move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_logger_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_logger, + 0, + false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_logger_guard = Some(api_logger.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_logger_guard = api_logger_guard.unwrap(); + let output_ok = Result::<_, ()>::Ok( + crate::api::lifetimeable::LtOwnedStructTwinNormal::create_with_logger( + api_value, + &*api_logger_guard, + ), + )?; + Ok(output_ok) + })()) + } + }, + ) +} +fn wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), + _ => unreachable!(), + } + } + let mut api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtSubStructTwinNormal::greet_borrow_mut_self_twin_normal(&mut *api_that_guard))?; Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_self_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtSubStructTwinNormal_greet_borrow_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtSubStructTwinNormal::greet_borrow_self_twin_normal(&*api_that_guard))?; Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__lifetimeable__lt_compute_with_lifetime_function_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "lt_compute_with_lifetime_function_twin_normal", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let message = unsafe { + flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire( + ptr_, + rust_vec_len_, + data_len_, + ) + }; + let mut deserializer = + flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_arg = , + >>::sse_decode(&mut deserializer); + deserializer.end(); + move |context| { + transform_result_sse::<_, ()>((move || { + let api_arg_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg) + }; + let mut api_arg_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_arg, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => { + api_arg_guard = + Some(api_arg_illegal_static_ref.lockable_decode_sync_ref()) + } + _ => unreachable!(), + } + } + let api_arg_guard = api_arg_guard.unwrap(); + let api_arg_guard = Arc::new(api_arg_guard); + let api_arg_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime( + &api_arg_guard, + ) + }; + let output_ok = Result::<_, ()>::Ok( + crate::api::lifetimeable::lt_compute_with_lifetime_function_twin_normal( + &*api_arg_guard_illegal_static_ref, + ), + )?; + let output_ok = RustAutoOpaque::new(Lifetimeable::new( + output_ok, + vec![Box::new(api_arg.clone()), Box::new(api_arg_guard.clone())], + )); + Ok(output_ok) + })()) + } + }, + ) +} fn wire__crate__api__map_and_set__func_hash_map_i32_i32_twin_normal_impl( port_: flutter_rust_bridge::for_generated::MessagePort, arg: impl CstDecode>, @@ -6182,6 +6700,61 @@ let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decod })()) } }) } +fn wire__crate__api__misc_no_twin_example_a__SimpleLogger_get_and_reset_impl( + that: impl CstDecode< + RustOpaqueNom>, + >, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "SimpleLogger_get_and_reset", + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, + }, + move || { + let api_that = that.cst_decode(); + transform_result_dco::<_, _, ()>((move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_, ()>::Ok( + crate::api::misc_no_twin_example_a::SimpleLogger::get_and_reset( + &*api_that_guard, + ), + )?; + Ok(output_ok) + })()) + }, + ) +} +fn wire__crate__api__misc_no_twin_example_a__SimpleLogger_new_impl( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "SimpleLogger_new", + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, + }, + move || { + transform_result_dco::<_, _, ()>((move || { + let output_ok = + Result::<_, ()>::Ok(crate::api::misc_no_twin_example_a::SimpleLogger::new())?; + Ok(output_ok) + })()) + }, + ) +} fn wire__crate__api__misc_no_twin_example_a__StructInMiscNoTwinExampleA_sample_function_a_impl( port_: flutter_rust_bridge::for_generated::MessagePort, that: impl CstDecode< @@ -46769,6 +47342,42 @@ impl SseDecode for flutter_rust_bridge::for_generated::anyhow::Error { } } +impl SseDecode for RustAutoOpaqueNom>> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = >, + >, + >>::sse_decode(deserializer); + return flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_decode(inner); + } +} + +impl SseDecode for RustAutoOpaqueNom>> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = >, + >, + >>::sse_decode(deserializer); + return flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_decode(inner); + } +} + +impl SseDecode for RustAutoOpaqueNom>> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = >, + >, + >>::sse_decode(deserializer); + return flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_decode(inner); + } +} + impl SseDecode for RustAutoOpaqueNom { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -47355,6 +47964,26 @@ impl SseDecode for ItemContainerSolutionOneTwinNormal { } } +impl SseDecode for LtOwnedStructTwinNormal { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = , + >>::sse_decode(deserializer); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); + } +} + +impl SseDecode for LtSubStructTwinNormal { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = , + >>::sse_decode(deserializer); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); + } +} + impl SseDecode for MyAudioParamTwinNormal { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -47889,6 +48518,16 @@ impl SseDecode for OpaqueTwoTwinSyncSseMoi { } } +impl SseDecode for SimpleLogger { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = , + >>::sse_decode(deserializer); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); + } +} + impl SseDecode for SimpleOpaqueExternalStructWithMethod { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -50202,6 +50841,72 @@ impl SseDecode } } +impl SseDecode + for RustOpaqueNom< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { decode_rust_opaque_nom(inner) }; + } +} + +impl SseDecode + for RustOpaqueNom< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { decode_rust_opaque_nom(inner) }; + } +} + +impl SseDecode + for RustOpaqueNom< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { decode_rust_opaque_nom(inner) }; + } +} + +impl SseDecode + for RustOpaqueNom< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { decode_rust_opaque_nom(inner) }; + } +} + +impl SseDecode + for RustOpaqueNom< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { decode_rust_opaque_nom(inner) }; + } +} + impl SseDecode for RustOpaqueNom< flutter_rust_bridge::for_generated::RustAutoOpaqueInner, @@ -50796,6 +51501,16 @@ impl SseDecode } } +impl SseDecode + for RustOpaqueNom> +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { decode_rust_opaque_nom(inner) }; + } +} + impl SseDecode for RustOpaqueNom< flutter_rust_bridge::for_generated::RustAutoOpaqueInner< @@ -67617,6 +68332,46 @@ impl flutter_rust_bridge::IntoIntoDart { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self.0) + .into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for FrbWrapper +{ +} + +impl flutter_rust_bridge::IntoIntoDart> + for LtOwnedStructTwinNormal +{ + fn into_into_dart(self) -> FrbWrapper { + self.into() + } +} + +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for FrbWrapper { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self.0) + .into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for FrbWrapper +{ +} + +impl flutter_rust_bridge::IntoIntoDart> + for LtSubStructTwinNormal +{ + fn into_into_dart(self) -> FrbWrapper { + self.into() + } +} + // Codec=Dco (DartCObject based), see doc to use other codecs impl flutter_rust_bridge::IntoDart for FrbWrapper { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { @@ -68604,6 +69359,21 @@ impl flutter_rust_bridge::IntoIntoDart> } } +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for FrbWrapper { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self.0) + .into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper {} + +impl flutter_rust_bridge::IntoIntoDart> for SimpleLogger { + fn into_into_dart(self) -> FrbWrapper { + self.into() + } +} + // Codec=Dco (DartCObject based), see doc to use other codecs impl flutter_rust_bridge::IntoDart for FrbWrapper { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { @@ -83450,6 +84220,48 @@ impl SseEncode for flutter_rust_bridge::for_generated::anyhow::Error { } } +impl SseEncode for RustAutoOpaqueNom>> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >, + >, + >>::sse_encode( + flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_encode(self), + serializer, + ); + } +} + +impl SseEncode for RustAutoOpaqueNom>> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >, + >, + >>::sse_encode( + flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_encode(self), + serializer, + ); + } +} + +impl SseEncode for RustAutoOpaqueNom>> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >, + >, + >>::sse_encode( + flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_encode(self), + serializer, + ); + } +} + impl SseEncode for RustAutoOpaqueNom { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -84120,6 +84932,30 @@ impl SseEncode for ItemContainerSolutionOneTwinNormal { } } +impl SseEncode for LtOwnedStructTwinNormal { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + , + >>::sse_encode( + flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), + serializer, + ); + } +} + +impl SseEncode for LtSubStructTwinNormal { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + , + >>::sse_encode( + flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), + serializer, + ); + } +} + impl SseEncode for MyAudioParamTwinNormal { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -84703,6 +85539,13 @@ impl SseEncode for OpaqueTwoTwinSyncSseMoi { } } +impl SseEncode for SimpleLogger { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); + } +} + impl SseEncode for SimpleOpaqueExternalStructWithMethod { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -87206,6 +88049,77 @@ impl SseEncode } } +impl SseEncode + for RustOpaqueNom< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + +impl SseEncode + for RustOpaqueNom< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + +impl SseEncode + for RustOpaqueNom< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + +impl SseEncode + for RustOpaqueNom< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + +impl SseEncode + for RustOpaqueNom< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + impl SseEncode for RustOpaqueNom< flutter_rust_bridge::for_generated::RustAutoOpaqueInner, @@ -87852,6 +88766,17 @@ impl SseEncode } } +impl SseEncode + for RustOpaqueNom> +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + impl SseEncode for RustOpaqueNom< flutter_rust_bridge::for_generated::RustAutoOpaqueInner< diff --git a/frb_example/pure_dart/rust/src/frb_generated.web.rs b/frb_example/pure_dart/rust/src/frb_generated.web.rs index 86a3e9e801..e325cd5a5f 100644 --- a/frb_example/pure_dart/rust/src/frb_generated.web.rs +++ b/frb_example/pure_dart/rust/src/frb_generated.web.rs @@ -13,6 +13,7 @@ use crate::api::dyn_trait::*; use crate::api::external_impl::*; use crate::api::impl_trait::SimpleTraitTwinNormal; use crate::api::impl_trait::*; +use crate::api::lifetimeable::*; use crate::api::method::*; use crate::api::misc_no_twin_example_a::*; use crate::api::misc_no_twin_example_b::*; @@ -64,7 +65,7 @@ use crate::api::rust_opaque_sync::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; use flutter_rust_bridge::for_generated::wasm_bindgen; use flutter_rust_bridge::for_generated::wasm_bindgen::prelude::*; -use flutter_rust_bridge::for_generated::{transform_result_dco, Lockable}; +use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; // Section: boilerplate @@ -9393,6 +9394,16 @@ impl CstDecode for flutter_rust_bridge::for_generated::was )) } } +impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode(self) -> SimpleLogger { + flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(CstDecode::< + RustOpaqueNom>, + >::cst_decode( + self + )) + } +} impl CstDecode for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue { @@ -11953,6 +11964,20 @@ impl decode_rust_opaque_moi((self.as_f64().unwrap() as usize) as _) } } +impl CstDecode>> + for flutter_rust_bridge::for_generated::wasm_bindgen::JsValue +{ + // Codec=Cst (C-struct based), see doc to use other codecs + fn cst_decode( + self, + ) -> RustOpaqueNom> { + #[cfg(target_pointer_width = "64")] + { + compile_error!("64-bit pointers are not supported."); + } + unsafe { decode_rust_opaque_nom((self.as_f64().unwrap() as usize) as _) } + } +} impl CstDecode< RustOpaqueNom< @@ -15404,6 +15429,191 @@ pub fn wire__crate__api__inside_macro__func_macro_struct_twin_normal( wire__crate__api__inside_macro__func_macro_struct_twin_normal_impl(port_, arg) } +#[wasm_bindgen] +pub fn wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl(port_, ptr_, rust_vec_len_, data_len_) +} + +#[wasm_bindgen] +pub fn wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal_impl(port_, ptr_, rust_vec_len_, data_len_) +} + +#[wasm_bindgen] +pub fn wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal_impl(port_, ptr_, rust_vec_len_, data_len_) +} + +#[wasm_bindgen] +pub fn wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_nested_type_with_lifetime_twin_normal( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_nested_type_with_lifetime_twin_normal_impl(port_, ptr_, rust_vec_len_, data_len_) +} + +#[wasm_bindgen] +pub fn wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl(port_, ptr_, rust_vec_len_, data_len_) +} + +#[wasm_bindgen] +pub fn wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal_impl(port_, ptr_, rust_vec_len_, data_len_) +} + +#[wasm_bindgen] +pub fn wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal_impl(port_, ptr_, rust_vec_len_, data_len_) +} + +#[wasm_bindgen] +pub fn wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl(port_, ptr_, rust_vec_len_, data_len_) +} + +#[wasm_bindgen] +pub fn wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal_impl(port_, ptr_, rust_vec_len_, data_len_) +} + +#[wasm_bindgen] +pub fn wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal_impl(port_, ptr_, rust_vec_len_, data_len_) +} + +#[wasm_bindgen] +pub fn wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal_impl(port_, ptr_, rust_vec_len_, data_len_) +} + +#[wasm_bindgen] +pub fn wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_impl( + port_, + ptr_, + rust_vec_len_, + data_len_, + ) +} + +#[wasm_bindgen] +pub fn wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger_impl( + port_, + ptr_, + rust_vec_len_, + data_len_, + ) +} + +#[wasm_bindgen] +pub fn wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal_impl( + port_, + ptr_, + rust_vec_len_, + data_len_, + ) +} + +#[wasm_bindgen] +pub fn wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_self_twin_normal( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_self_twin_normal_impl( + port_, + ptr_, + rust_vec_len_, + data_len_, + ) +} + +#[wasm_bindgen] +pub fn wire__crate__api__lifetimeable__lt_compute_with_lifetime_function_twin_normal( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__lifetimeable__lt_compute_with_lifetime_function_twin_normal_impl( + port_, + ptr_, + rust_vec_len_, + data_len_, + ) +} + #[wasm_bindgen] pub fn wire__crate__api__map_and_set__func_hash_map_i32_i32_twin_normal( port_: flutter_rust_bridge::for_generated::MessagePort, @@ -16084,6 +16294,19 @@ pub fn wire__crate__api__misc_no_twin_example_a__ItemContainerSolutionOneTwinNor wire__crate__api__misc_no_twin_example_a__ItemContainerSolutionOneTwinNormal_get_item_contents_twin_normal_impl(port_, that) } +#[wasm_bindgen] +pub fn wire__crate__api__misc_no_twin_example_a__SimpleLogger_get_and_reset( + that: flutter_rust_bridge::for_generated::wasm_bindgen::JsValue, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__misc_no_twin_example_a__SimpleLogger_get_and_reset_impl(that) +} + +#[wasm_bindgen] +pub fn wire__crate__api__misc_no_twin_example_a__SimpleLogger_new( +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartDco { + wire__crate__api__misc_no_twin_example_a__SimpleLogger_new_impl() +} + #[wasm_bindgen] pub fn wire__crate__api__misc_no_twin_example_a__StructInMiscNoTwinExampleA_sample_function_a( port_: flutter_rust_bridge::for_generated::MessagePort, @@ -41625,6 +41848,120 @@ pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generat } } +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::increment_strong_count(ptr as _); + } +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::decrement_strong_count(ptr as _); + } +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::increment_strong_count(ptr as _); + } +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::decrement_strong_count(ptr as _); + } +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::increment_strong_count(ptr as _); + } +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::decrement_strong_count(ptr as _); + } +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count(ptr as _); + } +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count(ptr as _); + } +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count(ptr as _); + } +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count(ptr as _); + } +} + #[wasm_bindgen] pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( ptr: *const std::ffi::c_void, @@ -42525,6 +42862,24 @@ pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generat MoiArc::>::decrement_strong_count(ptr as _); } +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count(ptr as _); + } +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count(ptr as _); + } +} + #[wasm_bindgen] pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( ptr: *const std::ffi::c_void, From 4c370d18e1d08a42e9b9898559035fa5de0992b4 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 19:53:24 +0800 Subject: [PATCH 078/117] chore: import --- frb_example/pure_dart/test/api/lifetimeable_test.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/frb_example/pure_dart/test/api/lifetimeable_test.dart b/frb_example/pure_dart/test/api/lifetimeable_test.dart index 1e395fd5e2..ad26e57d36 100644 --- a/frb_example/pure_dart/test/api/lifetimeable_test.dart +++ b/frb_example/pure_dart/test/api/lifetimeable_test.dart @@ -3,6 +3,7 @@ import 'dart:async'; import 'package:frb_example_pure_dart/src/rust/api/lifetimeable.dart'; +import 'package:frb_example_pure_dart/src/rust/api/misc_no_twin_example_a.dart'; import 'package:frb_example_pure_dart/src/rust/frb_generated.dart'; import 'package:test/test.dart'; From 250b6e65c18a2710f48ffc2b1b357be3661ec8ba Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 19:54:07 +0800 Subject: [PATCH 079/117] chore: more --- frb_example/pure_dart/rust/src/api/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frb_example/pure_dart/rust/src/api/mod.rs b/frb_example/pure_dart/rust/src/api/mod.rs index 0720a3ac55..44349fed95 100644 --- a/frb_example/pure_dart/rust/src/api/mod.rs +++ b/frb_example/pure_dart/rust/src/api/mod.rs @@ -30,6 +30,7 @@ pub mod external_impl; pub mod external_type_in_crate; pub mod impl_trait; pub mod inside_macro; +pub mod lifetimeable; pub mod map_and_set; pub mod method; pub mod mirror; @@ -56,6 +57,5 @@ pub mod structure; pub mod tuple; pub mod type_alias; pub mod uuid_type; -mod lifetimeable; pub fn function_at_api_mod_rs() {} From e4b48e84ef1260088a1efe04ef866395c791ad47 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 19:55:18 +0800 Subject: [PATCH 080/117] chore: name --- .../types/arbitrary/rust-auto-opaque/override-defaults.md | 2 +- .../docs/guides/types/arbitrary/rust-auto-opaque/properties.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/guides/types/arbitrary/rust-auto-opaque/override-defaults.md b/website/docs/guides/types/arbitrary/rust-auto-opaque/override-defaults.md index 34b494c068..72261f634c 100644 --- a/website/docs/guides/types/arbitrary/rust-auto-opaque/override-defaults.md +++ b/website/docs/guides/types/arbitrary/rust-auto-opaque/override-defaults.md @@ -1,4 +1,4 @@ -# Override defaults +# Override opaqueness By default, flutter_rust_bridge tries to infer whether a type is opaque or not automatically. To override the default behavior, please use `#[frb(opaque)]` and `#[frb(non_opaque)]`. diff --git a/website/docs/guides/types/arbitrary/rust-auto-opaque/properties.md b/website/docs/guides/types/arbitrary/rust-auto-opaque/properties.md index 88c75bfe74..f8b1125f05 100644 --- a/website/docs/guides/types/arbitrary/rust-auto-opaque/properties.md +++ b/website/docs/guides/types/arbitrary/rust-auto-opaque/properties.md @@ -1,4 +1,4 @@ -# Properties +# Properties (Accessors) The `pub` fields of an opaque struct will be automatically translated, such that it can be used as if it is a normal field. From 58647df4af91a4a1ec76f0dda6db3cd41c49f10a Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 19:57:13 +0800 Subject: [PATCH 081/117] chore: empty --- .../docs/guides/types/arbitrary/rust-auto-opaque/lifetime.md | 3 +++ website/sidebars.js | 1 + 2 files changed, 4 insertions(+) create mode 100644 website/docs/guides/types/arbitrary/rust-auto-opaque/lifetime.md diff --git a/website/docs/guides/types/arbitrary/rust-auto-opaque/lifetime.md b/website/docs/guides/types/arbitrary/rust-auto-opaque/lifetime.md new file mode 100644 index 0000000000..1fc2602522 --- /dev/null +++ b/website/docs/guides/types/arbitrary/rust-auto-opaque/lifetime.md @@ -0,0 +1,3 @@ +# Type with lifetimes / Reference types + +TODO diff --git a/website/sidebars.js b/website/sidebars.js index abd44407b0..07eef0ca5e 100644 --- a/website/sidebars.js +++ b/website/sidebars.js @@ -114,6 +114,7 @@ const sidebars = { }, items: [ 'guides/types/arbitrary/rust-auto-opaque/overview', + 'guides/types/arbitrary/rust-auto-opaque/lifetime', 'guides/types/arbitrary/rust-auto-opaque/using-data', 'guides/types/arbitrary/rust-auto-opaque/override-defaults', 'guides/types/arbitrary/rust-auto-opaque/properties', From 829d08b5709d3283e8830de5f4ae56da72123ac5 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 20:00:56 +0800 Subject: [PATCH 082/117] chore: changelog --- .all-contributors-custom.yaml | 2 +- CHANGELOG.md | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.all-contributors-custom.yaml b/.all-contributors-custom.yaml index 89f277d9be..e5296fd204 100644 --- a/.all-contributors-custom.yaml +++ b/.all-contributors-custom.yaml @@ -8,7 +8,7 @@ - sagudev: Make code generator a `lib`. Add error types. Depend on `cbindgen`. Fix LLVM paths. Update deps. Fix CI errors. - surban: Support unit return type. Skip unresolvable modules. Ignore prefer_const_constructors. Non-final Dart fields. - Roms1383: Fix build_runner calling bug. Remove global `ffigen` dependency. Improve version check. Fix enum name-variant conflicts. Support Chrono date time and UUID types. Migrate to Rust 1.64 workspace. Update and refactor CI. Update header comments. Code cleanup. -- dbsxdbsx: Allow generating multiple Rust and Dart files. Fix lint. Update doc. Add logging. +- dbsxdbsx: Allow generating multiple Rust and Dart files. Fix lint. Update doc. Add logging. Loosen config. Prefix methods. - GregoryConrad: Add doc to setup frb inside a Dart/Flutter library. - huang12zheng: Support type aliases and nested ones. Tweak code generation. Fix rust_build_and_test on Mac. Improve CI logic and cache. Remove bridge field in model. - trobanga: Add support for `[T;N]` structs. Add `usize` support. Add a cmd argument. Separate dart tests. Fix fallible list case. Fix test compile. Fix Result + RustAutoOpaque. diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c4e17943c..96d2838879 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## 2.0.0-dev.40 + +* Please refer to https://fzyzcjy.github.io/flutter_rust_bridge/guides/miscellaneous/whats-new for what's changed in V2. +* Support returning types with non-static lifetime (i.e. borrowed types / reference types) #2088 #2093 +* Loosen config field `rust_input` syntax with delimit `,` #2092 (thanks @dbsxdbsx) +* Add prefix for automatically generated get/set methods of `#[frb(opaque)]` types to avoid conflicting with existing methods #2090 (thanks @dbsxdbsx) +* Support adding arbitrary code in generated Rust file via rust_preamble config #2086 +* Support ignoring a whole module by `#[frb(ignore)]` on module #2085 +* Support `/// frb:...` #2085 + ## 2.0.0-dev.39 * Please refer to https://fzyzcjy.github.io/flutter_rust_bridge/guides/miscellaneous/whats-new for what's changed in V2. From 7568049634837efb147690ad21998d367d841cbb Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 20:06:21 +0800 Subject: [PATCH 083/117] feat: doc --- website/docs/guides/miscellaneous/attributes.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/website/docs/guides/miscellaneous/attributes.md b/website/docs/guides/miscellaneous/attributes.md index 27d9810e6f..1e54fdfb97 100644 --- a/website/docs/guides/miscellaneous/attributes.md +++ b/website/docs/guides/miscellaneous/attributes.md @@ -1,5 +1,22 @@ # Attributes +## Specifying attributes + +There are two approaches to specify an attribute: + +1. Attribute-based: `#[frb(something)]` +2. Comment-based: `/// frb:something` + +The latter is especially useful when the former cannot be used, +such as when the target is a `mod`, or when the crate does not have dependency on `flutter_rust_bridge`. + +Most of the time, the latter is equivalent to the former; +but for things like `#[frb(external)]`, which has to act as a macro to generate some code, +the latter cannot be used. +But this can be easily spotted since it will have compile-time messages. + +## Full list of attributes + For completeness, all attributes are listed below. To know more details of each attribute, the search bar at top-right may be useful. From 7ed2a921c89d5fe5a5bd5025e3f31dc22d02063a Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 20:08:03 +0800 Subject: [PATCH 084/117] chore: empty --- website/docs/guides/miscellaneous/ignoring.md | 3 +++ website/sidebars.js | 1 + 2 files changed, 4 insertions(+) create mode 100644 website/docs/guides/miscellaneous/ignoring.md diff --git a/website/docs/guides/miscellaneous/ignoring.md b/website/docs/guides/miscellaneous/ignoring.md new file mode 100644 index 0000000000..96e172ca6d --- /dev/null +++ b/website/docs/guides/miscellaneous/ignoring.md @@ -0,0 +1,3 @@ +# Ignoring things + +TODO diff --git a/website/sidebars.js b/website/sidebars.js index 07eef0ca5e..b72920bc9e 100644 --- a/website/sidebars.js +++ b/website/sidebars.js @@ -276,6 +276,7 @@ const sidebars = { 'guides/miscellaneous/dart-code', 'guides/miscellaneous/codec', 'guides/miscellaneous/build-rs', + 'guides/miscellaneous/ignoring', 'guides/miscellaneous/proxy', 'guides/miscellaneous/expanding-macros', 'guides/miscellaneous/default', From 7a8f027ed27b0eb6f12e5b8c966040bbfb154016 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 20:10:00 +0800 Subject: [PATCH 085/117] feat: more --- website/docs/guides/miscellaneous/ignoring.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/website/docs/guides/miscellaneous/ignoring.md b/website/docs/guides/miscellaneous/ignoring.md index 96e172ca6d..cf4c5844a5 100644 --- a/website/docs/guides/miscellaneous/ignoring.md +++ b/website/docs/guides/miscellaneous/ignoring.md @@ -1,3 +1,20 @@ # Ignoring things -TODO +The `#[frb(ignore)]` (or equivalently, `/// frb:ignore`) can be put on things to ignore them. + +To ignore a `mod` (module), we can only use the latter syntax because Rust grammar does not support the former yet. + +To see extra approaches to ignore functions, please refer to [this page](../functions/ignoring). + +## Example + +```rust +#[frb(ignore)] +pub struct ThisStructWillBeIgnore; + +#[frb(ignore)] +pub fn this_function_will_be_ignored() {} + +/// frb:ignore +mod this_submodule_will_be_ignored; +``` From 34440196116197b0c9a9f0c431d7e2b31cf24b99 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 20:12:38 +0800 Subject: [PATCH 086/117] chore: doc --- website/docs/guides/how-to/borrowed.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/website/docs/guides/how-to/borrowed.md b/website/docs/guides/how-to/borrowed.md index 09002e2182..8c1d911b1c 100644 --- a/website/docs/guides/how-to/borrowed.md +++ b/website/docs/guides/how-to/borrowed.md @@ -1,11 +1,13 @@ # Borrowed types -flutter_rust_bridge does not yet support types with *arbitrary* borrowing and lifetime -like `struct MyStruct<'a> { ... }`, -or functions that return arbitrary reference types, -since this has not been a blocker for users and there are alternative approaches. -However, if you do need to have this feature, feel free to open an issue and we can discuss/implement it! -Below, we discuss several approaches for some scenarios. +## Direct approach + +`flutter_rust_bridge` does support types with borrowing and lifetime like `struct MyStruct<'a> { ... }`, +or functions that return types with lifetimes such as references. +Please refer to [this page](../types/arbitrary/rust-auto-opaque/lifetime) for details. + +For completeness, below we discuss alternative approaches, which are useful in some scenarios. +(They are originally documented because at that time the lifetime had not been supported.) ## Proxy From 32b581e98cc5bce20852b49864ba9863777ce3d4 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 20:13:49 +0800 Subject: [PATCH 087/117] chore: codegen --- .../rust/src/frb_generated.io.rs | 2 +- .../dart_build_rs/rust/src/frb_generated.rs | 2 +- .../rust/src/frb_generated.web.rs | 2 +- .../rust/src/frb_generated.io.rs | 2 +- .../deliberate_bad/rust/src/frb_generated.rs | 2 +- .../rust/src/frb_generated.web.rs | 2 +- .../rust/src/frb_generated.io.rs | 2 +- .../rust/src/frb_generated.rs | 2 +- .../rust/src/frb_generated.web.rs | 2 +- .../rust/src/frb_generated.io.rs | 2 +- .../rust/src/frb_generated.rs | 2 +- .../rust/src/frb_generated.web.rs | 2 +- .../gallery/rust/src/frb_generated.io.rs | 2 +- frb_example/gallery/rust/src/frb_generated.rs | 2 +- .../gallery/rust/src/frb_generated.web.rs | 2 +- .../rust/src/frb_generated.io.rs | 2 +- .../rust/src/frb_generated.rs | 2 +- .../rust/src/frb_generated.web.rs | 2 +- frb_example/pure_dart/frb_generated.h | 116 + .../pseudo_manual/lifetimeable_twin_sync.dart | 92 + .../pure_dart/lib/src/rust/frb_generated.dart | 1416 ++++- .../lib/src/rust/frb_generated.io.dart | 866 +++ .../lib/src/rust/frb_generated.web.dart | 652 +++ .../pure_dart/rust/src/api/lifetimeable.rs | 2 +- .../pseudo_manual/lifetimeable_twin_sync.rs | 214 + .../rust/src/api/pseudo_manual/mod.rs | 1 + .../pure_dart/rust/src/frb_generated.io.rs | 265 + .../pure_dart/rust/src/frb_generated.rs | 696 ++- .../pure_dart/rust/src/frb_generated.web.rs | 265 + .../lifetimeable_twin_sync_test.dart | 220 + .../test/dart_valgrind_test_entrypoint.dart | 5 + .../pure_dart_pde/flutter_rust_bridge.yaml | 2 + .../lib/src/rust/api/lifetimeable.dart | 93 + .../src/rust/api/misc_no_twin_example_a.dart | 10 + .../pseudo_manual/lifetimeable_twin_sync.dart | 92 + .../lib/src/rust/frb_generated.dart | 5023 +++++++++++++---- .../lib/src/rust/frb_generated.io.dart | 1015 +++- .../lib/src/rust/frb_generated.web.dart | 897 ++- .../rust/src/api/lifetimeable.rs | 204 + .../rust/src/api/misc_no_twin_example_a.rs | 21 + frb_example/pure_dart_pde/rust/src/api/mod.rs | 1 + .../pseudo_manual/lifetimeable_twin_sync.rs | 216 + .../rust/src/api/pseudo_manual/mod.rs | 1 + .../rust/src/frb_generated.io.rs | 206 +- .../pure_dart_pde/rust/src/frb_generated.rs | 3811 +++++++++---- .../rust/src/frb_generated.web.rs | 206 +- .../test/api/lifetimeable_test.dart | 217 + .../lifetimeable_twin_sync_test.dart | 222 + .../test/dart_valgrind_test_entrypoint.dart | 5 + 49 files changed, 14969 insertions(+), 2119 deletions(-) create mode 100644 frb_example/pure_dart/lib/src/rust/api/pseudo_manual/lifetimeable_twin_sync.dart create mode 100644 frb_example/pure_dart/rust/src/api/pseudo_manual/lifetimeable_twin_sync.rs create mode 100644 frb_example/pure_dart/test/api/pseudo_manual/lifetimeable_twin_sync_test.dart create mode 100644 frb_example/pure_dart_pde/lib/src/rust/api/lifetimeable.dart create mode 100644 frb_example/pure_dart_pde/lib/src/rust/api/pseudo_manual/lifetimeable_twin_sync.dart create mode 100644 frb_example/pure_dart_pde/rust/src/api/lifetimeable.rs create mode 100644 frb_example/pure_dart_pde/rust/src/api/pseudo_manual/lifetimeable_twin_sync.rs create mode 100644 frb_example/pure_dart_pde/test/api/lifetimeable_test.dart create mode 100644 frb_example/pure_dart_pde/test/api/pseudo_manual/lifetimeable_twin_sync_test.dart diff --git a/frb_example/dart_build_rs/rust/src/frb_generated.io.rs b/frb_example/dart_build_rs/rust/src/frb_generated.io.rs index 1784fece63..ae9a0b18ac 100644 --- a/frb_example/dart_build_rs/rust/src/frb_generated.io.rs +++ b/frb_example/dart_build_rs/rust/src/frb_generated.io.rs @@ -5,7 +5,7 @@ use super::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; -use flutter_rust_bridge::for_generated::{transform_result_dco, Lockable}; +use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; // Section: boilerplate diff --git a/frb_example/dart_build_rs/rust/src/frb_generated.rs b/frb_example/dart_build_rs/rust/src/frb_generated.rs index 517066787e..c7b3aefb31 100644 --- a/frb_example/dart_build_rs/rust/src/frb_generated.rs +++ b/frb_example/dart_build_rs/rust/src/frb_generated.rs @@ -22,7 +22,7 @@ // Section: imports use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; -use flutter_rust_bridge::for_generated::{transform_result_dco, Lockable}; +use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; // Section: boilerplate diff --git a/frb_example/dart_build_rs/rust/src/frb_generated.web.rs b/frb_example/dart_build_rs/rust/src/frb_generated.web.rs index bc660479e8..9b5319b77a 100644 --- a/frb_example/dart_build_rs/rust/src/frb_generated.web.rs +++ b/frb_example/dart_build_rs/rust/src/frb_generated.web.rs @@ -7,7 +7,7 @@ use super::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; use flutter_rust_bridge::for_generated::wasm_bindgen; use flutter_rust_bridge::for_generated::wasm_bindgen::prelude::*; -use flutter_rust_bridge::for_generated::{transform_result_dco, Lockable}; +use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; // Section: boilerplate diff --git a/frb_example/deliberate_bad/rust/src/frb_generated.io.rs b/frb_example/deliberate_bad/rust/src/frb_generated.io.rs index 1784fece63..ae9a0b18ac 100644 --- a/frb_example/deliberate_bad/rust/src/frb_generated.io.rs +++ b/frb_example/deliberate_bad/rust/src/frb_generated.io.rs @@ -5,7 +5,7 @@ use super::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; -use flutter_rust_bridge::for_generated::{transform_result_dco, Lockable}; +use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; // Section: boilerplate diff --git a/frb_example/deliberate_bad/rust/src/frb_generated.rs b/frb_example/deliberate_bad/rust/src/frb_generated.rs index a17304f209..f100d59bf2 100644 --- a/frb_example/deliberate_bad/rust/src/frb_generated.rs +++ b/frb_example/deliberate_bad/rust/src/frb_generated.rs @@ -22,7 +22,7 @@ // Section: imports use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; -use flutter_rust_bridge::for_generated::{transform_result_dco, Lockable}; +use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; // Section: boilerplate diff --git a/frb_example/deliberate_bad/rust/src/frb_generated.web.rs b/frb_example/deliberate_bad/rust/src/frb_generated.web.rs index bc660479e8..9b5319b77a 100644 --- a/frb_example/deliberate_bad/rust/src/frb_generated.web.rs +++ b/frb_example/deliberate_bad/rust/src/frb_generated.web.rs @@ -7,7 +7,7 @@ use super::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; use flutter_rust_bridge::for_generated::wasm_bindgen; use flutter_rust_bridge::for_generated::wasm_bindgen::prelude::*; -use flutter_rust_bridge::for_generated::{transform_result_dco, Lockable}; +use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; // Section: boilerplate diff --git a/frb_example/flutter_via_create/rust/src/frb_generated.io.rs b/frb_example/flutter_via_create/rust/src/frb_generated.io.rs index 1784fece63..ae9a0b18ac 100644 --- a/frb_example/flutter_via_create/rust/src/frb_generated.io.rs +++ b/frb_example/flutter_via_create/rust/src/frb_generated.io.rs @@ -5,7 +5,7 @@ use super::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; -use flutter_rust_bridge::for_generated::{transform_result_dco, Lockable}; +use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; // Section: boilerplate diff --git a/frb_example/flutter_via_create/rust/src/frb_generated.rs b/frb_example/flutter_via_create/rust/src/frb_generated.rs index d1050b8264..840be6a489 100644 --- a/frb_example/flutter_via_create/rust/src/frb_generated.rs +++ b/frb_example/flutter_via_create/rust/src/frb_generated.rs @@ -22,7 +22,7 @@ // Section: imports use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; -use flutter_rust_bridge::for_generated::{transform_result_dco, Lockable}; +use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; // Section: boilerplate diff --git a/frb_example/flutter_via_create/rust/src/frb_generated.web.rs b/frb_example/flutter_via_create/rust/src/frb_generated.web.rs index bc660479e8..9b5319b77a 100644 --- a/frb_example/flutter_via_create/rust/src/frb_generated.web.rs +++ b/frb_example/flutter_via_create/rust/src/frb_generated.web.rs @@ -7,7 +7,7 @@ use super::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; use flutter_rust_bridge::for_generated::wasm_bindgen; use flutter_rust_bridge::for_generated::wasm_bindgen::prelude::*; -use flutter_rust_bridge::for_generated::{transform_result_dco, Lockable}; +use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; // Section: boilerplate diff --git a/frb_example/flutter_via_integrate/rust/src/frb_generated.io.rs b/frb_example/flutter_via_integrate/rust/src/frb_generated.io.rs index 1784fece63..ae9a0b18ac 100644 --- a/frb_example/flutter_via_integrate/rust/src/frb_generated.io.rs +++ b/frb_example/flutter_via_integrate/rust/src/frb_generated.io.rs @@ -5,7 +5,7 @@ use super::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; -use flutter_rust_bridge::for_generated::{transform_result_dco, Lockable}; +use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; // Section: boilerplate diff --git a/frb_example/flutter_via_integrate/rust/src/frb_generated.rs b/frb_example/flutter_via_integrate/rust/src/frb_generated.rs index d1050b8264..840be6a489 100644 --- a/frb_example/flutter_via_integrate/rust/src/frb_generated.rs +++ b/frb_example/flutter_via_integrate/rust/src/frb_generated.rs @@ -22,7 +22,7 @@ // Section: imports use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; -use flutter_rust_bridge::for_generated::{transform_result_dco, Lockable}; +use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; // Section: boilerplate diff --git a/frb_example/flutter_via_integrate/rust/src/frb_generated.web.rs b/frb_example/flutter_via_integrate/rust/src/frb_generated.web.rs index bc660479e8..9b5319b77a 100644 --- a/frb_example/flutter_via_integrate/rust/src/frb_generated.web.rs +++ b/frb_example/flutter_via_integrate/rust/src/frb_generated.web.rs @@ -7,7 +7,7 @@ use super::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; use flutter_rust_bridge::for_generated::wasm_bindgen; use flutter_rust_bridge::for_generated::wasm_bindgen::prelude::*; -use flutter_rust_bridge::for_generated::{transform_result_dco, Lockable}; +use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; // Section: boilerplate diff --git a/frb_example/gallery/rust/src/frb_generated.io.rs b/frb_example/gallery/rust/src/frb_generated.io.rs index 1784fece63..ae9a0b18ac 100644 --- a/frb_example/gallery/rust/src/frb_generated.io.rs +++ b/frb_example/gallery/rust/src/frb_generated.io.rs @@ -5,7 +5,7 @@ use super::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; -use flutter_rust_bridge::for_generated::{transform_result_dco, Lockable}; +use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; // Section: boilerplate diff --git a/frb_example/gallery/rust/src/frb_generated.rs b/frb_example/gallery/rust/src/frb_generated.rs index 007ca0b730..f3a14ec80d 100644 --- a/frb_example/gallery/rust/src/frb_generated.rs +++ b/frb_example/gallery/rust/src/frb_generated.rs @@ -22,7 +22,7 @@ // Section: imports use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; -use flutter_rust_bridge::for_generated::{transform_result_dco, Lockable}; +use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; // Section: boilerplate diff --git a/frb_example/gallery/rust/src/frb_generated.web.rs b/frb_example/gallery/rust/src/frb_generated.web.rs index bc660479e8..9b5319b77a 100644 --- a/frb_example/gallery/rust/src/frb_generated.web.rs +++ b/frb_example/gallery/rust/src/frb_generated.web.rs @@ -7,7 +7,7 @@ use super::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; use flutter_rust_bridge::for_generated::wasm_bindgen; use flutter_rust_bridge::for_generated::wasm_bindgen::prelude::*; -use flutter_rust_bridge::for_generated::{transform_result_dco, Lockable}; +use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; // Section: boilerplate diff --git a/frb_example/integrate_third_party/rust/src/frb_generated.io.rs b/frb_example/integrate_third_party/rust/src/frb_generated.io.rs index 8cd0ab6ce7..bd867f44b9 100644 --- a/frb_example/integrate_third_party/rust/src/frb_generated.io.rs +++ b/frb_example/integrate_third_party/rust/src/frb_generated.io.rs @@ -29,7 +29,7 @@ use crate::api::override_web_audio_api::StereoPannerNodeExt; use crate::api::override_web_audio_api::WaveShaperNodeExt; use crate::api::simple::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; -use flutter_rust_bridge::for_generated::{transform_result_dco, Lockable}; +use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; use web_audio_api::context::BaseAudioContext; use web_audio_api::context::*; diff --git a/frb_example/integrate_third_party/rust/src/frb_generated.rs b/frb_example/integrate_third_party/rust/src/frb_generated.rs index 09abe219d1..55c1505456 100644 --- a/frb_example/integrate_third_party/rust/src/frb_generated.rs +++ b/frb_example/integrate_third_party/rust/src/frb_generated.rs @@ -46,7 +46,7 @@ use crate::api::override_web_audio_api::StereoPannerNodeExt; use crate::api::override_web_audio_api::WaveShaperNodeExt; use crate::api::simple::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; -use flutter_rust_bridge::for_generated::{transform_result_dco, Lockable}; +use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; use web_audio_api::context::BaseAudioContext; use web_audio_api::context::*; diff --git a/frb_example/integrate_third_party/rust/src/frb_generated.web.rs b/frb_example/integrate_third_party/rust/src/frb_generated.web.rs index 826fee87e1..9d6dfa2b3b 100644 --- a/frb_example/integrate_third_party/rust/src/frb_generated.web.rs +++ b/frb_example/integrate_third_party/rust/src/frb_generated.web.rs @@ -31,7 +31,7 @@ use crate::api::simple::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; use flutter_rust_bridge::for_generated::wasm_bindgen; use flutter_rust_bridge::for_generated::wasm_bindgen::prelude::*; -use flutter_rust_bridge::for_generated::{transform_result_dco, Lockable}; +use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; use web_audio_api::context::BaseAudioContext; use web_audio_api::context::*; diff --git a/frb_example/pure_dart/frb_generated.h b/frb_example/pure_dart/frb_generated.h index e61abe5896..9d1ffcb16d 100644 --- a/frb_example/pure_dart/frb_generated.h +++ b/frb_example/pure_dart/frb_generated.h @@ -8332,6 +8332,76 @@ void frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__impl_trait_tw void frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__impl_trait_twin_sync_sse__StructTwoWithTraitTwinSyncSse_simple_trait_fn_with_default_impl_twin_sync_sse(int64_t port_); +WireSyncRust2DartSse frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync(uint8_t *ptr_, + int32_t rust_vec_len_, + int32_t data_len_); + +WireSyncRust2DartSse frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync(uint8_t *ptr_, + int32_t rust_vec_len_, + int32_t data_len_); + +void frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_arg_generic_lifetime_twin_sync(int64_t port_, + uint8_t *ptr_, + int32_t rust_vec_len_, + int32_t data_len_); + +void frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_nested_type_with_lifetime_twin_sync(int64_t port_, + uint8_t *ptr_, + int32_t rust_vec_len_, + int32_t data_len_); + +WireSyncRust2DartSse frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync(uint8_t *ptr_, + int32_t rust_vec_len_, + int32_t data_len_); + +WireSyncRust2DartSse frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync(uint8_t *ptr_, + int32_t rust_vec_len_, + int32_t data_len_); + +void frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_compute_with_multi_arg_having_lifetime_twin_sync(int64_t port_, + uint8_t *ptr_, + int32_t rust_vec_len_, + int32_t data_len_); + +WireSyncRust2DartSse frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_mut_self_twin_sync(uint8_t *ptr_, + int32_t rust_vec_len_, + int32_t data_len_); + +WireSyncRust2DartSse frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_self_twin_sync(uint8_t *ptr_, + int32_t rust_vec_len_, + int32_t data_len_); + +void frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_type_with_lifetime_twin_sync(int64_t port_, + uint8_t *ptr_, + int32_t rust_vec_len_, + int32_t data_len_); + +void frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_with_unrelated_borrowed_arg_twin_sync(int64_t port_, + uint8_t *ptr_, + int32_t rust_vec_len_, + int32_t data_len_); + +WireSyncRust2DartSse frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_twin_sync(uint8_t *ptr_, + int32_t rust_vec_len_, + int32_t data_len_); + +WireSyncRust2DartSse frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_with_logger_twin_sync(uint8_t *ptr_, + int32_t rust_vec_len_, + int32_t data_len_); + +WireSyncRust2DartSse frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_mut_self_twin_sync(uint8_t *ptr_, + int32_t rust_vec_len_, + int32_t data_len_); + +WireSyncRust2DartSse frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_self_twin_sync(uint8_t *ptr_, + int32_t rust_vec_len_, + int32_t data_len_); + +void frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__lt_compute_with_lifetime_function_twin_sync(int64_t port_, + uint8_t *ptr_, + int32_t rust_vec_len_, + int32_t data_len_); + void frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__map_and_set_twin_rust_async__func_hash_map_i32_i32_twin_rust_async(int64_t port_, struct wire_cst_list_record_i_32_i_32 *arg); @@ -13776,22 +13846,42 @@ void frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flu void frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic(const void *ptr); +void frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic(const void *ptr); + +void frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic(const void *ptr); + void frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic(const void *ptr); void frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic(const void *ptr); +void frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic(const void *ptr); + +void frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic(const void *ptr); + void frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic(const void *ptr); void frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic(const void *ptr); +void frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic(const void *ptr); + +void frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic(const void *ptr); + void frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal(const void *ptr); void frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal(const void *ptr); +void frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync(const void *ptr); + +void frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync(const void *ptr); + void frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal(const void *ptr); void frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal(const void *ptr); +void frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync(const void *ptr); + +void frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync(const void *ptr); + void frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal(const void *ptr); void frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal(const void *ptr); @@ -15504,10 +15594,15 @@ static int64_t dummy_method_to_enforce_bundling(void) { dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEnumWithGoodAndOpaqueWithoutOptionTwinSyncSseMoi); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyNodeTwinNormal); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleEnumTwinMoi); @@ -15713,10 +15808,15 @@ static int64_t dummy_method_to_enforce_bundling(void) { dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEnumWithGoodAndOpaqueWithoutOptionTwinSyncSseMoi); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyNodeTwinNormal); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleEnumTwinMoi); @@ -17194,6 +17294,22 @@ static int64_t dummy_method_to_enforce_bundling(void) { dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__impl_trait_twin_sync_sse__StructTwoWithTraitTwinSyncSse_simple_trait_fn_receiver_borrow_twin_sync_sse); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__impl_trait_twin_sync_sse__StructTwoWithTraitTwinSyncSse_simple_trait_fn_twin_sync_sse); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__impl_trait_twin_sync_sse__StructTwoWithTraitTwinSyncSse_simple_trait_fn_with_default_impl_twin_sync_sse); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_arg_generic_lifetime_twin_sync); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_nested_type_with_lifetime_twin_sync); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_compute_with_multi_arg_having_lifetime_twin_sync); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_mut_self_twin_sync); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_self_twin_sync); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_type_with_lifetime_twin_sync); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_with_unrelated_borrowed_arg_twin_sync); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_twin_sync); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_with_logger_twin_sync); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_mut_self_twin_sync); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_self_twin_sync); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__lt_compute_with_lifetime_function_twin_sync); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__map_and_set_twin_rust_async__func_hash_map_i32_i32_twin_rust_async); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__map_and_set_twin_rust_async__func_hash_map_string_bytes_twin_rust_async); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__map_and_set_twin_rust_async__func_hash_map_string_complex_enum_twin_rust_async); diff --git a/frb_example/pure_dart/lib/src/rust/api/pseudo_manual/lifetimeable_twin_sync.dart b/frb_example/pure_dart/lib/src/rust/api/pseudo_manual/lifetimeable_twin_sync.dart new file mode 100644 index 0000000000..2e261481ca --- /dev/null +++ b/frb_example/pure_dart/lib/src/rust/api/pseudo_manual/lifetimeable_twin_sync.dart @@ -0,0 +1,92 @@ +// This file is automatically generated, so please do not edit it. +// Generated by `flutter_rust_bridge`@ 2.0.0-dev.39. + +// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import + +import '../../frb_generated.dart'; +import '../misc_no_twin_example_a.dart'; +import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; + +/// Functions (other tests are mainly methods) +Future ltComputeWithLifetimeFunctionTwinSync( + {required LtOwnedStructTwinSync arg}) => + RustLib.instance.api + .crateApiPseudoManualLifetimeableTwinSyncLtComputeWithLifetimeFunctionTwinSync( + arg: arg); + +// Rust type: RustOpaqueNom >>> +abstract class LtNestedTypeWithLifetimeTwinSync implements RustOpaqueInterface { + String greetBorrowMutSelfTwinSync(); + + String greetBorrowSelfTwinSync(); +} + +// Rust type: RustOpaqueNom >>> +abstract class LtTypeWithLifetimeTwinSync implements RustOpaqueInterface { + /// Input argument has type `T<'a>` (other tests mainly are `&'a T`) + static Future computeArgGenericLifetimeTwinSync( + {required LtTypeWithLifetimeTwinSync arg}) => + RustLib.instance.api + .crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticComputeArgGenericLifetimeTwinSync( + arg: arg); + + /// Input lifetimeable and output another lifetimeable + Future + computeNestedTypeWithLifetimeTwinSync(); + + /// `&mut T` where T is lifetimeable + String greetBorrowMutSelfTwinSync(); + + /// `&T` where T is lifetimeable + String greetBorrowSelfTwinSync(); +} + +// Rust type: RustOpaqueNom >>> +abstract class LtTypeWithMultiDepTwinSync implements RustOpaqueInterface { + /// Multiple input args have lifetime + static Future< + LtTypeWithMultiDepTwinSync> computeWithMultiArgHavingLifetimeTwinSync( + {required LtOwnedStructTwinSync a, + required LtOwnedStructTwinSync b, + required LtOwnedStructTwinSync unrelatedBorrowed, + required LtOwnedStructTwinSync unrelatedOwned}) => + RustLib.instance.api + .crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstaticComputeWithMultiArgHavingLifetimeTwinSync( + a: a, + b: b, + unrelatedBorrowed: unrelatedBorrowed, + unrelatedOwned: unrelatedOwned); + + List greetBorrowMutSelfTwinSync(); + + List greetBorrowSelfTwinSync(); +} + +// Rust type: RustOpaqueNom> +abstract class LtOwnedStructTwinSync implements RustOpaqueInterface { + /// `fn f(x: &'a T) -> S<'a>` + Future computeTypeWithLifetimeTwinSync(); + + /// The unrelated arg should not affect results + Future computeWithUnrelatedBorrowedArgTwinSync( + {required LtOwnedStructTwinSync unrelatedBorrowed, + required LtOwnedStructTwinSync unrelatedOwned}); + + static LtOwnedStructTwinSync createTwinSync({required String value}) => RustLib + .instance.api + .crateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncCreateTwinSync( + value: value); + + static LtOwnedStructTwinSync createWithLoggerTwinSync( + {required String value, required SimpleLogger logger}) => + RustLib.instance.api + .crateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncCreateWithLoggerTwinSync( + value: value, logger: logger); +} + +// Rust type: RustOpaqueNom> +abstract class LtSubStructTwinSync implements RustOpaqueInterface { + String greetBorrowMutSelfTwinSync(); + + String greetBorrowSelfTwinSync(); +} diff --git a/frb_example/pure_dart/lib/src/rust/frb_generated.dart b/frb_example/pure_dart/lib/src/rust/frb_generated.dart index f021837a44..b8ce01658b 100644 --- a/frb_example/pure_dart/lib/src/rust/frb_generated.dart +++ b/frb_example/pure_dart/lib/src/rust/frb_generated.dart @@ -137,6 +137,7 @@ import 'api/pseudo_manual/external_type_in_crate_twin_sync_sse.dart'; import 'api/pseudo_manual/impl_trait_twin_sse.dart'; import 'api/pseudo_manual/impl_trait_twin_sync.dart'; import 'api/pseudo_manual/impl_trait_twin_sync_sse.dart'; +import 'api/pseudo_manual/lifetimeable_twin_sync.dart'; import 'api/pseudo_manual/map_and_set_twin_rust_async.dart'; import 'api/pseudo_manual/map_and_set_twin_rust_async_sse.dart'; import 'api/pseudo_manual/map_and_set_twin_sse.dart'; @@ -325,7 +326,7 @@ class RustLib extends BaseEntrypoint { String get codegenVersion => '2.0.0-dev.39'; @override - int get rustContentHash => -1992972191; + int get rustContentHash => 345629269; static const kDefaultExternalLibraryLoaderConfig = ExternalLibraryLoaderConfig( @@ -5239,6 +5240,75 @@ abstract class RustLibApi extends BaseApi { Future crateApiPseudoManualImplTraitTwinSyncSseStructTwoWithTraitTwinSyncSseSimpleTraitFnWithDefaultImplTwinSyncSse(); + String + crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstaticGreetBorrowMutSelfTwinSync( + {required LtNestedTypeWithLifetimeTwinSync that}); + + String + crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstaticGreetBorrowSelfTwinSync( + {required LtNestedTypeWithLifetimeTwinSync that}); + + Future + crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticComputeArgGenericLifetimeTwinSync( + {required LtTypeWithLifetimeTwinSync arg}); + + Future + crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticComputeNestedTypeWithLifetimeTwinSync( + {required LtTypeWithLifetimeTwinSync that}); + + String + crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticGreetBorrowMutSelfTwinSync( + {required LtTypeWithLifetimeTwinSync that}); + + String + crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticGreetBorrowSelfTwinSync( + {required LtTypeWithLifetimeTwinSync that}); + + Future + crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstaticComputeWithMultiArgHavingLifetimeTwinSync( + {required LtOwnedStructTwinSync a, + required LtOwnedStructTwinSync b, + required LtOwnedStructTwinSync unrelatedBorrowed, + required LtOwnedStructTwinSync unrelatedOwned}); + + List + crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstaticGreetBorrowMutSelfTwinSync( + {required LtTypeWithMultiDepTwinSync that}); + + List + crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstaticGreetBorrowSelfTwinSync( + {required LtTypeWithMultiDepTwinSync that}); + + Future + crateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncComputeTypeWithLifetimeTwinSync( + {required LtOwnedStructTwinSync that}); + + Future + crateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncComputeWithUnrelatedBorrowedArgTwinSync( + {required LtOwnedStructTwinSync that, + required LtOwnedStructTwinSync unrelatedBorrowed, + required LtOwnedStructTwinSync unrelatedOwned}); + + LtOwnedStructTwinSync + crateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncCreateTwinSync( + {required String value}); + + LtOwnedStructTwinSync + crateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncCreateWithLoggerTwinSync( + {required String value, required SimpleLogger logger}); + + String + crateApiPseudoManualLifetimeableTwinSyncLtSubStructTwinSyncGreetBorrowMutSelfTwinSync( + {required LtSubStructTwinSync that}); + + String + crateApiPseudoManualLifetimeableTwinSyncLtSubStructTwinSyncGreetBorrowSelfTwinSync( + {required LtSubStructTwinSync that}); + + Future + crateApiPseudoManualLifetimeableTwinSyncLtComputeWithLifetimeFunctionTwinSync( + {required LtOwnedStructTwinSync arg}); + Future> crateApiPseudoManualMapAndSetTwinRustAsyncFuncHashMapI32I32TwinRustAsync( {required Map arg}); @@ -11148,6 +11218,15 @@ abstract class RustLibApi extends BaseApi { CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormalPtr; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtNestedTypeWithLifetimeTwinSync; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinSync; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinSyncPtr; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_LtTypeWithLifetimeTwinNormal; @@ -11157,6 +11236,15 @@ abstract class RustLibApi extends BaseApi { CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormalPtr; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtTypeWithLifetimeTwinSync; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinSync; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinSyncPtr; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_LtTypeWithMultiDepTwinNormal; @@ -11166,6 +11254,15 @@ abstract class RustLibApi extends BaseApi { CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtTypeWithMultiDepTwinSync; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinSync; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinSyncPtr; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_LtOwnedStructTwinNormal; @@ -11175,6 +11272,15 @@ abstract class RustLibApi extends BaseApi { CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_LtOwnedStructTwinNormalPtr; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtOwnedStructTwinSync; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtOwnedStructTwinSync; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtOwnedStructTwinSyncPtr; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_LtSubStructTwinNormal; @@ -11184,6 +11290,15 @@ abstract class RustLibApi extends BaseApi { CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_LtSubStructTwinNormalPtr; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtSubStructTwinSync; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtSubStructTwinSync; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtSubStructTwinSyncPtr; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_MyAudioParamTwinNormal; @@ -53023,6 +53138,552 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { argNames: [], ); + @override + String + crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstaticGreetBorrowMutSelfTwinSync( + {required LtNestedTypeWithLifetimeTwinSync that}) { + return handler.executeSync(SyncTask( + callFfi: () { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + that, serializer); + final raw_ = serializer.intoRaw(); + return wire + .wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync( + raw_.ptr, raw_.rustVecLen, raw_.dataLen); + }, + codec: SseCodec( + decodeSuccessData: sse_decode_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstaticGreetBorrowMutSelfTwinSyncConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstaticGreetBorrowMutSelfTwinSyncConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync", + argNames: ["that"], + ); + + @override + String + crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstaticGreetBorrowSelfTwinSync( + {required LtNestedTypeWithLifetimeTwinSync that}) { + return handler.executeSync(SyncTask( + callFfi: () { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + that, serializer); + final raw_ = serializer.intoRaw(); + return wire + .wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync( + raw_.ptr, raw_.rustVecLen, raw_.dataLen); + }, + codec: SseCodec( + decodeSuccessData: sse_decode_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstaticGreetBorrowSelfTwinSyncConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstaticGreetBorrowSelfTwinSyncConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync", + argNames: ["that"], + ); + + @override + Future + crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticComputeArgGenericLifetimeTwinSync( + {required LtTypeWithLifetimeTwinSync arg}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + arg, serializer); + final raw_ = serializer.intoRaw(); + return wire + .wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_arg_generic_lifetime_twin_sync( + port_, raw_.ptr, raw_.rustVecLen, raw_.dataLen); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic, + decodeErrorData: null, + ), + constMeta: + kCrateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticComputeArgGenericLifetimeTwinSyncConstMeta, + argValues: [arg], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticComputeArgGenericLifetimeTwinSyncConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_arg_generic_lifetime_twin_sync", + argNames: ["arg"], + ); + + @override + Future + crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticComputeNestedTypeWithLifetimeTwinSync( + {required LtTypeWithLifetimeTwinSync that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + that, serializer); + final raw_ = serializer.intoRaw(); + return wire + .wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_nested_type_with_lifetime_twin_sync( + port_, raw_.ptr, raw_.rustVecLen, raw_.dataLen); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic, + decodeErrorData: null, + ), + constMeta: + kCrateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticComputeNestedTypeWithLifetimeTwinSyncConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticComputeNestedTypeWithLifetimeTwinSyncConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_nested_type_with_lifetime_twin_sync", + argNames: ["that"], + ); + + @override + String + crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticGreetBorrowMutSelfTwinSync( + {required LtTypeWithLifetimeTwinSync that}) { + return handler.executeSync(SyncTask( + callFfi: () { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + that, serializer); + final raw_ = serializer.intoRaw(); + return wire + .wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync( + raw_.ptr, raw_.rustVecLen, raw_.dataLen); + }, + codec: SseCodec( + decodeSuccessData: sse_decode_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticGreetBorrowMutSelfTwinSyncConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticGreetBorrowMutSelfTwinSyncConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync", + argNames: ["that"], + ); + + @override + String + crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticGreetBorrowSelfTwinSync( + {required LtTypeWithLifetimeTwinSync that}) { + return handler.executeSync(SyncTask( + callFfi: () { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + that, serializer); + final raw_ = serializer.intoRaw(); + return wire + .wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync( + raw_.ptr, raw_.rustVecLen, raw_.dataLen); + }, + codec: SseCodec( + decodeSuccessData: sse_decode_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticGreetBorrowSelfTwinSyncConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticGreetBorrowSelfTwinSyncConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync", + argNames: ["that"], + ); + + @override + Future + crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstaticComputeWithMultiArgHavingLifetimeTwinSync( + {required LtOwnedStructTwinSync a, + required LtOwnedStructTwinSync b, + required LtOwnedStructTwinSync unrelatedBorrowed, + required LtOwnedStructTwinSync unrelatedOwned}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + a, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + b, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + unrelatedBorrowed, serializer); + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + unrelatedOwned, serializer); + final raw_ = serializer.intoRaw(); + return wire + .wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_compute_with_multi_arg_having_lifetime_twin_sync( + port_, raw_.ptr, raw_.rustVecLen, raw_.dataLen); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic, + decodeErrorData: null, + ), + constMeta: + kCrateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstaticComputeWithMultiArgHavingLifetimeTwinSyncConstMeta, + argValues: [a, b, unrelatedBorrowed, unrelatedOwned], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstaticComputeWithMultiArgHavingLifetimeTwinSyncConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_compute_with_multi_arg_having_lifetime_twin_sync", + argNames: ["a", "b", "unrelatedBorrowed", "unrelatedOwned"], + ); + + @override + List + crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstaticGreetBorrowMutSelfTwinSync( + {required LtTypeWithMultiDepTwinSync that}) { + return handler.executeSync(SyncTask( + callFfi: () { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + that, serializer); + final raw_ = serializer.intoRaw(); + return wire + .wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_mut_self_twin_sync( + raw_.ptr, raw_.rustVecLen, raw_.dataLen); + }, + codec: SseCodec( + decodeSuccessData: sse_decode_list_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstaticGreetBorrowMutSelfTwinSyncConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstaticGreetBorrowMutSelfTwinSyncConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_mut_self_twin_sync", + argNames: ["that"], + ); + + @override + List + crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstaticGreetBorrowSelfTwinSync( + {required LtTypeWithMultiDepTwinSync that}) { + return handler.executeSync(SyncTask( + callFfi: () { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + that, serializer); + final raw_ = serializer.intoRaw(); + return wire + .wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_self_twin_sync( + raw_.ptr, raw_.rustVecLen, raw_.dataLen); + }, + codec: SseCodec( + decodeSuccessData: sse_decode_list_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstaticGreetBorrowSelfTwinSyncConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstaticGreetBorrowSelfTwinSyncConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_self_twin_sync", + argNames: ["that"], + ); + + @override + Future + crateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncComputeTypeWithLifetimeTwinSync( + {required LtOwnedStructTwinSync that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + that, serializer); + final raw_ = serializer.intoRaw(); + return wire + .wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_type_with_lifetime_twin_sync( + port_, raw_.ptr, raw_.rustVecLen, raw_.dataLen); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic, + decodeErrorData: null, + ), + constMeta: + kCrateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncComputeTypeWithLifetimeTwinSyncConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncComputeTypeWithLifetimeTwinSyncConstMeta => + const TaskConstMeta( + debugName: + "LtOwnedStructTwinSync_compute_type_with_lifetime_twin_sync", + argNames: ["that"], + ); + + @override + Future + crateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncComputeWithUnrelatedBorrowedArgTwinSync( + {required LtOwnedStructTwinSync that, + required LtOwnedStructTwinSync unrelatedBorrowed, + required LtOwnedStructTwinSync unrelatedOwned}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + that, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + unrelatedBorrowed, serializer); + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + unrelatedOwned, serializer); + final raw_ = serializer.intoRaw(); + return wire + .wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_with_unrelated_borrowed_arg_twin_sync( + port_, raw_.ptr, raw_.rustVecLen, raw_.dataLen); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic, + decodeErrorData: null, + ), + constMeta: + kCrateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncComputeWithUnrelatedBorrowedArgTwinSyncConstMeta, + argValues: [that, unrelatedBorrowed, unrelatedOwned], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncComputeWithUnrelatedBorrowedArgTwinSyncConstMeta => + const TaskConstMeta( + debugName: + "LtOwnedStructTwinSync_compute_with_unrelated_borrowed_arg_twin_sync", + argNames: ["that", "unrelatedBorrowed", "unrelatedOwned"], + ); + + @override + LtOwnedStructTwinSync + crateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncCreateTwinSync( + {required String value}) { + return handler.executeSync(SyncTask( + callFfi: () { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_String(value, serializer); + final raw_ = serializer.intoRaw(); + return wire + .wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_twin_sync( + raw_.ptr, raw_.rustVecLen, raw_.dataLen); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync, + decodeErrorData: null, + ), + constMeta: + kCrateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncCreateTwinSyncConstMeta, + argValues: [value], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncCreateTwinSyncConstMeta => + const TaskConstMeta( + debugName: "LtOwnedStructTwinSync_create_twin_sync", + argNames: ["value"], + ); + + @override + LtOwnedStructTwinSync + crateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncCreateWithLoggerTwinSync( + {required String value, required SimpleLogger logger}) { + return handler.executeSync(SyncTask( + callFfi: () { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_String(value, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + logger, serializer); + final raw_ = serializer.intoRaw(); + return wire + .wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_with_logger_twin_sync( + raw_.ptr, raw_.rustVecLen, raw_.dataLen); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync, + decodeErrorData: null, + ), + constMeta: + kCrateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncCreateWithLoggerTwinSyncConstMeta, + argValues: [value, logger], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncCreateWithLoggerTwinSyncConstMeta => + const TaskConstMeta( + debugName: "LtOwnedStructTwinSync_create_with_logger_twin_sync", + argNames: ["value", "logger"], + ); + + @override + String + crateApiPseudoManualLifetimeableTwinSyncLtSubStructTwinSyncGreetBorrowMutSelfTwinSync( + {required LtSubStructTwinSync that}) { + return handler.executeSync(SyncTask( + callFfi: () { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + that, serializer); + final raw_ = serializer.intoRaw(); + return wire + .wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_mut_self_twin_sync( + raw_.ptr, raw_.rustVecLen, raw_.dataLen); + }, + codec: SseCodec( + decodeSuccessData: sse_decode_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiPseudoManualLifetimeableTwinSyncLtSubStructTwinSyncGreetBorrowMutSelfTwinSyncConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiPseudoManualLifetimeableTwinSyncLtSubStructTwinSyncGreetBorrowMutSelfTwinSyncConstMeta => + const TaskConstMeta( + debugName: "LtSubStructTwinSync_greet_borrow_mut_self_twin_sync", + argNames: ["that"], + ); + + @override + String + crateApiPseudoManualLifetimeableTwinSyncLtSubStructTwinSyncGreetBorrowSelfTwinSync( + {required LtSubStructTwinSync that}) { + return handler.executeSync(SyncTask( + callFfi: () { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + that, serializer); + final raw_ = serializer.intoRaw(); + return wire + .wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_self_twin_sync( + raw_.ptr, raw_.rustVecLen, raw_.dataLen); + }, + codec: SseCodec( + decodeSuccessData: sse_decode_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiPseudoManualLifetimeableTwinSyncLtSubStructTwinSyncGreetBorrowSelfTwinSyncConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiPseudoManualLifetimeableTwinSyncLtSubStructTwinSyncGreetBorrowSelfTwinSyncConstMeta => + const TaskConstMeta( + debugName: "LtSubStructTwinSync_greet_borrow_self_twin_sync", + argNames: ["that"], + ); + + @override + Future + crateApiPseudoManualLifetimeableTwinSyncLtComputeWithLifetimeFunctionTwinSync( + {required LtOwnedStructTwinSync arg}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + arg, serializer); + final raw_ = serializer.intoRaw(); + return wire + .wire__crate__api__pseudo_manual__lifetimeable_twin_sync__lt_compute_with_lifetime_function_twin_sync( + port_, raw_.ptr, raw_.rustVecLen, raw_.dataLen); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic, + decodeErrorData: null, + ), + constMeta: + kCrateApiPseudoManualLifetimeableTwinSyncLtComputeWithLifetimeFunctionTwinSyncConstMeta, + argValues: [arg], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiPseudoManualLifetimeableTwinSyncLtComputeWithLifetimeFunctionTwinSyncConstMeta => + const TaskConstMeta( + debugName: "lt_compute_with_lifetime_function_twin_sync", + argNames: ["arg"], + ); + @override Future> crateApiPseudoManualMapAndSetTwinRustAsyncFuncHashMapI32I32TwinRustAsync( @@ -95433,6 +96094,14 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormal => wire.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtNestedTypeWithLifetimeTwinSync => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinSync => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_LtTypeWithLifetimeTwinNormal => wire .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic; @@ -95441,6 +96110,14 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormal => wire .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtTypeWithLifetimeTwinSync => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinSync => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_LtTypeWithMultiDepTwinNormal => wire .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic; @@ -95449,6 +96126,14 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormal => wire .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtTypeWithMultiDepTwinSync => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinSync => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_LtOwnedStructTwinNormal => wire .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal; @@ -95457,6 +96142,14 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { get rust_arc_decrement_strong_count_LtOwnedStructTwinNormal => wire .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtOwnedStructTwinSync => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtOwnedStructTwinSync => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_LtSubStructTwinNormal => wire .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal; @@ -95465,6 +96158,14 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { get rust_arc_decrement_strong_count_LtSubStructTwinNormal => wire .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtSubStructTwinSync => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtSubStructTwinSync => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_MyAudioParamTwinNormal => wire .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal; @@ -96180,6 +96881,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { raw); } + @protected + LtNestedTypeWithLifetimeTwinSync + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + raw); + } + @protected LtTypeWithLifetimeTwinNormal dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( @@ -96189,6 +96899,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { raw); } + @protected + LtTypeWithLifetimeTwinSync + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + raw); + } + @protected LtTypeWithMultiDepTwinNormal dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( @@ -96198,6 +96917,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { raw); } + @protected + LtTypeWithMultiDepTwinSync + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + raw); + } + @protected MyNodeTwinNormal dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyNodeTwinNormal( @@ -96663,6 +97391,14 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { raw as List); } + @protected + LtOwnedStructTwinSync + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtOwnedStructTwinSyncImpl.frbInternalDcoDecode(raw as List); + } + @protected LtSubStructTwinNormal dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( @@ -96671,6 +97407,14 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return LtSubStructTwinNormalImpl.frbInternalDcoDecode(raw as List); } + @protected + LtSubStructTwinSync + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtSubStructTwinSyncImpl.frbInternalDcoDecode(raw as List); + } + @protected MyAudioParamTwinNormal dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -97520,6 +98264,14 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return LtSubStructTwinNormalImpl.frbInternalDcoDecode(raw as List); } + @protected + LtSubStructTwinSync + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtSubStructTwinSyncImpl.frbInternalDcoDecode(raw as List); + } + @protected NonCloneSimpleTwinMoi dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinMoi( @@ -97928,6 +98680,14 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { raw as List); } + @protected + LtOwnedStructTwinSync + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtOwnedStructTwinSyncImpl.frbInternalDcoDecode(raw as List); + } + @protected LtSubStructTwinNormal dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( @@ -97936,6 +98696,14 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return LtSubStructTwinNormalImpl.frbInternalDcoDecode(raw as List); } + @protected + LtSubStructTwinSync + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtSubStructTwinSyncImpl.frbInternalDcoDecode(raw as List); + } + @protected MyAudioParamTwinNormal dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -98646,6 +99414,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { 'Not implemented in this codec, please use the other one'); } + @protected + LtNestedTypeWithLifetimeTwinSync + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + throw UnimplementedError( + 'Not implemented in this codec, please use the other one'); + } + @protected LtTypeWithLifetimeTwinNormal dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( @@ -98655,6 +99432,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { 'Not implemented in this codec, please use the other one'); } + @protected + LtTypeWithLifetimeTwinSync + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + throw UnimplementedError( + 'Not implemented in this codec, please use the other one'); + } + @protected LtTypeWithMultiDepTwinNormal dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( @@ -98664,6 +99450,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { 'Not implemented in this codec, please use the other one'); } + @protected + LtTypeWithMultiDepTwinSync + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + throw UnimplementedError( + 'Not implemented in this codec, please use the other one'); + } + @protected LtNestedTypeWithLifetimeTwinNormal dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( @@ -98673,6 +99468,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { 'Not implemented in this codec, please use the other one'); } + @protected + LtNestedTypeWithLifetimeTwinSync + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + throw UnimplementedError( + 'Not implemented in this codec, please use the other one'); + } + @protected LtTypeWithLifetimeTwinNormal dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( @@ -98682,6 +99486,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { 'Not implemented in this codec, please use the other one'); } + @protected + LtTypeWithLifetimeTwinSync + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + throw UnimplementedError( + 'Not implemented in this codec, please use the other one'); + } + @protected LtTypeWithMultiDepTwinNormal dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( @@ -98691,6 +99504,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { 'Not implemented in this codec, please use the other one'); } + @protected + LtTypeWithMultiDepTwinSync + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + throw UnimplementedError( + 'Not implemented in this codec, please use the other one'); + } + @protected Map dco_decode_Map_String_String(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs @@ -100184,6 +101006,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { raw as List); } + @protected + LtNestedTypeWithLifetimeTwinSync + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtNestedTypeWithLifetimeTwinSyncImpl.frbInternalDcoDecode( + raw as List); + } + @protected LtTypeWithLifetimeTwinNormal dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( @@ -100193,6 +101024,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { raw as List); } + @protected + LtTypeWithLifetimeTwinSync + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtTypeWithLifetimeTwinSyncImpl.frbInternalDcoDecode( + raw as List); + } + @protected LtTypeWithMultiDepTwinNormal dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( @@ -100202,6 +101042,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { raw as List); } + @protected + LtTypeWithMultiDepTwinSync + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtTypeWithMultiDepTwinSyncImpl.frbInternalDcoDecode( + raw as List); + } + @protected LtOwnedStructTwinNormal dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -100211,6 +101060,14 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { raw as List); } + @protected + LtOwnedStructTwinSync + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtOwnedStructTwinSyncImpl.frbInternalDcoDecode(raw as List); + } + @protected LtSubStructTwinNormal dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( @@ -100219,6 +101076,14 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return LtSubStructTwinNormalImpl.frbInternalDcoDecode(raw as List); } + @protected + LtSubStructTwinSync + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtSubStructTwinSyncImpl.frbInternalDcoDecode(raw as List); + } + @protected MyAudioParamTwinNormal dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -117510,6 +118375,17 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return inner; } + @protected + LtNestedTypeWithLifetimeTwinSync + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + deserializer); + return inner; + } + @protected LtTypeWithLifetimeTwinNormal sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( @@ -117521,6 +118397,17 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return inner; } + @protected + LtTypeWithLifetimeTwinSync + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + deserializer); + return inner; + } + @protected LtTypeWithMultiDepTwinNormal sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( @@ -117532,6 +118419,17 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return inner; } + @protected + LtTypeWithMultiDepTwinSync + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + deserializer); + return inner; + } + @protected MyNodeTwinNormal sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyNodeTwinNormal( @@ -118050,6 +118948,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } + @protected + LtOwnedStructTwinSync + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtOwnedStructTwinSyncImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected LtSubStructTwinNormal sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( @@ -118059,6 +118966,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } + @protected + LtSubStructTwinSync + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtSubStructTwinSyncImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected MyAudioParamTwinNormal sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -118944,6 +119860,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } + @protected + LtSubStructTwinSync + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtSubStructTwinSyncImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected NonCloneSimpleTwinMoi sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinMoi( @@ -119370,6 +120295,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } + @protected + LtOwnedStructTwinSync + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtOwnedStructTwinSyncImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected LtSubStructTwinNormal sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( @@ -119379,6 +120313,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } + @protected + LtSubStructTwinSync + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtSubStructTwinSyncImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected MyAudioParamTwinNormal sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -120003,6 +120946,17 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return inner; } + @protected + LtNestedTypeWithLifetimeTwinSync + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + deserializer); + return inner; + } + @protected LtTypeWithLifetimeTwinNormal sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( @@ -120014,6 +120968,17 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return inner; } + @protected + LtTypeWithLifetimeTwinSync + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + deserializer); + return inner; + } + @protected LtTypeWithMultiDepTwinNormal sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( @@ -120025,6 +120990,17 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return inner; } + @protected + LtTypeWithMultiDepTwinSync + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + deserializer); + return inner; + } + @protected LtNestedTypeWithLifetimeTwinNormal sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( @@ -120036,6 +121012,17 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return inner; } + @protected + LtNestedTypeWithLifetimeTwinSync + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + deserializer); + return inner; + } + @protected LtTypeWithLifetimeTwinNormal sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( @@ -120047,6 +121034,17 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return inner; } + @protected + LtTypeWithLifetimeTwinSync + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + deserializer); + return inner; + } + @protected LtTypeWithMultiDepTwinNormal sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( @@ -120058,6 +121056,17 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return inner; } + @protected + LtTypeWithMultiDepTwinSync + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + deserializer); + return inner; + } + @protected Map sse_decode_Map_String_String( SseDeserializer deserializer) { @@ -121647,6 +122656,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } + @protected + LtNestedTypeWithLifetimeTwinSync + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtNestedTypeWithLifetimeTwinSyncImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected LtTypeWithLifetimeTwinNormal sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( @@ -121656,6 +122674,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } + @protected + LtTypeWithLifetimeTwinSync + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtTypeWithLifetimeTwinSyncImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected LtTypeWithMultiDepTwinNormal sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( @@ -121665,6 +122692,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } + @protected + LtTypeWithMultiDepTwinSync + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtTypeWithMultiDepTwinSyncImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected LtOwnedStructTwinNormal sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -121674,6 +122710,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } + @protected + LtOwnedStructTwinSync + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtOwnedStructTwinSyncImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected LtSubStructTwinNormal sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( @@ -121683,6 +122728,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } + @protected + LtSubStructTwinSync + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtSubStructTwinSyncImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected MyAudioParamTwinNormal sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -142546,6 +143600,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { self, serializer); } + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + LtNestedTypeWithLifetimeTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + self, serializer); + } + @protected void sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( @@ -142555,6 +143618,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { self, serializer); } + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + LtTypeWithLifetimeTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + self, serializer); + } + @protected void sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( @@ -142564,6 +143636,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { self, serializer); } + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + LtTypeWithMultiDepTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + self, serializer); + } + @protected void sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyNodeTwinNormal( @@ -143111,6 +144192,16 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + LtOwnedStructTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtOwnedStructTwinSyncImpl).frbInternalSseEncode(move: true), + serializer); + } + @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( @@ -143121,6 +144212,16 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + LtSubStructTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtSubStructTwinSyncImpl).frbInternalSseEncode(move: true), + serializer); + } + @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -144167,6 +145268,16 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } + @protected + void + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + LtSubStructTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtSubStructTwinSyncImpl).frbInternalSseEncode(move: false), + serializer); + } + @protected void sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinMoi( @@ -144677,6 +145788,16 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + LtOwnedStructTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtOwnedStructTwinSyncImpl).frbInternalSseEncode(move: false), + serializer); + } + @protected void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( @@ -144687,6 +145808,16 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + LtSubStructTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtSubStructTwinSyncImpl).frbInternalSseEncode(move: false), + serializer); + } + @protected void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -145580,6 +146711,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { self, serializer); } + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + LtNestedTypeWithLifetimeTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + self, serializer); + } + @protected void sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( @@ -145589,6 +146729,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { self, serializer); } + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + LtTypeWithLifetimeTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + self, serializer); + } + @protected void sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( @@ -145598,6 +146747,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { self, serializer); } + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + LtTypeWithMultiDepTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + self, serializer); + } + @protected void sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( @@ -145607,6 +146765,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { self, serializer); } + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + LtNestedTypeWithLifetimeTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + self, serializer); + } + @protected void sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( @@ -145616,6 +146783,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { self, serializer); } + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + LtTypeWithLifetimeTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + self, serializer); + } + @protected void sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( @@ -145625,6 +146801,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { self, serializer); } + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + LtTypeWithMultiDepTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + self, serializer); + } + @protected void sse_encode_Map_String_String( Map self, SseSerializer serializer) { @@ -147322,6 +148507,17 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + LtNestedTypeWithLifetimeTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtNestedTypeWithLifetimeTwinSyncImpl) + .frbInternalSseEncode(move: null), + serializer); + } + @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( @@ -147333,6 +148529,17 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + LtTypeWithLifetimeTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtTypeWithLifetimeTwinSyncImpl) + .frbInternalSseEncode(move: null), + serializer); + } + @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( @@ -147344,6 +148551,17 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + LtTypeWithMultiDepTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtTypeWithMultiDepTwinSyncImpl) + .frbInternalSseEncode(move: null), + serializer); + } + @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( @@ -147354,6 +148572,16 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + LtOwnedStructTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtOwnedStructTwinSyncImpl).frbInternalSseEncode(move: null), + serializer); + } + @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( @@ -147364,6 +148592,16 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + LtSubStructTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtSubStructTwinSyncImpl).frbInternalSseEncode(move: null), + serializer); + } + @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -165693,6 +166931,38 @@ class LtNestedTypeWithLifetimeTwinNormalImpl extends RustOpaque ); } +@sealed +class LtNestedTypeWithLifetimeTwinSyncImpl extends RustOpaque + implements LtNestedTypeWithLifetimeTwinSync { + // Not to be used by end users + LtNestedTypeWithLifetimeTwinSyncImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + LtNestedTypeWithLifetimeTwinSyncImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: RustLib.instance.api + .rust_arc_increment_strong_count_LtNestedTypeWithLifetimeTwinSync, + rustArcDecrementStrongCount: RustLib.instance.api + .rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinSync, + rustArcDecrementStrongCountPtr: RustLib.instance.api + .rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinSyncPtr, + ); + + String greetBorrowMutSelfTwinSync() => RustLib.instance.api + .crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstaticGreetBorrowMutSelfTwinSync( + that: this, + ); + + String greetBorrowSelfTwinSync() => RustLib.instance.api + .crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstaticGreetBorrowSelfTwinSync( + that: this, + ); +} + @sealed class LtOwnedStructTwinNormalImpl extends RustOpaque implements LtOwnedStructTwinNormal { @@ -165733,6 +167003,45 @@ class LtOwnedStructTwinNormalImpl extends RustOpaque unrelatedOwned: unrelatedOwned); } +@sealed +class LtOwnedStructTwinSyncImpl extends RustOpaque + implements LtOwnedStructTwinSync { + // Not to be used by end users + LtOwnedStructTwinSyncImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + LtOwnedStructTwinSyncImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: RustLib + .instance.api.rust_arc_increment_strong_count_LtOwnedStructTwinSync, + rustArcDecrementStrongCount: RustLib + .instance.api.rust_arc_decrement_strong_count_LtOwnedStructTwinSync, + rustArcDecrementStrongCountPtr: RustLib + .instance.api.rust_arc_decrement_strong_count_LtOwnedStructTwinSyncPtr, + ); + + /// `fn f(x: &'a T) -> S<'a>` + Future computeTypeWithLifetimeTwinSync() => + RustLib.instance.api + .crateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncComputeTypeWithLifetimeTwinSync( + that: this, + ); + + /// The unrelated arg should not affect results + Future computeWithUnrelatedBorrowedArgTwinSync( + {required LtOwnedStructTwinSync unrelatedBorrowed, + required LtOwnedStructTwinSync unrelatedOwned}) => + RustLib.instance.api + .crateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncComputeWithUnrelatedBorrowedArgTwinSync( + that: this, + unrelatedBorrowed: unrelatedBorrowed, + unrelatedOwned: unrelatedOwned); +} + @sealed class LtSubStructTwinNormalImpl extends RustOpaque implements LtSubStructTwinNormal { @@ -165765,6 +167074,38 @@ class LtSubStructTwinNormalImpl extends RustOpaque ); } +@sealed +class LtSubStructTwinSyncImpl extends RustOpaque + implements LtSubStructTwinSync { + // Not to be used by end users + LtSubStructTwinSyncImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + LtSubStructTwinSyncImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: RustLib + .instance.api.rust_arc_increment_strong_count_LtSubStructTwinSync, + rustArcDecrementStrongCount: RustLib + .instance.api.rust_arc_decrement_strong_count_LtSubStructTwinSync, + rustArcDecrementStrongCountPtr: RustLib + .instance.api.rust_arc_decrement_strong_count_LtSubStructTwinSyncPtr, + ); + + String greetBorrowMutSelfTwinSync() => RustLib.instance.api + .crateApiPseudoManualLifetimeableTwinSyncLtSubStructTwinSyncGreetBorrowMutSelfTwinSync( + that: this, + ); + + String greetBorrowSelfTwinSync() => RustLib.instance.api + .crateApiPseudoManualLifetimeableTwinSyncLtSubStructTwinSyncGreetBorrowSelfTwinSync( + that: this, + ); +} + @sealed class LtTypeWithLifetimeTwinNormalImpl extends RustOpaque implements LtTypeWithLifetimeTwinNormal { @@ -165806,6 +167147,47 @@ class LtTypeWithLifetimeTwinNormalImpl extends RustOpaque ); } +@sealed +class LtTypeWithLifetimeTwinSyncImpl extends RustOpaque + implements LtTypeWithLifetimeTwinSync { + // Not to be used by end users + LtTypeWithLifetimeTwinSyncImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + LtTypeWithLifetimeTwinSyncImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: RustLib.instance.api + .rust_arc_increment_strong_count_LtTypeWithLifetimeTwinSync, + rustArcDecrementStrongCount: RustLib.instance.api + .rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinSync, + rustArcDecrementStrongCountPtr: RustLib.instance.api + .rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinSyncPtr, + ); + + /// Input lifetimeable and output another lifetimeable + Future + computeNestedTypeWithLifetimeTwinSync() => RustLib.instance.api + .crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticComputeNestedTypeWithLifetimeTwinSync( + that: this, + ); + + /// `&mut T` where T is lifetimeable + String greetBorrowMutSelfTwinSync() => RustLib.instance.api + .crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticGreetBorrowMutSelfTwinSync( + that: this, + ); + + /// `&T` where T is lifetimeable + String greetBorrowSelfTwinSync() => RustLib.instance.api + .crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticGreetBorrowSelfTwinSync( + that: this, + ); +} + @sealed class LtTypeWithMultiDepTwinNormalImpl extends RustOpaque implements LtTypeWithMultiDepTwinNormal { @@ -165838,6 +167220,38 @@ class LtTypeWithMultiDepTwinNormalImpl extends RustOpaque ); } +@sealed +class LtTypeWithMultiDepTwinSyncImpl extends RustOpaque + implements LtTypeWithMultiDepTwinSync { + // Not to be used by end users + LtTypeWithMultiDepTwinSyncImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + LtTypeWithMultiDepTwinSyncImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: RustLib.instance.api + .rust_arc_increment_strong_count_LtTypeWithMultiDepTwinSync, + rustArcDecrementStrongCount: RustLib.instance.api + .rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinSync, + rustArcDecrementStrongCountPtr: RustLib.instance.api + .rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinSyncPtr, + ); + + List greetBorrowMutSelfTwinSync() => RustLib.instance.api + .crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstaticGreetBorrowMutSelfTwinSync( + that: this, + ); + + List greetBorrowSelfTwinSync() => RustLib.instance.api + .crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstaticGreetBorrowSelfTwinSync( + that: this, + ); +} + @sealed class MutexHideDataTwinMoiImpl extends RustOpaque implements MutexHideDataTwinMoi { diff --git a/frb_example/pure_dart/lib/src/rust/frb_generated.io.dart b/frb_example/pure_dart/lib/src/rust/frb_generated.io.dart index 5256361cea..b090803bc2 100644 --- a/frb_example/pure_dart/lib/src/rust/frb_generated.io.dart +++ b/frb_example/pure_dart/lib/src/rust/frb_generated.io.dart @@ -133,6 +133,7 @@ import 'api/pseudo_manual/external_type_in_crate_twin_sync_sse.dart'; import 'api/pseudo_manual/impl_trait_twin_sse.dart'; import 'api/pseudo_manual/impl_trait_twin_sync.dart'; import 'api/pseudo_manual/impl_trait_twin_sync_sse.dart'; +import 'api/pseudo_manual/lifetimeable_twin_sync.dart'; import 'api/pseudo_manual/map_and_set_twin_rust_async.dart'; import 'api/pseudo_manual/map_and_set_twin_rust_async_sse.dart'; import 'api/pseudo_manual/map_and_set_twin_sse.dart'; @@ -746,22 +747,42 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormalPtr => wire._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstaticPtr; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinSyncPtr => + wire._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstaticPtr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormalPtr => wire ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstaticPtr; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinSyncPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstaticPtr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr => wire ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstaticPtr; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinSyncPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstaticPtr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_LtOwnedStructTwinNormalPtr => wire ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormalPtr; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtOwnedStructTwinSyncPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSyncPtr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_LtSubStructTwinNormalPtr => wire ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormalPtr; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtSubStructTwinSyncPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSyncPtr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_MyAudioParamTwinNormalPtr => wire ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormalPtr; @@ -1120,16 +1141,31 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( dynamic raw); + @protected + LtNestedTypeWithLifetimeTwinSync + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + dynamic raw); + @protected LtTypeWithLifetimeTwinNormal dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( dynamic raw); + @protected + LtTypeWithLifetimeTwinSync + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + dynamic raw); + @protected LtTypeWithMultiDepTwinNormal dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( dynamic raw); + @protected + LtTypeWithMultiDepTwinSync + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + dynamic raw); + @protected MyNodeTwinNormal dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyNodeTwinNormal( @@ -1395,11 +1431,21 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( dynamic raw); + @protected + LtOwnedStructTwinSync + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + dynamic raw); + @protected LtSubStructTwinNormal dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( dynamic raw); + @protected + LtSubStructTwinSync + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + dynamic raw); + @protected MyAudioParamTwinNormal dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -1885,6 +1931,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( dynamic raw); + @protected + LtSubStructTwinSync + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + dynamic raw); + @protected NonCloneSimpleTwinMoi dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinMoi( @@ -2115,11 +2166,21 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( dynamic raw); + @protected + LtOwnedStructTwinSync + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + dynamic raw); + @protected LtSubStructTwinNormal dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( dynamic raw); + @protected + LtSubStructTwinSync + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + dynamic raw); + @protected MyAudioParamTwinNormal dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -2517,31 +2578,61 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( dynamic raw); + @protected + LtNestedTypeWithLifetimeTwinSync + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + dynamic raw); + @protected LtTypeWithLifetimeTwinNormal dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( dynamic raw); + @protected + LtTypeWithLifetimeTwinSync + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + dynamic raw); + @protected LtTypeWithMultiDepTwinNormal dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( dynamic raw); + @protected + LtTypeWithMultiDepTwinSync + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + dynamic raw); + @protected LtNestedTypeWithLifetimeTwinNormal dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( dynamic raw); + @protected + LtNestedTypeWithLifetimeTwinSync + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + dynamic raw); + @protected LtTypeWithLifetimeTwinNormal dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( dynamic raw); + @protected + LtTypeWithLifetimeTwinSync + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + dynamic raw); + @protected LtTypeWithMultiDepTwinNormal dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( dynamic raw); + @protected + LtTypeWithMultiDepTwinSync + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + dynamic raw); + @protected Map dco_decode_Map_String_String(dynamic raw); @@ -3283,26 +3374,51 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( dynamic raw); + @protected + LtNestedTypeWithLifetimeTwinSync + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + dynamic raw); + @protected LtTypeWithLifetimeTwinNormal dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( dynamic raw); + @protected + LtTypeWithLifetimeTwinSync + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + dynamic raw); + @protected LtTypeWithMultiDepTwinNormal dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( dynamic raw); + @protected + LtTypeWithMultiDepTwinSync + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + dynamic raw); + @protected LtOwnedStructTwinNormal dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( dynamic raw); + @protected + LtOwnedStructTwinSync + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + dynamic raw); + @protected LtSubStructTwinNormal dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( dynamic raw); + @protected + LtSubStructTwinSync + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + dynamic raw); + @protected MyAudioParamTwinNormal dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -9888,16 +10004,31 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( SseDeserializer deserializer); + @protected + LtNestedTypeWithLifetimeTwinSync + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer); + @protected LtTypeWithLifetimeTwinNormal sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( SseDeserializer deserializer); + @protected + LtTypeWithLifetimeTwinSync + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer); + @protected LtTypeWithMultiDepTwinNormal sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( SseDeserializer deserializer); + @protected + LtTypeWithMultiDepTwinSync + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + SseDeserializer deserializer); + @protected MyNodeTwinNormal sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyNodeTwinNormal( @@ -10163,11 +10294,21 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( SseDeserializer deserializer); + @protected + LtOwnedStructTwinSync + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + SseDeserializer deserializer); + @protected LtSubStructTwinNormal sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( SseDeserializer deserializer); + @protected + LtSubStructTwinSync + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + SseDeserializer deserializer); + @protected MyAudioParamTwinNormal sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -10653,6 +10794,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( SseDeserializer deserializer); + @protected + LtSubStructTwinSync + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + SseDeserializer deserializer); + @protected NonCloneSimpleTwinMoi sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinMoi( @@ -10883,11 +11029,21 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( SseDeserializer deserializer); + @protected + LtOwnedStructTwinSync + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + SseDeserializer deserializer); + @protected LtSubStructTwinNormal sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( SseDeserializer deserializer); + @protected + LtSubStructTwinSync + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + SseDeserializer deserializer); + @protected MyAudioParamTwinNormal sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -11215,31 +11371,61 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( SseDeserializer deserializer); + @protected + LtNestedTypeWithLifetimeTwinSync + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer); + @protected LtTypeWithLifetimeTwinNormal sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( SseDeserializer deserializer); + @protected + LtTypeWithLifetimeTwinSync + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer); + @protected LtTypeWithMultiDepTwinNormal sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( SseDeserializer deserializer); + @protected + LtTypeWithMultiDepTwinSync + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + SseDeserializer deserializer); + @protected LtNestedTypeWithLifetimeTwinNormal sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( SseDeserializer deserializer); + @protected + LtNestedTypeWithLifetimeTwinSync + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer); + @protected LtTypeWithLifetimeTwinNormal sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( SseDeserializer deserializer); + @protected + LtTypeWithLifetimeTwinSync + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer); + @protected LtTypeWithMultiDepTwinNormal sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( SseDeserializer deserializer); + @protected + LtTypeWithMultiDepTwinSync + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + SseDeserializer deserializer); + @protected Map sse_decode_Map_String_String( SseDeserializer deserializer); @@ -12051,26 +12237,51 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( SseDeserializer deserializer); + @protected + LtNestedTypeWithLifetimeTwinSync + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer); + @protected LtTypeWithLifetimeTwinNormal sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( SseDeserializer deserializer); + @protected + LtTypeWithLifetimeTwinSync + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer); + @protected LtTypeWithMultiDepTwinNormal sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( SseDeserializer deserializer); + @protected + LtTypeWithMultiDepTwinSync + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + SseDeserializer deserializer); + @protected LtOwnedStructTwinNormal sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( SseDeserializer deserializer); + @protected + LtOwnedStructTwinSync + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + SseDeserializer deserializer); + @protected LtSubStructTwinNormal sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( SseDeserializer deserializer); + @protected + LtSubStructTwinSync + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + SseDeserializer deserializer); + @protected MyAudioParamTwinNormal sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -32155,16 +32366,31 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + LtNestedTypeWithLifetimeTwinSync self, SseSerializer serializer); + @protected void sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + LtTypeWithLifetimeTwinSync self, SseSerializer serializer); + @protected void sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + LtTypeWithMultiDepTwinSync self, SseSerializer serializer); + @protected void sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyNodeTwinNormal( @@ -32442,11 +32668,21 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( LtOwnedStructTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + LtOwnedStructTwinSync self, SseSerializer serializer); + @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( LtSubStructTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + LtSubStructTwinSync self, SseSerializer serializer); + @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -32944,6 +33180,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( LtSubStructTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + LtSubStructTwinSync self, SseSerializer serializer); + @protected void sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinMoi( @@ -33186,11 +33427,21 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( LtOwnedStructTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + LtOwnedStructTwinSync self, SseSerializer serializer); + @protected void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( LtSubStructTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + LtSubStructTwinSync self, SseSerializer serializer); + @protected void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -33618,31 +33869,61 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + LtNestedTypeWithLifetimeTwinSync self, SseSerializer serializer); + @protected void sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + LtTypeWithLifetimeTwinSync self, SseSerializer serializer); + @protected void sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + LtTypeWithMultiDepTwinSync self, SseSerializer serializer); + @protected void sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + LtNestedTypeWithLifetimeTwinSync self, SseSerializer serializer); + @protected void sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + LtTypeWithLifetimeTwinSync self, SseSerializer serializer); + @protected void sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + LtTypeWithMultiDepTwinSync self, SseSerializer serializer); + @protected void sse_encode_Map_String_String( Map self, SseSerializer serializer); @@ -34426,26 +34707,51 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + LtNestedTypeWithLifetimeTwinSync self, SseSerializer serializer); + @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + LtTypeWithLifetimeTwinSync self, SseSerializer serializer); + @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + LtTypeWithMultiDepTwinSync self, SseSerializer serializer); + @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( LtOwnedStructTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + LtOwnedStructTwinSync self, SseSerializer serializer); + @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( LtSubStructTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + LtSubStructTwinSync self, SseSerializer serializer); + @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -72280,6 +72586,406 @@ class RustLibWire implements BaseWire { _wire__crate__api__pseudo_manual__impl_trait_twin_sync_sse__StructTwoWithTraitTwinSyncSse_simple_trait_fn_with_default_impl_twin_sync_ssePtr .asFunction(); + WireSyncRust2DartSse + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync( + ffi.Pointer ptr_, + int rust_vec_len_, + int data_len_, + ) { + return _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync( + ptr_, + rust_vec_len_, + data_len_, + ); + } + + late final _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_syncPtr = + _lookup< + ffi.NativeFunction< + WireSyncRust2DartSse Function( + ffi.Pointer, ffi.Int32, ffi.Int32)>>( + 'frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync'); + late final _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync = + _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_syncPtr + .asFunction< + WireSyncRust2DartSse Function( + ffi.Pointer, int, int)>(); + + WireSyncRust2DartSse + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync( + ffi.Pointer ptr_, + int rust_vec_len_, + int data_len_, + ) { + return _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync( + ptr_, + rust_vec_len_, + data_len_, + ); + } + + late final _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_syncPtr = + _lookup< + ffi.NativeFunction< + WireSyncRust2DartSse Function( + ffi.Pointer, ffi.Int32, ffi.Int32)>>( + 'frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync'); + late final _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync = + _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_syncPtr + .asFunction< + WireSyncRust2DartSse Function( + ffi.Pointer, int, int)>(); + + void + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_arg_generic_lifetime_twin_sync( + int port_, + ffi.Pointer ptr_, + int rust_vec_len_, + int data_len_, + ) { + return _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_arg_generic_lifetime_twin_sync( + port_, + ptr_, + rust_vec_len_, + data_len_, + ); + } + + late final _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_arg_generic_lifetime_twin_syncPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Int32, ffi.Int32)>>( + 'frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_arg_generic_lifetime_twin_sync'); + late final _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_arg_generic_lifetime_twin_sync = + _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_arg_generic_lifetime_twin_syncPtr + .asFunction, int, int)>(); + + void + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_nested_type_with_lifetime_twin_sync( + int port_, + ffi.Pointer ptr_, + int rust_vec_len_, + int data_len_, + ) { + return _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_nested_type_with_lifetime_twin_sync( + port_, + ptr_, + rust_vec_len_, + data_len_, + ); + } + + late final _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_nested_type_with_lifetime_twin_syncPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Int32, ffi.Int32)>>( + 'frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_nested_type_with_lifetime_twin_sync'); + late final _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_nested_type_with_lifetime_twin_sync = + _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_nested_type_with_lifetime_twin_syncPtr + .asFunction, int, int)>(); + + WireSyncRust2DartSse + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync( + ffi.Pointer ptr_, + int rust_vec_len_, + int data_len_, + ) { + return _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync( + ptr_, + rust_vec_len_, + data_len_, + ); + } + + late final _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_syncPtr = + _lookup< + ffi.NativeFunction< + WireSyncRust2DartSse Function( + ffi.Pointer, ffi.Int32, ffi.Int32)>>( + 'frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync'); + late final _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync = + _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_syncPtr + .asFunction< + WireSyncRust2DartSse Function( + ffi.Pointer, int, int)>(); + + WireSyncRust2DartSse + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync( + ffi.Pointer ptr_, + int rust_vec_len_, + int data_len_, + ) { + return _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync( + ptr_, + rust_vec_len_, + data_len_, + ); + } + + late final _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_syncPtr = + _lookup< + ffi.NativeFunction< + WireSyncRust2DartSse Function( + ffi.Pointer, ffi.Int32, ffi.Int32)>>( + 'frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync'); + late final _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync = + _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_syncPtr + .asFunction< + WireSyncRust2DartSse Function( + ffi.Pointer, int, int)>(); + + void + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_compute_with_multi_arg_having_lifetime_twin_sync( + int port_, + ffi.Pointer ptr_, + int rust_vec_len_, + int data_len_, + ) { + return _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_compute_with_multi_arg_having_lifetime_twin_sync( + port_, + ptr_, + rust_vec_len_, + data_len_, + ); + } + + late final _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_compute_with_multi_arg_having_lifetime_twin_syncPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Int32, ffi.Int32)>>( + 'frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_compute_with_multi_arg_having_lifetime_twin_sync'); + late final _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_compute_with_multi_arg_having_lifetime_twin_sync = + _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_compute_with_multi_arg_having_lifetime_twin_syncPtr + .asFunction, int, int)>(); + + WireSyncRust2DartSse + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_mut_self_twin_sync( + ffi.Pointer ptr_, + int rust_vec_len_, + int data_len_, + ) { + return _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_mut_self_twin_sync( + ptr_, + rust_vec_len_, + data_len_, + ); + } + + late final _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_mut_self_twin_syncPtr = + _lookup< + ffi.NativeFunction< + WireSyncRust2DartSse Function( + ffi.Pointer, ffi.Int32, ffi.Int32)>>( + 'frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_mut_self_twin_sync'); + late final _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_mut_self_twin_sync = + _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_mut_self_twin_syncPtr + .asFunction< + WireSyncRust2DartSse Function( + ffi.Pointer, int, int)>(); + + WireSyncRust2DartSse + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_self_twin_sync( + ffi.Pointer ptr_, + int rust_vec_len_, + int data_len_, + ) { + return _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_self_twin_sync( + ptr_, + rust_vec_len_, + data_len_, + ); + } + + late final _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_self_twin_syncPtr = + _lookup< + ffi.NativeFunction< + WireSyncRust2DartSse Function( + ffi.Pointer, ffi.Int32, ffi.Int32)>>( + 'frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_self_twin_sync'); + late final _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_self_twin_sync = + _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_self_twin_syncPtr + .asFunction< + WireSyncRust2DartSse Function( + ffi.Pointer, int, int)>(); + + void + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_type_with_lifetime_twin_sync( + int port_, + ffi.Pointer ptr_, + int rust_vec_len_, + int data_len_, + ) { + return _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_type_with_lifetime_twin_sync( + port_, + ptr_, + rust_vec_len_, + data_len_, + ); + } + + late final _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_type_with_lifetime_twin_syncPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Int32, ffi.Int32)>>( + 'frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_type_with_lifetime_twin_sync'); + late final _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_type_with_lifetime_twin_sync = + _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_type_with_lifetime_twin_syncPtr + .asFunction, int, int)>(); + + void + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_with_unrelated_borrowed_arg_twin_sync( + int port_, + ffi.Pointer ptr_, + int rust_vec_len_, + int data_len_, + ) { + return _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_with_unrelated_borrowed_arg_twin_sync( + port_, + ptr_, + rust_vec_len_, + data_len_, + ); + } + + late final _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_with_unrelated_borrowed_arg_twin_syncPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Int32, ffi.Int32)>>( + 'frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_with_unrelated_borrowed_arg_twin_sync'); + late final _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_with_unrelated_borrowed_arg_twin_sync = + _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_with_unrelated_borrowed_arg_twin_syncPtr + .asFunction, int, int)>(); + + WireSyncRust2DartSse + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_twin_sync( + ffi.Pointer ptr_, + int rust_vec_len_, + int data_len_, + ) { + return _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_twin_sync( + ptr_, + rust_vec_len_, + data_len_, + ); + } + + late final _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_twin_syncPtr = + _lookup< + ffi.NativeFunction< + WireSyncRust2DartSse Function( + ffi.Pointer, ffi.Int32, ffi.Int32)>>( + 'frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_twin_sync'); + late final _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_twin_sync = + _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_twin_syncPtr + .asFunction< + WireSyncRust2DartSse Function( + ffi.Pointer, int, int)>(); + + WireSyncRust2DartSse + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_with_logger_twin_sync( + ffi.Pointer ptr_, + int rust_vec_len_, + int data_len_, + ) { + return _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_with_logger_twin_sync( + ptr_, + rust_vec_len_, + data_len_, + ); + } + + late final _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_with_logger_twin_syncPtr = + _lookup< + ffi.NativeFunction< + WireSyncRust2DartSse Function( + ffi.Pointer, ffi.Int32, ffi.Int32)>>( + 'frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_with_logger_twin_sync'); + late final _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_with_logger_twin_sync = + _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_with_logger_twin_syncPtr + .asFunction< + WireSyncRust2DartSse Function( + ffi.Pointer, int, int)>(); + + WireSyncRust2DartSse + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_mut_self_twin_sync( + ffi.Pointer ptr_, + int rust_vec_len_, + int data_len_, + ) { + return _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_mut_self_twin_sync( + ptr_, + rust_vec_len_, + data_len_, + ); + } + + late final _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_mut_self_twin_syncPtr = + _lookup< + ffi.NativeFunction< + WireSyncRust2DartSse Function( + ffi.Pointer, ffi.Int32, ffi.Int32)>>( + 'frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_mut_self_twin_sync'); + late final _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_mut_self_twin_sync = + _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_mut_self_twin_syncPtr + .asFunction< + WireSyncRust2DartSse Function( + ffi.Pointer, int, int)>(); + + WireSyncRust2DartSse + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_self_twin_sync( + ffi.Pointer ptr_, + int rust_vec_len_, + int data_len_, + ) { + return _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_self_twin_sync( + ptr_, + rust_vec_len_, + data_len_, + ); + } + + late final _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_self_twin_syncPtr = + _lookup< + ffi.NativeFunction< + WireSyncRust2DartSse Function( + ffi.Pointer, ffi.Int32, ffi.Int32)>>( + 'frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_self_twin_sync'); + late final _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_self_twin_sync = + _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_self_twin_syncPtr + .asFunction< + WireSyncRust2DartSse Function( + ffi.Pointer, int, int)>(); + + void + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__lt_compute_with_lifetime_function_twin_sync( + int port_, + ffi.Pointer ptr_, + int rust_vec_len_, + int data_len_, + ) { + return _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__lt_compute_with_lifetime_function_twin_sync( + port_, + ptr_, + rust_vec_len_, + data_len_, + ); + } + + late final _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__lt_compute_with_lifetime_function_twin_syncPtr = + _lookup< + ffi.NativeFunction< + ffi.Void Function(ffi.Int64, ffi.Pointer, + ffi.Int32, ffi.Int32)>>( + 'frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__lt_compute_with_lifetime_function_twin_sync'); + late final _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__lt_compute_with_lifetime_function_twin_sync = + _wire__crate__api__pseudo_manual__lifetimeable_twin_sync__lt_compute_with_lifetime_function_twin_syncPtr + .asFunction, int, int)>(); + void wire__crate__api__pseudo_manual__map_and_set_twin_rust_async__func_hash_map_i32_i32_twin_rust_async( int port_, @@ -105740,6 +106446,38 @@ class RustLibWire implements BaseWire { _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstaticPtr .asFunction)>(); + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstaticPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstaticPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstaticPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstaticPtr + .asFunction)>(); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( ffi.Pointer ptr, @@ -105772,6 +106510,38 @@ class RustLibWire implements BaseWire { _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstaticPtr .asFunction)>(); + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstaticPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstaticPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstaticPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstaticPtr + .asFunction)>(); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( ffi.Pointer ptr, @@ -105804,6 +106574,38 @@ class RustLibWire implements BaseWire { _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstaticPtr .asFunction)>(); + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstaticPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstaticPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstaticPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstaticPtr + .asFunction)>(); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( ffi.Pointer ptr, @@ -105836,6 +106638,38 @@ class RustLibWire implements BaseWire { _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormalPtr .asFunction)>(); + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSyncPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSyncPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSyncPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSyncPtr + .asFunction)>(); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( ffi.Pointer ptr, @@ -105868,6 +106702,38 @@ class RustLibWire implements BaseWire { _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormalPtr .asFunction)>(); + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSyncPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSyncPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSyncPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSyncPtr + .asFunction)>(); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( ffi.Pointer ptr, diff --git a/frb_example/pure_dart/lib/src/rust/frb_generated.web.dart b/frb_example/pure_dart/lib/src/rust/frb_generated.web.dart index 28bed07771..d77ce18dab 100644 --- a/frb_example/pure_dart/lib/src/rust/frb_generated.web.dart +++ b/frb_example/pure_dart/lib/src/rust/frb_generated.web.dart @@ -136,6 +136,7 @@ import 'api/pseudo_manual/external_type_in_crate_twin_sync_sse.dart'; import 'api/pseudo_manual/impl_trait_twin_sse.dart'; import 'api/pseudo_manual/impl_trait_twin_sync.dart'; import 'api/pseudo_manual/impl_trait_twin_sync_sse.dart'; +import 'api/pseudo_manual/lifetimeable_twin_sync.dart'; import 'api/pseudo_manual/map_and_set_twin_rust_async.dart'; import 'api/pseudo_manual/map_and_set_twin_rust_async_sse.dart'; import 'api/pseudo_manual/map_and_set_twin_sse.dart'; @@ -748,22 +749,42 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormalPtr => wire.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinSyncPtr => + wire.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormalPtr => wire .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinSyncPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr => wire .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinSyncPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_LtOwnedStructTwinNormalPtr => wire .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtOwnedStructTwinSyncPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_LtSubStructTwinNormalPtr => wire .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtSubStructTwinSyncPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_MyAudioParamTwinNormalPtr => wire .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal; @@ -1122,16 +1143,31 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( dynamic raw); + @protected + LtNestedTypeWithLifetimeTwinSync + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + dynamic raw); + @protected LtTypeWithLifetimeTwinNormal dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( dynamic raw); + @protected + LtTypeWithLifetimeTwinSync + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + dynamic raw); + @protected LtTypeWithMultiDepTwinNormal dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( dynamic raw); + @protected + LtTypeWithMultiDepTwinSync + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + dynamic raw); + @protected MyNodeTwinNormal dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyNodeTwinNormal( @@ -1397,11 +1433,21 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( dynamic raw); + @protected + LtOwnedStructTwinSync + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + dynamic raw); + @protected LtSubStructTwinNormal dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( dynamic raw); + @protected + LtSubStructTwinSync + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + dynamic raw); + @protected MyAudioParamTwinNormal dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -1887,6 +1933,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( dynamic raw); + @protected + LtSubStructTwinSync + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + dynamic raw); + @protected NonCloneSimpleTwinMoi dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinMoi( @@ -2117,11 +2168,21 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( dynamic raw); + @protected + LtOwnedStructTwinSync + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + dynamic raw); + @protected LtSubStructTwinNormal dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( dynamic raw); + @protected + LtSubStructTwinSync + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + dynamic raw); + @protected MyAudioParamTwinNormal dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -2519,31 +2580,61 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( dynamic raw); + @protected + LtNestedTypeWithLifetimeTwinSync + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + dynamic raw); + @protected LtTypeWithLifetimeTwinNormal dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( dynamic raw); + @protected + LtTypeWithLifetimeTwinSync + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + dynamic raw); + @protected LtTypeWithMultiDepTwinNormal dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( dynamic raw); + @protected + LtTypeWithMultiDepTwinSync + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + dynamic raw); + @protected LtNestedTypeWithLifetimeTwinNormal dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( dynamic raw); + @protected + LtNestedTypeWithLifetimeTwinSync + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + dynamic raw); + @protected LtTypeWithLifetimeTwinNormal dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( dynamic raw); + @protected + LtTypeWithLifetimeTwinSync + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + dynamic raw); + @protected LtTypeWithMultiDepTwinNormal dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( dynamic raw); + @protected + LtTypeWithMultiDepTwinSync + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + dynamic raw); + @protected Map dco_decode_Map_String_String(dynamic raw); @@ -3285,26 +3376,51 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( dynamic raw); + @protected + LtNestedTypeWithLifetimeTwinSync + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + dynamic raw); + @protected LtTypeWithLifetimeTwinNormal dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( dynamic raw); + @protected + LtTypeWithLifetimeTwinSync + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + dynamic raw); + @protected LtTypeWithMultiDepTwinNormal dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( dynamic raw); + @protected + LtTypeWithMultiDepTwinSync + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + dynamic raw); + @protected LtOwnedStructTwinNormal dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( dynamic raw); + @protected + LtOwnedStructTwinSync + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + dynamic raw); + @protected LtSubStructTwinNormal dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( dynamic raw); + @protected + LtSubStructTwinSync + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + dynamic raw); + @protected MyAudioParamTwinNormal dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -9890,16 +10006,31 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( SseDeserializer deserializer); + @protected + LtNestedTypeWithLifetimeTwinSync + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer); + @protected LtTypeWithLifetimeTwinNormal sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( SseDeserializer deserializer); + @protected + LtTypeWithLifetimeTwinSync + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer); + @protected LtTypeWithMultiDepTwinNormal sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( SseDeserializer deserializer); + @protected + LtTypeWithMultiDepTwinSync + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + SseDeserializer deserializer); + @protected MyNodeTwinNormal sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyNodeTwinNormal( @@ -10165,11 +10296,21 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( SseDeserializer deserializer); + @protected + LtOwnedStructTwinSync + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + SseDeserializer deserializer); + @protected LtSubStructTwinNormal sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( SseDeserializer deserializer); + @protected + LtSubStructTwinSync + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + SseDeserializer deserializer); + @protected MyAudioParamTwinNormal sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -10655,6 +10796,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( SseDeserializer deserializer); + @protected + LtSubStructTwinSync + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + SseDeserializer deserializer); + @protected NonCloneSimpleTwinMoi sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinMoi( @@ -10885,11 +11031,21 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( SseDeserializer deserializer); + @protected + LtOwnedStructTwinSync + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + SseDeserializer deserializer); + @protected LtSubStructTwinNormal sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( SseDeserializer deserializer); + @protected + LtSubStructTwinSync + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + SseDeserializer deserializer); + @protected MyAudioParamTwinNormal sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -11217,31 +11373,61 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( SseDeserializer deserializer); + @protected + LtNestedTypeWithLifetimeTwinSync + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer); + @protected LtTypeWithLifetimeTwinNormal sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( SseDeserializer deserializer); + @protected + LtTypeWithLifetimeTwinSync + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer); + @protected LtTypeWithMultiDepTwinNormal sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( SseDeserializer deserializer); + @protected + LtTypeWithMultiDepTwinSync + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + SseDeserializer deserializer); + @protected LtNestedTypeWithLifetimeTwinNormal sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( SseDeserializer deserializer); + @protected + LtNestedTypeWithLifetimeTwinSync + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer); + @protected LtTypeWithLifetimeTwinNormal sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( SseDeserializer deserializer); + @protected + LtTypeWithLifetimeTwinSync + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer); + @protected LtTypeWithMultiDepTwinNormal sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( SseDeserializer deserializer); + @protected + LtTypeWithMultiDepTwinSync + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + SseDeserializer deserializer); + @protected Map sse_decode_Map_String_String( SseDeserializer deserializer); @@ -12053,26 +12239,51 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( SseDeserializer deserializer); + @protected + LtNestedTypeWithLifetimeTwinSync + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer); + @protected LtTypeWithLifetimeTwinNormal sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( SseDeserializer deserializer); + @protected + LtTypeWithLifetimeTwinSync + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer); + @protected LtTypeWithMultiDepTwinNormal sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( SseDeserializer deserializer); + @protected + LtTypeWithMultiDepTwinSync + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + SseDeserializer deserializer); + @protected LtOwnedStructTwinNormal sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( SseDeserializer deserializer); + @protected + LtOwnedStructTwinSync + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + SseDeserializer deserializer); + @protected LtSubStructTwinNormal sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( SseDeserializer deserializer); + @protected + LtSubStructTwinSync + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + SseDeserializer deserializer); + @protected MyAudioParamTwinNormal sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -28638,16 +28849,31 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + LtNestedTypeWithLifetimeTwinSync self, SseSerializer serializer); + @protected void sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + LtTypeWithLifetimeTwinSync self, SseSerializer serializer); + @protected void sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + LtTypeWithMultiDepTwinSync self, SseSerializer serializer); + @protected void sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyNodeTwinNormal( @@ -28925,11 +29151,21 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( LtOwnedStructTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + LtOwnedStructTwinSync self, SseSerializer serializer); + @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( LtSubStructTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + LtSubStructTwinSync self, SseSerializer serializer); + @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -29427,6 +29663,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( LtSubStructTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + LtSubStructTwinSync self, SseSerializer serializer); + @protected void sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinMoi( @@ -29669,11 +29910,21 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( LtOwnedStructTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + LtOwnedStructTwinSync self, SseSerializer serializer); + @protected void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( LtSubStructTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + LtSubStructTwinSync self, SseSerializer serializer); + @protected void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -30101,31 +30352,61 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + LtNestedTypeWithLifetimeTwinSync self, SseSerializer serializer); + @protected void sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + LtTypeWithLifetimeTwinSync self, SseSerializer serializer); + @protected void sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + LtTypeWithMultiDepTwinSync self, SseSerializer serializer); + @protected void sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + LtNestedTypeWithLifetimeTwinSync self, SseSerializer serializer); + @protected void sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + LtTypeWithLifetimeTwinSync self, SseSerializer serializer); + @protected void sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + LtTypeWithMultiDepTwinSync self, SseSerializer serializer); + @protected void sse_encode_Map_String_String( Map self, SseSerializer serializer); @@ -30909,26 +31190,51 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + LtNestedTypeWithLifetimeTwinSync self, SseSerializer serializer); + @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + LtTypeWithLifetimeTwinSync self, SseSerializer serializer); + @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + LtTypeWithMultiDepTwinSync self, SseSerializer serializer); + @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( LtOwnedStructTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + LtOwnedStructTwinSync self, SseSerializer serializer); + @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( LtSubStructTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + LtSubStructTwinSync self, SseSerializer serializer); + @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -48175,6 +48481,150 @@ class RustLibWire implements BaseWire { .wire__crate__api__pseudo_manual__impl_trait_twin_sync_sse__StructTwoWithTraitTwinSyncSse_simple_trait_fn_with_default_impl_twin_sync_sse( port_); + JSAny? /* flutter_rust_bridge::for_generated::WireSyncRust2DartSse */ + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync( + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_) => + wasmModule + .wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync( + ptr_, rust_vec_len_, data_len_); + + JSAny? /* flutter_rust_bridge::for_generated::WireSyncRust2DartSse */ + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync( + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_) => + wasmModule + .wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync( + ptr_, rust_vec_len_, data_len_); + + void wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_arg_generic_lifetime_twin_sync( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_) => + wasmModule + .wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_arg_generic_lifetime_twin_sync( + port_, ptr_, rust_vec_len_, data_len_); + + void wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_nested_type_with_lifetime_twin_sync( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_) => + wasmModule + .wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_nested_type_with_lifetime_twin_sync( + port_, ptr_, rust_vec_len_, data_len_); + + JSAny? /* flutter_rust_bridge::for_generated::WireSyncRust2DartSse */ + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync( + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_) => + wasmModule + .wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync( + ptr_, rust_vec_len_, data_len_); + + JSAny? /* flutter_rust_bridge::for_generated::WireSyncRust2DartSse */ + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync( + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_) => + wasmModule + .wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync( + ptr_, rust_vec_len_, data_len_); + + void wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_compute_with_multi_arg_having_lifetime_twin_sync( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_) => + wasmModule + .wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_compute_with_multi_arg_having_lifetime_twin_sync( + port_, ptr_, rust_vec_len_, data_len_); + + JSAny? /* flutter_rust_bridge::for_generated::WireSyncRust2DartSse */ + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_mut_self_twin_sync( + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_) => + wasmModule + .wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_mut_self_twin_sync( + ptr_, rust_vec_len_, data_len_); + + JSAny? /* flutter_rust_bridge::for_generated::WireSyncRust2DartSse */ + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_self_twin_sync( + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_) => + wasmModule + .wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_self_twin_sync( + ptr_, rust_vec_len_, data_len_); + + void wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_type_with_lifetime_twin_sync( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_) => + wasmModule + .wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_type_with_lifetime_twin_sync( + port_, ptr_, rust_vec_len_, data_len_); + + void wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_with_unrelated_borrowed_arg_twin_sync( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_) => + wasmModule + .wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_with_unrelated_borrowed_arg_twin_sync( + port_, ptr_, rust_vec_len_, data_len_); + + JSAny? /* flutter_rust_bridge::for_generated::WireSyncRust2DartSse */ + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_twin_sync( + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_) => + wasmModule + .wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_twin_sync( + ptr_, rust_vec_len_, data_len_); + + JSAny? /* flutter_rust_bridge::for_generated::WireSyncRust2DartSse */ + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_with_logger_twin_sync( + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_) => + wasmModule + .wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_with_logger_twin_sync( + ptr_, rust_vec_len_, data_len_); + + JSAny? /* flutter_rust_bridge::for_generated::WireSyncRust2DartSse */ + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_mut_self_twin_sync( + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_) => + wasmModule + .wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_mut_self_twin_sync( + ptr_, rust_vec_len_, data_len_); + + JSAny? /* flutter_rust_bridge::for_generated::WireSyncRust2DartSse */ + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_self_twin_sync( + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_) => + wasmModule + .wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_self_twin_sync( + ptr_, rust_vec_len_, data_len_); + + void wire__crate__api__pseudo_manual__lifetimeable_twin_sync__lt_compute_with_lifetime_function_twin_sync( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_) => + wasmModule + .wire__crate__api__pseudo_manual__lifetimeable_twin_sync__lt_compute_with_lifetime_function_twin_sync( + port_, ptr_, rust_vec_len_, data_len_); + void wire__crate__api__pseudo_manual__map_and_set_twin_rust_async__func_hash_map_i32_i32_twin_rust_async( NativePortType port_, JSAny arg) => wasmModule @@ -59750,6 +60200,18 @@ class RustLibWire implements BaseWire { .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( ptr); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + ptr); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( int ptr) => wasmModule @@ -59762,6 +60224,18 @@ class RustLibWire implements BaseWire { .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( ptr); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + ptr); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( int ptr) => wasmModule @@ -59774,6 +60248,18 @@ class RustLibWire implements BaseWire { .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( ptr); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + ptr); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( int ptr) => wasmModule @@ -59786,6 +60272,18 @@ class RustLibWire implements BaseWire { .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( ptr); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + ptr); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( int ptr) => wasmModule @@ -59798,6 +60296,18 @@ class RustLibWire implements BaseWire { .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( ptr); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + ptr); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( int ptr) => wasmModule @@ -67928,6 +68438,108 @@ extension type RustLibWasmModule._(JSObject _) implements JSObject { wire__crate__api__pseudo_manual__impl_trait_twin_sync_sse__StructTwoWithTraitTwinSyncSse_simple_trait_fn_with_default_impl_twin_sync_sse( NativePortType port_); + external JSAny? /* flutter_rust_bridge::for_generated::WireSyncRust2DartSse */ + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync( + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_); + + external JSAny? /* flutter_rust_bridge::for_generated::WireSyncRust2DartSse */ + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync( + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_); + + external void + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_arg_generic_lifetime_twin_sync( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_); + + external void + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_nested_type_with_lifetime_twin_sync( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_); + + external JSAny? /* flutter_rust_bridge::for_generated::WireSyncRust2DartSse */ + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync( + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_); + + external JSAny? /* flutter_rust_bridge::for_generated::WireSyncRust2DartSse */ + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync( + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_); + + external void + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_compute_with_multi_arg_having_lifetime_twin_sync( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_); + + external JSAny? /* flutter_rust_bridge::for_generated::WireSyncRust2DartSse */ + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_mut_self_twin_sync( + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_); + + external JSAny? /* flutter_rust_bridge::for_generated::WireSyncRust2DartSse */ + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_self_twin_sync( + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_); + + external void + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_type_with_lifetime_twin_sync( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_); + + external void + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_with_unrelated_borrowed_arg_twin_sync( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_); + + external JSAny? /* flutter_rust_bridge::for_generated::WireSyncRust2DartSse */ + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_twin_sync( + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_); + + external JSAny? /* flutter_rust_bridge::for_generated::WireSyncRust2DartSse */ + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_with_logger_twin_sync( + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_); + + external JSAny? /* flutter_rust_bridge::for_generated::WireSyncRust2DartSse */ + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_mut_self_twin_sync( + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_); + + external JSAny? /* flutter_rust_bridge::for_generated::WireSyncRust2DartSse */ + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_self_twin_sync( + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_); + + external void + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__lt_compute_with_lifetime_function_twin_sync( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_); + external void wire__crate__api__pseudo_manual__map_and_set_twin_rust_async__func_hash_map_i32_i32_twin_rust_async( NativePortType port_, JSAny arg); @@ -75953,6 +76565,14 @@ extension type RustLibWasmModule._(JSObject _) implements JSObject { rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( int ptr); + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + int ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + int ptr); + external void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( int ptr); @@ -75961,6 +76581,14 @@ extension type RustLibWasmModule._(JSObject _) implements JSObject { rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( int ptr); + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + int ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + int ptr); + external void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( int ptr); @@ -75969,6 +76597,14 @@ extension type RustLibWasmModule._(JSObject _) implements JSObject { rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( int ptr); + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + int ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + int ptr); + external void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( int ptr); @@ -75977,6 +76613,14 @@ extension type RustLibWasmModule._(JSObject _) implements JSObject { rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( int ptr); + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + int ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + int ptr); + external void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( int ptr); @@ -75985,6 +76629,14 @@ extension type RustLibWasmModule._(JSObject _) implements JSObject { rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( int ptr); + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + int ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + int ptr); + external void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( int ptr); diff --git a/frb_example/pure_dart/rust/src/api/lifetimeable.rs b/frb_example/pure_dart/rust/src/api/lifetimeable.rs index c4de463cef..c6ee8891fb 100644 --- a/frb_example/pure_dart/rust/src/api/lifetimeable.rs +++ b/frb_example/pure_dart/rust/src/api/lifetimeable.rs @@ -2,8 +2,8 @@ #![allow(clippy::needless_lifetimes)] -use flutter_rust_bridge::frb; use crate::api::misc_no_twin_example_a::SimpleLogger; +use flutter_rust_bridge::frb; // --------------------------- struct definitions --------------------------- diff --git a/frb_example/pure_dart/rust/src/api/pseudo_manual/lifetimeable_twin_sync.rs b/frb_example/pure_dart/rust/src/api/pseudo_manual/lifetimeable_twin_sync.rs new file mode 100644 index 0000000000..9edd792dd8 --- /dev/null +++ b/frb_example/pure_dart/rust/src/api/pseudo_manual/lifetimeable_twin_sync.rs @@ -0,0 +1,214 @@ +// NOTE: This file is mimicking how a human developer writes tests, +// and is auto-generated from `lifetimeable.rs` by frb_internal +// Please do not modify manually, but modify the origin and re-run frb_internal generator + +// FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "sse", "sync sse", "rustAsync sse"]} + +#![allow(clippy::needless_lifetimes)] + +use crate::api::pseudo_manual::misc_no_twin_example_a_twin_sync::SimpleLogger; +use flutter_rust_bridge::frb; + +// --------------------------- struct definitions --------------------------- + +/// Try *NOT* to impl Clone for these types in order to ensure there are no extra clones +#[frb(opaque)] +#[derive(Debug)] +pub struct LtOwnedStructTwinSync { + sub: LtSubStructTwinSync, +} + +#[frb(opaque)] +#[derive(Debug)] +pub struct LtSubStructTwinSync { + value: String, + logger: SimpleLogger, +} + +#[frb(opaque)] +#[derive(Debug)] +pub struct LtTypeWithLifetimeTwinSync<'a> { + field: &'a LtOwnedStructTwinSync, +} + +#[frb(opaque)] +#[derive(Debug)] +pub struct LtNestedTypeWithLifetimeTwinSync<'a> { + field: &'a LtTypeWithLifetimeTwinSync<'a>, +} + +#[frb(opaque)] +#[derive(Debug)] +pub struct LtTypeWithMultiDepTwinSync<'a> { + fields: Vec<&'a LtOwnedStructTwinSync>, +} + +// --------------------------- drops --------------------------- + +impl Drop for LtOwnedStructTwinSync { + fn drop(&mut self) { + self.sub.logger.log("LtOwnedStructTwinSync.drop"); + } +} + +impl Drop for LtSubStructTwinSync { + fn drop(&mut self) { + self.logger.log("LtOwnedSubStructTwinSync.drop"); + } +} + +impl Drop for LtTypeWithLifetimeTwinSync<'_> { + fn drop(&mut self) { + (self.field.sub.logger).log("LtTypeWithLifetimeTwinSync.drop"); + } +} + +impl Drop for LtNestedTypeWithLifetimeTwinSync<'_> { + fn drop(&mut self) { + (self.field.field.sub.logger).log("LtNestedTypeWithLifetimeTwinSync.drop"); + } +} + +// --------------------------- methods --------------------------- + +impl LtOwnedStructTwinSync { + #[frb(serialize)] + #[flutter_rust_bridge::frb(sync)] + pub fn create_twin_sync(value: String) -> Self { + Self { + sub: LtSubStructTwinSync { + value, + logger: SimpleLogger::new(), + }, + } + } + + #[frb(serialize)] + #[flutter_rust_bridge::frb(sync)] + pub fn create_with_logger_twin_sync(value: String, logger: &SimpleLogger) -> Self { + Self { + sub: LtSubStructTwinSync { + value, + logger: logger.clone(), + }, + } + } + + /// `fn f(x: &'a T) -> S<'a>` + #[frb(serialize)] + pub fn compute_type_with_lifetime_twin_sync<'a>(&'a self) -> LtTypeWithLifetimeTwinSync<'a> { + LtTypeWithLifetimeTwinSync { field: self } + } + + // /// `fn f(x: &'a T) -> &'a S` + // pub fn compute_sub_struct_twin_sync<'a>(&'a self) -> &'a LtSubStructTwinSync { + // &self.sub + // } + + /// The unrelated arg should not affect results + #[frb(serialize)] + pub fn compute_with_unrelated_borrowed_arg_twin_sync<'a>( + &'a self, + unrelated_borrowed: &LtOwnedStructTwinSync, + unrelated_owned: LtOwnedStructTwinSync, + ) -> LtTypeWithLifetimeTwinSync<'a> { + assert_eq!(&unrelated_borrowed.sub.value, "hi"); + assert_eq!(&unrelated_owned.sub.value, "hi"); + LtTypeWithLifetimeTwinSync { field: self } + } +} + +/// Functions (other tests are mainly methods) +#[frb(serialize)] +pub fn lt_compute_with_lifetime_function_twin_sync<'a>( + arg: &'a LtOwnedStructTwinSync, +) -> LtTypeWithLifetimeTwinSync<'a> { + LtTypeWithLifetimeTwinSync { field: arg } +} + +impl LtSubStructTwinSync { + #[frb(serialize)] + #[flutter_rust_bridge::frb(sync)] + pub fn greet_borrow_self_twin_sync(&self) -> String { + self.value.clone() + } + + #[frb(serialize)] + #[flutter_rust_bridge::frb(sync)] + pub fn greet_borrow_mut_self_twin_sync(&mut self) -> String { + self.value.clone() + } +} + +impl LtTypeWithLifetimeTwinSync<'_> { + /// `&T` where T is lifetimeable + #[frb(serialize)] + #[flutter_rust_bridge::frb(sync)] + pub fn greet_borrow_self_twin_sync(&self) -> String { + self.field.sub.value.clone() + } + + /// `&mut T` where T is lifetimeable + #[frb(serialize)] + #[flutter_rust_bridge::frb(sync)] + pub fn greet_borrow_mut_self_twin_sync(&mut self) -> String { + self.field.sub.value.clone() + } + + /// Input lifetimeable and output another lifetimeable + #[frb(serialize)] + pub fn compute_nested_type_with_lifetime_twin_sync<'a>( + &'a self, + ) -> LtNestedTypeWithLifetimeTwinSync<'a> { + LtNestedTypeWithLifetimeTwinSync { field: self } + } + + /// Input argument has type `T<'a>` (other tests mainly are `&'a T`) + #[frb(serialize)] + pub fn compute_arg_generic_lifetime_twin_sync<'a>( + arg: &LtTypeWithLifetimeTwinSync<'a>, + ) -> LtTypeWithLifetimeTwinSync<'a> { + LtTypeWithLifetimeTwinSync { field: arg.field } + } +} + +impl LtNestedTypeWithLifetimeTwinSync<'_> { + #[frb(serialize)] + #[flutter_rust_bridge::frb(sync)] + pub fn greet_borrow_self_twin_sync(&self) -> String { + self.field.field.sub.value.clone() + } + + #[frb(serialize)] + #[flutter_rust_bridge::frb(sync)] + pub fn greet_borrow_mut_self_twin_sync(&mut self) -> String { + self.field.field.sub.value.clone() + } +} + +impl LtTypeWithMultiDepTwinSync<'_> { + /// Multiple input args have lifetime + #[frb(serialize)] + pub fn compute_with_multi_arg_having_lifetime_twin_sync<'a>( + a: &'a LtOwnedStructTwinSync, + b: &'a LtOwnedStructTwinSync, + unrelated_borrowed: &LtOwnedStructTwinSync, + unrelated_owned: LtOwnedStructTwinSync, + ) -> LtTypeWithMultiDepTwinSync<'a> { + assert_eq!(&unrelated_borrowed.sub.value, "hi"); + assert_eq!(&unrelated_owned.sub.value, "hi"); + LtTypeWithMultiDepTwinSync { fields: vec![a, b] } + } + + #[frb(serialize)] + #[flutter_rust_bridge::frb(sync)] + pub fn greet_borrow_self_twin_sync(&self) -> Vec { + self.fields.iter().map(|x| x.sub.value.clone()).collect() + } + + #[frb(serialize)] + #[flutter_rust_bridge::frb(sync)] + pub fn greet_borrow_mut_self_twin_sync(&mut self) -> Vec { + self.fields.iter().map(|x| x.sub.value.clone()).collect() + } +} diff --git a/frb_example/pure_dart/rust/src/api/pseudo_manual/mod.rs b/frb_example/pure_dart/rust/src/api/pseudo_manual/mod.rs index 0f8958a56b..7a7e3dcf00 100644 --- a/frb_example/pure_dart/rust/src/api/pseudo_manual/mod.rs +++ b/frb_example/pure_dart/rust/src/api/pseudo_manual/mod.rs @@ -87,6 +87,7 @@ pub mod external_type_in_crate_twin_sync_sse; pub mod impl_trait_twin_sse; pub mod impl_trait_twin_sync; pub mod impl_trait_twin_sync_sse; +pub mod lifetimeable_twin_sync; pub mod map_and_set_twin_rust_async; pub mod map_and_set_twin_rust_async_sse; pub mod map_and_set_twin_sse; diff --git a/frb_example/pure_dart/rust/src/frb_generated.io.rs b/frb_example/pure_dart/rust/src/frb_generated.io.rs index e3b57792d1..30ccc959ec 100644 --- a/frb_example/pure_dart/rust/src/frb_generated.io.rs +++ b/frb_example/pure_dart/rust/src/frb_generated.io.rs @@ -29,6 +29,7 @@ use crate::api::pseudo_manual::impl_trait_twin_sync::SimpleTraitTwinSync; use crate::api::pseudo_manual::impl_trait_twin_sync::*; use crate::api::pseudo_manual::impl_trait_twin_sync_sse::SimpleTraitTwinSyncSse; use crate::api::pseudo_manual::impl_trait_twin_sync_sse::*; +use crate::api::pseudo_manual::lifetimeable_twin_sync::*; use crate::api::pseudo_manual::method_twin_rust_async::*; use crate::api::pseudo_manual::method_twin_rust_async_sse::*; use crate::api::pseudo_manual::method_twin_sse::*; @@ -30289,6 +30290,156 @@ pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__ wire__crate__api__pseudo_manual__impl_trait_twin_sync_sse__StructTwoWithTraitTwinSyncSse_simple_trait_fn_with_default_impl_twin_sync_sse_impl(port_) } +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync( + ptr_: *mut u8, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync_impl(ptr_, rust_vec_len_, data_len_) +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync( + ptr_: *mut u8, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync_impl(ptr_, rust_vec_len_, data_len_) +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_arg_generic_lifetime_twin_sync( + port_: i64, + ptr_: *mut u8, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_arg_generic_lifetime_twin_sync_impl(port_, ptr_, rust_vec_len_, data_len_) +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_nested_type_with_lifetime_twin_sync( + port_: i64, + ptr_: *mut u8, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_nested_type_with_lifetime_twin_sync_impl(port_, ptr_, rust_vec_len_, data_len_) +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync( + ptr_: *mut u8, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync_impl(ptr_, rust_vec_len_, data_len_) +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync( + ptr_: *mut u8, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync_impl(ptr_, rust_vec_len_, data_len_) +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_compute_with_multi_arg_having_lifetime_twin_sync( + port_: i64, + ptr_: *mut u8, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_compute_with_multi_arg_having_lifetime_twin_sync_impl(port_, ptr_, rust_vec_len_, data_len_) +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_mut_self_twin_sync( + ptr_: *mut u8, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_mut_self_twin_sync_impl(ptr_, rust_vec_len_, data_len_) +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_self_twin_sync( + ptr_: *mut u8, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_self_twin_sync_impl(ptr_, rust_vec_len_, data_len_) +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_type_with_lifetime_twin_sync( + port_: i64, + ptr_: *mut u8, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_type_with_lifetime_twin_sync_impl(port_, ptr_, rust_vec_len_, data_len_) +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_with_unrelated_borrowed_arg_twin_sync( + port_: i64, + ptr_: *mut u8, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_with_unrelated_borrowed_arg_twin_sync_impl(port_, ptr_, rust_vec_len_, data_len_) +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_twin_sync( + ptr_: *mut u8, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_twin_sync_impl(ptr_, rust_vec_len_, data_len_) +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_with_logger_twin_sync( + ptr_: *mut u8, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_with_logger_twin_sync_impl(ptr_, rust_vec_len_, data_len_) +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_mut_self_twin_sync( + ptr_: *mut u8, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_mut_self_twin_sync_impl(ptr_, rust_vec_len_, data_len_) +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_self_twin_sync( + ptr_: *mut u8, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_self_twin_sync_impl(ptr_, rust_vec_len_, data_len_) +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__lifetimeable_twin_sync__lt_compute_with_lifetime_function_twin_sync( + port_: i64, + ptr_: *mut u8, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__lt_compute_with_lifetime_function_twin_sync_impl(port_, ptr_, rust_vec_len_, data_len_) +} + #[no_mangle] pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__pseudo_manual__map_and_set_twin_rust_async__func_hash_map_i32_i32_twin_rust_async( port_: i64, @@ -44971,6 +45122,32 @@ pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_R } } +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::increment_strong_count(ptr as _); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::decrement_strong_count(ptr as _); + } +} + #[no_mangle] pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( ptr: *const std::ffi::c_void, @@ -44997,6 +45174,32 @@ pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_R } } +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::increment_strong_count(ptr as _); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::decrement_strong_count(ptr as _); + } +} + #[no_mangle] pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( ptr: *const std::ffi::c_void, @@ -45023,6 +45226,32 @@ pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_R } } +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::increment_strong_count(ptr as _); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::decrement_strong_count(ptr as _); + } +} + #[no_mangle] pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( ptr: *const std::ffi::c_void, @@ -45041,6 +45270,24 @@ pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_R } } +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count(ptr as _); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count(ptr as _); + } +} + #[no_mangle] pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( ptr: *const std::ffi::c_void, @@ -45059,6 +45306,24 @@ pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_R } } +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count(ptr as _); + } +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count(ptr as _); + } +} + #[no_mangle] pub extern "C" fn frbgen_frb_example_pure_dart_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( ptr: *const std::ffi::c_void, diff --git a/frb_example/pure_dart/rust/src/frb_generated.rs b/frb_example/pure_dart/rust/src/frb_generated.rs index e7e10a6ce8..8dc2fcbcab 100644 --- a/frb_example/pure_dart/rust/src/frb_generated.rs +++ b/frb_example/pure_dart/rust/src/frb_generated.rs @@ -46,6 +46,7 @@ use crate::api::pseudo_manual::impl_trait_twin_sync::SimpleTraitTwinSync; use crate::api::pseudo_manual::impl_trait_twin_sync::*; use crate::api::pseudo_manual::impl_trait_twin_sync_sse::SimpleTraitTwinSyncSse; use crate::api::pseudo_manual::impl_trait_twin_sync_sse::*; +use crate::api::pseudo_manual::lifetimeable_twin_sync::*; use crate::api::pseudo_manual::method_twin_rust_async::*; use crate::api::pseudo_manual::method_twin_rust_async_sse::*; use crate::api::pseudo_manual::method_twin_sse::*; @@ -93,7 +94,7 @@ flutter_rust_bridge::frb_generated_boilerplate!( default_rust_auto_opaque = RustAutoOpaqueNom, ); pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.0.0-dev.39"; -pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = -1992972191; +pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = 345629269; // Section: executor @@ -23669,6 +23670,411 @@ fn wire__crate__api__pseudo_manual__impl_trait_twin_sync_sse__StructTwoWithTrait })()) } }) } +fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync_impl( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync", port: None, mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), + _ => unreachable!(), + } + } + let mut api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtNestedTypeWithLifetimeTwinSync ::greet_borrow_mut_self_twin_sync(&mut *api_that_guard))?; Ok(output_ok) + })()) }) +} +fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync_impl( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync", port: None, mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtNestedTypeWithLifetimeTwinSync ::greet_borrow_self_twin_sync(&*&api_that_guard))?; Ok(output_ok) + })()) }) +} +fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_arg_generic_lifetime_twin_sync_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_arg_generic_lifetime_twin_sync", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_arg = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let api_arg_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg) + };let mut api_arg_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_arg, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_arg_guard = Some(api_arg_illegal_static_ref.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_arg_guard = api_arg_guard.unwrap(); +let api_arg_guard = Arc::new(api_arg_guard); + let api_arg_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg_guard) + }; let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtTypeWithLifetimeTwinSync ::compute_arg_generic_lifetime_twin_sync(&*&api_arg_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_arg.clone()), Box::new(api_arg_guard.clone())])); Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_nested_type_with_lifetime_twin_sync_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_nested_type_with_lifetime_twin_sync", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let api_that_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that) + };let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that_illegal_static_ref.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); +let api_that_guard = Arc::new(api_that_guard); + let api_that_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that_guard) + }; let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtTypeWithLifetimeTwinSync ::compute_nested_type_with_lifetime_twin_sync(&*&api_that_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync_impl( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync", port: None, mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), + _ => unreachable!(), + } + } + let mut api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtTypeWithLifetimeTwinSync ::greet_borrow_mut_self_twin_sync(&mut *api_that_guard))?; Ok(output_ok) + })()) }) +} +fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync_impl( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync", port: None, mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtTypeWithLifetimeTwinSync ::greet_borrow_self_twin_sync(&*&api_that_guard))?; Ok(output_ok) + })()) }) +} +fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_compute_with_multi_arg_having_lifetime_twin_sync_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_compute_with_multi_arg_having_lifetime_twin_sync", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_a = >>::sse_decode(&mut deserializer); +let api_b = >>::sse_decode(&mut deserializer); +let api_unrelated_borrowed = >>::sse_decode(&mut deserializer); +let api_unrelated_owned = ::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let api_a_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_a) + };let api_b_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_b) + };let mut api_a_guard = None; +let mut api_b_guard = None; +let mut api_unrelated_borrowed_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_a, 0, false), flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_b, 1, false), flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_unrelated_borrowed, 2, false)]); + for i in decode_indices_ { + match i { + 0 => api_a_guard = Some(api_a_illegal_static_ref.lockable_decode_sync_ref()), +1 => api_b_guard = Some(api_b_illegal_static_ref.lockable_decode_sync_ref()), +2 => api_unrelated_borrowed_guard = Some(api_unrelated_borrowed.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_a_guard = api_a_guard.unwrap(); +let api_b_guard = api_b_guard.unwrap(); +let api_unrelated_borrowed_guard = api_unrelated_borrowed_guard.unwrap(); +let api_a_guard = Arc::new(api_a_guard); + let api_a_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_a_guard) + };let api_b_guard = Arc::new(api_b_guard); + let api_b_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_b_guard) + }; let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtTypeWithMultiDepTwinSync ::compute_with_multi_arg_having_lifetime_twin_sync(&*api_a_guard_illegal_static_ref, &*api_b_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_a.clone()), Box::new(api_a_guard.clone()), Box::new(api_b.clone()), Box::new(api_b_guard.clone())])); Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_mut_self_twin_sync_impl( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_mut_self_twin_sync", port: None, mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), + _ => unreachable!(), + } + } + let mut api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtTypeWithMultiDepTwinSync ::greet_borrow_mut_self_twin_sync(&mut *api_that_guard))?; Ok(output_ok) + })()) }) +} +fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_self_twin_sync_impl( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_self_twin_sync", port: None, mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtTypeWithMultiDepTwinSync ::greet_borrow_self_twin_sync(&*&api_that_guard))?; Ok(output_ok) + })()) }) +} +fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_type_with_lifetime_twin_sync_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtOwnedStructTwinSync_compute_type_with_lifetime_twin_sync", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let api_that_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that) + };let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that_illegal_static_ref.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); +let api_that_guard = Arc::new(api_that_guard); + let api_that_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that_guard) + }; let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtOwnedStructTwinSync::compute_type_with_lifetime_twin_sync(&*api_that_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_with_unrelated_borrowed_arg_twin_sync_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtOwnedStructTwinSync_compute_with_unrelated_borrowed_arg_twin_sync", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>::sse_decode(&mut deserializer); +let api_unrelated_borrowed = >>::sse_decode(&mut deserializer); +let api_unrelated_owned = ::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let api_that_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that) + };let mut api_that_guard = None; +let mut api_unrelated_borrowed_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false), flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_unrelated_borrowed, 1, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that_illegal_static_ref.lockable_decode_sync_ref()), +1 => api_unrelated_borrowed_guard = Some(api_unrelated_borrowed.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); +let api_unrelated_borrowed_guard = api_unrelated_borrowed_guard.unwrap(); +let api_that_guard = Arc::new(api_that_guard); + let api_that_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that_guard) + }; let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtOwnedStructTwinSync::compute_with_unrelated_borrowed_arg_twin_sync(&*api_that_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_twin_sync_impl( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtOwnedStructTwinSync_create_twin_sync", port: None, mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_value = ::sse_decode(&mut deserializer);deserializer.end(); + transform_result_sse::<_, ()>((move || { + let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtOwnedStructTwinSync::create_twin_sync(api_value))?; Ok(output_ok) + })()) }) +} +fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_with_logger_twin_sync_impl( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtOwnedStructTwinSync_create_with_logger_twin_sync", port: None, mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_value = ::sse_decode(&mut deserializer); +let api_logger = >>::sse_decode(&mut deserializer);deserializer.end(); + transform_result_sse::<_, ()>((move || { + let mut api_logger_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_logger, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_logger_guard = Some(api_logger.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_logger_guard = api_logger_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtOwnedStructTwinSync::create_with_logger_twin_sync(api_value, &*api_logger_guard))?; Ok(output_ok) + })()) }) +} +fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_mut_self_twin_sync_impl( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtSubStructTwinSync_greet_borrow_mut_self_twin_sync", port: None, mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>::sse_decode(&mut deserializer);deserializer.end(); + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), + _ => unreachable!(), + } + } + let mut api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtSubStructTwinSync::greet_borrow_mut_self_twin_sync(&mut *api_that_guard))?; Ok(output_ok) + })()) }) +} +fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_self_twin_sync_impl( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtSubStructTwinSync_greet_borrow_self_twin_sync", port: None, mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>::sse_decode(&mut deserializer);deserializer.end(); + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtSubStructTwinSync::greet_borrow_self_twin_sync(&*api_that_guard))?; Ok(output_ok) + })()) }) +} +fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__lt_compute_with_lifetime_function_twin_sync_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "lt_compute_with_lifetime_function_twin_sync", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_arg = >>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let api_arg_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg) + };let mut api_arg_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_arg, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_arg_guard = Some(api_arg_illegal_static_ref.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_arg_guard = api_arg_guard.unwrap(); +let api_arg_guard = Arc::new(api_arg_guard); + let api_arg_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg_guard) + }; let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::lt_compute_with_lifetime_function_twin_sync(&*api_arg_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_arg.clone()), Box::new(api_arg_guard.clone())])); Ok(output_ok) + })()) + } }) +} fn wire__crate__api__pseudo_manual__map_and_set_twin_rust_async__func_hash_map_i32_i32_twin_rust_async_impl( port_: flutter_rust_bridge::for_generated::MessagePort, arg: impl CstDecode>, @@ -47354,6 +47760,18 @@ impl SseDecode for RustAutoOpaqueNom>> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = >, + >, + >>::sse_decode(deserializer); + return flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_decode(inner); + } +} + impl SseDecode for RustAutoOpaqueNom>> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -47366,6 +47784,18 @@ impl SseDecode for RustAutoOpaqueNom>> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = >, + >, + >>::sse_decode(deserializer); + return flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_decode(inner); + } +} + impl SseDecode for RustAutoOpaqueNom>> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -47378,6 +47808,18 @@ impl SseDecode for RustAutoOpaqueNom>> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = >, + >, + >>::sse_decode(deserializer); + return flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_decode(inner); + } +} + impl SseDecode for RustAutoOpaqueNom { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -47974,6 +48416,16 @@ impl SseDecode for LtOwnedStructTwinNormal { } } +impl SseDecode for LtOwnedStructTwinSync { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = , + >>::sse_decode(deserializer); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); + } +} + impl SseDecode for LtSubStructTwinNormal { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -47984,6 +48436,16 @@ impl SseDecode for LtSubStructTwinNormal { } } +impl SseDecode for LtSubStructTwinSync { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = , + >>::sse_decode(deserializer); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); + } +} + impl SseDecode for MyAudioParamTwinNormal { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -50855,6 +51317,20 @@ impl SseDecode } } +impl SseDecode + for RustOpaqueNom< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { decode_rust_opaque_nom(inner) }; + } +} + impl SseDecode for RustOpaqueNom< flutter_rust_bridge::for_generated::RustAutoOpaqueInner< @@ -50869,6 +51345,20 @@ impl SseDecode } } +impl SseDecode + for RustOpaqueNom< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { decode_rust_opaque_nom(inner) }; + } +} + impl SseDecode for RustOpaqueNom< flutter_rust_bridge::for_generated::RustAutoOpaqueInner< @@ -50883,6 +51373,20 @@ impl SseDecode } } +impl SseDecode + for RustOpaqueNom< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { decode_rust_opaque_nom(inner) }; + } +} + impl SseDecode for RustOpaqueNom< flutter_rust_bridge::for_generated::RustAutoOpaqueInner, @@ -50895,6 +51399,18 @@ impl SseDecode } } +impl SseDecode + for RustOpaqueNom< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { decode_rust_opaque_nom(inner) }; + } +} + impl SseDecode for RustOpaqueNom< flutter_rust_bridge::for_generated::RustAutoOpaqueInner, @@ -50907,6 +51423,16 @@ impl SseDecode } } +impl SseDecode + for RustOpaqueNom> +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return unsafe { decode_rust_opaque_nom(inner) }; + } +} + impl SseDecode for RustOpaqueNom< flutter_rust_bridge::for_generated::RustAutoOpaqueInner, @@ -68352,6 +68878,26 @@ impl flutter_rust_bridge::IntoIntoDart> } } +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for FrbWrapper { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self.0) + .into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for FrbWrapper +{ +} + +impl flutter_rust_bridge::IntoIntoDart> + for LtOwnedStructTwinSync +{ + fn into_into_dart(self) -> FrbWrapper { + self.into() + } +} + // Codec=Dco (DartCObject based), see doc to use other codecs impl flutter_rust_bridge::IntoDart for FrbWrapper { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { @@ -68372,6 +68918,24 @@ impl flutter_rust_bridge::IntoIntoDart> } } +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for FrbWrapper { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self.0) + .into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for FrbWrapper +{ +} + +impl flutter_rust_bridge::IntoIntoDart> for LtSubStructTwinSync { + fn into_into_dart(self) -> FrbWrapper { + self.into() + } +} + // Codec=Dco (DartCObject based), see doc to use other codecs impl flutter_rust_bridge::IntoDart for FrbWrapper { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { @@ -84234,6 +84798,20 @@ impl SseEncode for RustAutoOpaqueNom>> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >, + >, + >>::sse_encode( + flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_encode(self), + serializer, + ); + } +} + impl SseEncode for RustAutoOpaqueNom>> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -84248,6 +84826,20 @@ impl SseEncode for RustAutoOpaqueNom>> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >, + >, + >>::sse_encode( + flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_encode(self), + serializer, + ); + } +} + impl SseEncode for RustAutoOpaqueNom>> { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -84262,6 +84854,20 @@ impl SseEncode for RustAutoOpaqueNom>> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >, + >, + >>::sse_encode( + flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_encode(self), + serializer, + ); + } +} + impl SseEncode for RustAutoOpaqueNom { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -84944,6 +85550,18 @@ impl SseEncode for LtOwnedStructTwinNormal { } } +impl SseEncode for LtOwnedStructTwinSync { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + , + >>::sse_encode( + flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), + serializer, + ); + } +} + impl SseEncode for LtSubStructTwinNormal { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -84956,6 +85574,13 @@ impl SseEncode for LtSubStructTwinNormal { } } +impl SseEncode for LtSubStructTwinSync { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, StdArc<_>>(self), serializer); + } +} + impl SseEncode for MyAudioParamTwinNormal { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -88064,6 +88689,21 @@ impl SseEncode } } +impl SseEncode + for RustOpaqueNom< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + impl SseEncode for RustOpaqueNom< flutter_rust_bridge::for_generated::RustAutoOpaqueInner< @@ -88079,6 +88719,21 @@ impl SseEncode } } +impl SseEncode + for RustOpaqueNom< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + impl SseEncode for RustOpaqueNom< flutter_rust_bridge::for_generated::RustAutoOpaqueInner< @@ -88094,6 +88749,21 @@ impl SseEncode } } +impl SseEncode + for RustOpaqueNom< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + impl SseEncode for RustOpaqueNom< flutter_rust_bridge::for_generated::RustAutoOpaqueInner, @@ -88107,6 +88777,19 @@ impl SseEncode } } +impl SseEncode + for RustOpaqueNom< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + impl SseEncode for RustOpaqueNom< flutter_rust_bridge::for_generated::RustAutoOpaqueInner, @@ -88120,6 +88803,17 @@ impl SseEncode } } +impl SseEncode + for RustOpaqueNom> +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + impl SseEncode for RustOpaqueNom< flutter_rust_bridge::for_generated::RustAutoOpaqueInner, diff --git a/frb_example/pure_dart/rust/src/frb_generated.web.rs b/frb_example/pure_dart/rust/src/frb_generated.web.rs index e325cd5a5f..328ed38f57 100644 --- a/frb_example/pure_dart/rust/src/frb_generated.web.rs +++ b/frb_example/pure_dart/rust/src/frb_generated.web.rs @@ -29,6 +29,7 @@ use crate::api::pseudo_manual::impl_trait_twin_sync::SimpleTraitTwinSync; use crate::api::pseudo_manual::impl_trait_twin_sync::*; use crate::api::pseudo_manual::impl_trait_twin_sync_sse::SimpleTraitTwinSyncSse; use crate::api::pseudo_manual::impl_trait_twin_sync_sse::*; +use crate::api::pseudo_manual::lifetimeable_twin_sync::*; use crate::api::pseudo_manual::method_twin_rust_async::*; use crate::api::pseudo_manual::method_twin_rust_async_sse::*; use crate::api::pseudo_manual::method_twin_sse::*; @@ -27212,6 +27213,156 @@ pub fn wire__crate__api__pseudo_manual__impl_trait_twin_sync_sse__StructTwoWithT wire__crate__api__pseudo_manual__impl_trait_twin_sync_sse__StructTwoWithTraitTwinSyncSse_simple_trait_fn_with_default_impl_twin_sync_sse_impl(port_) } +#[wasm_bindgen] +pub fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync_impl(ptr_, rust_vec_len_, data_len_) +} + +#[wasm_bindgen] +pub fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync_impl(ptr_, rust_vec_len_, data_len_) +} + +#[wasm_bindgen] +pub fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_arg_generic_lifetime_twin_sync( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_arg_generic_lifetime_twin_sync_impl(port_, ptr_, rust_vec_len_, data_len_) +} + +#[wasm_bindgen] +pub fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_nested_type_with_lifetime_twin_sync( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_nested_type_with_lifetime_twin_sync_impl(port_, ptr_, rust_vec_len_, data_len_) +} + +#[wasm_bindgen] +pub fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync_impl(ptr_, rust_vec_len_, data_len_) +} + +#[wasm_bindgen] +pub fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync_impl(ptr_, rust_vec_len_, data_len_) +} + +#[wasm_bindgen] +pub fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_compute_with_multi_arg_having_lifetime_twin_sync( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_compute_with_multi_arg_having_lifetime_twin_sync_impl(port_, ptr_, rust_vec_len_, data_len_) +} + +#[wasm_bindgen] +pub fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_mut_self_twin_sync( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_mut_self_twin_sync_impl(ptr_, rust_vec_len_, data_len_) +} + +#[wasm_bindgen] +pub fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_self_twin_sync( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_self_twin_sync_impl(ptr_, rust_vec_len_, data_len_) +} + +#[wasm_bindgen] +pub fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_type_with_lifetime_twin_sync( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_type_with_lifetime_twin_sync_impl(port_, ptr_, rust_vec_len_, data_len_) +} + +#[wasm_bindgen] +pub fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_with_unrelated_borrowed_arg_twin_sync( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_with_unrelated_borrowed_arg_twin_sync_impl(port_, ptr_, rust_vec_len_, data_len_) +} + +#[wasm_bindgen] +pub fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_twin_sync( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_twin_sync_impl(ptr_, rust_vec_len_, data_len_) +} + +#[wasm_bindgen] +pub fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_with_logger_twin_sync( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_with_logger_twin_sync_impl(ptr_, rust_vec_len_, data_len_) +} + +#[wasm_bindgen] +pub fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_mut_self_twin_sync( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_mut_self_twin_sync_impl(ptr_, rust_vec_len_, data_len_) +} + +#[wasm_bindgen] +pub fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_self_twin_sync( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_self_twin_sync_impl(ptr_, rust_vec_len_, data_len_) +} + +#[wasm_bindgen] +pub fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__lt_compute_with_lifetime_function_twin_sync( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + wire__crate__api__pseudo_manual__lifetimeable_twin_sync__lt_compute_with_lifetime_function_twin_sync_impl(port_, ptr_, rust_vec_len_, data_len_) +} + #[wasm_bindgen] pub fn wire__crate__api__pseudo_manual__map_and_set_twin_rust_async__func_hash_map_i32_i32_twin_rust_async( port_: flutter_rust_bridge::for_generated::MessagePort, @@ -41874,6 +42025,32 @@ pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generat } } +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::increment_strong_count(ptr as _); + } +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::decrement_strong_count(ptr as _); + } +} + #[wasm_bindgen] pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( ptr: *const std::ffi::c_void, @@ -41900,6 +42077,32 @@ pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generat } } +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::increment_strong_count(ptr as _); + } +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::decrement_strong_count(ptr as _); + } +} + #[wasm_bindgen] pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( ptr: *const std::ffi::c_void, @@ -41926,6 +42129,32 @@ pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generat } } +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::increment_strong_count(ptr as _); + } +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::decrement_strong_count(ptr as _); + } +} + #[wasm_bindgen] pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( ptr: *const std::ffi::c_void, @@ -41944,6 +42173,24 @@ pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generat } } +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count(ptr as _); + } +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count(ptr as _); + } +} + #[wasm_bindgen] pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( ptr: *const std::ffi::c_void, @@ -41962,6 +42209,24 @@ pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generat } } +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::increment_strong_count(ptr as _); + } +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + ptr: *const std::ffi::c_void, +) { + unsafe { + StdArc::>::decrement_strong_count(ptr as _); + } +} + #[wasm_bindgen] pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( ptr: *const std::ffi::c_void, diff --git a/frb_example/pure_dart/test/api/pseudo_manual/lifetimeable_twin_sync_test.dart b/frb_example/pure_dart/test/api/pseudo_manual/lifetimeable_twin_sync_test.dart new file mode 100644 index 0000000000..1d11aa77dd --- /dev/null +++ b/frb_example/pure_dart/test/api/pseudo_manual/lifetimeable_twin_sync_test.dart @@ -0,0 +1,220 @@ +// NOTE: This file is mimicking how a human developer writes tests, +// and is auto-generated from `lifetimeable_test.dart` by frb_internal +// Please do not modify manually, but modify the origin and re-run frb_internal generator + +// FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "sse", "sync sse", "rustAsync sse"]} + +import 'dart:async'; + +import 'package:frb_example_pure_dart/src/rust/api/pseudo_manual/lifetimeable_twin_sync.dart'; +import 'package:frb_example_pure_dart/src/rust/api/pseudo_manual/misc_no_twin_example_a_twin_sync.dart'; +import 'package:frb_example_pure_dart/src/rust/frb_generated.dart'; +import 'package:test/test.dart'; + +Future main({bool skipRustLibInit = false}) async { + if (!skipRustLibInit) await RustLib.init(); + + group('when to dispose and the dispose order', () { + test('dispose ownedStruct', () async { + final simpleLogger = SimpleLogger(); + final ownedStruct = await LtOwnedStructTwinSync.createWithLogger( + value: 'a', logger: simpleLogger); + expect(simpleLogger.getAndReset(), []); + + ownedStruct.dispose(); + expect(simpleLogger.getAndReset(), [ + 'LtOwnedStructTwinSync.drop', + 'LtOwnedSubStructTwinSync.drop', + ]); + }); + + test('dispose ownedStruct - dispose typeWithLifetime', () async { + final simpleLogger = SimpleLogger(); + final ownedStruct = await LtOwnedStructTwinSync.createWithLogger( + value: 'a', logger: simpleLogger); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinSync(); + + ownedStruct.dispose(); + expect(simpleLogger.getAndReset(), [ + // Do *not* really dispose ownedStruct + ]); + + typeWithLifetime.dispose(); + expect(simpleLogger.getAndReset(), [ + // NOTE order: Firstly the borrowed type, secondly the owned type + 'LtTypeWithLifetimeTwinSync.drop', + 'LtOwnedStructTwinSync.drop', + 'LtOwnedSubStructTwinSync.drop', + ]); + }); + + test('dispose typeWithLifetime - dispose ownedStruct', () async { + final simpleLogger = SimpleLogger(); + final ownedStruct = await LtOwnedStructTwinSync.createWithLogger( + value: 'a', logger: simpleLogger); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinSync(); + + typeWithLifetime.dispose(); + expect(simpleLogger.getAndReset(), [ + 'LtTypeWithLifetimeTwinSync.drop', + ]); + + ownedStruct.dispose(); + expect(simpleLogger.getAndReset(), [ + 'LtOwnedStructTwinSync.drop', + 'LtOwnedSubStructTwinSync.drop', + ]); + }); + + test('dispose ownedStruct - dispose typeWithLifetime', () async { + final simpleLogger = SimpleLogger(); + final ownedStruct = await LtOwnedStructTwinSync.createWithLogger( + value: 'a', logger: simpleLogger); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinSync(); + + ownedStruct.dispose(); + expect(simpleLogger.getAndReset(), [ + // Do *not* really dispose ownedStruct + ]); + + typeWithLifetime.dispose(); + expect(simpleLogger.getAndReset(), [ + // NOTE order: Firstly the borrowed type, secondly the owned type + 'LtTypeWithLifetimeTwinSync.drop', + 'LtOwnedStructTwinSync.drop', + 'LtOwnedSubStructTwinSync.drop', + ]); + }); + + test( + 'dispose ownedStruct - dispose typeWithLifetime - dispose nestedTypeWithLifetime', + () async { + final simpleLogger = SimpleLogger(); + final ownedStruct = await LtOwnedStructTwinSync.createWithLogger( + value: 'a', logger: simpleLogger); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinSync(); + final nestedTypeWithLifetime = + await typeWithLifetime.computeNestedTypeWithLifetimeTwinSync(); + + ownedStruct.dispose(); + expect(simpleLogger.getAndReset(), [ + // Do *not* really dispose + ]); + + typeWithLifetime.dispose(); + expect(simpleLogger.getAndReset(), [ + // Do *not* really dispose + ]); + + nestedTypeWithLifetime.dispose(); + expect(simpleLogger.getAndReset(), [ + // NOTE the order + 'LtNestedTypeWithLifetimeTwinSync.drop', + 'LtTypeWithLifetimeTwinSync.drop', + 'LtOwnedStructTwinSync.drop', + 'LtOwnedSubStructTwinSync.drop', + ]); + }); + }); + + group('features', () { + test('computeTypeWithLifetimeTwinSync', () async { + final ownedStruct = await LtOwnedStructTwinSync.create(value: 'a'); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinSync(); + await _testTypeWithLifetime(ownedStruct, typeWithLifetime); + }); + + test('computeWithUnrelatedBorrowedArgTwinSync', () async { + final ownedStruct = await LtOwnedStructTwinSync.create(value: 'a'); + final typeWithLifetime = + await ownedStruct.computeWithUnrelatedBorrowedArgTwinSync( + unrelatedBorrowed: await LtOwnedStructTwinSync.create(value: 'hi'), + unrelatedOwned: await LtOwnedStructTwinSync.create(value: 'hi'), + ); + await _testTypeWithLifetime(ownedStruct, typeWithLifetime); + }); + + test('ltComputeWithLifetimeFunctionTwinSync', () async { + final ownedStruct = await LtOwnedStructTwinSync.create(value: 'a'); + final typeWithLifetime = + await ltComputeWithLifetimeFunctionTwinSync(arg: ownedStruct); + await _testTypeWithLifetime(ownedStruct, typeWithLifetime); + }); + + test('computeNestedTypeWithLifetimeTwinSync', () async { + final ownedStruct = await LtOwnedStructTwinSync.create(value: 'a'); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinSync(); + final nestedTypeWithLifetime = + await typeWithLifetime.computeNestedTypeWithLifetimeTwinSync(); + await _testNestedTypeWithLifetime( + ownedStruct, typeWithLifetime, nestedTypeWithLifetime); + }); + + test('computeArgGenericLifetimeTwinSync', () async { + final ownedStruct = await LtOwnedStructTwinSync.create(value: 'a'); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinSync(); + final anotherTypeWithLifetime = + await LtTypeWithLifetimeTwinSync.computeArgGenericLifetimeTwinSync( + arg: typeWithLifetime); + + expect(await anotherTypeWithLifetime.greetBorrowSelfTwinSync(), 'a'); + expect(await anotherTypeWithLifetime.greetBorrowMutSelfTwinSync(), 'a'); + + ownedStruct.dispose(); + typeWithLifetime.dispose(); + + expect(await anotherTypeWithLifetime.greetBorrowSelfTwinSync(), 'a'); + expect(await anotherTypeWithLifetime.greetBorrowMutSelfTwinSync(), 'a'); + }); + + test('computeWithMultiArgHavingLifetimeTwinSync', () async { + final typeWithMultiDep = await LtTypeWithMultiDepTwinSync + .computeWithMultiArgHavingLifetimeTwinSync( + a: await LtOwnedStructTwinSync.create(value: 'a'), + b: await LtOwnedStructTwinSync.create(value: 'b'), + unrelatedBorrowed: await LtOwnedStructTwinSync.create(value: 'hi'), + unrelatedOwned: await LtOwnedStructTwinSync.create(value: 'hi'), + ); + expect(await typeWithMultiDep.greetBorrowSelfTwinSync(), ['a', 'b']); + expect(await typeWithMultiDep.greetBorrowMutSelfTwinSync(), ['a', 'b']); + }); + }); +} + +Future _testTypeWithLifetime( + LtOwnedStructTwinSync ownedStruct, + LtTypeWithLifetimeTwinSync typeWithLifetime, +) async { + expect(await typeWithLifetime.greetBorrowSelfTwinSync(), 'a'); + expect(await typeWithLifetime.greetBorrowMutSelfTwinSync(), 'a'); + ownedStruct.dispose(); + expect(await typeWithLifetime.greetBorrowSelfTwinSync(), 'a'); + expect(await typeWithLifetime.greetBorrowMutSelfTwinSync(), 'a'); +} + +Future _testNestedTypeWithLifetime( + LtOwnedStructTwinSync ownedStruct, + LtTypeWithLifetimeTwinSync typeWithLifetime, + LtNestedTypeWithLifetimeTwinSync nestedTypeWithLifetime, +) async { + expect(await typeWithLifetime.greetBorrowSelfTwinSync(), 'a'); + // cannot mut borrow, since nestedTypeWithLifetime has borrowed typeWithLifetime + // expect(await typeWithLifetime.greetBorrowMutSelfTwinSync(), 'a'); + + expect(await nestedTypeWithLifetime.greetBorrowSelfTwinSync(), 'a'); + expect(await nestedTypeWithLifetime.greetBorrowMutSelfTwinSync(), 'a'); + + ownedStruct.dispose(); + typeWithLifetime.dispose(); + + // can still call + expect(await nestedTypeWithLifetime.greetBorrowSelfTwinSync(), 'a'); + expect(await nestedTypeWithLifetime.greetBorrowMutSelfTwinSync(), 'a'); +} diff --git a/frb_example/pure_dart/test/dart_valgrind_test_entrypoint.dart b/frb_example/pure_dart/test/dart_valgrind_test_entrypoint.dart index ce04c322a1..971235735a 100644 --- a/frb_example/pure_dart/test/dart_valgrind_test_entrypoint.dart +++ b/frb_example/pure_dart/test/dart_valgrind_test_entrypoint.dart @@ -30,6 +30,7 @@ import 'api/external_impl_test.dart' as external_impl_test; import 'api/external_type_in_crate_test.dart' as external_type_in_crate_test; import 'api/impl_trait_test.dart' as impl_trait_test; import 'api/inside_macro_test.dart' as inside_macro_test; +import 'api/lifetimeable_test.dart' as lifetimeable_test; import 'api/map_and_set_test.dart' as map_and_set_test; import 'api/method_test.dart' as method_test; import 'api/mirror_test.dart' as mirror_test; @@ -188,6 +189,8 @@ import 'api/pseudo_manual/impl_trait_twin_sync_sse_test.dart' as impl_trait_twin_sync_sse_test; import 'api/pseudo_manual/impl_trait_twin_sync_test.dart' as impl_trait_twin_sync_test; +import 'api/pseudo_manual/lifetimeable_twin_sync_test.dart' + as lifetimeable_twin_sync_test; import 'api/pseudo_manual/map_and_set_twin_rust_async_sse_test.dart' as map_and_set_twin_rust_async_sse_test; import 'api/pseudo_manual/map_and_set_twin_rust_async_test.dart' @@ -460,6 +463,7 @@ Future callFileEntrypoints() async { await external_type_in_crate_test.main(skipRustLibInit: true); await impl_trait_test.main(skipRustLibInit: true); await inside_macro_test.main(skipRustLibInit: true); + await lifetimeable_test.main(skipRustLibInit: true); await map_and_set_test.main(skipRustLibInit: true); await method_test.main(skipRustLibInit: true); await mirror_test.main(skipRustLibInit: true); @@ -552,6 +556,7 @@ Future callFileEntrypoints() async { await impl_trait_twin_sse_test.main(skipRustLibInit: true); await impl_trait_twin_sync_sse_test.main(skipRustLibInit: true); await impl_trait_twin_sync_test.main(skipRustLibInit: true); + await lifetimeable_twin_sync_test.main(skipRustLibInit: true); await map_and_set_twin_rust_async_sse_test.main(skipRustLibInit: true); await map_and_set_twin_rust_async_test.main(skipRustLibInit: true); await map_and_set_twin_sse_test.main(skipRustLibInit: true); diff --git a/frb_example/pure_dart_pde/flutter_rust_bridge.yaml b/frb_example/pure_dart_pde/flutter_rust_bridge.yaml index d533b038ca..d5ef03b42d 100644 --- a/frb_example/pure_dart_pde/flutter_rust_bridge.yaml +++ b/frb_example/pure_dart_pde/flutter_rust_bridge.yaml @@ -11,6 +11,8 @@ rust_preamble: "// test for rust_preamble" # To help developing flutter_rust_bridge; normal users usually do not set this stop_on_error: true +enable_lifetime: true + # only for development of flutter_rust_bridge, not for normal users (dump all debug information) dump_all: true # only for development of flutter_rust_bridge, not for normal users (use local dependency) diff --git a/frb_example/pure_dart_pde/lib/src/rust/api/lifetimeable.dart b/frb_example/pure_dart_pde/lib/src/rust/api/lifetimeable.dart new file mode 100644 index 0000000000..0e0f0dad45 --- /dev/null +++ b/frb_example/pure_dart_pde/lib/src/rust/api/lifetimeable.dart @@ -0,0 +1,93 @@ +// This file is automatically generated, so please do not edit it. +// Generated by `flutter_rust_bridge`@ 2.0.0-dev.39. + +// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import + +import '../frb_generated.dart'; +import 'misc_no_twin_example_a.dart'; +import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; + +/// Functions (other tests are mainly methods) +Future ltComputeWithLifetimeFunctionTwinNormal( + {required LtOwnedStructTwinNormal arg}) => + RustLib.instance.api + .crateApiLifetimeableLtComputeWithLifetimeFunctionTwinNormal(arg: arg); + +// Rust type: RustOpaqueMoi >>> +abstract class LtNestedTypeWithLifetimeTwinNormal + implements RustOpaqueInterface { + Future greetBorrowMutSelfTwinNormal(); + + Future greetBorrowSelfTwinNormal(); +} + +// Rust type: RustOpaqueMoi >>> +abstract class LtTypeWithLifetimeTwinNormal implements RustOpaqueInterface { + /// Input argument has type `T<'a>` (other tests mainly are `&'a T`) + static Future< + LtTypeWithLifetimeTwinNormal> computeArgGenericLifetimeTwinNormal( + {required LtTypeWithLifetimeTwinNormal arg}) => + RustLib.instance.api + .crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeArgGenericLifetimeTwinNormal( + arg: arg); + + /// Input lifetimeable and output another lifetimeable + Future + computeNestedTypeWithLifetimeTwinNormal(); + + /// `&mut T` where T is lifetimeable + Future greetBorrowMutSelfTwinNormal(); + + /// `&T` where T is lifetimeable + Future greetBorrowSelfTwinNormal(); +} + +// Rust type: RustOpaqueMoi >>> +abstract class LtTypeWithMultiDepTwinNormal implements RustOpaqueInterface { + /// Multiple input args have lifetime + static Future< + LtTypeWithMultiDepTwinNormal> computeWithMultiArgHavingLifetimeTwinNormal( + {required LtOwnedStructTwinNormal a, + required LtOwnedStructTwinNormal b, + required LtOwnedStructTwinNormal unrelatedBorrowed, + required LtOwnedStructTwinNormal unrelatedOwned}) => + RustLib.instance.api + .crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticComputeWithMultiArgHavingLifetimeTwinNormal( + a: a, + b: b, + unrelatedBorrowed: unrelatedBorrowed, + unrelatedOwned: unrelatedOwned); + + Future> greetBorrowMutSelfTwinNormal(); + + Future> greetBorrowSelfTwinNormal(); +} + +// Rust type: RustOpaqueMoi> +abstract class LtOwnedStructTwinNormal implements RustOpaqueInterface { + /// `fn f(x: &'a T) -> S<'a>` + Future computeTypeWithLifetimeTwinNormal(); + + /// The unrelated arg should not affect results + Future + computeWithUnrelatedBorrowedArgTwinNormal( + {required LtOwnedStructTwinNormal unrelatedBorrowed, + required LtOwnedStructTwinNormal unrelatedOwned}); + + static Future create({required String value}) => + RustLib.instance.api + .crateApiLifetimeableLtOwnedStructTwinNormalCreate(value: value); + + static Future createWithLogger( + {required String value, required SimpleLogger logger}) => + RustLib.instance.api + .crateApiLifetimeableLtOwnedStructTwinNormalCreateWithLogger( + value: value, logger: logger); +} + +// Rust type: RustOpaqueMoi> +abstract class LtSubStructTwinNormal implements RustOpaqueInterface { + Future greetBorrowMutSelfTwinNormal(); + + Future greetBorrowSelfTwinNormal(); +} diff --git a/frb_example/pure_dart_pde/lib/src/rust/api/misc_no_twin_example_a.dart b/frb_example/pure_dart_pde/lib/src/rust/api/misc_no_twin_example_a.dart index 119e99b70d..4e4dfabc37 100644 --- a/frb_example/pure_dart_pde/lib/src/rust/api/misc_no_twin_example_a.dart +++ b/frb_example/pure_dart_pde/lib/src/rust/api/misc_no_twin_example_a.dart @@ -7,6 +7,8 @@ import '../frb_generated.dart'; import 'misc_no_twin_example_b.dart'; import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; +// These functions are ignored because they are not marked as `pub`: `log` + Future sameFunctionNameInDifferentFiles() => RustLib.instance.api .crateApiMiscNoTwinExampleASameFunctionNameInDifferentFiles(); @@ -69,6 +71,14 @@ abstract class ItemContainerSolutionOneTwinNormal // Rust type: RustOpaqueMoi> abstract class OpaqueItemTwinNormal implements RustOpaqueInterface {} +// Rust type: RustOpaqueMoi> +abstract class SimpleLogger implements RustOpaqueInterface { + List getAndReset(); + + factory SimpleLogger() => + RustLib.instance.api.crateApiMiscNoTwinExampleASimpleLoggerNew(); +} + // Rust type: RustOpaqueMoi> abstract class StructInMiscNoTwinExampleA implements RustOpaqueInterface { Future sampleFunctionA(); diff --git a/frb_example/pure_dart_pde/lib/src/rust/api/pseudo_manual/lifetimeable_twin_sync.dart b/frb_example/pure_dart_pde/lib/src/rust/api/pseudo_manual/lifetimeable_twin_sync.dart new file mode 100644 index 0000000000..7f131f0a73 --- /dev/null +++ b/frb_example/pure_dart_pde/lib/src/rust/api/pseudo_manual/lifetimeable_twin_sync.dart @@ -0,0 +1,92 @@ +// This file is automatically generated, so please do not edit it. +// Generated by `flutter_rust_bridge`@ 2.0.0-dev.39. + +// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import + +import '../../frb_generated.dart'; +import '../misc_no_twin_example_a.dart'; +import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; + +/// Functions (other tests are mainly methods) +Future ltComputeWithLifetimeFunctionTwinSync( + {required LtOwnedStructTwinSync arg}) => + RustLib.instance.api + .crateApiPseudoManualLifetimeableTwinSyncLtComputeWithLifetimeFunctionTwinSync( + arg: arg); + +// Rust type: RustOpaqueMoi >>> +abstract class LtNestedTypeWithLifetimeTwinSync implements RustOpaqueInterface { + String greetBorrowMutSelfTwinSync(); + + String greetBorrowSelfTwinSync(); +} + +// Rust type: RustOpaqueMoi >>> +abstract class LtTypeWithLifetimeTwinSync implements RustOpaqueInterface { + /// Input argument has type `T<'a>` (other tests mainly are `&'a T`) + static Future computeArgGenericLifetimeTwinSync( + {required LtTypeWithLifetimeTwinSync arg}) => + RustLib.instance.api + .crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticComputeArgGenericLifetimeTwinSync( + arg: arg); + + /// Input lifetimeable and output another lifetimeable + Future + computeNestedTypeWithLifetimeTwinSync(); + + /// `&mut T` where T is lifetimeable + String greetBorrowMutSelfTwinSync(); + + /// `&T` where T is lifetimeable + String greetBorrowSelfTwinSync(); +} + +// Rust type: RustOpaqueMoi >>> +abstract class LtTypeWithMultiDepTwinSync implements RustOpaqueInterface { + /// Multiple input args have lifetime + static Future< + LtTypeWithMultiDepTwinSync> computeWithMultiArgHavingLifetimeTwinSync( + {required LtOwnedStructTwinSync a, + required LtOwnedStructTwinSync b, + required LtOwnedStructTwinSync unrelatedBorrowed, + required LtOwnedStructTwinSync unrelatedOwned}) => + RustLib.instance.api + .crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstaticComputeWithMultiArgHavingLifetimeTwinSync( + a: a, + b: b, + unrelatedBorrowed: unrelatedBorrowed, + unrelatedOwned: unrelatedOwned); + + List greetBorrowMutSelfTwinSync(); + + List greetBorrowSelfTwinSync(); +} + +// Rust type: RustOpaqueMoi> +abstract class LtOwnedStructTwinSync implements RustOpaqueInterface { + /// `fn f(x: &'a T) -> S<'a>` + Future computeTypeWithLifetimeTwinSync(); + + /// The unrelated arg should not affect results + Future computeWithUnrelatedBorrowedArgTwinSync( + {required LtOwnedStructTwinSync unrelatedBorrowed, + required LtOwnedStructTwinSync unrelatedOwned}); + + static LtOwnedStructTwinSync createTwinSync({required String value}) => RustLib + .instance.api + .crateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncCreateTwinSync( + value: value); + + static LtOwnedStructTwinSync createWithLoggerTwinSync( + {required String value, required SimpleLogger logger}) => + RustLib.instance.api + .crateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncCreateWithLoggerTwinSync( + value: value, logger: logger); +} + +// Rust type: RustOpaqueMoi> +abstract class LtSubStructTwinSync implements RustOpaqueInterface { + String greetBorrowMutSelfTwinSync(); + + String greetBorrowSelfTwinSync(); +} diff --git a/frb_example/pure_dart_pde/lib/src/rust/frb_generated.dart b/frb_example/pure_dart_pde/lib/src/rust/frb_generated.dart index 7d731569eb..bc124f6ce3 100644 --- a/frb_example/pure_dart_pde/lib/src/rust/frb_generated.dart +++ b/frb_example/pure_dart_pde/lib/src/rust/frb_generated.dart @@ -33,6 +33,7 @@ import 'api/external_impl.dart'; import 'api/external_type_in_crate.dart'; import 'api/impl_trait.dart'; import 'api/inside_macro.dart'; +import 'api/lifetimeable.dart'; import 'api/map_and_set.dart'; import 'api/method.dart'; import 'api/mirror.dart'; @@ -83,6 +84,7 @@ import 'api/pseudo_manual/exception_twin_sync.dart'; import 'api/pseudo_manual/external_type_in_crate_twin_rust_async.dart'; import 'api/pseudo_manual/external_type_in_crate_twin_sync.dart'; import 'api/pseudo_manual/impl_trait_twin_sync.dart'; +import 'api/pseudo_manual/lifetimeable_twin_sync.dart'; import 'api/pseudo_manual/map_and_set_twin_rust_async.dart'; import 'api/pseudo_manual/map_and_set_twin_sync.dart'; import 'api/pseudo_manual/method_twin_rust_async.dart'; @@ -196,7 +198,7 @@ class RustLib extends BaseEntrypoint { String get codegenVersion => '2.0.0-dev.39'; @override - int get rustContentHash => 395683424; + int get rustContentHash => 1410295838; static const kDefaultExternalLibraryLoaderConfig = ExternalLibraryLoaderConfig( @@ -702,6 +704,75 @@ abstract class RustLibApi extends BaseApi { Future crateApiInsideMacroFuncMacroStructTwinNormal( {required MacroStruct arg}); + Future + crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( + {required LtNestedTypeWithLifetimeTwinNormal that}); + + Future + crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormal( + {required LtNestedTypeWithLifetimeTwinNormal that}); + + Future + crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeArgGenericLifetimeTwinNormal( + {required LtTypeWithLifetimeTwinNormal arg}); + + Future + crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeNestedTypeWithLifetimeTwinNormal( + {required LtTypeWithLifetimeTwinNormal that}); + + Future + crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( + {required LtTypeWithLifetimeTwinNormal that}); + + Future + crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormal( + {required LtTypeWithLifetimeTwinNormal that}); + + Future + crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticComputeWithMultiArgHavingLifetimeTwinNormal( + {required LtOwnedStructTwinNormal a, + required LtOwnedStructTwinNormal b, + required LtOwnedStructTwinNormal unrelatedBorrowed, + required LtOwnedStructTwinNormal unrelatedOwned}); + + Future> + crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowMutSelfTwinNormal( + {required LtTypeWithMultiDepTwinNormal that}); + + Future> + crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowSelfTwinNormal( + {required LtTypeWithMultiDepTwinNormal that}); + + Future + crateApiLifetimeableLtOwnedStructTwinNormalComputeTypeWithLifetimeTwinNormal( + {required LtOwnedStructTwinNormal that}); + + Future + crateApiLifetimeableLtOwnedStructTwinNormalComputeWithUnrelatedBorrowedArgTwinNormal( + {required LtOwnedStructTwinNormal that, + required LtOwnedStructTwinNormal unrelatedBorrowed, + required LtOwnedStructTwinNormal unrelatedOwned}); + + Future + crateApiLifetimeableLtOwnedStructTwinNormalCreate( + {required String value}); + + Future + crateApiLifetimeableLtOwnedStructTwinNormalCreateWithLogger( + {required String value, required SimpleLogger logger}); + + Future + crateApiLifetimeableLtSubStructTwinNormalGreetBorrowMutSelfTwinNormal( + {required LtSubStructTwinNormal that}); + + Future + crateApiLifetimeableLtSubStructTwinNormalGreetBorrowSelfTwinNormal( + {required LtSubStructTwinNormal that}); + + Future + crateApiLifetimeableLtComputeWithLifetimeFunctionTwinNormal( + {required LtOwnedStructTwinNormal arg}); + Future> crateApiMapAndSetFuncHashMapI32I32TwinNormal( {required Map arg}); @@ -973,6 +1044,11 @@ abstract class RustLibApi extends BaseApi { crateApiMiscNoTwinExampleAItemContainerSolutionOneTwinNormalGetItemContentsTwinNormal( {required ItemContainerSolutionOneTwinNormal that}); + List crateApiMiscNoTwinExampleASimpleLoggerGetAndReset( + {required SimpleLogger that}); + + SimpleLogger crateApiMiscNoTwinExampleASimpleLoggerNew(); + Future crateApiMiscNoTwinExampleAStructInMiscNoTwinExampleASampleFunctionA( {required StructInMiscNoTwinExampleA that}); @@ -2850,6 +2926,75 @@ abstract class RustLibApi extends BaseApi { Future crateApiPseudoManualImplTraitTwinSyncStructTwoWithTraitTwinSyncSimpleTraitFnWithDefaultImplTwinSync(); + String + crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstaticGreetBorrowMutSelfTwinSync( + {required LtNestedTypeWithLifetimeTwinSync that}); + + String + crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstaticGreetBorrowSelfTwinSync( + {required LtNestedTypeWithLifetimeTwinSync that}); + + Future + crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticComputeArgGenericLifetimeTwinSync( + {required LtTypeWithLifetimeTwinSync arg}); + + Future + crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticComputeNestedTypeWithLifetimeTwinSync( + {required LtTypeWithLifetimeTwinSync that}); + + String + crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticGreetBorrowMutSelfTwinSync( + {required LtTypeWithLifetimeTwinSync that}); + + String + crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticGreetBorrowSelfTwinSync( + {required LtTypeWithLifetimeTwinSync that}); + + Future + crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstaticComputeWithMultiArgHavingLifetimeTwinSync( + {required LtOwnedStructTwinSync a, + required LtOwnedStructTwinSync b, + required LtOwnedStructTwinSync unrelatedBorrowed, + required LtOwnedStructTwinSync unrelatedOwned}); + + List + crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstaticGreetBorrowMutSelfTwinSync( + {required LtTypeWithMultiDepTwinSync that}); + + List + crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstaticGreetBorrowSelfTwinSync( + {required LtTypeWithMultiDepTwinSync that}); + + Future + crateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncComputeTypeWithLifetimeTwinSync( + {required LtOwnedStructTwinSync that}); + + Future + crateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncComputeWithUnrelatedBorrowedArgTwinSync( + {required LtOwnedStructTwinSync that, + required LtOwnedStructTwinSync unrelatedBorrowed, + required LtOwnedStructTwinSync unrelatedOwned}); + + LtOwnedStructTwinSync + crateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncCreateTwinSync( + {required String value}); + + LtOwnedStructTwinSync + crateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncCreateWithLoggerTwinSync( + {required String value, required SimpleLogger logger}); + + String + crateApiPseudoManualLifetimeableTwinSyncLtSubStructTwinSyncGreetBorrowMutSelfTwinSync( + {required LtSubStructTwinSync that}); + + String + crateApiPseudoManualLifetimeableTwinSyncLtSubStructTwinSyncGreetBorrowSelfTwinSync( + {required LtSubStructTwinSync that}); + + Future + crateApiPseudoManualLifetimeableTwinSyncLtComputeWithLifetimeFunctionTwinSync( + {required LtOwnedStructTwinSync arg}); + Future> crateApiPseudoManualMapAndSetTwinRustAsyncFuncHashMapI32I32TwinRustAsync( {required Map arg}); @@ -4719,6 +4864,96 @@ abstract class RustLibApi extends BaseApi { CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_ItemContainerSolutionOneTwinNormalPtr; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtNestedTypeWithLifetimeTwinNormal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormal; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormalPtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtNestedTypeWithLifetimeTwinSync; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinSync; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinSyncPtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtTypeWithLifetimeTwinNormal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormal; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormalPtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtTypeWithLifetimeTwinSync; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinSync; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinSyncPtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtTypeWithMultiDepTwinNormal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormal; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtTypeWithMultiDepTwinSync; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinSync; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinSyncPtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtOwnedStructTwinNormal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtOwnedStructTwinNormal; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtOwnedStructTwinNormalPtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtOwnedStructTwinSync; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtOwnedStructTwinSync; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtOwnedStructTwinSyncPtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtSubStructTwinNormal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtSubStructTwinNormal; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtSubStructTwinNormalPtr; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtSubStructTwinSync; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtSubStructTwinSync; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtSubStructTwinSyncPtr; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_MyAudioParamTwinNormal; @@ -4863,6 +5098,14 @@ abstract class RustLibApi extends BaseApi { CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_OpaqueTwoTwinSyncPtr; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_SimpleLogger; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_SimpleLogger; + + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_SimpleLoggerPtr; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_SimpleOpaqueExternalStructWithMethod; @@ -9530,6 +9773,520 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { argNames: ["arg"], ); + @override + Future + crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( + {required LtNestedTypeWithLifetimeTwinNormal that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + that, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 170, port: port_); + }, + codec: SseCodec( + decodeSuccessData: sse_decode_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormalConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal", + argNames: ["that"], + ); + + @override + Future + crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormal( + {required LtNestedTypeWithLifetimeTwinNormal that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + that, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 171, port: port_); + }, + codec: SseCodec( + decodeSuccessData: sse_decode_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormalConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal", + argNames: ["that"], + ); + + @override + Future + crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeArgGenericLifetimeTwinNormal( + {required LtTypeWithLifetimeTwinNormal arg}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + arg, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 172, port: port_); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic, + decodeErrorData: null, + ), + constMeta: + kCrateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeArgGenericLifetimeTwinNormalConstMeta, + argValues: [arg], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeArgGenericLifetimeTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal", + argNames: ["arg"], + ); + + @override + Future + crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeNestedTypeWithLifetimeTwinNormal( + {required LtTypeWithLifetimeTwinNormal that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + that, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 173, port: port_); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic, + decodeErrorData: null, + ), + constMeta: + kCrateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeNestedTypeWithLifetimeTwinNormalConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeNestedTypeWithLifetimeTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_nested_type_with_lifetime_twin_normal", + argNames: ["that"], + ); + + @override + Future + crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( + {required LtTypeWithLifetimeTwinNormal that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + that, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 174, port: port_); + }, + codec: SseCodec( + decodeSuccessData: sse_decode_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormalConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal", + argNames: ["that"], + ); + + @override + Future + crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormal( + {required LtTypeWithLifetimeTwinNormal that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + that, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 175, port: port_); + }, + codec: SseCodec( + decodeSuccessData: sse_decode_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormalConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal", + argNames: ["that"], + ); + + @override + Future + crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticComputeWithMultiArgHavingLifetimeTwinNormal( + {required LtOwnedStructTwinNormal a, + required LtOwnedStructTwinNormal b, + required LtOwnedStructTwinNormal unrelatedBorrowed, + required LtOwnedStructTwinNormal unrelatedOwned}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + a, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + b, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + unrelatedBorrowed, serializer); + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + unrelatedOwned, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 176, port: port_); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic, + decodeErrorData: null, + ), + constMeta: + kCrateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticComputeWithMultiArgHavingLifetimeTwinNormalConstMeta, + argValues: [a, b, unrelatedBorrowed, unrelatedOwned], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticComputeWithMultiArgHavingLifetimeTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal", + argNames: ["a", "b", "unrelatedBorrowed", "unrelatedOwned"], + ); + + @override + Future> + crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowMutSelfTwinNormal( + {required LtTypeWithMultiDepTwinNormal that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + that, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 177, port: port_); + }, + codec: SseCodec( + decodeSuccessData: sse_decode_list_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowMutSelfTwinNormalConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowMutSelfTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal", + argNames: ["that"], + ); + + @override + Future> + crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowSelfTwinNormal( + {required LtTypeWithMultiDepTwinNormal that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + that, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 178, port: port_); + }, + codec: SseCodec( + decodeSuccessData: sse_decode_list_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowSelfTwinNormalConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowSelfTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal", + argNames: ["that"], + ); + + @override + Future + crateApiLifetimeableLtOwnedStructTwinNormalComputeTypeWithLifetimeTwinNormal( + {required LtOwnedStructTwinNormal that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + that, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 179, port: port_); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic, + decodeErrorData: null, + ), + constMeta: + kCrateApiLifetimeableLtOwnedStructTwinNormalComputeTypeWithLifetimeTwinNormalConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiLifetimeableLtOwnedStructTwinNormalComputeTypeWithLifetimeTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal", + argNames: ["that"], + ); + + @override + Future + crateApiLifetimeableLtOwnedStructTwinNormalComputeWithUnrelatedBorrowedArgTwinNormal( + {required LtOwnedStructTwinNormal that, + required LtOwnedStructTwinNormal unrelatedBorrowed, + required LtOwnedStructTwinNormal unrelatedOwned}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + that, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + unrelatedBorrowed, serializer); + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + unrelatedOwned, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 180, port: port_); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic, + decodeErrorData: null, + ), + constMeta: + kCrateApiLifetimeableLtOwnedStructTwinNormalComputeWithUnrelatedBorrowedArgTwinNormalConstMeta, + argValues: [that, unrelatedBorrowed, unrelatedOwned], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiLifetimeableLtOwnedStructTwinNormalComputeWithUnrelatedBorrowedArgTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal", + argNames: ["that", "unrelatedBorrowed", "unrelatedOwned"], + ); + + @override + Future + crateApiLifetimeableLtOwnedStructTwinNormalCreate( + {required String value}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_String(value, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 181, port: port_); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal, + decodeErrorData: null, + ), + constMeta: kCrateApiLifetimeableLtOwnedStructTwinNormalCreateConstMeta, + argValues: [value], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiLifetimeableLtOwnedStructTwinNormalCreateConstMeta => + const TaskConstMeta( + debugName: "LtOwnedStructTwinNormal_create", + argNames: ["value"], + ); + + @override + Future + crateApiLifetimeableLtOwnedStructTwinNormalCreateWithLogger( + {required String value, required SimpleLogger logger}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_String(value, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + logger, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 182, port: port_); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal, + decodeErrorData: null, + ), + constMeta: + kCrateApiLifetimeableLtOwnedStructTwinNormalCreateWithLoggerConstMeta, + argValues: [value, logger], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiLifetimeableLtOwnedStructTwinNormalCreateWithLoggerConstMeta => + const TaskConstMeta( + debugName: "LtOwnedStructTwinNormal_create_with_logger", + argNames: ["value", "logger"], + ); + + @override + Future + crateApiLifetimeableLtSubStructTwinNormalGreetBorrowMutSelfTwinNormal( + {required LtSubStructTwinNormal that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + that, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 183, port: port_); + }, + codec: SseCodec( + decodeSuccessData: sse_decode_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiLifetimeableLtSubStructTwinNormalGreetBorrowMutSelfTwinNormalConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiLifetimeableLtSubStructTwinNormalGreetBorrowMutSelfTwinNormalConstMeta => + const TaskConstMeta( + debugName: + "LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal", + argNames: ["that"], + ); + + @override + Future + crateApiLifetimeableLtSubStructTwinNormalGreetBorrowSelfTwinNormal( + {required LtSubStructTwinNormal that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + that, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 184, port: port_); + }, + codec: SseCodec( + decodeSuccessData: sse_decode_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiLifetimeableLtSubStructTwinNormalGreetBorrowSelfTwinNormalConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiLifetimeableLtSubStructTwinNormalGreetBorrowSelfTwinNormalConstMeta => + const TaskConstMeta( + debugName: "LtSubStructTwinNormal_greet_borrow_self_twin_normal", + argNames: ["that"], + ); + + @override + Future + crateApiLifetimeableLtComputeWithLifetimeFunctionTwinNormal( + {required LtOwnedStructTwinNormal arg}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + arg, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 185, port: port_); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic, + decodeErrorData: null, + ), + constMeta: + kCrateApiLifetimeableLtComputeWithLifetimeFunctionTwinNormalConstMeta, + argValues: [arg], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiLifetimeableLtComputeWithLifetimeFunctionTwinNormalConstMeta => + const TaskConstMeta( + debugName: "lt_compute_with_lifetime_function_twin_normal", + argNames: ["arg"], + ); + @override Future> crateApiMapAndSetFuncHashMapI32I32TwinNormal( {required Map arg}) { @@ -9538,7 +10295,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_i_32(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 170, port: port_); + funcId: 186, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_i_32, @@ -9565,7 +10322,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_String_list_prim_u_8_strict(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 171, port: port_); + funcId: 187, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_String_list_prim_u_8_strict, @@ -9593,7 +10350,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_String_kitchen_sink_twin_normal(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 172, port: port_); + funcId: 188, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_String_kitchen_sink_twin_normal, @@ -9622,7 +10379,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_String_enum_simple_twin_normal(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 173, port: port_); + funcId: 189, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_String_enum_simple_twin_normal, @@ -9651,7 +10408,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_String_String(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 174, port: port_); + funcId: 190, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_String_String, @@ -9679,7 +10436,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_String_my_size(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 175, port: port_); + funcId: 191, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_String_my_size, @@ -9706,7 +10463,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Set_i_32(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 176, port: port_); + funcId: 192, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Set_i_32, @@ -9732,7 +10489,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Set_String(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 177, port: port_); + funcId: 193, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Set_String, @@ -9756,7 +10513,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 178, port: port_); + funcId: 194, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -9786,7 +10543,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_String(a, serializer); sse_encode_String(b, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 179, port: port_); + funcId: 195, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -9816,7 +10573,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_concatenate_with_twin_normal(that, serializer); sse_encode_String(b, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 180, port: port_); + funcId: 196, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -9845,7 +10602,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_u_32_Sse(sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 181, port: port_); + funcId: 197, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -9879,7 +10636,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_u_32(max, serializer); sse_encode_StreamSink_log_2_twin_normal_Sse(sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 182, port: port_); + funcId: 198, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -9912,7 +10669,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_concatenate_with_twin_normal(that, serializer); sse_encode_StreamSink_u_32_Sse(sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 183, port: port_); + funcId: 199, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -9949,7 +10706,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_u_32(max, serializer); sse_encode_StreamSink_log_2_twin_normal_Sse(sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 184, port: port_); + funcId: 200, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -9980,7 +10737,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_String(a, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 185, port: port_); + funcId: 201, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_concatenate_with_twin_normal, @@ -10007,7 +10764,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_concatenate_with_twin_normal(that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 186, port: port_); + funcId: 202, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -10037,7 +10794,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_u_32(b, serializer); sse_encode_u_32(c, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 187, port: port_); + funcId: 203, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_sum_with_twin_normal_array_3, @@ -10061,7 +10818,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 188, port: port_); + funcId: 204, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_sum_with_twin_normal, @@ -10088,7 +10845,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_my_callable_twin_normal(that, serializer); sse_encode_String(two, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 189, port: port_); + funcId: 205, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -10115,7 +10872,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_String(one, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 190, port: port_); + funcId: 206, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_simple_enum_twin_normal, @@ -10143,7 +10900,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_simple_enum_twin_normal(that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 191, port: port_); + funcId: 207, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -10171,7 +10928,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_simple_primitive_enum_twin_normal(that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 192, port: port_); + funcId: 208, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -10201,7 +10958,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_simple_struct_twin_normal(a, serializer); sse_encode_box_autoadd_simple_struct_twin_normal(b, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 193, port: port_); + funcId: 209, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -10229,7 +10986,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_simple_struct_twin_normal(that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 194, port: port_); + funcId: 210, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -10257,7 +11014,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_simple_struct_twin_normal(that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 195, port: port_); + funcId: 211, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -10286,7 +11043,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_String(one, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 196, port: port_); + funcId: 212, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_simple_struct_twin_normal, @@ -10314,7 +11071,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_simple_struct_twin_normal(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 197, port: port_); + funcId: 213, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_String, @@ -10342,7 +11099,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(a, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 198, port: port_); + funcId: 214, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -10372,7 +11129,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_u_32(y, serializer); sse_encode_u_32(z, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 199, port: port_); + funcId: 215, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_u_32, @@ -10398,7 +11155,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_application_settings_Sse(sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 200, port: port_); + funcId: 216, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -10426,7 +11183,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_list_application_settings_Sse(sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 201, port: port_); + funcId: 217, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -10452,7 +11209,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_numbers(nums, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 202, port: port_); + funcId: 218, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_i_32, @@ -10478,7 +11235,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_sequences(seqs, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 203, port: port_); + funcId: 219, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_i_32, @@ -10502,7 +11259,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 204, port: port_); + funcId: 220, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_application_settings, @@ -10526,7 +11283,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 205, port: port_); + funcId: 221, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_application_settings, @@ -10550,7 +11307,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 206, port: port_); + funcId: 222, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_application_message, @@ -10576,7 +11333,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_application_settings(appSettings, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 207, port: port_); + funcId: 223, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_bool, @@ -10603,7 +11360,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_application_mode_array_2_Sse(sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 208, port: port_); + funcId: 224, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -10630,7 +11387,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_application_mode_Sse(sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 209, port: port_); + funcId: 225, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -10658,7 +11415,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_Map_u_8_application_mode_Sse(sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 210, port: port_); + funcId: 226, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -10686,7 +11443,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_StreamSink_opt_box_autoadd_application_mode_Sse( sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 211, port: port_); + funcId: 227, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -10713,7 +11470,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_Set_application_mode_Sse(sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 212, port: port_); + funcId: 228, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -10740,7 +11497,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_mirror_struct_twin_normal_Sse(sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 213, port: port_); + funcId: 229, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -10769,7 +11526,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_StreamSink_record_application_settings_raw_string_enum_mirrored_Sse( sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 214, port: port_); + funcId: 230, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -10796,7 +11553,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_list_application_mode_Sse(sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 215, port: port_); + funcId: 231, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -10824,7 +11581,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_i_32(num, serializer); sse_encode_usize(times, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 216, port: port_); + funcId: 232, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_numbers, @@ -10851,7 +11608,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_i_32(seq, serializer); sse_encode_usize(times, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 217, port: port_); + funcId: 233, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_sequences, @@ -10876,7 +11633,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 218, port: port_); + funcId: 234, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_contains_mirrored_sub_struct_twin_normal, @@ -10903,7 +11660,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 219, port: port_); + funcId: 235, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_raw_string_mirrored, @@ -10930,7 +11687,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 220, port: port_); + funcId: 236, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_struct_with_hash_map, @@ -10956,7 +11713,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 221, port: port_); + funcId: 237, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_raw_string_enum_mirrored, @@ -10983,7 +11740,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 222, port: port_); + funcId: 238, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_of_nested_raw_string_mirrored, @@ -11010,7 +11767,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 223, port: port_); + funcId: 239, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_nested_raw_string_mirrored, @@ -11038,7 +11795,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_bool(nested, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 224, port: port_); + funcId: 240, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_raw_string_enum_mirrored, @@ -11063,7 +11820,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 225, port: port_); + funcId: 241, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_raw_string_mirrored, @@ -11087,7 +11844,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 226, port: port_); + funcId: 242, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_big_buffers_twin_normal, @@ -11113,7 +11870,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Char(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 227, port: port_); + funcId: 243, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Char, @@ -11139,7 +11896,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_my_tree_node_twin_normal(s, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 228, port: port_); + funcId: 244, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_my_tree_node_twin_normal, @@ -11167,7 +11924,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_my_nested_struct_twin_normal(s, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 229, port: port_); + funcId: 245, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_my_nested_struct_twin_normal, @@ -11193,7 +11950,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_String(s, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 230, port: port_); + funcId: 246, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -11220,7 +11977,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_my_size(arg, serializer); sse_encode_box_my_size(boxed, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 231, port: port_); + funcId: 247, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_my_size, @@ -11246,7 +12003,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_u_8_loose(v, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 232, port: port_); + funcId: 248, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_u_8_strict, @@ -11273,7 +12030,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_weekdays_twin_normal(weekdays, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 233, port: port_); + funcId: 249, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_weekdays_twin_normal, @@ -11301,7 +12058,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_i_32(a, serializer); sse_encode_i_32(b, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 234, port: port_); + funcId: 250, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -11328,7 +12085,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_abc_twin_normal(abc, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 235, port: port_); + funcId: 251, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_abc_twin_normal, @@ -11355,7 +12112,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_struct_with_enum_twin_normal(se, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 236, port: port_); + funcId: 252, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_struct_with_enum_twin_normal, @@ -11382,7 +12139,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerDeliberateFailSanityCheckTwinNormal( that, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 237)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 253)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_u_8_strict, @@ -11412,7 +12169,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerDeliberateFailSanityCheckTwinNormal( that, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 238)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 254)!; }, codec: SseCodec( decodeSuccessData: @@ -11443,7 +12200,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerDeliberateFailSanityCheckTwinNormal( that, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 239)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 255)!; }, codec: SseCodec( decodeSuccessData: @@ -11474,7 +12231,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerDeliberateFailSanityCheckTwinNormal( that, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 240)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 256)!; }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -11503,7 +12260,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerDeliberateFailSanityCheckTwinNormal( that, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 241)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 257)!; }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -11533,7 +12290,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerDeliberateFailSanityCheckTwinNormal( that, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 242)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 258)!; }, codec: SseCodec( decodeSuccessData: @@ -11566,7 +12323,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerDeliberateFailSanityCheckTwinNormal( that, serializer); sse_encode_list_prim_u_8_strict(deliberateBadFieldA, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 243)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 259)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -11599,7 +12356,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { that, serializer); sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueItemTwinNormal( deliberateBadFieldB, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 244)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 260)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -11632,7 +12389,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { that, serializer); sse_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueItemTwinNormal( deliberateBadFieldC, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 245)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 261)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -11664,7 +12421,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerDeliberateFailSanityCheckTwinNormal( that, serializer); sse_encode_String(goodFieldA, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 246)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 262)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -11696,7 +12453,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerDeliberateFailSanityCheckTwinNormal( that, serializer); sse_encode_i_32(goodFieldB, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 247)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 263)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -11729,7 +12486,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { that, serializer); sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueItemTwinNormal( goodFieldC, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 248)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 264)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -11757,7 +12514,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 249, port: port_); + funcId: 265, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -11787,7 +12544,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( that, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 250)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 266)!; }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -11819,7 +12576,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( that, serializer); sse_encode_String(name, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 251)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 267)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -11847,7 +12604,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 252, port: port_); + funcId: 268, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -11878,7 +12635,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 253, port: port_); + funcId: 269, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_i_32_strict, @@ -11899,6 +12656,57 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { argNames: ["that"], ); + @override + List crateApiMiscNoTwinExampleASimpleLoggerGetAndReset( + {required SimpleLogger that}) { + return handler.executeSync(SyncTask( + callFfi: () { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + that, serializer); + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 270)!; + }, + codec: SseCodec( + decodeSuccessData: sse_decode_list_String, + decodeErrorData: null, + ), + constMeta: kCrateApiMiscNoTwinExampleASimpleLoggerGetAndResetConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiMiscNoTwinExampleASimpleLoggerGetAndResetConstMeta => + const TaskConstMeta( + debugName: "SimpleLogger_get_and_reset", + argNames: ["that"], + ); + + @override + SimpleLogger crateApiMiscNoTwinExampleASimpleLoggerNew() { + return handler.executeSync(SyncTask( + callFfi: () { + final serializer = SseSerializer(generalizedFrbRustBinding); + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 271)!; + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger, + decodeErrorData: null, + ), + constMeta: kCrateApiMiscNoTwinExampleASimpleLoggerNewConstMeta, + argValues: [], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiMiscNoTwinExampleASimpleLoggerNewConstMeta => + const TaskConstMeta( + debugName: "SimpleLogger_new", + argNames: [], + ); + @override Future crateApiMiscNoTwinExampleAStructInMiscNoTwinExampleASampleFunctionA( @@ -11909,7 +12717,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerStructInMiscNoTwinExampleA( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 254, port: port_); + funcId: 272, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -11939,7 +12747,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerStructWithImplBlockInMultiFile( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 255, port: port_); + funcId: 273, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -11969,7 +12777,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerStructWithImplBlockInMultiFile( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 256, port: port_); + funcId: 274, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -11997,7 +12805,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerStructWithSimpleSetterTwinNormal( that, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 257)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 275)!; }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -12023,7 +12831,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 258)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 276)!; }, codec: SseCodec( decodeSuccessData: @@ -12053,7 +12861,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerStructWithSimpleSetterTwinNormal( that, serializer); sse_encode_i_32(value, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 259)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 277)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -12081,7 +12889,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerStructWithSimpleSetterTwinNormal( that, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 260)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 278)!; }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -12110,7 +12918,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerStructWithSimpleSetterTwinNormal( that, serializer); sse_encode_i_32(value, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 261)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 279)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -12139,7 +12947,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBoxdynAnySendSyncstatic( a, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 262, port: port_); + funcId: 280, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -12165,7 +12973,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 263, port: port_); + funcId: 281, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -12192,7 +13000,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 264, port: port_); + funcId: 282, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_item_container_solution_two_twin_normal, @@ -12223,7 +13031,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_item_container_solution_two_twin_normal( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 265, port: port_); + funcId: 283, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_i_32_strict, @@ -12250,7 +13058,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 266, port: port_); + funcId: 284, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -12279,7 +13087,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_struct_with_custom_name_method_twin_normal( that, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 267)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 285)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -12309,7 +13117,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_struct_with_impl_block_in_another_file_dependency( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 268, port: port_); + funcId: 286, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -12339,7 +13147,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerStructInMiscNoTwinExampleB( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 269, port: port_); + funcId: 287, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -12371,7 +13179,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerStructInMiscNoTwinExampleB( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 270, port: port_); + funcId: 288, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -12397,7 +13205,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 271, port: port_); + funcId: 289, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -12425,7 +13233,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_empty_twin_normal(empty, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 272, port: port_); + funcId: 290, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_empty_twin_normal, @@ -12449,7 +13257,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 273, port: port_); + funcId: 291, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -12475,7 +13283,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_my_size(l, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 274, port: port_); + funcId: 292, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_my_size, @@ -12501,7 +13309,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_String(names, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 275, port: port_); + funcId: 293, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_String, @@ -12527,7 +13335,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_new_type_int_twin_normal(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 276, port: port_); + funcId: 294, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_new_type_int_twin_normal, @@ -12553,7 +13361,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_f_64(opt, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 277, port: port_); + funcId: 295, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_f_64, @@ -12593,7 +13401,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_opt_box_bool(boolbox, serializer); sse_encode_opt_box_exotic_optionals_twin_normal(structbox, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 278, port: port_); + funcId: 296, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -12630,7 +13438,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_opt_box_autoadd_exotic_optionals_twin_normal( opt, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 279, port: port_); + funcId: 297, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -12659,7 +13467,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_f_64(left, serializer); sse_encode_f_64(right, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 280, port: port_); + funcId: 298, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_f_64, @@ -12685,7 +13493,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_String(document, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 281, port: port_); + funcId: 299, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_element_twin_normal, @@ -12711,7 +13519,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_opt_vecs_twin_normal(opt, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 282, port: port_); + funcId: 300, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_vecs_twin_normal, @@ -12740,7 +13548,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_opt_box_autoadd_f_64(myF64, serializer); sse_encode_opt_box_autoadd_bool(myBool, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 283, port: port_); + funcId: 301, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_i_32, @@ -12767,7 +13575,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 284, port: port_); + funcId: 302, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -12793,7 +13601,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_String(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 285, port: port_); + funcId: 303, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_String, @@ -12819,7 +13627,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_u_8_loose(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 286, port: port_); + funcId: 304, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_u_8_strict, @@ -12844,7 +13652,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_String(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 287, port: port_); + funcId: 305, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -12870,7 +13678,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_String(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 288, port: port_); + funcId: 306, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -12898,7 +13706,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_simple_struct_for_borrow_twin_normal( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 289, port: port_); + funcId: 307, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_simple_struct_for_borrow_twin_normal, @@ -12925,7 +13733,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(n, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 290, port: port_); + funcId: 308, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_vec_of_primitive_pack_twin_normal, @@ -12959,7 +13767,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_f_64(myF64, serializer); sse_encode_bool(myBool, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 291, port: port_); + funcId: 309, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -12985,7 +13793,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_u_32(myU32, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 292, port: port_); + funcId: 310, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_u_32, @@ -13012,7 +13820,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_String(value, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 293, port: port_); + funcId: 311, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -13041,7 +13849,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_ProxyEnum_auto_ref_rust_opaque_flutter_rust_bridgefor_generated_rust_auto_opaque_inner_my_audio_param_twin_normal_proxy_enum( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 294, port: port_); + funcId: 312, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -13067,7 +13875,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 295, port: port_); + funcId: 313, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -13095,7 +13903,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_u_8_array_1600(blob, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 298, port: port_); + funcId: 316, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_blob_twin_rust_async, @@ -13124,7 +13932,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_test_id_twin_rust_async(id, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 299, port: port_); + funcId: 317, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_test_id_twin_rust_async, @@ -13151,7 +13959,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 300, port: port_); + funcId: 318, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_u_8_array_5, @@ -13178,7 +13986,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 301, port: port_); + funcId: 319, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_point_twin_rust_async_array_2, @@ -13206,7 +14014,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_f_64_array_16(array, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 302, port: port_); + funcId: 320, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_f_64, @@ -13235,7 +14043,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_test_id_twin_rust_async_array_4(id, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 303, port: port_); + funcId: 321, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_test_id_twin_rust_async_array_2, @@ -13264,7 +14072,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_u_8_array_32(id, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 304, port: port_); + funcId: 322, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_message_id_twin_rust_async, @@ -13293,7 +14101,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_u_8_array_8(id, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 305, port: port_); + funcId: 323, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_box_feed_id_twin_rust_async, @@ -13322,7 +14130,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_feed_id_twin_rust_async(id, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 306, port: port_); + funcId: 324, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_box_u_8_array_8, @@ -13351,7 +14159,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_blob_twin_rust_async(blob, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 307, port: port_); + funcId: 325, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_u_8_array_1600, @@ -13379,7 +14187,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_message_id_twin_rust_async(id, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 308, port: port_); + funcId: 326, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_u_8_array_32, @@ -13406,7 +14214,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_u_8_array_1600(blob, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 309)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 327)!; }, codec: SseCodec( decodeSuccessData: sse_decode_blob_twin_sync, @@ -13432,7 +14240,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_test_id_twin_sync(id, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 310)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 328)!; }, codec: SseCodec( decodeSuccessData: sse_decode_test_id_twin_sync, @@ -13456,7 +14264,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 311)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 329)!; }, codec: SseCodec( decodeSuccessData: sse_decode_u_8_array_5, @@ -13481,7 +14289,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 312)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 330)!; }, codec: SseCodec( decodeSuccessData: sse_decode_point_twin_sync_array_2, @@ -13508,7 +14316,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_f_64_array_16(array, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 313)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 331)!; }, codec: SseCodec( decodeSuccessData: sse_decode_f_64, @@ -13534,7 +14342,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_test_id_twin_sync_array_4(id, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 314)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 332)!; }, codec: SseCodec( decodeSuccessData: sse_decode_test_id_twin_sync_array_2, @@ -13560,7 +14368,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_u_8_array_32(id, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 315)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 333)!; }, codec: SseCodec( decodeSuccessData: sse_decode_message_id_twin_sync, @@ -13586,7 +14394,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_u_8_array_8(id, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 316)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 334)!; }, codec: SseCodec( decodeSuccessData: sse_decode_box_feed_id_twin_sync, @@ -13613,7 +14421,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_feed_id_twin_sync(id, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 317)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 335)!; }, codec: SseCodec( decodeSuccessData: sse_decode_box_u_8_array_8, @@ -13640,7 +14448,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_blob_twin_sync(blob, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 318)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 336)!; }, codec: SseCodec( decodeSuccessData: sse_decode_u_8_array_1600, @@ -13667,7 +14475,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_message_id_twin_sync(id, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 319)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 337)!; }, codec: SseCodec( decodeSuccessData: sse_decode_u_8_array_32, @@ -13695,7 +14503,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_customized_twin_rust_async(val, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 320, port: port_); + funcId: 338, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -13724,7 +14532,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_user_id_twin_rust_async(userId, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 321, port: port_); + funcId: 339, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_user_id_twin_rust_async, @@ -13751,7 +14559,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_customized_twin_sync(val, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 322)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 340)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -13778,7 +14586,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_user_id_twin_sync(userId, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 323)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 341)!; }, codec: SseCodec( decodeSuccessData: sse_decode_user_id_twin_sync, @@ -13807,7 +14615,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_basic_general_enum_twin_normal(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 324, port: port_); + funcId: 342, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_basic_general_enum_twin_normal, @@ -13837,7 +14645,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_basic_primitive_enum_twin_normal(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 325, port: port_); + funcId: 343, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_basic_primitive_enum_twin_normal, @@ -13867,7 +14675,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_basic_struct_twin_normal(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 326, port: port_); + funcId: 344, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_basic_struct_twin_normal, @@ -13896,7 +14704,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_bool(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 327, port: port_); + funcId: 345, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_bool, @@ -13924,7 +14732,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_u_8_loose(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 328, port: port_); + funcId: 346, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_u_8_strict, @@ -13952,7 +14760,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_f_32(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 329, port: port_); + funcId: 347, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_f_32, @@ -13980,7 +14788,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_f_64(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 330, port: port_); + funcId: 348, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_f_64, @@ -14009,7 +14817,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_I128(arg, serializer); sse_encode_String(expect, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 331, port: port_); + funcId: 349, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_I128, @@ -14038,7 +14846,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_i_16(arg, serializer); sse_encode_String(expect, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 332, port: port_); + funcId: 350, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_16, @@ -14067,7 +14875,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_i_32(arg, serializer); sse_encode_String(expect, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 333, port: port_); + funcId: 351, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -14096,7 +14904,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_i_64(arg, serializer); sse_encode_String(expect, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 334, port: port_); + funcId: 352, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_64, @@ -14125,7 +14933,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_i_8(arg, serializer); sse_encode_String(expect, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 335, port: port_); + funcId: 353, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_8, @@ -14155,7 +14963,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_isize(arg, serializer); sse_encode_String(expect, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 336, port: port_); + funcId: 354, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_isize, @@ -14183,7 +14991,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_String(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 337, port: port_); + funcId: 355, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -14212,7 +15020,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_U128(arg, serializer); sse_encode_String(expect, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 338, port: port_); + funcId: 356, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_U128, @@ -14241,7 +15049,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_u_16(arg, serializer); sse_encode_String(expect, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 339, port: port_); + funcId: 357, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_u_16, @@ -14270,7 +15078,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_u_32(arg, serializer); sse_encode_String(expect, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 340, port: port_); + funcId: 358, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_u_32, @@ -14299,7 +15107,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_u_64(arg, serializer); sse_encode_String(expect, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 341, port: port_); + funcId: 359, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_u_64, @@ -14328,7 +15136,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_u_8(arg, serializer); sse_encode_String(expect, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 342, port: port_); + funcId: 360, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_u_8, @@ -14357,7 +15165,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_usize(arg, serializer); sse_encode_String(expect, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 343, port: port_); + funcId: 361, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_usize, @@ -14386,7 +15194,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_basic_general_enum_twin_normal(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 344, port: port_); + funcId: 362, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_basic_general_enum_twin_normal, @@ -14416,7 +15224,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_basic_primitive_enum_twin_normal(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 345, port: port_); + funcId: 363, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_basic_primitive_enum_twin_normal, @@ -14446,7 +15254,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_basic_struct_twin_normal(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 346, port: port_); + funcId: 364, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_basic_struct_twin_normal, @@ -14476,7 +15284,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_bool(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 347, port: port_); + funcId: 365, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_bool, @@ -14505,7 +15313,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_list_prim_u_8_strict(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 348, port: port_); + funcId: 366, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_list_prim_u_8_strict, @@ -14534,7 +15342,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_f_32_loose(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 349, port: port_); + funcId: 367, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_f_32_strict, @@ -14563,7 +15371,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_f_64_loose(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 350, port: port_); + funcId: 368, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_f_64_strict, @@ -14592,7 +15400,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_i_16_loose(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 351, port: port_); + funcId: 369, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_i_16_strict, @@ -14621,7 +15429,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_i_32_loose(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 352, port: port_); + funcId: 370, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_i_32_strict, @@ -14650,7 +15458,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_i_64_strict(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 353, port: port_); + funcId: 371, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_i_64_strict, @@ -14679,7 +15487,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_i_8_loose(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 354, port: port_); + funcId: 372, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_i_8_strict, @@ -14708,7 +15516,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_String(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 355, port: port_); + funcId: 373, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_String, @@ -14737,7 +15545,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_u_16_loose(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 356, port: port_); + funcId: 374, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_u_16_strict, @@ -14766,7 +15574,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_u_32_loose(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 357, port: port_); + funcId: 375, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_u_32_strict, @@ -14795,7 +15603,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_u_64_strict(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 358, port: port_); + funcId: 376, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_u_64_strict, @@ -14824,7 +15632,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_u_8_loose(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 359, port: port_); + funcId: 377, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_u_8_strict, @@ -14853,7 +15661,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_basic_general_enum_twin_rust_async(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 360, port: port_); + funcId: 378, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_basic_general_enum_twin_rust_async, @@ -14883,7 +15691,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_basic_primitive_enum_twin_rust_async(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 361, port: port_); + funcId: 379, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_basic_primitive_enum_twin_rust_async, @@ -14913,7 +15721,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_basic_struct_twin_rust_async(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 362, port: port_); + funcId: 380, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_basic_struct_twin_rust_async, @@ -14943,7 +15751,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_bool(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 363, port: port_); + funcId: 381, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_bool, @@ -14972,7 +15780,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_list_prim_u_8_strict(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 364, port: port_); + funcId: 382, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_list_prim_u_8_strict, @@ -15001,7 +15809,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_f_32_loose(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 365, port: port_); + funcId: 383, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_f_32_strict, @@ -15030,7 +15838,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_f_64_loose(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 366, port: port_); + funcId: 384, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_f_64_strict, @@ -15059,7 +15867,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_i_16_loose(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 367, port: port_); + funcId: 385, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_i_16_strict, @@ -15088,7 +15896,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_i_32_loose(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 368, port: port_); + funcId: 386, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_i_32_strict, @@ -15117,7 +15925,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_i_64_strict(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 369, port: port_); + funcId: 387, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_i_64_strict, @@ -15146,7 +15954,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_i_8_loose(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 370, port: port_); + funcId: 388, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_i_8_strict, @@ -15175,7 +15983,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_String(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 371, port: port_); + funcId: 389, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_String, @@ -15204,7 +16012,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_u_16_loose(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 372, port: port_); + funcId: 390, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_u_16_strict, @@ -15233,7 +16041,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_u_32_loose(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 373, port: port_); + funcId: 391, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_u_32_strict, @@ -15262,7 +16070,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_u_64_strict(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 374, port: port_); + funcId: 392, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_u_64_strict, @@ -15291,7 +16099,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_u_8_loose(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 375, port: port_); + funcId: 393, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_u_8_strict, @@ -15319,7 +16127,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_basic_general_enum_twin_sync(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 376)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 394)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_basic_general_enum_twin_sync, @@ -15348,7 +16156,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_basic_primitive_enum_twin_sync(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 377)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 395)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_basic_primitive_enum_twin_sync, @@ -15377,7 +16185,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_basic_struct_twin_sync(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 378)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 396)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_basic_struct_twin_sync, @@ -15406,7 +16214,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_bool(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 379)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 397)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_bool, @@ -15434,7 +16242,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_list_prim_u_8_strict(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 380)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 398)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_list_prim_u_8_strict, @@ -15462,7 +16270,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_f_32_loose(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 381)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 399)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_f_32_strict, @@ -15490,7 +16298,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_f_64_loose(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 382)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 400)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_f_64_strict, @@ -15518,7 +16326,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_i_16_loose(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 383)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 401)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_i_16_strict, @@ -15546,7 +16354,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_i_32_loose(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 384)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 402)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_i_32_strict, @@ -15574,7 +16382,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_i_64_strict(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 385)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 403)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_i_64_strict, @@ -15601,7 +16409,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_i_8_loose(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 386)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 404)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_i_8_strict, @@ -15629,7 +16437,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_String(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 387)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 405)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_String, @@ -15657,7 +16465,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_u_16_loose(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 388)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 406)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_u_16_strict, @@ -15685,7 +16493,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_u_32_loose(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 389)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 407)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_u_32_strict, @@ -15713,7 +16521,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_u_64_strict(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 390)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 408)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_u_64_strict, @@ -15740,7 +16548,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_u_8_loose(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 391)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 409)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_u_8_strict, @@ -15769,7 +16577,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_basic_general_enum_twin_normal(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 392, port: port_); + funcId: 410, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_basic_general_enum_twin_normal, @@ -15799,7 +16607,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_basic_primitive_enum_twin_normal(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 393, port: port_); + funcId: 411, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_basic_primitive_enum_twin_normal, @@ -15829,7 +16637,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_basic_struct_twin_normal(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 394, port: port_); + funcId: 412, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_basic_struct_twin_normal, @@ -15859,7 +16667,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_bool(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 395, port: port_); + funcId: 413, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_bool, @@ -15888,7 +16696,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_list_prim_u_8_strict(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 396, port: port_); + funcId: 414, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_list_prim_u_8_strict, @@ -15917,7 +16725,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_f_32(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 397, port: port_); + funcId: 415, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_f_32, @@ -15946,7 +16754,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_f_64(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 398, port: port_); + funcId: 416, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_f_64, @@ -15975,7 +16783,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_I128(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 399, port: port_); + funcId: 417, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_I128, @@ -16004,7 +16812,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_i_16(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 400, port: port_); + funcId: 418, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_i_16, @@ -16033,7 +16841,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_i_32(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 401, port: port_); + funcId: 419, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_i_32, @@ -16062,7 +16870,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_i_64(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 402, port: port_); + funcId: 420, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_i_64, @@ -16091,7 +16899,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_i_8(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 403, port: port_); + funcId: 421, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_i_8, @@ -16120,7 +16928,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_isize(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 404, port: port_); + funcId: 422, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_isize, @@ -16149,7 +16957,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_String(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 405, port: port_); + funcId: 423, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_String, @@ -16178,7 +16986,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_U128(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 406, port: port_); + funcId: 424, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_U128, @@ -16207,7 +17015,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_u_16(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 407, port: port_); + funcId: 425, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_u_16, @@ -16236,7 +17044,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_u_32(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 408, port: port_); + funcId: 426, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_u_32, @@ -16265,7 +17073,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_u_64(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 409, port: port_); + funcId: 427, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_u_64, @@ -16294,7 +17102,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_u_8(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 410, port: port_); + funcId: 428, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_u_8, @@ -16323,7 +17131,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_usize(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 411, port: port_); + funcId: 429, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_usize, @@ -16352,7 +17160,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_basic_general_enum_twin_rust_async(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 412, port: port_); + funcId: 430, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -16384,7 +17192,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Map_i_32_basic_primitive_enum_twin_rust_async( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 413, port: port_); + funcId: 431, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -16415,7 +17223,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_basic_struct_twin_rust_async(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 414, port: port_); + funcId: 432, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_basic_struct_twin_rust_async, @@ -16445,7 +17253,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_bool(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 415, port: port_); + funcId: 433, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_bool, @@ -16474,7 +17282,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_list_prim_u_8_strict(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 416, port: port_); + funcId: 434, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_list_prim_u_8_strict, @@ -16503,7 +17311,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_f_32(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 417, port: port_); + funcId: 435, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_f_32, @@ -16532,7 +17340,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_f_64(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 418, port: port_); + funcId: 436, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_f_64, @@ -16561,7 +17369,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_I128(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 419, port: port_); + funcId: 437, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_I128, @@ -16590,7 +17398,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_i_16(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 420, port: port_); + funcId: 438, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_i_16, @@ -16619,7 +17427,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_i_32(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 421, port: port_); + funcId: 439, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_i_32, @@ -16648,7 +17456,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_i_64(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 422, port: port_); + funcId: 440, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_i_64, @@ -16677,7 +17485,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_i_8(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 423, port: port_); + funcId: 441, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_i_8, @@ -16706,7 +17514,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_isize(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 424, port: port_); + funcId: 442, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_isize, @@ -16735,7 +17543,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_String(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 425, port: port_); + funcId: 443, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_String, @@ -16764,7 +17572,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_U128(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 426, port: port_); + funcId: 444, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_U128, @@ -16793,7 +17601,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_u_16(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 427, port: port_); + funcId: 445, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_u_16, @@ -16822,7 +17630,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_u_32(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 428, port: port_); + funcId: 446, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_u_32, @@ -16851,7 +17659,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_u_64(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 429, port: port_); + funcId: 447, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_u_64, @@ -16880,7 +17688,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_u_8(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 430, port: port_); + funcId: 448, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_u_8, @@ -16909,7 +17717,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_usize(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 431, port: port_); + funcId: 449, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_usize, @@ -16937,7 +17745,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_basic_general_enum_twin_sync(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 432)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 450)!; }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_basic_general_enum_twin_sync, @@ -16966,7 +17774,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_basic_primitive_enum_twin_sync(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 433)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 451)!; }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_basic_primitive_enum_twin_sync, @@ -16995,7 +17803,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_basic_struct_twin_sync(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 434)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 452)!; }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_basic_struct_twin_sync, @@ -17024,7 +17832,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_bool(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 435)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 453)!; }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_bool, @@ -17052,7 +17860,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_list_prim_u_8_strict(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 436)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 454)!; }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_list_prim_u_8_strict, @@ -17080,7 +17888,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_f_32(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 437)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 455)!; }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_f_32, @@ -17108,7 +17916,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_f_64(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 438)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 456)!; }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_f_64, @@ -17136,7 +17944,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_I128(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 439)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 457)!; }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_I128, @@ -17164,7 +17972,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_i_16(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 440)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 458)!; }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_i_16, @@ -17192,7 +18000,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_i_32(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 441)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 459)!; }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_i_32, @@ -17220,7 +18028,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_i_64(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 442)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 460)!; }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_i_64, @@ -17248,7 +18056,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_i_8(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 443)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 461)!; }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_i_8, @@ -17276,7 +18084,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_isize(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 444)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 462)!; }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_isize, @@ -17304,7 +18112,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_String(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 445)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 463)!; }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_String, @@ -17332,7 +18140,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_U128(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 446)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 464)!; }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_U128, @@ -17360,7 +18168,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_u_16(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 447)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 465)!; }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_u_16, @@ -17388,7 +18196,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_u_32(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 448)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 466)!; }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_u_32, @@ -17416,7 +18224,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_u_64(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 449)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 467)!; }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_u_64, @@ -17444,7 +18252,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_u_8(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 450)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 468)!; }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_u_8, @@ -17472,7 +18280,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_usize(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 451)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 469)!; }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_usize, @@ -17502,7 +18310,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_opt_box_autoadd_basic_general_enum_twin_normal( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 452, port: port_); + funcId: 470, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -17534,7 +18342,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_opt_box_autoadd_basic_primitive_enum_twin_normal( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 453, port: port_); + funcId: 471, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -17565,7 +18373,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_basic_struct_twin_normal(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 454, port: port_); + funcId: 472, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_basic_struct_twin_normal, @@ -17595,7 +18403,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_bool(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 455, port: port_); + funcId: 473, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_bool, @@ -17624,7 +18432,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_list_prim_u_8_strict(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 456, port: port_); + funcId: 474, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_list_prim_u_8_strict, @@ -17653,7 +18461,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_f_32(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 457, port: port_); + funcId: 475, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_f_32, @@ -17682,7 +18490,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_f_64(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 458, port: port_); + funcId: 476, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_f_64, @@ -17711,7 +18519,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_I128(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 459, port: port_); + funcId: 477, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_I128, @@ -17740,7 +18548,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_i_16(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 460, port: port_); + funcId: 478, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_i_16, @@ -17769,7 +18577,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_i_32(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 461, port: port_); + funcId: 479, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_i_32, @@ -17798,7 +18606,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_i_64(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 462, port: port_); + funcId: 480, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_i_64, @@ -17827,7 +18635,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_i_8(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 463, port: port_); + funcId: 481, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_i_8, @@ -17856,7 +18664,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_isize(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 464, port: port_); + funcId: 482, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_isize, @@ -17885,7 +18693,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_String(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 465, port: port_); + funcId: 483, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_String, @@ -17914,7 +18722,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_U128(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 466, port: port_); + funcId: 484, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_U128, @@ -17943,7 +18751,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_u_16(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 467, port: port_); + funcId: 485, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_u_16, @@ -17972,7 +18780,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_u_32(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 468, port: port_); + funcId: 486, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_u_32, @@ -18001,7 +18809,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_u_64(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 469, port: port_); + funcId: 487, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_u_64, @@ -18030,7 +18838,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_u_8(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 470, port: port_); + funcId: 488, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_u_8, @@ -18059,7 +18867,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_usize(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 471, port: port_); + funcId: 489, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_usize, @@ -18089,7 +18897,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_opt_box_autoadd_basic_general_enum_twin_rust_async( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 472, port: port_); + funcId: 490, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -18121,7 +18929,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_opt_box_autoadd_basic_primitive_enum_twin_rust_async( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 473, port: port_); + funcId: 491, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -18153,7 +18961,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_opt_box_autoadd_basic_struct_twin_rust_async( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 474, port: port_); + funcId: 492, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -18184,7 +18992,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_bool(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 475, port: port_); + funcId: 493, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_bool, @@ -18213,7 +19021,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_list_prim_u_8_strict(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 476, port: port_); + funcId: 494, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_list_prim_u_8_strict, @@ -18242,7 +19050,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_f_32(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 477, port: port_); + funcId: 495, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_f_32, @@ -18271,7 +19079,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_f_64(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 478, port: port_); + funcId: 496, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_f_64, @@ -18300,7 +19108,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_I128(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 479, port: port_); + funcId: 497, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_I128, @@ -18329,7 +19137,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_i_16(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 480, port: port_); + funcId: 498, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_i_16, @@ -18358,7 +19166,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_i_32(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 481, port: port_); + funcId: 499, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_i_32, @@ -18387,7 +19195,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_i_64(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 482, port: port_); + funcId: 500, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_i_64, @@ -18416,7 +19224,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_i_8(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 483, port: port_); + funcId: 501, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_i_8, @@ -18445,7 +19253,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_isize(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 484, port: port_); + funcId: 502, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_isize, @@ -18474,7 +19282,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_String(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 485, port: port_); + funcId: 503, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_String, @@ -18503,7 +19311,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_U128(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 486, port: port_); + funcId: 504, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_U128, @@ -18532,7 +19340,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_u_16(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 487, port: port_); + funcId: 505, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_u_16, @@ -18561,7 +19369,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_u_32(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 488, port: port_); + funcId: 506, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_u_32, @@ -18590,7 +19398,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_u_64(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 489, port: port_); + funcId: 507, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_u_64, @@ -18619,7 +19427,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_u_8(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 490, port: port_); + funcId: 508, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_u_8, @@ -18648,7 +19456,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_usize(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 491, port: port_); + funcId: 509, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_usize, @@ -18677,7 +19485,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_basic_general_enum_twin_sync( arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 492)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 510)!; }, codec: SseCodec( decodeSuccessData: @@ -18708,7 +19516,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_basic_primitive_enum_twin_sync( arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 493)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 511)!; }, codec: SseCodec( decodeSuccessData: @@ -18738,7 +19546,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_basic_struct_twin_sync(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 494)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 512)!; }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_basic_struct_twin_sync, @@ -18767,7 +19575,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_bool(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 495)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 513)!; }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_bool, @@ -18795,7 +19603,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_list_prim_u_8_strict(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 496)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 514)!; }, codec: SseCodec( decodeSuccessData: sse_decode_opt_list_prim_u_8_strict, @@ -18823,7 +19631,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_f_32(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 497)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 515)!; }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_f_32, @@ -18851,7 +19659,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_f_64(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 498)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 516)!; }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_f_64, @@ -18879,7 +19687,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_I128(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 499)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 517)!; }, codec: SseCodec( decodeSuccessData: sse_decode_opt_I128, @@ -18907,7 +19715,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_i_16(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 500)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 518)!; }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_i_16, @@ -18935,7 +19743,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_i_32(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 501)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 519)!; }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_i_32, @@ -18963,7 +19771,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_i_64(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 502)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 520)!; }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_i_64, @@ -18991,7 +19799,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_i_8(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 503)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 521)!; }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_i_8, @@ -19019,7 +19827,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_isize(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 504)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 522)!; }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_isize, @@ -19047,7 +19855,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_String(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 505)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 523)!; }, codec: SseCodec( decodeSuccessData: sse_decode_opt_String, @@ -19075,7 +19883,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_U128(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 506)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 524)!; }, codec: SseCodec( decodeSuccessData: sse_decode_opt_U128, @@ -19103,7 +19911,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_u_16(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 507)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 525)!; }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_u_16, @@ -19131,7 +19939,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_u_32(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 508)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 526)!; }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_u_32, @@ -19159,7 +19967,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_u_64(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 509)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 527)!; }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_u_64, @@ -19187,7 +19995,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_u_8(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 510)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 528)!; }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_u_8, @@ -19215,7 +20023,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_usize(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 511)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 529)!; }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_usize, @@ -19245,7 +20053,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_basic_general_enum_twin_rust_async( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 512, port: port_); + funcId: 530, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_basic_general_enum_twin_rust_async, @@ -19275,7 +20083,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_basic_primitive_enum_twin_rust_async(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 513, port: port_); + funcId: 531, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_basic_primitive_enum_twin_rust_async, @@ -19305,7 +20113,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_basic_struct_twin_rust_async(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 514, port: port_); + funcId: 532, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_basic_struct_twin_rust_async, @@ -19335,7 +20143,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_bool(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 515, port: port_); + funcId: 533, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_bool, @@ -19364,7 +20172,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_u_8_loose(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 516, port: port_); + funcId: 534, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_u_8_strict, @@ -19393,7 +20201,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_f_32(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 517, port: port_); + funcId: 535, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_f_32, @@ -19422,7 +20230,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_f_64(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 518, port: port_); + funcId: 536, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_f_64, @@ -19452,7 +20260,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_I128(arg, serializer); sse_encode_String(expect, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 519, port: port_); + funcId: 537, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_I128, @@ -19482,7 +20290,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_i_16(arg, serializer); sse_encode_String(expect, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 520, port: port_); + funcId: 538, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_16, @@ -19512,7 +20320,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_i_32(arg, serializer); sse_encode_String(expect, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 521, port: port_); + funcId: 539, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -19542,7 +20350,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_i_64(arg, serializer); sse_encode_String(expect, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 522, port: port_); + funcId: 540, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_64, @@ -19572,7 +20380,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_i_8(arg, serializer); sse_encode_String(expect, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 523, port: port_); + funcId: 541, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_8, @@ -19602,7 +20410,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_isize(arg, serializer); sse_encode_String(expect, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 524, port: port_); + funcId: 542, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_isize, @@ -19631,7 +20439,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_String(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 525, port: port_); + funcId: 543, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -19661,7 +20469,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_U128(arg, serializer); sse_encode_String(expect, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 526, port: port_); + funcId: 544, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_U128, @@ -19691,7 +20499,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_u_16(arg, serializer); sse_encode_String(expect, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 527, port: port_); + funcId: 545, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_u_16, @@ -19721,7 +20529,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_u_32(arg, serializer); sse_encode_String(expect, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 528, port: port_); + funcId: 546, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_u_32, @@ -19751,7 +20559,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_u_64(arg, serializer); sse_encode_String(expect, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 529, port: port_); + funcId: 547, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_u_64, @@ -19781,7 +20589,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_u_8(arg, serializer); sse_encode_String(expect, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 530, port: port_); + funcId: 548, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_u_8, @@ -19811,7 +20619,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_usize(arg, serializer); sse_encode_String(expect, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 531, port: port_); + funcId: 549, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_usize, @@ -19839,7 +20647,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_basic_general_enum_twin_sync(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 532)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 550)!; }, codec: SseCodec( decodeSuccessData: sse_decode_basic_general_enum_twin_sync, @@ -19868,7 +20676,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_basic_primitive_enum_twin_sync(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 533)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 551)!; }, codec: SseCodec( decodeSuccessData: sse_decode_basic_primitive_enum_twin_sync, @@ -19897,7 +20705,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_basic_struct_twin_sync(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 534)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 552)!; }, codec: SseCodec( decodeSuccessData: sse_decode_basic_struct_twin_sync, @@ -19924,7 +20732,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_bool(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 535)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 553)!; }, codec: SseCodec( decodeSuccessData: sse_decode_bool, @@ -19951,7 +20759,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_u_8_loose(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 536)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 554)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_u_8_strict, @@ -19978,7 +20786,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_f_32(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 537)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 555)!; }, codec: SseCodec( decodeSuccessData: sse_decode_f_32, @@ -20005,7 +20813,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_f_64(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 538)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 556)!; }, codec: SseCodec( decodeSuccessData: sse_decode_f_64, @@ -20033,7 +20841,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_I128(arg, serializer); sse_encode_String(expect, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 539)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 557)!; }, codec: SseCodec( decodeSuccessData: sse_decode_I128, @@ -20061,7 +20869,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_16(arg, serializer); sse_encode_String(expect, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 540)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 558)!; }, codec: SseCodec( decodeSuccessData: sse_decode_i_16, @@ -20089,7 +20897,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(arg, serializer); sse_encode_String(expect, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 541)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 559)!; }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -20117,7 +20925,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_64(arg, serializer); sse_encode_String(expect, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 542)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 560)!; }, codec: SseCodec( decodeSuccessData: sse_decode_i_64, @@ -20145,7 +20953,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_8(arg, serializer); sse_encode_String(expect, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 543)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 561)!; }, codec: SseCodec( decodeSuccessData: sse_decode_i_8, @@ -20173,7 +20981,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_isize(arg, serializer); sse_encode_String(expect, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 544)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 562)!; }, codec: SseCodec( decodeSuccessData: sse_decode_isize, @@ -20200,7 +21008,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_String(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 545)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 563)!; }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -20228,7 +21036,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_U128(arg, serializer); sse_encode_String(expect, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 546)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 564)!; }, codec: SseCodec( decodeSuccessData: sse_decode_U128, @@ -20256,7 +21064,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_u_16(arg, serializer); sse_encode_String(expect, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 547)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 565)!; }, codec: SseCodec( decodeSuccessData: sse_decode_u_16, @@ -20284,7 +21092,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_u_32(arg, serializer); sse_encode_String(expect, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 548)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 566)!; }, codec: SseCodec( decodeSuccessData: sse_decode_u_32, @@ -20312,7 +21120,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_u_64(arg, serializer); sse_encode_String(expect, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 549)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 567)!; }, codec: SseCodec( decodeSuccessData: sse_decode_u_64, @@ -20340,7 +21148,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_u_8(arg, serializer); sse_encode_String(expect, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 550)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 568)!; }, codec: SseCodec( decodeSuccessData: sse_decode_u_8, @@ -20368,7 +21176,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_usize(arg, serializer); sse_encode_String(expect, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 551)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 569)!; }, codec: SseCodec( decodeSuccessData: sse_decode_usize, @@ -20397,7 +21205,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_String(raw, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 552, port: port_); + funcId: 570, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -20426,7 +21234,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_u_8_loose(raw, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 553, port: port_); + funcId: 571, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -20456,7 +21264,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_benchmark_binary_tree_twin_normal( tree, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 554, port: port_); + funcId: 572, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -20485,7 +21293,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(depth, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 555, port: port_); + funcId: 573, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -20514,7 +21322,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(depth, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 556, port: port_); + funcId: 574, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_u_8_strict, @@ -20543,7 +21351,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(depth, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 557, port: port_); + funcId: 575, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_benchmark_binary_tree_twin_normal, @@ -20571,7 +21379,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_String(raw, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 558, port: port_); + funcId: 576, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -20600,7 +21408,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_u_8_loose(raw, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 559, port: port_); + funcId: 577, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -20628,7 +21436,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_benchmark_blob_twin_normal(blob, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 560, port: port_); + funcId: 578, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -20657,7 +21465,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(size, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 561, port: port_); + funcId: 579, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -20686,7 +21494,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(size, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 562, port: port_); + funcId: 580, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_u_8_strict, @@ -20715,7 +21523,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(size, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 563, port: port_); + funcId: 581, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_benchmark_blob_twin_normal, @@ -20743,7 +21551,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_u_8_loose(bytes, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 564, port: port_); + funcId: 582, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -20772,7 +21580,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(size, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 565, port: port_); + funcId: 583, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_u_8_strict, @@ -20798,7 +21606,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 566, port: port_); + funcId: 584, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -20827,7 +21635,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_String(raw, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 567, port: port_); + funcId: 585, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -20856,7 +21664,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_u_8_loose(raw, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 568, port: port_); + funcId: 586, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -20886,7 +21694,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_benchmark_binary_tree_twin_rust_async( tree, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 569, port: port_); + funcId: 587, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -20915,7 +21723,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(depth, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 570, port: port_); + funcId: 588, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -20944,7 +21752,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(depth, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 571, port: port_); + funcId: 589, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_u_8_strict, @@ -20973,7 +21781,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(depth, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 572, port: port_); + funcId: 590, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_benchmark_binary_tree_twin_rust_async, @@ -21002,7 +21810,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_String(raw, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 573, port: port_); + funcId: 591, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -21031,7 +21839,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_u_8_loose(raw, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 574, port: port_); + funcId: 592, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -21060,7 +21868,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_benchmark_blob_twin_rust_async(blob, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 575, port: port_); + funcId: 593, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -21089,7 +21897,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(size, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 576, port: port_); + funcId: 594, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -21118,7 +21926,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(size, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 577, port: port_); + funcId: 595, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_u_8_strict, @@ -21147,7 +21955,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(size, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 578, port: port_); + funcId: 596, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_benchmark_blob_twin_rust_async, @@ -21176,7 +21984,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_u_8_loose(bytes, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 579, port: port_); + funcId: 597, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -21205,7 +22013,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(size, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 580, port: port_); + funcId: 598, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_u_8_strict, @@ -21232,7 +22040,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 581, port: port_); + funcId: 599, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -21260,7 +22068,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_String(raw, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 582)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 600)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -21288,7 +22096,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_u_8_loose(raw, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 583)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 601)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -21316,7 +22124,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_benchmark_binary_tree_twin_sync( tree, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 584)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 602)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -21344,7 +22152,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(depth, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 585)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 603)!; }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -21372,7 +22180,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(depth, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 586)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 604)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_u_8_strict, @@ -21400,7 +22208,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(depth, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 587)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 605)!; }, codec: SseCodec( decodeSuccessData: sse_decode_benchmark_binary_tree_twin_sync, @@ -21427,7 +22235,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_String(raw, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 588)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 606)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -21455,7 +22263,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_u_8_loose(raw, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 589)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 607)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -21482,7 +22290,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_benchmark_blob_twin_sync(blob, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 590)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 608)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -21510,7 +22318,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(size, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 591)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 609)!; }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -21538,7 +22346,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(size, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 592)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 610)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_u_8_strict, @@ -21566,7 +22374,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(size, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 593)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 611)!; }, codec: SseCodec( decodeSuccessData: sse_decode_benchmark_blob_twin_sync, @@ -21593,7 +22401,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_u_8_loose(bytes, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 594)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 612)!; }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -21621,7 +22429,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(size, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 595)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 613)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_u_8_strict, @@ -21646,7 +22454,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 596)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 614)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -21675,7 +22483,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Chrono_Local(d, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 597, port: port_); + funcId: 615, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Chrono_Local, @@ -21704,7 +22512,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Chrono_Utc(d, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 598, port: port_); + funcId: 616, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Chrono_Utc, @@ -21733,7 +22541,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Chrono_Duration(d, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 599, port: port_); + funcId: 617, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Chrono_Duration, @@ -21763,7 +22571,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_list_Chrono_Duration(durations, serializer); sse_encode_Chrono_Local(since, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 600, port: port_); + funcId: 618, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_Chrono_Local, @@ -21793,7 +22601,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_list_Chrono_Naive(timestamps, serializer); sse_encode_Chrono_Naive(epoch, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 601, port: port_); + funcId: 619, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_Chrono_Duration, @@ -21822,7 +22630,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_feature_chrono_twin_rust_async(mine, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 602, port: port_); + funcId: 620, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Chrono_Duration, @@ -21851,7 +22659,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Chrono_Naive(d, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 603, port: port_); + funcId: 621, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Chrono_Naive, @@ -21880,7 +22688,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_Chrono_Utc(d, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 604, port: port_); + funcId: 622, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_Chrono_Utc, @@ -21907,7 +22715,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 605, port: port_); + funcId: 623, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_test_chrono_twin_rust_async, @@ -21934,7 +22742,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 606, port: port_); + funcId: 624, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_test_chrono_twin_rust_async, @@ -21961,7 +22769,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Chrono_Local(d, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 607)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 625)!; }, codec: SseCodec( decodeSuccessData: sse_decode_Chrono_Local, @@ -21988,7 +22796,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Chrono_Utc(d, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 608)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 626)!; }, codec: SseCodec( decodeSuccessData: sse_decode_Chrono_Utc, @@ -22015,7 +22823,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Chrono_Duration(d, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 609)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 627)!; }, codec: SseCodec( decodeSuccessData: sse_decode_Chrono_Duration, @@ -22043,7 +22851,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_Chrono_Duration(durations, serializer); sse_encode_Chrono_Local(since, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 610)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 628)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_Chrono_Local, @@ -22071,7 +22879,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_Chrono_Naive(timestamps, serializer); sse_encode_Chrono_Naive(epoch, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 611)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 629)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_Chrono_Duration, @@ -22098,7 +22906,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_feature_chrono_twin_sync(mine, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 612)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 630)!; }, codec: SseCodec( decodeSuccessData: sse_decode_Chrono_Duration, @@ -22125,7 +22933,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Chrono_Naive(d, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 613)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 631)!; }, codec: SseCodec( decodeSuccessData: sse_decode_Chrono_Naive, @@ -22153,7 +22961,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_Chrono_Utc(d, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 614)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 632)!; }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_Chrono_Utc, @@ -22179,7 +22987,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 615)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 633)!; }, codec: SseCodec( decodeSuccessData: sse_decode_test_chrono_twin_sync, @@ -22205,7 +23013,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 616)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 634)!; }, codec: SseCodec( decodeSuccessData: sse_decode_test_chrono_twin_sync, @@ -22232,7 +23040,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 617, port: port_); + funcId: 635, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -22259,7 +23067,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 618, port: port_); + funcId: 636, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -22287,7 +23095,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 619, port: port_); + funcId: 637, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -22318,7 +23126,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_struct_with_comments_twin_rust_async( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 620, port: port_); + funcId: 638, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -22346,7 +23154,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 621, port: port_); + funcId: 639, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -22373,7 +23181,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 622)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 640)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -22399,7 +23207,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 623)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 641)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -22426,7 +23234,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 624)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 642)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -22455,7 +23263,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_struct_with_comments_twin_sync(that, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 625)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 643)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -22482,7 +23290,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 626)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 644)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -22514,7 +23322,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_DartFn_Inputs_demo_struct_for_rust_call_dart_twin_rust_async_Output_demo_struct_for_rust_call_dart_twin_rust_async_AnyhowException( callback, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 627, port: port_); + funcId: 645, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -22546,7 +23354,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callback, serializer); sse_encode_i_32(numTimes, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 628, port: port_); + funcId: 646, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -22576,7 +23384,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_DartFn_Inputs_String_Output_unit_AnyhowException( callback, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 629, port: port_); + funcId: 647, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -22608,7 +23416,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callback, serializer); sse_encode_opt_String(expectOutput, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 630, port: port_); + funcId: 648, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -22638,7 +23446,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_DartFn_Inputs__Output_String_AnyhowException( callback, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 631, port: port_); + funcId: 649, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -22668,7 +23476,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_DartFn_Inputs__Output_unit_AnyhowException( callback, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 632, port: port_); + funcId: 650, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -22700,7 +23508,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_DartFn_Inputs_String_demo_struct_for_rust_call_dart_twin_rust_async_Output_unit_AnyhowException( callback, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 633, port: port_); + funcId: 651, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -22732,7 +23540,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_DartFn_Inputs_DartOpaque_Output_unit_AnyhowException( callback, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 634, port: port_); + funcId: 652, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -22762,7 +23570,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_DartFn_Inputs__Output_DartOpaque_AnyhowException( callback, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 635, port: port_); + funcId: 653, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_DartOpaque, @@ -22791,7 +23599,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_DartOpaque(opaque, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 636, port: port_); + funcId: 654, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -22820,7 +23628,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_DartOpaque(opaque, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 637, port: port_); + funcId: 655, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_DartOpaque, @@ -22849,7 +23657,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_DartOpaque(opaque, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 638, port: port_); + funcId: 656, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_enum_dart_opaque_twin_rust_async, @@ -22879,7 +23687,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_DartOpaque(opaque1, serializer); sse_encode_DartOpaque(opaque2, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 639, port: port_); + funcId: 657, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_dart_opaque_nested_twin_rust_async, @@ -22908,7 +23716,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(id, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 640, port: port_); + funcId: 658, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -22938,7 +23746,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_enum_dart_opaque_twin_rust_async( opaque, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 641, port: port_); + funcId: 659, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -22968,7 +23776,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_dart_opaque_nested_twin_rust_async( opaque, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 642, port: port_); + funcId: 660, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -22997,7 +23805,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_DartOpaque_array_1(opaque, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 643, port: port_); + funcId: 661, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -23026,7 +23834,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_DartOpaque(opaque, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 644, port: port_); + funcId: 662, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_DartOpaque_array_1, @@ -23055,7 +23863,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_DartOpaque(opaque, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 645, port: port_); + funcId: 663, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -23084,7 +23892,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_DartOpaque(opaque, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 646, port: port_); + funcId: 664, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_DartOpaque, @@ -23113,7 +23921,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_DartOpaque(opaque, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 647, port: port_); + funcId: 665, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_DartOpaque, @@ -23142,7 +23950,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_DartOpaque(opaque, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 648, port: port_); + funcId: 666, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -23171,7 +23979,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_DartOpaque(opaque, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 649, port: port_); + funcId: 667, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_DartOpaque, @@ -23200,7 +24008,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_DartOpaque(opaque, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 650, port: port_); + funcId: 668, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -23230,7 +24038,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_i_32(id, serializer); sse_encode_DartOpaque(opaque, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 651, port: port_); + funcId: 669, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -23257,7 +24065,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_DartOpaque(opaque, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 652)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 670)!; }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -23284,7 +24092,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_DartOpaque(opaque, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 653)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 671)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_DartOpaque, @@ -23312,7 +24120,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_DartOpaque(opaque, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 654)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 672)!; }, codec: SseCodec( decodeSuccessData: sse_decode_enum_dart_opaque_twin_sync, @@ -23341,7 +24149,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_DartOpaque(opaque1, serializer); sse_encode_DartOpaque(opaque2, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 655)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 673)!; }, codec: SseCodec( decodeSuccessData: sse_decode_dart_opaque_nested_twin_sync, @@ -23368,7 +24176,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(id, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 656)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 674)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -23395,7 +24203,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_enum_dart_opaque_twin_sync(opaque, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 657)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 675)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -23422,7 +24230,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_dart_opaque_nested_twin_sync(opaque, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 658)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 676)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -23449,7 +24257,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_DartOpaque_array_1(opaque, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 659)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 677)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -23476,7 +24284,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_DartOpaque(opaque, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 660)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 678)!; }, codec: SseCodec( decodeSuccessData: sse_decode_DartOpaque_array_1, @@ -23503,7 +24311,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_DartOpaque(opaque, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 661)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 679)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -23530,7 +24338,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_DartOpaque(opaque, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 662)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 680)!; }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_DartOpaque, @@ -23557,7 +24365,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_DartOpaque(opaque, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 663)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 681)!; }, codec: SseCodec( decodeSuccessData: sse_decode_DartOpaque, @@ -23584,7 +24392,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_DartOpaque(opaque, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 664)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 682)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -23611,7 +24419,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_DartOpaque(opaque, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 665)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 683)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_DartOpaque, @@ -23638,7 +24446,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_DartOpaque(opaque, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 666)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 684)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -23666,7 +24474,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(id, serializer); sse_encode_DartOpaque(opaque, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 667)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 685)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -23698,7 +24506,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { that, serializer); sse_encode_StreamSink_i_32_Sse(sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 668, port: port_); + funcId: 686, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -23726,7 +24534,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 669, port: port_); + funcId: 687, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -23753,7 +24561,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 670, port: port_); + funcId: 688, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -23784,7 +24592,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerDroppableTwinRustAsync( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 671, port: port_); + funcId: 689, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -23815,7 +24623,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerDroppableTwinSync( that, serializer); sse_encode_StreamSink_i_32_Sse(sink, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 672)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 690)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -23841,7 +24649,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 673)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 691)!; }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -23867,7 +24675,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 674)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 692)!; }, codec: SseCodec( decodeSuccessData: @@ -23897,7 +24705,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerDroppableTwinSync( that, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 675)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 693)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -23926,7 +24734,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_enum_simple_twin_rust_async(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 676, port: port_); + funcId: 694, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_enum_simple_twin_rust_async, @@ -23955,7 +24763,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_enum_with_discriminant_twin_rust_async(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 677, port: port_); + funcId: 695, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_enum_with_discriminant_twin_rust_async, @@ -23985,7 +24793,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_enum_with_item_mixed_twin_rust_async( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 678, port: port_); + funcId: 696, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_enum_with_item_mixed_twin_rust_async, @@ -24015,7 +24823,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_enum_with_item_struct_twin_rust_async( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 679, port: port_); + funcId: 697, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_enum_with_item_struct_twin_rust_async, @@ -24045,7 +24853,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_enum_with_item_tuple_twin_rust_async( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 680, port: port_); + funcId: 698, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_enum_with_item_tuple_twin_rust_async, @@ -24074,7 +24882,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_weekdays_twin_rust_async(weekday, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 681, port: port_); + funcId: 699, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_weekdays_twin_rust_async, @@ -24103,7 +24911,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_kitchen_sink_twin_rust_async(val, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 682, port: port_); + funcId: 700, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_kitchen_sink_twin_rust_async, @@ -24132,7 +24940,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_String(input, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 683, port: port_); + funcId: 701, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_weekdays_twin_rust_async, @@ -24161,7 +24969,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_measure_twin_rust_async(measure, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 684, port: port_); + funcId: 702, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_measure_twin_rust_async, @@ -24190,7 +24998,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_note_twin_rust_async(note, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 685, port: port_); + funcId: 703, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_u_8_strict, @@ -24218,7 +25026,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_enum_simple_twin_sync(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 686)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 704)!; }, codec: SseCodec( decodeSuccessData: sse_decode_enum_simple_twin_sync, @@ -24246,7 +25054,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_enum_with_discriminant_twin_sync(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 687)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 705)!; }, codec: SseCodec( decodeSuccessData: sse_decode_enum_with_discriminant_twin_sync, @@ -24274,7 +25082,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_enum_with_item_mixed_twin_sync(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 688)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 706)!; }, codec: SseCodec( decodeSuccessData: sse_decode_enum_with_item_mixed_twin_sync, @@ -24302,7 +25110,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_enum_with_item_struct_twin_sync(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 689)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 707)!; }, codec: SseCodec( decodeSuccessData: sse_decode_enum_with_item_struct_twin_sync, @@ -24330,7 +25138,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_enum_with_item_tuple_twin_sync(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 690)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 708)!; }, codec: SseCodec( decodeSuccessData: sse_decode_enum_with_item_tuple_twin_sync, @@ -24358,7 +25166,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_weekdays_twin_sync(weekday, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 691)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 709)!; }, codec: SseCodec( decodeSuccessData: sse_decode_weekdays_twin_sync, @@ -24386,7 +25194,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_kitchen_sink_twin_sync(val, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 692)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 710)!; }, codec: SseCodec( decodeSuccessData: sse_decode_kitchen_sink_twin_sync, @@ -24414,7 +25222,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_String(input, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 693)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 711)!; }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_weekdays_twin_sync, @@ -24441,7 +25249,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_measure_twin_sync(measure, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 694)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 712)!; }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_measure_twin_sync, @@ -24468,7 +25276,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_note_twin_sync(note, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 695)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 713)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_u_8_strict, @@ -24495,7 +25303,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 696, port: port_); + funcId: 714, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -24525,7 +25333,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_String(address, serializer); sse_encode_String(payload, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 697, port: port_); + funcId: 715, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -24554,7 +25362,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_event_twin_rust_async(that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 698, port: port_); + funcId: 716, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -24583,7 +25391,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_event_twin_rust_async_Sse(listener, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 699, port: port_); + funcId: 717, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -24611,7 +25419,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 700, port: port_); + funcId: 718, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -24638,7 +25446,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 701, port: port_); + funcId: 719, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_u_32, @@ -24667,7 +25475,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_u_32(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 702, port: port_); + funcId: 720, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_u_32, @@ -24697,7 +25505,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_custom_nested_error_outer_twin_rust_async( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 703, port: port_); + funcId: 721, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -24727,7 +25535,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_custom_struct_error_twin_rust_async( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 704, port: port_); + funcId: 722, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -24756,7 +25564,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_String(message, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 705, port: port_); + funcId: 723, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_custom_struct_twin_rust_async, @@ -24785,7 +25593,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_custom_struct_twin_rust_async(that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 706, port: port_); + funcId: 724, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -24815,7 +25623,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_custom_struct_twin_rust_async(that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 707, port: port_); + funcId: 725, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_u_32, @@ -24843,7 +25651,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 708, port: port_); + funcId: 726, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -24871,7 +25679,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 709, port: port_); + funcId: 727, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_u_32, @@ -24899,7 +25707,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 710, port: port_); + funcId: 728, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -24926,7 +25734,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 711, port: port_); + funcId: 729, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -24953,7 +25761,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 712, port: port_); + funcId: 730, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -24980,7 +25788,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 713, port: port_); + funcId: 731, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -25007,7 +25815,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 714, port: port_); + funcId: 732, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -25034,7 +25842,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 715, port: port_); + funcId: 733, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -25061,7 +25869,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 716, port: port_); + funcId: 734, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -25088,7 +25896,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 717, port: port_); + funcId: 735, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -25115,7 +25923,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 718, port: port_); + funcId: 736, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_u_32, @@ -25142,7 +25950,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 719, port: port_); + funcId: 737, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_u_32, @@ -25171,7 +25979,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_u_32(variant, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 720, port: port_); + funcId: 738, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_u_32, @@ -25198,7 +26006,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 721, port: port_); + funcId: 739, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_u_32, @@ -25227,7 +26035,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_u_32(value, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 722, port: port_); + funcId: 740, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_some_struct_twin_rust_async, @@ -25256,7 +26064,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_some_struct_twin_rust_async(that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 723, port: port_); + funcId: 741, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_u_32, @@ -25286,7 +26094,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_some_struct_twin_rust_async(that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 724, port: port_); + funcId: 742, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_u_32, @@ -25314,7 +26122,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 725, port: port_); + funcId: 743, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_u_32, @@ -25342,7 +26150,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 726, port: port_); + funcId: 744, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_u_32, @@ -25372,7 +26180,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_String_Sse(sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 727, port: port_); + funcId: 745, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -25400,7 +26208,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 728, port: port_); + funcId: 746, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -25425,7 +26233,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 729)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 747)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -25450,7 +26258,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 730)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 748)!; }, codec: SseCodec( decodeSuccessData: sse_decode_u_32, @@ -25477,7 +26285,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_u_32(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 731)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 749)!; }, codec: SseCodec( decodeSuccessData: sse_decode_u_32, @@ -25506,7 +26314,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_custom_nested_error_outer_twin_sync( arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 732)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 750)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -25534,7 +26342,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_custom_struct_error_twin_sync(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 733)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 751)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -25562,7 +26370,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_String(message, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 734)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 752)!; }, codec: SseCodec( decodeSuccessData: sse_decode_custom_struct_twin_sync, @@ -25590,7 +26398,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_custom_struct_twin_sync(that, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 735)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 753)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -25618,7 +26426,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_custom_struct_twin_sync(that, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 736)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 754)!; }, codec: SseCodec( decodeSuccessData: sse_decode_u_32, @@ -25645,7 +26453,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 737)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 755)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -25671,7 +26479,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 738)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 756)!; }, codec: SseCodec( decodeSuccessData: sse_decode_u_32, @@ -25697,7 +26505,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 739)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 757)!; }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -25722,7 +26530,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 740)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 758)!; }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -25747,7 +26555,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 741)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 759)!; }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -25772,7 +26580,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 742)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 760)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -25797,7 +26605,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 743)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 761)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -25823,7 +26631,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 744)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 762)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -25848,7 +26656,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 745)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 763)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -25873,7 +26681,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 746)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 764)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -25898,7 +26706,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 747)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 765)!; }, codec: SseCodec( decodeSuccessData: sse_decode_u_32, @@ -25923,7 +26731,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 748)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 766)!; }, codec: SseCodec( decodeSuccessData: sse_decode_u_32, @@ -25950,7 +26758,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_u_32(variant, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 749)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 767)!; }, codec: SseCodec( decodeSuccessData: sse_decode_u_32, @@ -25975,7 +26783,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 750)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 768)!; }, codec: SseCodec( decodeSuccessData: sse_decode_u_32, @@ -26003,7 +26811,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_u_32(value, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 751)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 769)!; }, codec: SseCodec( decodeSuccessData: sse_decode_some_struct_twin_sync, @@ -26030,7 +26838,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_some_struct_twin_sync(that, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 752)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 770)!; }, codec: SseCodec( decodeSuccessData: sse_decode_u_32, @@ -26058,7 +26866,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_some_struct_twin_sync(that, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 753)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 771)!; }, codec: SseCodec( decodeSuccessData: sse_decode_u_32, @@ -26084,7 +26892,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 754)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 772)!; }, codec: SseCodec( decodeSuccessData: sse_decode_u_32, @@ -26110,7 +26918,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 755)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 773)!; }, codec: SseCodec( decodeSuccessData: sse_decode_u_32, @@ -26139,7 +26947,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_String_Sse(sink, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 756)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 774)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -26165,7 +26973,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 757)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 775)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -26192,7 +27000,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 758, port: port_); + funcId: 776, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_new_simple_struct, @@ -26219,7 +27027,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 759, port: port_); + funcId: 777, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_old_simple_struct, @@ -26248,7 +27056,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_my_enum(myEnum, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 760, port: port_); + funcId: 778, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_bool, @@ -26277,7 +27085,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_my_struct(myStruct, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 761, port: port_); + funcId: 779, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_bool, @@ -26303,7 +27111,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 762)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 780)!; }, codec: SseCodec( decodeSuccessData: sse_decode_new_simple_struct, @@ -26329,7 +27137,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 763)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 781)!; }, codec: SseCodec( decodeSuccessData: sse_decode_old_simple_struct, @@ -26356,7 +27164,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_my_enum(myEnum, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 764)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 782)!; }, codec: SseCodec( decodeSuccessData: sse_decode_bool, @@ -26383,7 +27191,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_my_struct(myStruct, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 765)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 783)!; }, codec: SseCodec( decodeSuccessData: sse_decode_bool, @@ -26411,7 +27219,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerStructOneWithTraitTwinSync( that, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 766)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 784)!; }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -26441,7 +27249,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerStructOneWithTraitTwinSync( that, serializer); sse_encode_i_32(one, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 767)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 785)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -26471,7 +27279,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerStructOneWithTraitTwinSync( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 768, port: port_); + funcId: 786, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -26501,7 +27309,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(value, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 769, port: port_); + funcId: 787, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -26529,7 +27337,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 770, port: port_); + funcId: 788, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -26558,7 +27366,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerStructTwoWithTraitTwinSync( that, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 771)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 789)!; }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -26588,7 +27396,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerStructTwoWithTraitTwinSync( that, serializer); sse_encode_i_32(two, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 772)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 790)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -26618,7 +27426,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerStructTwoWithTraitTwinSync( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 773, port: port_); + funcId: 791, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -26648,7 +27456,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(value, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 774, port: port_); + funcId: 792, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -26676,7 +27484,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 775, port: port_); + funcId: 793, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -26697,6 +27505,510 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { argNames: [], ); + @override + String + crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstaticGreetBorrowMutSelfTwinSync( + {required LtNestedTypeWithLifetimeTwinSync that}) { + return handler.executeSync(SyncTask( + callFfi: () { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + that, serializer); + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 797)!; + }, + codec: SseCodec( + decodeSuccessData: sse_decode_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstaticGreetBorrowMutSelfTwinSyncConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstaticGreetBorrowMutSelfTwinSyncConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync", + argNames: ["that"], + ); + + @override + String + crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstaticGreetBorrowSelfTwinSync( + {required LtNestedTypeWithLifetimeTwinSync that}) { + return handler.executeSync(SyncTask( + callFfi: () { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + that, serializer); + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 798)!; + }, + codec: SseCodec( + decodeSuccessData: sse_decode_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstaticGreetBorrowSelfTwinSyncConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstaticGreetBorrowSelfTwinSyncConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync", + argNames: ["that"], + ); + + @override + Future + crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticComputeArgGenericLifetimeTwinSync( + {required LtTypeWithLifetimeTwinSync arg}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + arg, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 799, port: port_); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic, + decodeErrorData: null, + ), + constMeta: + kCrateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticComputeArgGenericLifetimeTwinSyncConstMeta, + argValues: [arg], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticComputeArgGenericLifetimeTwinSyncConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_arg_generic_lifetime_twin_sync", + argNames: ["arg"], + ); + + @override + Future + crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticComputeNestedTypeWithLifetimeTwinSync( + {required LtTypeWithLifetimeTwinSync that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + that, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 800, port: port_); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic, + decodeErrorData: null, + ), + constMeta: + kCrateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticComputeNestedTypeWithLifetimeTwinSyncConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticComputeNestedTypeWithLifetimeTwinSyncConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_nested_type_with_lifetime_twin_sync", + argNames: ["that"], + ); + + @override + String + crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticGreetBorrowMutSelfTwinSync( + {required LtTypeWithLifetimeTwinSync that}) { + return handler.executeSync(SyncTask( + callFfi: () { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + that, serializer); + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 801)!; + }, + codec: SseCodec( + decodeSuccessData: sse_decode_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticGreetBorrowMutSelfTwinSyncConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticGreetBorrowMutSelfTwinSyncConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync", + argNames: ["that"], + ); + + @override + String + crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticGreetBorrowSelfTwinSync( + {required LtTypeWithLifetimeTwinSync that}) { + return handler.executeSync(SyncTask( + callFfi: () { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + that, serializer); + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 802)!; + }, + codec: SseCodec( + decodeSuccessData: sse_decode_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticGreetBorrowSelfTwinSyncConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticGreetBorrowSelfTwinSyncConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync", + argNames: ["that"], + ); + + @override + Future + crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstaticComputeWithMultiArgHavingLifetimeTwinSync( + {required LtOwnedStructTwinSync a, + required LtOwnedStructTwinSync b, + required LtOwnedStructTwinSync unrelatedBorrowed, + required LtOwnedStructTwinSync unrelatedOwned}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + a, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + b, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + unrelatedBorrowed, serializer); + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + unrelatedOwned, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 803, port: port_); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic, + decodeErrorData: null, + ), + constMeta: + kCrateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstaticComputeWithMultiArgHavingLifetimeTwinSyncConstMeta, + argValues: [a, b, unrelatedBorrowed, unrelatedOwned], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstaticComputeWithMultiArgHavingLifetimeTwinSyncConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_compute_with_multi_arg_having_lifetime_twin_sync", + argNames: ["a", "b", "unrelatedBorrowed", "unrelatedOwned"], + ); + + @override + List + crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstaticGreetBorrowMutSelfTwinSync( + {required LtTypeWithMultiDepTwinSync that}) { + return handler.executeSync(SyncTask( + callFfi: () { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + that, serializer); + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 804)!; + }, + codec: SseCodec( + decodeSuccessData: sse_decode_list_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstaticGreetBorrowMutSelfTwinSyncConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstaticGreetBorrowMutSelfTwinSyncConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_mut_self_twin_sync", + argNames: ["that"], + ); + + @override + List + crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstaticGreetBorrowSelfTwinSync( + {required LtTypeWithMultiDepTwinSync that}) { + return handler.executeSync(SyncTask( + callFfi: () { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + that, serializer); + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 805)!; + }, + codec: SseCodec( + decodeSuccessData: sse_decode_list_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstaticGreetBorrowSelfTwinSyncConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstaticGreetBorrowSelfTwinSyncConstMeta => + const TaskConstMeta( + debugName: + "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_self_twin_sync", + argNames: ["that"], + ); + + @override + Future + crateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncComputeTypeWithLifetimeTwinSync( + {required LtOwnedStructTwinSync that}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + that, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 806, port: port_); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic, + decodeErrorData: null, + ), + constMeta: + kCrateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncComputeTypeWithLifetimeTwinSyncConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncComputeTypeWithLifetimeTwinSyncConstMeta => + const TaskConstMeta( + debugName: + "LtOwnedStructTwinSync_compute_type_with_lifetime_twin_sync", + argNames: ["that"], + ); + + @override + Future + crateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncComputeWithUnrelatedBorrowedArgTwinSync( + {required LtOwnedStructTwinSync that, + required LtOwnedStructTwinSync unrelatedBorrowed, + required LtOwnedStructTwinSync unrelatedOwned}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + that, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + unrelatedBorrowed, serializer); + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + unrelatedOwned, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 807, port: port_); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic, + decodeErrorData: null, + ), + constMeta: + kCrateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncComputeWithUnrelatedBorrowedArgTwinSyncConstMeta, + argValues: [that, unrelatedBorrowed, unrelatedOwned], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncComputeWithUnrelatedBorrowedArgTwinSyncConstMeta => + const TaskConstMeta( + debugName: + "LtOwnedStructTwinSync_compute_with_unrelated_borrowed_arg_twin_sync", + argNames: ["that", "unrelatedBorrowed", "unrelatedOwned"], + ); + + @override + LtOwnedStructTwinSync + crateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncCreateTwinSync( + {required String value}) { + return handler.executeSync(SyncTask( + callFfi: () { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_String(value, serializer); + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 808)!; + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync, + decodeErrorData: null, + ), + constMeta: + kCrateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncCreateTwinSyncConstMeta, + argValues: [value], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncCreateTwinSyncConstMeta => + const TaskConstMeta( + debugName: "LtOwnedStructTwinSync_create_twin_sync", + argNames: ["value"], + ); + + @override + LtOwnedStructTwinSync + crateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncCreateWithLoggerTwinSync( + {required String value, required SimpleLogger logger}) { + return handler.executeSync(SyncTask( + callFfi: () { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_String(value, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + logger, serializer); + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 809)!; + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync, + decodeErrorData: null, + ), + constMeta: + kCrateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncCreateWithLoggerTwinSyncConstMeta, + argValues: [value, logger], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncCreateWithLoggerTwinSyncConstMeta => + const TaskConstMeta( + debugName: "LtOwnedStructTwinSync_create_with_logger_twin_sync", + argNames: ["value", "logger"], + ); + + @override + String + crateApiPseudoManualLifetimeableTwinSyncLtSubStructTwinSyncGreetBorrowMutSelfTwinSync( + {required LtSubStructTwinSync that}) { + return handler.executeSync(SyncTask( + callFfi: () { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + that, serializer); + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 810)!; + }, + codec: SseCodec( + decodeSuccessData: sse_decode_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiPseudoManualLifetimeableTwinSyncLtSubStructTwinSyncGreetBorrowMutSelfTwinSyncConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiPseudoManualLifetimeableTwinSyncLtSubStructTwinSyncGreetBorrowMutSelfTwinSyncConstMeta => + const TaskConstMeta( + debugName: "LtSubStructTwinSync_greet_borrow_mut_self_twin_sync", + argNames: ["that"], + ); + + @override + String + crateApiPseudoManualLifetimeableTwinSyncLtSubStructTwinSyncGreetBorrowSelfTwinSync( + {required LtSubStructTwinSync that}) { + return handler.executeSync(SyncTask( + callFfi: () { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + that, serializer); + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 811)!; + }, + codec: SseCodec( + decodeSuccessData: sse_decode_String, + decodeErrorData: null, + ), + constMeta: + kCrateApiPseudoManualLifetimeableTwinSyncLtSubStructTwinSyncGreetBorrowSelfTwinSyncConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiPseudoManualLifetimeableTwinSyncLtSubStructTwinSyncGreetBorrowSelfTwinSyncConstMeta => + const TaskConstMeta( + debugName: "LtSubStructTwinSync_greet_borrow_self_twin_sync", + argNames: ["that"], + ); + + @override + Future + crateApiPseudoManualLifetimeableTwinSyncLtComputeWithLifetimeFunctionTwinSync( + {required LtOwnedStructTwinSync arg}) { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + arg, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 812, port: port_); + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic, + decodeErrorData: null, + ), + constMeta: + kCrateApiPseudoManualLifetimeableTwinSyncLtComputeWithLifetimeFunctionTwinSyncConstMeta, + argValues: [arg], + apiImpl: this, + )); + } + + TaskConstMeta + get kCrateApiPseudoManualLifetimeableTwinSyncLtComputeWithLifetimeFunctionTwinSyncConstMeta => + const TaskConstMeta( + debugName: "lt_compute_with_lifetime_function_twin_sync", + argNames: ["arg"], + ); + @override Future> crateApiPseudoManualMapAndSetTwinRustAsyncFuncHashMapI32I32TwinRustAsync( @@ -26706,7 +28018,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_i_32(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 779, port: port_); + funcId: 813, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_i_32, @@ -26735,7 +28047,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_String_list_prim_u_8_strict(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 780, port: port_); + funcId: 814, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_String_list_prim_u_8_strict, @@ -26764,7 +28076,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_String_kitchen_sink_twin_rust_async(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 781, port: port_); + funcId: 815, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_String_kitchen_sink_twin_rust_async, @@ -26793,7 +28105,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_String_enum_simple_twin_rust_async(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 782, port: port_); + funcId: 816, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_String_enum_simple_twin_rust_async, @@ -26822,7 +28134,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_String_String(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 783, port: port_); + funcId: 817, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_String_String, @@ -26851,7 +28163,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_String_my_size(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 784, port: port_); + funcId: 818, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Map_String_my_size, @@ -26880,7 +28192,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Set_i_32(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 785, port: port_); + funcId: 819, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Set_i_32, @@ -26909,7 +28221,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Set_String(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 786, port: port_); + funcId: 820, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Set_String, @@ -26936,7 +28248,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_i_32_i_32(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 787)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 821)!; }, codec: SseCodec( decodeSuccessData: sse_decode_Map_i_32_i_32, @@ -26964,7 +28276,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_String_list_prim_u_8_strict(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 788)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 822)!; }, codec: SseCodec( decodeSuccessData: sse_decode_Map_String_list_prim_u_8_strict, @@ -26992,7 +28304,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_String_kitchen_sink_twin_sync(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 789)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 823)!; }, codec: SseCodec( decodeSuccessData: sse_decode_Map_String_kitchen_sink_twin_sync, @@ -27020,7 +28332,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_String_enum_simple_twin_sync(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 790)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 824)!; }, codec: SseCodec( decodeSuccessData: sse_decode_Map_String_enum_simple_twin_sync, @@ -27048,7 +28360,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_String_String(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 791)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 825)!; }, codec: SseCodec( decodeSuccessData: sse_decode_Map_String_String, @@ -27076,7 +28388,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Map_String_my_size(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 792)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 826)!; }, codec: SseCodec( decodeSuccessData: sse_decode_Map_String_my_size, @@ -27103,7 +28415,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Set_i_32(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 793)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 827)!; }, codec: SseCodec( decodeSuccessData: sse_decode_Set_i_32, @@ -27130,7 +28442,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Set_String(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 794)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 828)!; }, codec: SseCodec( decodeSuccessData: sse_decode_Set_String, @@ -27157,7 +28469,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 795, port: port_); + funcId: 829, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -27188,7 +28500,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_String(a, serializer); sse_encode_String(b, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 796, port: port_); + funcId: 830, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -27220,7 +28532,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { that, serializer); sse_encode_String(b, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 797, port: port_); + funcId: 831, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -27250,7 +28562,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_u_32_Sse(sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 798, port: port_); + funcId: 832, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -27284,7 +28596,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_u_32(max, serializer); sse_encode_StreamSink_log_2_twin_rust_async_Sse(sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 799, port: port_); + funcId: 833, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -27318,7 +28630,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { that, serializer); sse_encode_StreamSink_u_32_Sse(sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 800, port: port_); + funcId: 834, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -27356,7 +28668,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_u_32(max, serializer); sse_encode_StreamSink_log_2_twin_rust_async_Sse(sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 801, port: port_); + funcId: 835, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -27387,7 +28699,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_String(a, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 802, port: port_); + funcId: 836, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_concatenate_with_twin_rust_async, @@ -27417,7 +28729,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_concatenate_with_twin_rust_async( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 803, port: port_); + funcId: 837, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -27449,7 +28761,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_u_32(b, serializer); sse_encode_u_32(c, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 804, port: port_); + funcId: 838, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_sum_with_twin_rust_async_array_3, @@ -27476,7 +28788,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 805, port: port_); + funcId: 839, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_sum_with_twin_rust_async, @@ -27506,7 +28818,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_my_callable_twin_rust_async(that, serializer); sse_encode_String(two, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 806, port: port_); + funcId: 840, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -27535,7 +28847,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_String(one, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 807, port: port_); + funcId: 841, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_simple_enum_twin_rust_async, @@ -27565,7 +28877,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_simple_enum_twin_rust_async(that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 808, port: port_); + funcId: 842, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -27595,7 +28907,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_simple_primitive_enum_twin_rust_async(that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 809, port: port_); + funcId: 843, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -27627,7 +28939,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_simple_struct_twin_rust_async(a, serializer); sse_encode_box_autoadd_simple_struct_twin_rust_async(b, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 810, port: port_); + funcId: 844, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -27656,7 +28968,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_simple_struct_twin_rust_async(that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 811, port: port_); + funcId: 845, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -27686,7 +28998,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_simple_struct_twin_rust_async(that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 812, port: port_); + funcId: 846, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -27716,7 +29028,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_String(one, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 813, port: port_); + funcId: 847, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_simple_struct_twin_rust_async, @@ -27746,7 +29058,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_simple_struct_twin_rust_async(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 814, port: port_); + funcId: 848, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_String, @@ -27775,7 +29087,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(a, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 815, port: port_); + funcId: 849, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -27809,7 +29121,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_u_32(y, serializer); sse_encode_u_32(z, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 816, port: port_); + funcId: 850, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_u_32, @@ -27834,7 +29146,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 817)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 851)!; }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -27863,7 +29175,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_String(a, serializer); sse_encode_String(b, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 818)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 852)!; }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -27893,7 +29205,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_concatenate_with_twin_sync(that, serializer); sse_encode_String(b, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 819)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 853)!; }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -27921,7 +29233,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_u_32_Sse(sink, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 820)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 854)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -27954,7 +29266,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_u_32(key, serializer); sse_encode_u_32(max, serializer); sse_encode_StreamSink_log_2_twin_sync_Sse(sink, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 821)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 855)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -27986,7 +29298,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_concatenate_with_twin_sync(that, serializer); sse_encode_StreamSink_u_32_Sse(sink, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 822)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 856)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -28022,7 +29334,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_u_32(key, serializer); sse_encode_u_32(max, serializer); sse_encode_StreamSink_log_2_twin_sync_Sse(sink, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 823)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 857)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -28052,7 +29364,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_String(a, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 824)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 858)!; }, codec: SseCodec( decodeSuccessData: sse_decode_concatenate_with_twin_sync, @@ -28080,7 +29392,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_concatenate_with_twin_sync(that, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 825)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 859)!; }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -28109,7 +29421,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_u_32(a, serializer); sse_encode_u_32(b, serializer); sse_encode_u_32(c, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 826)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 860)!; }, codec: SseCodec( decodeSuccessData: sse_decode_sum_with_twin_sync_array_3, @@ -28134,7 +29446,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 827)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 861)!; }, codec: SseCodec( decodeSuccessData: sse_decode_sum_with_twin_sync, @@ -28162,7 +29474,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_my_callable_twin_sync(that, serializer); sse_encode_String(two, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 828)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 862)!; }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -28190,7 +29502,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_String(one, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 829)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 863)!; }, codec: SseCodec( decodeSuccessData: sse_decode_simple_enum_twin_sync, @@ -28218,7 +29530,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_simple_enum_twin_sync(that, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 830)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 864)!; }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -28245,7 +29557,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_simple_primitive_enum_twin_sync(that, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 831)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 865)!; }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -28274,7 +29586,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_simple_struct_twin_sync(a, serializer); sse_encode_box_autoadd_simple_struct_twin_sync(b, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 832)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 866)!; }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -28302,7 +29614,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_simple_struct_twin_sync(that, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 833)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 867)!; }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -28330,7 +29642,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_simple_struct_twin_sync(that, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 834)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 868)!; }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -28358,7 +29670,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_String(one, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 835)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 869)!; }, codec: SseCodec( decodeSuccessData: sse_decode_simple_struct_twin_sync, @@ -28386,7 +29698,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_simple_struct_twin_sync(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 836)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 870)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_String, @@ -28413,7 +29725,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(a, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 837)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 871)!; }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -28442,7 +29754,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_sum_with_twin_sync(that, serializer); sse_encode_u_32(y, serializer); sse_encode_u_32(z, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 838)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 872)!; }, codec: SseCodec( decodeSuccessData: sse_decode_u_32, @@ -28471,7 +29783,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_application_settings_Sse(sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 839, port: port_); + funcId: 873, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -28501,7 +29813,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_list_application_settings_Sse(sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 840, port: port_); + funcId: 874, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -28530,7 +29842,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_numbers(nums, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 841, port: port_); + funcId: 875, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_i_32, @@ -28559,7 +29871,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_sequences(seqs, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 842, port: port_); + funcId: 876, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_i_32, @@ -28586,7 +29898,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 843, port: port_); + funcId: 877, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_application_settings, @@ -28613,7 +29925,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 844, port: port_); + funcId: 878, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_application_settings, @@ -28640,7 +29952,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 845, port: port_); + funcId: 879, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_application_message, @@ -28669,7 +29981,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_application_settings(appSettings, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 846, port: port_); + funcId: 880, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_bool, @@ -28698,7 +30010,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_application_mode_array_2_Sse(sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 847, port: port_); + funcId: 881, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -28728,7 +30040,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_application_mode_Sse(sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 848, port: port_); + funcId: 882, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -28758,7 +30070,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_Map_u_8_application_mode_Sse(sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 849, port: port_); + funcId: 883, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -28789,7 +30101,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_StreamSink_opt_box_autoadd_application_mode_Sse( sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 850, port: port_); + funcId: 884, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -28819,7 +30131,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_Set_application_mode_Sse(sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 851, port: port_); + funcId: 885, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -28850,7 +30162,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_StreamSink_mirror_struct_twin_rust_async_Sse( sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 852, port: port_); + funcId: 886, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -28881,7 +30193,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_StreamSink_record_application_settings_raw_string_enum_mirrored_Sse( sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 853, port: port_); + funcId: 887, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -28911,7 +30223,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_list_application_mode_Sse(sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 854, port: port_); + funcId: 888, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -28942,7 +30254,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_i_32(num, serializer); sse_encode_usize(times, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 855, port: port_); + funcId: 889, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_numbers, @@ -28972,7 +30284,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_i_32(seq, serializer); sse_encode_usize(times, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 856, port: port_); + funcId: 890, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_sequences, @@ -28999,7 +30311,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 857, port: port_); + funcId: 891, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -29027,7 +30339,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 858, port: port_); + funcId: 892, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_raw_string_mirrored, @@ -29054,7 +30366,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 859, port: port_); + funcId: 893, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_struct_with_hash_map, @@ -29081,7 +30393,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 860, port: port_); + funcId: 894, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_raw_string_enum_mirrored, @@ -29108,7 +30420,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 861, port: port_); + funcId: 895, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_of_nested_raw_string_mirrored, @@ -29136,7 +30448,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 862, port: port_); + funcId: 896, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_nested_raw_string_mirrored, @@ -29165,7 +30477,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_bool(nested, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 863, port: port_); + funcId: 897, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_raw_string_enum_mirrored, @@ -29192,7 +30504,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 864, port: port_); + funcId: 898, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_raw_string_mirrored, @@ -29220,7 +30532,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_application_settings_Sse(sink, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 865)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 899)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -29249,7 +30561,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_list_application_settings_Sse(sink, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 866)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 900)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -29277,7 +30589,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_numbers(nums, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 867)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 901)!; }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_i_32, @@ -29304,7 +30616,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_sequences(seqs, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 868)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 902)!; }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_i_32, @@ -29330,7 +30642,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 869)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 903)!; }, codec: SseCodec( decodeSuccessData: sse_decode_application_settings, @@ -29356,7 +30668,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 870)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 904)!; }, codec: SseCodec( decodeSuccessData: sse_decode_application_settings, @@ -29381,7 +30693,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 871)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 905)!; }, codec: SseCodec( decodeSuccessData: sse_decode_application_message, @@ -29407,7 +30719,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_application_settings(appSettings, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 872)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 906)!; }, codec: SseCodec( decodeSuccessData: sse_decode_bool, @@ -29435,7 +30747,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_application_mode_array_2_Sse(sink, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 873)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 907)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -29464,7 +30776,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_application_mode_Sse(sink, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 874)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 908)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -29493,7 +30805,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_Map_u_8_application_mode_Sse(sink, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 875)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 909)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -29523,7 +30835,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_opt_box_autoadd_application_mode_Sse( sink, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 876)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 910)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -29552,7 +30864,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_Set_application_mode_Sse(sink, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 877)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 911)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -29581,7 +30893,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_mirror_struct_twin_sync_Sse(sink, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 878)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 912)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -29611,7 +30923,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_record_application_settings_raw_string_enum_mirrored_Sse( sink, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 879)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 913)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -29640,7 +30952,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_list_application_mode_Sse(sink, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 880)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 914)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -29669,7 +30981,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(num, serializer); sse_encode_usize(times, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 881)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 915)!; }, codec: SseCodec( decodeSuccessData: sse_decode_numbers, @@ -29697,7 +31009,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(seq, serializer); sse_encode_usize(times, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 882)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 916)!; }, codec: SseCodec( decodeSuccessData: sse_decode_sequences, @@ -29723,7 +31035,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 883)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 917)!; }, codec: SseCodec( decodeSuccessData: sse_decode_contains_mirrored_sub_struct_twin_sync, @@ -29749,7 +31061,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 884)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 918)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_raw_string_mirrored, @@ -29775,7 +31087,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 885)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 919)!; }, codec: SseCodec( decodeSuccessData: sse_decode_struct_with_hash_map, @@ -29801,7 +31113,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 886)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 920)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_raw_string_enum_mirrored, @@ -29827,7 +31139,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 887)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 921)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_of_nested_raw_string_mirrored, @@ -29853,7 +31165,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 888)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 922)!; }, codec: SseCodec( decodeSuccessData: sse_decode_nested_raw_string_mirrored, @@ -29881,7 +31193,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_bool(nested, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 889)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 923)!; }, codec: SseCodec( decodeSuccessData: sse_decode_raw_string_enum_mirrored, @@ -29907,7 +31219,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 890)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 924)!; }, codec: SseCodec( decodeSuccessData: sse_decode_raw_string_mirrored, @@ -29934,7 +31246,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 891, port: port_); + funcId: 925, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_big_buffers_twin_rust_async, @@ -29963,7 +31275,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Char(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 892, port: port_); + funcId: 926, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Char, @@ -29992,7 +31304,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_my_tree_node_twin_rust_async(s, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 893, port: port_); + funcId: 927, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_my_tree_node_twin_rust_async, @@ -30021,7 +31333,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_my_nested_struct_twin_rust_async(s, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 894, port: port_); + funcId: 928, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_my_nested_struct_twin_rust_async, @@ -30050,7 +31362,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_String(s, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 895, port: port_); + funcId: 929, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -30080,7 +31392,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_my_size(arg, serializer); sse_encode_box_my_size(boxed, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 896, port: port_); + funcId: 930, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_my_size, @@ -30109,7 +31421,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_u_8_loose(v, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 897, port: port_); + funcId: 931, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_u_8_strict, @@ -30138,7 +31450,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_weekdays_twin_rust_async(weekdays, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 898, port: port_); + funcId: 932, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_weekdays_twin_rust_async, @@ -30168,7 +31480,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_i_32(a, serializer); sse_encode_i_32(b, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 899, port: port_); + funcId: 933, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -30197,7 +31509,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_abc_twin_rust_async(abc, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 900, port: port_); + funcId: 934, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_abc_twin_rust_async, @@ -30226,7 +31538,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_struct_with_enum_twin_rust_async(se, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 901, port: port_); + funcId: 935, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_struct_with_enum_twin_rust_async, @@ -30252,7 +31564,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 902)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 936)!; }, codec: SseCodec( decodeSuccessData: sse_decode_big_buffers_twin_sync, @@ -30279,7 +31591,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Char(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 903)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 937)!; }, codec: SseCodec( decodeSuccessData: sse_decode_Char, @@ -30307,7 +31619,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_my_tree_node_twin_sync(s, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 904)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 938)!; }, codec: SseCodec( decodeSuccessData: sse_decode_my_tree_node_twin_sync, @@ -30335,7 +31647,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_my_nested_struct_twin_sync(s, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 905)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 939)!; }, codec: SseCodec( decodeSuccessData: sse_decode_my_nested_struct_twin_sync, @@ -30362,7 +31674,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_String(s, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 906)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 940)!; }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -30390,7 +31702,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_my_size(arg, serializer); sse_encode_box_my_size(boxed, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 907)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 941)!; }, codec: SseCodec( decodeSuccessData: sse_decode_my_size, @@ -30417,7 +31729,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_u_8_loose(v, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 908)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 942)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_u_8_strict, @@ -30445,7 +31757,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_weekdays_twin_sync(weekdays, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 909)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 943)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_weekdays_twin_sync, @@ -30473,7 +31785,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(a, serializer); sse_encode_i_32(b, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 910)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 944)!; }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -30500,7 +31812,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_abc_twin_sync(abc, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 911)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 945)!; }, codec: SseCodec( decodeSuccessData: sse_decode_abc_twin_sync, @@ -30528,7 +31840,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_struct_with_enum_twin_sync(se, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 912)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 946)!; }, codec: SseCodec( decodeSuccessData: sse_decode_struct_with_enum_twin_sync, @@ -30557,7 +31869,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_empty_twin_rust_async(empty, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 913, port: port_); + funcId: 947, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_empty_twin_rust_async, @@ -30584,7 +31896,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 914, port: port_); + funcId: 948, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -30613,7 +31925,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_my_size(l, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 915, port: port_); + funcId: 949, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_my_size, @@ -30642,7 +31954,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_String(names, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 916, port: port_); + funcId: 950, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_String, @@ -30669,7 +31981,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_empty_twin_sync(empty, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 917)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 951)!; }, codec: SseCodec( decodeSuccessData: sse_decode_empty_twin_sync, @@ -30694,7 +32006,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 918)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 952)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -30721,7 +32033,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_my_size(l, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 919)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 953)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_my_size, @@ -30748,7 +32060,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_String(names, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 920)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 954)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_String, @@ -30777,7 +32089,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_new_type_int_twin_rust_async(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 921, port: port_); + funcId: 955, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_new_type_int_twin_rust_async, @@ -30805,7 +32117,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_new_type_int_twin_sync(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 922)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 956)!; }, codec: SseCodec( decodeSuccessData: sse_decode_new_type_int_twin_sync, @@ -30837,7 +32149,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_opt_box_autoadd_f_64(myF64, serializer); sse_encode_opt_box_autoadd_bool(myBool, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 923, port: port_); + funcId: 957, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_i_32, @@ -30868,7 +32180,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_opt_box_autoadd_i_64(myI64, serializer); sse_encode_opt_box_autoadd_f_64(myF64, serializer); sse_encode_opt_box_autoadd_bool(myBool, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 924)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 958)!; }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_i_32, @@ -30897,7 +32209,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_f_64(opt, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 925, port: port_); + funcId: 959, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_f_64, @@ -30939,7 +32251,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_opt_box_exotic_optionals_twin_rust_async( structbox, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 926, port: port_); + funcId: 960, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -30977,7 +32289,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_opt_box_autoadd_exotic_optionals_twin_rust_async( opt, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 927, port: port_); + funcId: 961, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -31008,7 +32320,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_f_64(left, serializer); sse_encode_f_64(right, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 928, port: port_); + funcId: 962, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_f_64, @@ -31037,7 +32349,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_String(document, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 929, port: port_); + funcId: 963, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_element_twin_rust_async, @@ -31066,7 +32378,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_opt_vecs_twin_rust_async(opt, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 930, port: port_); + funcId: 964, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opt_vecs_twin_rust_async, @@ -31094,7 +32406,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_f_64(opt, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 931)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 965)!; }, codec: SseCodec( decodeSuccessData: sse_decode_f_64, @@ -31133,7 +32445,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_opt_box_f_64(f64Box, serializer); sse_encode_opt_box_bool(boolbox, serializer); sse_encode_opt_box_exotic_optionals_twin_sync(structbox, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 932)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 966)!; }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -31169,7 +32481,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_exotic_optionals_twin_sync(opt, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 933)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 967)!; }, codec: SseCodec( decodeSuccessData: @@ -31198,7 +32510,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_f_64(left, serializer); sse_encode_f_64(right, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 934)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 968)!; }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_f_64, @@ -31226,7 +32538,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_String(document, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 935)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 969)!; }, codec: SseCodec( decodeSuccessData: sse_decode_opt_box_autoadd_element_twin_sync, @@ -31253,7 +32565,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_opt_vecs_twin_sync(opt, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 936)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 970)!; }, codec: SseCodec( decodeSuccessData: sse_decode_opt_vecs_twin_sync, @@ -31281,7 +32593,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 937, port: port_); + funcId: 971, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -31310,7 +32622,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_String(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 938, port: port_); + funcId: 972, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_String, @@ -31339,7 +32651,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_u_8_loose(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 939, port: port_); + funcId: 973, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_u_8_strict, @@ -31368,7 +32680,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_String(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 940, port: port_); + funcId: 974, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -31397,7 +32709,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_String(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 941, port: port_); + funcId: 975, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -31427,7 +32739,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_simple_struct_for_borrow_twin_rust_async( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 942, port: port_); + funcId: 976, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_simple_struct_for_borrow_twin_rust_async, @@ -31454,7 +32766,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 943)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 977)!; }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -31481,7 +32793,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_String(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 944)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 978)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_String, @@ -31508,7 +32820,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_prim_u_8_loose(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 945)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 979)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_prim_u_8_strict, @@ -31535,7 +32847,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_String(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 946)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 980)!; }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -31562,7 +32874,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_String(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 947)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 981)!; }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -31591,7 +32903,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_simple_struct_for_borrow_twin_sync( arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 948)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 982)!; }, codec: SseCodec( decodeSuccessData: sse_decode_simple_struct_for_borrow_twin_sync, @@ -31620,7 +32932,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(n, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 949, port: port_); + funcId: 983, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_vec_of_primitive_pack_twin_rust_async, @@ -31648,7 +32960,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(n, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 950)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 984)!; }, codec: SseCodec( decodeSuccessData: sse_decode_vec_of_primitive_pack_twin_sync, @@ -31683,7 +32995,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_f_64(myF64, serializer); sse_encode_bool(myBool, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 951, port: port_); + funcId: 985, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -31712,7 +33024,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_u_32(myU32, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 952, port: port_); + funcId: 986, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_u_32, @@ -31745,7 +33057,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_i_64(myI64, serializer); sse_encode_f_64(myF64, serializer); sse_encode_bool(myBool, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 953)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 987)!; }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -31772,7 +33084,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_u_32(myU32, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 954)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 988)!; }, codec: SseCodec( decodeSuccessData: sse_decode_u_32, @@ -31799,7 +33111,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 955, port: port_); + funcId: 989, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -31828,7 +33140,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 956, port: port_); + funcId: 990, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_raw_string_item_struct_twin_rust_async, @@ -31854,7 +33166,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 957)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 991)!; }, codec: SseCodec( decodeSuccessData: @@ -31881,7 +33193,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 958)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 992)!; }, codec: SseCodec( decodeSuccessData: sse_decode_raw_string_item_struct_twin_sync, @@ -31911,7 +33223,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinRustAsync( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 959, port: port_); + funcId: 993, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -31942,7 +33254,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinRustAsync( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 960, port: port_); + funcId: 994, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -31973,7 +33285,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinRustAsync( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 961, port: port_); + funcId: 995, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -32004,7 +33316,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinRustAsync( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 962, port: port_); + funcId: 996, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -32035,7 +33347,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinRustAsync( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 963, port: port_); + funcId: 997, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -32064,7 +33376,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 964, port: port_); + funcId: 998, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -32093,7 +33405,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 965, port: port_); + funcId: 999, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -32121,7 +33433,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 966, port: port_); + funcId: 1000, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -32153,7 +33465,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinRustAsync( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 967, port: port_); + funcId: 1001, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -32184,7 +33496,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinRustAsync( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 968, port: port_); + funcId: 1002, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -32215,7 +33527,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinRustAsync( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 969, port: port_); + funcId: 1003, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -32243,7 +33555,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 970, port: port_); + funcId: 1004, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -32275,7 +33587,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerStructWithGoodAndOpaqueFieldWithoutOptionTwinRustAsync( that, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 971)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1005)!; }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -32307,7 +33619,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerStructWithGoodAndOpaqueFieldWithoutOptionTwinRustAsync( that, serializer); sse_encode_String(good, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 972)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1006)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -32339,7 +33651,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { arg, serializer); sse_encode_i_32(expect, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 974, port: port_); + funcId: 1008, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -32373,7 +33685,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_i_32(expect, serializer); sse_encode_i_32(adder, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 975, port: port_); + funcId: 1009, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -32403,7 +33715,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinRustAsync( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 976, port: port_); + funcId: 1010, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -32436,7 +33748,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { arg, serializer); sse_encode_i_32(expect, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 977, port: port_); + funcId: 1011, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -32468,7 +33780,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { arg, serializer); sse_encode_list_prim_i_32_loose(expect, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 978, port: port_); + funcId: 1012, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -32501,7 +33813,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinRustAsync( b, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 979, port: port_); + funcId: 1013, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -32534,7 +33846,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinRustAsync( mutBorrow, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 980, port: port_); + funcId: 1014, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -32564,7 +33876,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBoxdynFnStringStringSendSync( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 981, port: port_); + funcId: 1015, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -32591,7 +33903,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 982, port: port_); + funcId: 1016, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -32625,7 +33937,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEnumWithGoodAndOpaqueWithoutOptionTwinRustAsync( b, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 983, port: port_); + funcId: 1017, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -32655,7 +33967,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleEnumTwinRustAsync( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 984, port: port_); + funcId: 1018, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -32682,7 +33994,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 985, port: port_); + funcId: 1019, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -32713,7 +34025,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_enum_with_good_and_opaque_twin_rust_async( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 986, port: port_); + funcId: 1020, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -32741,7 +34053,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 987, port: port_); + funcId: 1021, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_enum_with_good_and_opaque_twin_rust_async, @@ -32769,7 +34081,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 988, port: port_); + funcId: 1022, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_enum_with_good_and_opaque_twin_rust_async, @@ -32801,7 +34113,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { arg, serializer); sse_encode_i_32(expect, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 989, port: port_); + funcId: 1023, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -32828,7 +34140,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 990, port: port_); + funcId: 1024, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -32859,7 +34171,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(initial, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 991, port: port_); + funcId: 1025, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -32890,7 +34202,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_struct_with_explicit_auto_opaque_field_twin_rust_async( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 992, port: port_); + funcId: 1026, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -32921,7 +34233,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { a, serializer); sse_encode_String(b, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 993, port: port_); + funcId: 1027, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -32951,7 +34263,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBoxdynMyTraitTwinRustAsyncSendSync( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 994, port: port_); + funcId: 1028, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -32978,7 +34290,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 995, port: port_); + funcId: 1029, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -33006,7 +34318,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 996, port: port_); + funcId: 1030, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -33035,7 +34347,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 997, port: port_); + funcId: 1031, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -33065,7 +34377,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(initial, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 998, port: port_); + funcId: 1032, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -33093,7 +34405,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 999, port: port_); + funcId: 1033, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -33127,7 +34439,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinRustAsync( orange, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1000, port: port_); + funcId: 1034, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -33157,7 +34469,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_StreamSink_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinRustAsync_Sse( sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1001, port: port_); + funcId: 1035, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -33188,7 +34500,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_struct_with_good_and_opaque_field_twin_rust_async( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1002, port: port_); + funcId: 1036, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -33216,7 +34528,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1003, port: port_); + funcId: 1037, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -33251,7 +34563,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinRustAsync( b, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1004, port: port_); + funcId: 1038, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -33280,7 +34592,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinSync( that, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1005)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1039)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -33310,7 +34622,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinSync( that, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1006)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1040)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -33340,7 +34652,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinSync( that, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1007)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1041)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -33369,7 +34681,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinSync( that, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1008)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1042)!; }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -33399,7 +34711,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinSync( that, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1009)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1043)!; }, codec: SseCodec( decodeSuccessData: @@ -33427,7 +34739,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1010)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1044)!; }, codec: SseCodec( decodeSuccessData: @@ -33454,7 +34766,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1011)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1045)!; }, codec: SseCodec( decodeSuccessData: @@ -33481,7 +34793,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1012)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1046)!; }, codec: SseCodec( decodeSuccessData: @@ -33511,7 +34823,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinSync( arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1013)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1047)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -33541,7 +34853,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinSync( arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1014)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1048)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -33571,7 +34883,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinSync( arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1015)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1049)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -33597,7 +34909,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1016)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1050)!; }, codec: SseCodec( decodeSuccessData: @@ -33628,7 +34940,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerStructWithGoodAndOpaqueFieldWithoutOptionTwinSync( that, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1017)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1051)!; }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -33660,7 +34972,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerStructWithGoodAndOpaqueFieldWithoutOptionTwinSync( that, serializer); sse_encode_String(good, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1018)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1052)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -33691,7 +35003,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinSync( arg, serializer); sse_encode_i_32(expect, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1020)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1054)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -33724,7 +35036,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { arg, serializer); sse_encode_i_32(expect, serializer); sse_encode_i_32(adder, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1021)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1055)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -33753,7 +35065,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinSync( arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1022)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1056)!; }, codec: SseCodec( decodeSuccessData: @@ -33783,7 +35095,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinSync( arg, serializer); sse_encode_i_32(expect, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1023)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1057)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -33814,7 +35126,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_list_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinSync( arg, serializer); sse_encode_list_prim_i_32_loose(expect, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1024)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1058)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -33844,7 +35156,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { a, serializer); sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinSync( b, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1025)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1059)!; }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -33875,7 +35187,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { borrow, serializer); sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinSync( mutBorrow, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1026)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1060)!; }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -33904,7 +35216,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBoxdynFnStringStringSendSync( arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1027)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1061)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -33930,7 +35242,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1028)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1062)!; }, codec: SseCodec( decodeSuccessData: @@ -33962,7 +35274,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { a, serializer); sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEnumWithGoodAndOpaqueWithoutOptionTwinSync( b, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1029)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1063)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -33991,7 +35303,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleEnumTwinSync( arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1030)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1064)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -34017,7 +35329,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1031)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1065)!; }, codec: SseCodec( decodeSuccessData: @@ -34047,7 +35359,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_enum_with_good_and_opaque_twin_sync( arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1032)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1066)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -34074,7 +35386,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1033)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1067)!; }, codec: SseCodec( decodeSuccessData: sse_decode_enum_with_good_and_opaque_twin_sync, @@ -34101,7 +35413,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1034)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1068)!; }, codec: SseCodec( decodeSuccessData: sse_decode_enum_with_good_and_opaque_twin_sync, @@ -34132,7 +35444,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinSync( arg, serializer); sse_encode_i_32(expect, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1035)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1069)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -34158,7 +35470,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1036)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1070)!; }, codec: SseCodec( decodeSuccessData: @@ -34187,7 +35499,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(initial, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1037)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1071)!; }, codec: SseCodec( decodeSuccessData: @@ -34217,7 +35529,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_struct_with_explicit_auto_opaque_field_twin_sync( arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1038)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1072)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -34247,7 +35559,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinSync( a, serializer); sse_encode_String(b, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1039)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1073)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -34276,7 +35588,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBoxdynMyTraitTwinSyncSendSync( arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1040)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1074)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -34302,7 +35614,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1041)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1075)!; }, codec: SseCodec( decodeSuccessData: @@ -34331,7 +35643,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1042)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1076)!; }, codec: SseCodec( decodeSuccessData: @@ -34358,7 +35670,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1043)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1077)!; }, codec: SseCodec( decodeSuccessData: @@ -34387,7 +35699,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(initial, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1044)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1078)!; }, codec: SseCodec( decodeSuccessData: @@ -34414,7 +35726,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1045)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1079)!; }, codec: SseCodec( decodeSuccessData: @@ -34446,7 +35758,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { apple, serializer); sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinSync( orange, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1046)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1080)!; }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -34475,7 +35787,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinSync_Sse( sink, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1047)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1081)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -34505,7 +35817,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_struct_with_good_and_opaque_field_twin_sync( arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1048)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1082)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -34532,7 +35844,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1049)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1083)!; }, codec: SseCodec( decodeSuccessData: @@ -34564,7 +35876,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { a, serializer); sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinSync( b, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1050)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1084)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -34591,7 +35903,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1051, port: port_); + funcId: 1085, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_enum_opaque_twin_rust_async_array_5, @@ -34618,7 +35930,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1052, port: port_); + funcId: 1086, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opaque_nested_twin_rust_async, @@ -34645,7 +35957,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1053, port: port_); + funcId: 1087, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_RustOpaque_HideDataTwinRustAsync, @@ -34675,7 +35987,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_opt_box_autoadd_RustOpaque_HideDataTwinRustAsync( opaque, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1054, port: port_); + funcId: 1088, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -34703,7 +36015,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1055, port: port_); + funcId: 1089, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_RustOpaque_FrbOpaqueReturnTwinRustAsync, @@ -34732,7 +36044,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_RustOpaque_HideDataTwinRustAsync_array_2(data, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1056, port: port_); + funcId: 1090, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -34759,7 +36071,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1057, port: port_); + funcId: 1091, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_RustOpaque_HideDataTwinRustAsync_array_2, @@ -34788,7 +36100,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_RustOpaque_HideDataTwinRustAsync(data, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1058, port: port_); + funcId: 1092, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -34815,7 +36127,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1059, port: port_); + funcId: 1093, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_RustOpaque_HideDataTwinRustAsync, @@ -34844,7 +36156,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_enum_opaque_twin_rust_async(opaque, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1060, port: port_); + funcId: 1094, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -34874,7 +36186,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_opaque_nested_twin_rust_async( opaque, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1061, port: port_); + funcId: 1095, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -34903,7 +36215,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_RustOpaque_NonCloneDataTwinRustAsync(clone, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1062, port: port_); + funcId: 1096, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -34932,7 +36244,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_RustOpaque_HideDataTwinRustAsync(opaque, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1063, port: port_); + funcId: 1097, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -34961,7 +36273,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_RustOpaque_HideDataTwinRustAsync(opaque, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1064, port: port_); + funcId: 1098, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -34990,7 +36302,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_RustOpaque_HideDataTwinRustAsync(opaque, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1065, port: port_); + funcId: 1099, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -35016,7 +36328,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1066)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1100)!; }, codec: SseCodec( decodeSuccessData: sse_decode_enum_opaque_twin_sync_array_5, @@ -35042,7 +36354,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1067)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1101)!; }, codec: SseCodec( decodeSuccessData: sse_decode_opaque_nested_twin_sync, @@ -35068,7 +36380,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1068)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1102)!; }, codec: SseCodec( decodeSuccessData: sse_decode_RustOpaque_HideDataTwinSync, @@ -35097,7 +36409,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_RustOpaque_HideDataTwinSync( opaque, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1069)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1103)!; }, codec: SseCodec( decodeSuccessData: @@ -35124,7 +36436,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1070)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1104)!; }, codec: SseCodec( decodeSuccessData: sse_decode_RustOpaque_FrbOpaqueReturnTwinSync, @@ -35151,7 +36463,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_RustOpaque_HideDataTwinSync_array_2(data, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1071)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1105)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -35177,7 +36489,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1072)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1106)!; }, codec: SseCodec( decodeSuccessData: sse_decode_RustOpaque_HideDataTwinSync_array_2, @@ -35204,7 +36516,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_RustOpaque_HideDataTwinSync(data, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1073)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1107)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -35230,7 +36542,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1074)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1108)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_RustOpaque_HideDataTwinSync, @@ -35257,7 +36569,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_enum_opaque_twin_sync(opaque, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1075)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1109)!; }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -35284,7 +36596,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_opaque_nested_twin_sync(opaque, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1076)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1110)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -35311,7 +36623,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_RustOpaque_NonCloneDataTwinSync(clone, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1077)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1111)!; }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -35338,7 +36650,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_RustOpaque_HideDataTwinSync(opaque, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1078)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1112)!; }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -35365,7 +36677,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_RustOpaque_HideDataTwinSync(opaque, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1079)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1113)!; }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -35392,7 +36704,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_RustOpaque_HideDataTwinSync(opaque, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1080)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1114)!; }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -35421,7 +36733,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_i_32(a, serializer); sse_encode_i_32(b, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1081, port: port_); + funcId: 1115, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -35449,7 +36761,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(a, serializer); sse_encode_i_32(b, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1082)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1116)!; }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -35478,7 +36790,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_i_32_Sse(sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1083, port: port_); + funcId: 1117, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -35508,7 +36820,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_String_Sse(sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1084, port: port_); + funcId: 1118, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -35538,7 +36850,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_String_Sse(sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1085, port: port_); + funcId: 1119, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -35571,7 +36883,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_u_32(b, serializer); sse_encode_StreamSink_u_32_Sse(c, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1086, port: port_); + funcId: 1120, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -35602,7 +36914,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_StreamSink_my_stream_entry_twin_rust_async_Sse( sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1087, port: port_); + funcId: 1121, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -35635,7 +36947,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_u_32(max, serializer); sse_encode_StreamSink_log_twin_rust_async_Sse(sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1088, port: port_); + funcId: 1122, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -35668,7 +36980,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_StreamSink_log_twin_rust_async_Sse(sink, serializer); sse_encode_u_32(max, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1089, port: port_); + funcId: 1123, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -35701,7 +37013,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_u_32(key, serializer); sse_encode_u_32(max, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1090, port: port_); + funcId: 1124, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -35731,7 +37043,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_u_8_array_2_Sse(sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1091, port: port_); + funcId: 1125, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -35763,7 +37075,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_my_struct_containing_stream_sink_twin_rust_async( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1092, port: port_); + funcId: 1126, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -35792,7 +37104,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_StreamSink_i_32_Sse(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1093, port: port_); + funcId: 1127, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -35822,7 +37134,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_struct_with_dart_keyword_field_twin_rust_async( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1094, port: port_); + funcId: 1128, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -35854,7 +37166,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_struct_with_field_rename_twin_rust_async( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1095, port: port_); + funcId: 1129, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_struct_with_field_rename_twin_rust_async, @@ -35884,7 +37196,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_struct_with_one_field_twin_rust_async( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1096, port: port_); + funcId: 1130, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_struct_with_one_field_twin_rust_async, @@ -35914,7 +37226,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_struct_with_two_field_twin_rust_async( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1097, port: port_); + funcId: 1131, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_struct_with_two_field_twin_rust_async, @@ -35944,7 +37256,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_struct_with_zero_field_twin_rust_async( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1098, port: port_); + funcId: 1132, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_struct_with_zero_field_twin_rust_async, @@ -35974,7 +37286,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_tuple_struct_with_one_field_twin_rust_async( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1099, port: port_); + funcId: 1133, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -36005,7 +37317,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_tuple_struct_with_two_field_twin_rust_async( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1100, port: port_); + funcId: 1134, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -36035,7 +37347,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_struct_with_dart_keyword_field_twin_sync( arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1101)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1135)!; }, codec: SseCodec( decodeSuccessData: sse_decode_struct_with_dart_keyword_field_twin_sync, @@ -36064,7 +37376,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_struct_with_field_rename_twin_sync( arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1102)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1136)!; }, codec: SseCodec( decodeSuccessData: sse_decode_struct_with_field_rename_twin_sync, @@ -36092,7 +37404,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_struct_with_one_field_twin_sync(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1103)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1137)!; }, codec: SseCodec( decodeSuccessData: sse_decode_struct_with_one_field_twin_sync, @@ -36120,7 +37432,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_struct_with_two_field_twin_sync(arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1104)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1138)!; }, codec: SseCodec( decodeSuccessData: sse_decode_struct_with_two_field_twin_sync, @@ -36149,7 +37461,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_struct_with_zero_field_twin_sync( arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1105)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1139)!; }, codec: SseCodec( decodeSuccessData: sse_decode_struct_with_zero_field_twin_sync, @@ -36178,7 +37490,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_tuple_struct_with_one_field_twin_sync( arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1106)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1140)!; }, codec: SseCodec( decodeSuccessData: sse_decode_tuple_struct_with_one_field_twin_sync, @@ -36207,7 +37519,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_tuple_struct_with_two_field_twin_sync( arg, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1107)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1141)!; }, codec: SseCodec( decodeSuccessData: sse_decode_tuple_struct_with_two_field_twin_sync, @@ -36235,7 +37547,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_record_string_i_32(value, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1108, port: port_); + funcId: 1142, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -36264,7 +37576,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_record_string_i_32(value, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1109, port: port_); + funcId: 1143, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_record_string_i_32, @@ -36291,7 +37603,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_record_string_i_32(value, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1110)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1144)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -36317,7 +37629,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_record_string_i_32(value, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1111)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1145)!; }, codec: SseCodec( decodeSuccessData: sse_decode_record_string_i_32, @@ -36345,7 +37657,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_u_64(input, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1112, port: port_); + funcId: 1146, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_u_64, @@ -36374,7 +37686,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_u_64(input, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1113, port: port_); + funcId: 1147, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_test_model_twin_rust_async, @@ -36403,7 +37715,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_u_64(input, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1114, port: port_); + funcId: 1148, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_u_64, @@ -36430,7 +37742,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_u_64(input, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1115)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1149)!; }, codec: SseCodec( decodeSuccessData: sse_decode_u_64, @@ -36458,7 +37770,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_u_64(input, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1116)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1150)!; }, codec: SseCodec( decodeSuccessData: sse_decode_test_model_twin_sync, @@ -36485,7 +37797,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_u_64(input, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1117)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1151)!; }, codec: SseCodec( decodeSuccessData: sse_decode_u_64, @@ -36514,7 +37826,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_feature_uuid_twin_rust_async(ids, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1118, port: port_); + funcId: 1152, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_feature_uuid_twin_rust_async, @@ -36543,7 +37855,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Uuid(id, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1119, port: port_); + funcId: 1153, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Uuid, @@ -36572,7 +37884,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_Uuid(ids, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1120, port: port_); + funcId: 1154, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_Uuid, @@ -36600,7 +37912,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_feature_uuid_twin_sync(ids, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1121)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1155)!; }, codec: SseCodec( decodeSuccessData: sse_decode_feature_uuid_twin_sync, @@ -36627,7 +37939,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Uuid(id, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1122)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1156)!; }, codec: SseCodec( decodeSuccessData: sse_decode_Uuid, @@ -36654,7 +37966,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_Uuid(ids, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1123)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1157)!; }, codec: SseCodec( decodeSuccessData: sse_decode_list_Uuid, @@ -36681,7 +37993,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1124, port: port_); + funcId: 1158, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -36709,7 +38021,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1125, port: port_); + funcId: 1159, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_raw_string_item_struct_twin_normal, @@ -36738,7 +38050,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinNormal( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1126, port: port_); + funcId: 1160, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -36769,7 +38081,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinNormal( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1127, port: port_); + funcId: 1161, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -36800,7 +38112,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinNormal( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1128, port: port_); + funcId: 1162, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -36831,7 +38143,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinNormal( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1129, port: port_); + funcId: 1163, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -36862,7 +38174,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinNormal( that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1130, port: port_); + funcId: 1164, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -36891,7 +38203,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1131, port: port_); + funcId: 1165, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -36919,7 +38231,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1132, port: port_); + funcId: 1166, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -36947,7 +38259,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1133, port: port_); + funcId: 1167, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -36978,7 +38290,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinNormal( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1134, port: port_); + funcId: 1168, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -37009,7 +38321,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinNormal( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1135, port: port_); + funcId: 1169, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -37040,7 +38352,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinNormal( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1136, port: port_); + funcId: 1170, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -37068,7 +38380,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1137, port: port_); + funcId: 1171, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -37099,7 +38411,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerStructWithGoodAndOpaqueFieldWithoutOptionTwinNormal( that, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1138)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1172)!; }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -37131,7 +38443,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerStructWithGoodAndOpaqueFieldWithoutOptionTwinNormal( that, serializer); sse_encode_String(good, serializer); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1139)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1173)!; }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -37162,7 +38474,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { arg, serializer); sse_encode_i_32(expect, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1141, port: port_); + funcId: 1175, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -37195,7 +38507,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_i_32(expect, serializer); sse_encode_i_32(adder, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1142, port: port_); + funcId: 1176, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -37225,7 +38537,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinNormal( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1143, port: port_); + funcId: 1177, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -37256,7 +38568,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { arg, serializer); sse_encode_i_32(expect, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1144, port: port_); + funcId: 1178, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -37286,7 +38598,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { arg, serializer); sse_encode_list_prim_i_32_loose(expect, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1145, port: port_); + funcId: 1179, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -37318,7 +38630,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinNormal( b, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1146, port: port_); + funcId: 1180, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -37350,7 +38662,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinNormal( mutBorrow, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1147, port: port_); + funcId: 1181, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -37379,7 +38691,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBoxdynFnStringStringSendSync( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1148, port: port_); + funcId: 1182, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -37406,7 +38718,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1149, port: port_); + funcId: 1183, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -37439,7 +38751,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEnumWithGoodAndOpaqueWithoutOptionTwinNormal( b, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1150, port: port_); + funcId: 1184, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -37467,7 +38779,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleEnumTwinNormal( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1151, port: port_); + funcId: 1185, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -37494,7 +38806,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1152, port: port_); + funcId: 1186, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -37525,7 +38837,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_enum_with_good_and_opaque_twin_normal( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1153, port: port_); + funcId: 1187, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -37553,7 +38865,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1154, port: port_); + funcId: 1188, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_enum_with_good_and_opaque_twin_normal, @@ -37581,7 +38893,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1155, port: port_); + funcId: 1189, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_enum_with_good_and_opaque_twin_normal, @@ -37612,7 +38924,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { arg, serializer); sse_encode_i_32(expect, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1156, port: port_); + funcId: 1190, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -37639,7 +38951,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1157, port: port_); + funcId: 1191, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -37669,7 +38981,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(initial, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1158, port: port_); + funcId: 1192, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -37699,7 +39011,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_struct_with_explicit_auto_opaque_field_twin_normal( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1159, port: port_); + funcId: 1193, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -37729,7 +39041,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { a, serializer); sse_encode_String(b, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1160, port: port_); + funcId: 1194, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -37758,7 +39070,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBoxdynMyTraitTwinNormalSendSync( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1161, port: port_); + funcId: 1195, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -37785,7 +39097,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1162, port: port_); + funcId: 1196, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -37813,7 +39125,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1163, port: port_); + funcId: 1197, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -37841,7 +39153,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1164, port: port_); + funcId: 1198, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -37871,7 +39183,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_i_32(initial, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1165, port: port_); + funcId: 1199, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -37899,7 +39211,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1166, port: port_); + funcId: 1200, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -37932,7 +39244,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinNormal( orange, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1167, port: port_); + funcId: 1201, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -37961,7 +39273,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_StreamSink_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinNormal_Sse( sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1168, port: port_); + funcId: 1202, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -37992,7 +39304,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_struct_with_good_and_opaque_field_twin_normal( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1169, port: port_); + funcId: 1203, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -38020,7 +39332,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1170, port: port_); + funcId: 1204, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -38054,7 +39366,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinNormal( b, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1171, port: port_); + funcId: 1205, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -38081,7 +39393,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1172, port: port_); + funcId: 1206, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_enum_opaque_twin_normal_array_5, @@ -38107,7 +39419,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1173, port: port_); + funcId: 1207, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_opaque_nested_twin_normal, @@ -38131,7 +39443,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1174, port: port_); + funcId: 1208, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_RustOpaque_HideDataTwinNormal, @@ -38158,7 +39470,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_opt_box_autoadd_RustOpaque_HideDataTwinNormal( opaque, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1175, port: port_); + funcId: 1209, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -38184,7 +39496,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1176, port: port_); + funcId: 1210, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_RustOpaque_FrbOpaqueReturnTwinNormal, @@ -38210,7 +39522,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_RustOpaque_HideDataTwinNormal_array_2(data, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1177, port: port_); + funcId: 1211, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -38234,7 +39546,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1178, port: port_); + funcId: 1212, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_RustOpaque_HideDataTwinNormal_array_2, @@ -38260,7 +39572,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_RustOpaque_HideDataTwinNormal(data, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1179, port: port_); + funcId: 1213, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -38284,7 +39596,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1180, port: port_); + funcId: 1214, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_RustOpaque_HideDataTwinNormal, @@ -38310,7 +39622,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_enum_opaque_twin_normal(opaque, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1181, port: port_); + funcId: 1215, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -38336,7 +39648,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_opaque_nested_twin_normal(opaque, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1182, port: port_); + funcId: 1216, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -38362,7 +39674,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_RustOpaque_NonCloneDataTwinNormal(clone, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1183, port: port_); + funcId: 1217, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -38388,7 +39700,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_RustOpaque_HideDataTwinNormal(opaque, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1184, port: port_); + funcId: 1218, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -38414,7 +39726,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_RustOpaque_HideDataTwinNormal(opaque, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1185, port: port_); + funcId: 1219, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -38440,7 +39752,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_RustOpaque_HideDataTwinNormal(opaque, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1186, port: port_); + funcId: 1220, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -38464,7 +39776,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1187)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1221)!; }, codec: SseCodec( decodeSuccessData: sse_decode_RustOpaque_FrbOpaqueSyncReturnTwinNormal, @@ -38488,7 +39800,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1188)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1222)!; }, codec: SseCodec( decodeSuccessData: sse_decode_RustOpaque_NonCloneDataTwinNormal, @@ -38512,7 +39824,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1189)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1223)!; }, codec: SseCodec( decodeSuccessData: sse_decode_RustOpaque_HideDataAnotherTwinNormal, @@ -38537,7 +39849,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeSync(SyncTask( callFfi: () { final serializer = SseSerializer(generalizedFrbRustBinding); - return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1190)!; + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1224)!; }, codec: SseCodec( decodeSuccessData: @@ -38566,7 +39878,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_i_32(a, serializer); sse_encode_i_32(b, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1191, port: port_); + funcId: 1225, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -38592,7 +39904,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_i_32_Sse(sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1192, port: port_); + funcId: 1226, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -38620,7 +39932,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_String_Sse(sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1193, port: port_); + funcId: 1227, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -38647,7 +39959,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_String_Sse(sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1194, port: port_); + funcId: 1228, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -38677,7 +39989,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_u_32(b, serializer); sse_encode_StreamSink_u_32_Sse(c, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1195, port: port_); + funcId: 1229, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -38706,7 +40018,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_my_stream_entry_twin_normal_Sse(sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1196, port: port_); + funcId: 1230, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -38736,7 +40048,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_u_32(max, serializer); sse_encode_StreamSink_log_twin_normal_Sse(sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1197, port: port_); + funcId: 1231, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -38766,7 +40078,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_StreamSink_log_twin_normal_Sse(sink, serializer); sse_encode_u_32(max, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1198, port: port_); + funcId: 1232, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -38796,7 +40108,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_u_32(key, serializer); sse_encode_u_32(max, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1199, port: port_); + funcId: 1233, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -38824,7 +40136,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_u_8_array_2_Sse(sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1200, port: port_); + funcId: 1234, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -38854,7 +40166,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_my_struct_containing_stream_sink_twin_normal( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1201, port: port_); + funcId: 1235, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -38880,7 +40192,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_StreamSink_i_32_Sse(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1202, port: port_); + funcId: 1236, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -38908,7 +40220,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_StreamSink_String_Sse(sink, serializer); sse_encode_String(arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1203, port: port_); + funcId: 1237, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -38935,7 +40247,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_i_32_Sse(sink, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1204, port: port_); + funcId: 1238, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -38964,7 +40276,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_struct_with_dart_keyword_field_twin_normal( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1205, port: port_); + funcId: 1239, port: port_); }, codec: SseCodec( decodeSuccessData: @@ -38995,7 +40307,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_struct_with_field_rename_twin_normal( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1206, port: port_); + funcId: 1240, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_struct_with_field_rename_twin_normal, @@ -39025,7 +40337,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_struct_with_one_field_twin_normal( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1207, port: port_); + funcId: 1241, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_struct_with_one_field_twin_normal, @@ -39054,7 +40366,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_struct_with_two_field_twin_normal( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1208, port: port_); + funcId: 1242, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_struct_with_two_field_twin_normal, @@ -39083,7 +40395,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_struct_with_zero_field_twin_normal( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1209, port: port_); + funcId: 1243, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_struct_with_zero_field_twin_normal, @@ -39112,7 +40424,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_tuple_struct_with_one_field_twin_normal( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1210, port: port_); + funcId: 1244, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_tuple_struct_with_one_field_twin_normal, @@ -39142,7 +40454,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_box_autoadd_tuple_struct_with_two_field_twin_normal( arg, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1211, port: port_); + funcId: 1245, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_tuple_struct_with_two_field_twin_normal, @@ -39170,7 +40482,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_record_string_i_32(value, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1212, port: port_); + funcId: 1246, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -39196,7 +40508,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_opt_box_autoadd_record_string_i_32(value, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1213, port: port_); + funcId: 1247, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_record_string_i_32, @@ -39222,7 +40534,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_u_64(input, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1214, port: port_); + funcId: 1248, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_u_64, @@ -39248,7 +40560,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_u_64(input, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1215, port: port_); + funcId: 1249, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_test_model_twin_normal, @@ -39274,7 +40586,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_u_64(input, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1216, port: port_); + funcId: 1250, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_u_64, @@ -39301,7 +40613,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_box_autoadd_feature_uuid_twin_normal(ids, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1217, port: port_); + funcId: 1251, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_feature_uuid_twin_normal, @@ -39327,7 +40639,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_Uuid(id, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1218, port: port_); + funcId: 1252, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_Uuid, @@ -39353,7 +40665,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_list_Uuid(ids, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 1219, port: port_); + funcId: 1253, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_Uuid, @@ -39999,6 +41311,86 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { get rust_arc_decrement_strong_count_ItemContainerSolutionOneTwinNormal => wire.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtNestedTypeWithLifetimeTwinNormal => + wire.rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormal => + wire.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtNestedTypeWithLifetimeTwinSync => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinSync => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtTypeWithLifetimeTwinNormal => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormal => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtTypeWithLifetimeTwinSync => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinSync => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtTypeWithMultiDepTwinNormal => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormal => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtTypeWithMultiDepTwinSync => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinSync => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtOwnedStructTwinNormal => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtOwnedStructTwinNormal => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtOwnedStructTwinSync => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtOwnedStructTwinSync => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtSubStructTwinNormal => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtSubStructTwinNormal => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal; + + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LtSubStructTwinSync => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LtSubStructTwinSync => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_MyAudioParamTwinNormal => wire .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal; @@ -40127,6 +41519,14 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { get rust_arc_decrement_strong_count_OpaqueTwoTwinSync => wire .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSync; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_SimpleLogger => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger; + + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_SimpleLogger => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger; + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_SimpleOpaqueExternalStructWithMethod => wire.rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod; @@ -40275,6 +41675,60 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return AnyhowException(raw as String); } + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + raw); + } + + @protected + LtNestedTypeWithLifetimeTwinSync + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + raw); + } + + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + raw); + } + + @protected + LtTypeWithLifetimeTwinSync + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + raw); + } + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + raw); + } + + @protected + LtTypeWithMultiDepTwinSync + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + raw); + } + @protected MyNodeTwinNormal dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyNodeTwinNormal( @@ -40468,6 +41922,39 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { raw as List); } + @protected + LtOwnedStructTwinNormal + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtOwnedStructTwinNormalImpl.frbInternalDcoDecode( + raw as List); + } + + @protected + LtOwnedStructTwinSync + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtOwnedStructTwinSyncImpl.frbInternalDcoDecode(raw as List); + } + + @protected + LtSubStructTwinNormal + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtSubStructTwinNormalImpl.frbInternalDcoDecode(raw as List); + } + + @protected + LtSubStructTwinSync + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtSubStructTwinSyncImpl.frbInternalDcoDecode(raw as List); + } + @protected MyAudioParamTwinNormal dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -40606,6 +42093,14 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return OpaqueTwoTwinSyncImpl.frbInternalDcoDecode(raw as List); } + @protected + SimpleLogger + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return SimpleLoggerImpl.frbInternalDcoDecode(raw as List); + } + @protected SimpleOpaqueExternalStructWithMethod dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -40820,6 +42315,22 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { raw as List); } + @protected + LtSubStructTwinNormal + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtSubStructTwinNormalImpl.frbInternalDcoDecode(raw as List); + } + + @protected + LtSubStructTwinSync + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtSubStructTwinSyncImpl.frbInternalDcoDecode(raw as List); + } + @protected NonCloneSimpleTwinNormal dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinNormal( @@ -40998,6 +42509,39 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { raw as List); } + @protected + LtOwnedStructTwinNormal + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtOwnedStructTwinNormalImpl.frbInternalDcoDecode( + raw as List); + } + + @protected + LtOwnedStructTwinSync + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtOwnedStructTwinSyncImpl.frbInternalDcoDecode(raw as List); + } + + @protected + LtSubStructTwinNormal + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtSubStructTwinNormalImpl.frbInternalDcoDecode(raw as List); + } + + @protected + LtSubStructTwinSync + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtSubStructTwinSyncImpl.frbInternalDcoDecode(raw as List); + } + @protected MyAudioParamTwinNormal dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -41078,6 +42622,14 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { raw as List); } + @protected + SimpleLogger + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return SimpleLoggerImpl.frbInternalDcoDecode(raw as List); + } + @protected SimpleOpaqueExternalStructWithMethod dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -41380,6 +42932,114 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return BigInt.parse(raw); } + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + throw UnimplementedError( + 'Not implemented in this codec, please use the other one'); + } + + @protected + LtNestedTypeWithLifetimeTwinSync + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + throw UnimplementedError( + 'Not implemented in this codec, please use the other one'); + } + + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + throw UnimplementedError( + 'Not implemented in this codec, please use the other one'); + } + + @protected + LtTypeWithLifetimeTwinSync + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + throw UnimplementedError( + 'Not implemented in this codec, please use the other one'); + } + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + throw UnimplementedError( + 'Not implemented in this codec, please use the other one'); + } + + @protected + LtTypeWithMultiDepTwinSync + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + throw UnimplementedError( + 'Not implemented in this codec, please use the other one'); + } + + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + throw UnimplementedError( + 'Not implemented in this codec, please use the other one'); + } + + @protected + LtNestedTypeWithLifetimeTwinSync + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + throw UnimplementedError( + 'Not implemented in this codec, please use the other one'); + } + + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + throw UnimplementedError( + 'Not implemented in this codec, please use the other one'); + } + + @protected + LtTypeWithLifetimeTwinSync + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + throw UnimplementedError( + 'Not implemented in this codec, please use the other one'); + } + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + throw UnimplementedError( + 'Not implemented in this codec, please use the other one'); + } + + @protected + LtTypeWithMultiDepTwinSync + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + throw UnimplementedError( + 'Not implemented in this codec, please use the other one'); + } + @protected Map dco_decode_Map_String_String(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs @@ -42006,6 +43666,93 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { raw as List); } + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtNestedTypeWithLifetimeTwinNormalImpl.frbInternalDcoDecode( + raw as List); + } + + @protected + LtNestedTypeWithLifetimeTwinSync + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtNestedTypeWithLifetimeTwinSyncImpl.frbInternalDcoDecode( + raw as List); + } + + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtTypeWithLifetimeTwinNormalImpl.frbInternalDcoDecode( + raw as List); + } + + @protected + LtTypeWithLifetimeTwinSync + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtTypeWithLifetimeTwinSyncImpl.frbInternalDcoDecode( + raw as List); + } + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtTypeWithMultiDepTwinNormalImpl.frbInternalDcoDecode( + raw as List); + } + + @protected + LtTypeWithMultiDepTwinSync + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtTypeWithMultiDepTwinSyncImpl.frbInternalDcoDecode( + raw as List); + } + + @protected + LtOwnedStructTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtOwnedStructTwinNormalImpl.frbInternalDcoDecode( + raw as List); + } + + @protected + LtOwnedStructTwinSync + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtOwnedStructTwinSyncImpl.frbInternalDcoDecode(raw as List); + } + + @protected + LtSubStructTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtSubStructTwinNormalImpl.frbInternalDcoDecode(raw as List); + } + + @protected + LtSubStructTwinSync + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return LtSubStructTwinSyncImpl.frbInternalDcoDecode(raw as List); + } + @protected MyAudioParamTwinNormal dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -42144,6 +43891,14 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return OpaqueTwoTwinSyncImpl.frbInternalDcoDecode(raw as List); } + @protected + SimpleLogger + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return SimpleLoggerImpl.frbInternalDcoDecode(raw as List); + } + @protected SimpleOpaqueExternalStructWithMethod dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -50689,6 +52444,72 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return AnyhowException(inner); } + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + deserializer); + return inner; + } + + @protected + LtNestedTypeWithLifetimeTwinSync + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + deserializer); + return inner; + } + + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + deserializer); + return inner; + } + + @protected + LtTypeWithLifetimeTwinSync + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + deserializer); + return inner; + } + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + deserializer); + return inner; + } + + @protected + LtTypeWithMultiDepTwinSync + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + deserializer); + return inner; + } + @protected MyNodeTwinNormal sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyNodeTwinNormal( @@ -50903,6 +52724,42 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } + @protected + LtOwnedStructTwinNormal + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtOwnedStructTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + LtOwnedStructTwinSync + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtOwnedStructTwinSyncImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + LtSubStructTwinNormal + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtSubStructTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + LtSubStructTwinSync + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtSubStructTwinSyncImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected MyAudioParamTwinNormal sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -51047,6 +52904,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } + @protected + SimpleLogger + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return SimpleLoggerImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected SimpleOpaqueExternalStructWithMethod sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -51266,6 +53132,24 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } + @protected + LtSubStructTwinNormal + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtSubStructTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + LtSubStructTwinSync + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtSubStructTwinSyncImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected NonCloneSimpleTwinNormal sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinNormal( @@ -51449,6 +53333,42 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } + @protected + LtOwnedStructTwinNormal + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtOwnedStructTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + LtOwnedStructTwinSync + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtOwnedStructTwinSyncImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + LtSubStructTwinNormal + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtSubStructTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + LtSubStructTwinSync + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtSubStructTwinSyncImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected MyAudioParamTwinNormal sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -51530,6 +53450,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } + @protected + SimpleLogger + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return SimpleLoggerImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected SimpleOpaqueExternalStructWithMethod sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -51765,6 +53694,138 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return BigInt.parse(inner); } + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + deserializer); + return inner; + } + + @protected + LtNestedTypeWithLifetimeTwinSync + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + deserializer); + return inner; + } + + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + deserializer); + return inner; + } + + @protected + LtTypeWithLifetimeTwinSync + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + deserializer); + return inner; + } + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + deserializer); + return inner; + } + + @protected + LtTypeWithMultiDepTwinSync + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + deserializer); + return inner; + } + + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + deserializer); + return inner; + } + + @protected + LtNestedTypeWithLifetimeTwinSync + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + deserializer); + return inner; + } + + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + deserializer); + return inner; + } + + @protected + LtTypeWithLifetimeTwinSync + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + deserializer); + return inner; + } + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + deserializer); + return inner; + } + + @protected + LtTypeWithMultiDepTwinSync + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + deserializer); + return inner; + } + @protected Map sse_decode_Map_String_String( SseDeserializer deserializer) { @@ -52423,6 +54484,96 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtNestedTypeWithLifetimeTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + LtNestedTypeWithLifetimeTwinSync + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtNestedTypeWithLifetimeTwinSyncImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtTypeWithLifetimeTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + LtTypeWithLifetimeTwinSync + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtTypeWithLifetimeTwinSyncImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtTypeWithMultiDepTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + LtTypeWithMultiDepTwinSync + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtTypeWithMultiDepTwinSyncImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + LtOwnedStructTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtOwnedStructTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + LtOwnedStructTwinSync + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtOwnedStructTwinSyncImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + LtSubStructTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtSubStructTwinNormalImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + LtSubStructTwinSync + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return LtSubStructTwinSyncImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected MyAudioParamTwinNormal sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -52567,6 +54718,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } + @protected + SimpleLogger + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return SimpleLoggerImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected SimpleOpaqueExternalStructWithMethod sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -61657,6 +63817,60 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_String(self.message, serializer); } + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + self, serializer); + } + + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + LtNestedTypeWithLifetimeTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + self, serializer); + } + + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + self, serializer); + } + + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + LtTypeWithLifetimeTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + self, serializer); + } + + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + self, serializer); + } + + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + LtTypeWithMultiDepTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + self, serializer); + } + @protected void sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyNodeTwinNormal( @@ -61881,6 +64095,46 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtOwnedStructTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtOwnedStructTwinNormalImpl).frbInternalSseEncode(move: true), + serializer); + } + + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + LtOwnedStructTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtOwnedStructTwinSyncImpl).frbInternalSseEncode(move: true), + serializer); + } + + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtSubStructTwinNormalImpl).frbInternalSseEncode(move: true), + serializer); + } + + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + LtSubStructTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtSubStructTwinSyncImpl).frbInternalSseEncode(move: true), + serializer); + } + @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -62046,6 +64300,16 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as SimpleLoggerImpl).frbInternalSseEncode(move: true), + serializer); + } + @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -62310,6 +64574,26 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } + @protected + void + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtSubStructTwinNormalImpl).frbInternalSseEncode(move: false), + serializer); + } + + @protected + void + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + LtSubStructTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtSubStructTwinSyncImpl).frbInternalSseEncode(move: false), + serializer); + } + @protected void sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinNormal( @@ -62530,6 +64814,46 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtOwnedStructTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtOwnedStructTwinNormalImpl).frbInternalSseEncode(move: false), + serializer); + } + + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + LtOwnedStructTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtOwnedStructTwinSyncImpl).frbInternalSseEncode(move: false), + serializer); + } + + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtSubStructTwinNormalImpl).frbInternalSseEncode(move: false), + serializer); + } + + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + LtSubStructTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtSubStructTwinSyncImpl).frbInternalSseEncode(move: false), + serializer); + } + @protected void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -62626,6 +64950,16 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as SimpleLoggerImpl).frbInternalSseEncode(move: false), + serializer); + } + @protected void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -63000,6 +65334,114 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_String(self.toString(), serializer); } + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + self, serializer); + } + + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + LtNestedTypeWithLifetimeTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + self, serializer); + } + + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + self, serializer); + } + + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + LtTypeWithLifetimeTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + self, serializer); + } + + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + self, serializer); + } + + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + LtTypeWithMultiDepTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + self, serializer); + } + + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + self, serializer); + } + + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + LtNestedTypeWithLifetimeTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + self, serializer); + } + + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + self, serializer); + } + + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + LtTypeWithLifetimeTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + self, serializer); + } + + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + self, serializer); + } + + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + LtTypeWithMultiDepTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + self, serializer); + } + @protected void sse_encode_Map_String_String( Map self, SseSerializer serializer) { @@ -63698,6 +66140,112 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtNestedTypeWithLifetimeTwinNormalImpl) + .frbInternalSseEncode(move: null), + serializer); + } + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + LtNestedTypeWithLifetimeTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtNestedTypeWithLifetimeTwinSyncImpl) + .frbInternalSseEncode(move: null), + serializer); + } + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtTypeWithLifetimeTwinNormalImpl) + .frbInternalSseEncode(move: null), + serializer); + } + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + LtTypeWithLifetimeTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtTypeWithLifetimeTwinSyncImpl) + .frbInternalSseEncode(move: null), + serializer); + } + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtTypeWithMultiDepTwinNormalImpl) + .frbInternalSseEncode(move: null), + serializer); + } + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + LtTypeWithMultiDepTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtTypeWithMultiDepTwinSyncImpl) + .frbInternalSseEncode(move: null), + serializer); + } + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtOwnedStructTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtOwnedStructTwinNormalImpl).frbInternalSseEncode(move: null), + serializer); + } + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + LtOwnedStructTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtOwnedStructTwinSyncImpl).frbInternalSseEncode(move: null), + serializer); + } + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtSubStructTwinNormalImpl).frbInternalSseEncode(move: null), + serializer); + } + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + LtSubStructTwinSync self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as LtSubStructTwinSyncImpl).frbInternalSseEncode(move: null), + serializer); + } + @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -63863,6 +66411,16 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer); } + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as SimpleLoggerImpl).frbInternalSseEncode(move: null), + serializer); + } + @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -72746,6 +75304,360 @@ class ItemContainerSolutionOneTwinNormalImpl extends RustOpaque ); } +@sealed +class LtNestedTypeWithLifetimeTwinNormalImpl extends RustOpaque + implements LtNestedTypeWithLifetimeTwinNormal { + // Not to be used by end users + LtNestedTypeWithLifetimeTwinNormalImpl.frbInternalDcoDecode( + List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + LtNestedTypeWithLifetimeTwinNormalImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: RustLib.instance.api + .rust_arc_increment_strong_count_LtNestedTypeWithLifetimeTwinNormal, + rustArcDecrementStrongCount: RustLib.instance.api + .rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormal, + rustArcDecrementStrongCountPtr: RustLib.instance.api + .rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormalPtr, + ); + + Future greetBorrowMutSelfTwinNormal() => RustLib.instance.api + .crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( + that: this, + ); + + Future greetBorrowSelfTwinNormal() => RustLib.instance.api + .crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormal( + that: this, + ); +} + +@sealed +class LtNestedTypeWithLifetimeTwinSyncImpl extends RustOpaque + implements LtNestedTypeWithLifetimeTwinSync { + // Not to be used by end users + LtNestedTypeWithLifetimeTwinSyncImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + LtNestedTypeWithLifetimeTwinSyncImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: RustLib.instance.api + .rust_arc_increment_strong_count_LtNestedTypeWithLifetimeTwinSync, + rustArcDecrementStrongCount: RustLib.instance.api + .rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinSync, + rustArcDecrementStrongCountPtr: RustLib.instance.api + .rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinSyncPtr, + ); + + String greetBorrowMutSelfTwinSync() => RustLib.instance.api + .crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstaticGreetBorrowMutSelfTwinSync( + that: this, + ); + + String greetBorrowSelfTwinSync() => RustLib.instance.api + .crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstaticGreetBorrowSelfTwinSync( + that: this, + ); +} + +@sealed +class LtOwnedStructTwinNormalImpl extends RustOpaque + implements LtOwnedStructTwinNormal { + // Not to be used by end users + LtOwnedStructTwinNormalImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + LtOwnedStructTwinNormalImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: RustLib + .instance.api.rust_arc_increment_strong_count_LtOwnedStructTwinNormal, + rustArcDecrementStrongCount: RustLib + .instance.api.rust_arc_decrement_strong_count_LtOwnedStructTwinNormal, + rustArcDecrementStrongCountPtr: RustLib.instance.api + .rust_arc_decrement_strong_count_LtOwnedStructTwinNormalPtr, + ); + + /// `fn f(x: &'a T) -> S<'a>` + Future computeTypeWithLifetimeTwinNormal() => + RustLib.instance.api + .crateApiLifetimeableLtOwnedStructTwinNormalComputeTypeWithLifetimeTwinNormal( + that: this, + ); + + /// The unrelated arg should not affect results + Future< + LtTypeWithLifetimeTwinNormal> computeWithUnrelatedBorrowedArgTwinNormal( + {required LtOwnedStructTwinNormal unrelatedBorrowed, + required LtOwnedStructTwinNormal unrelatedOwned}) => + RustLib.instance.api + .crateApiLifetimeableLtOwnedStructTwinNormalComputeWithUnrelatedBorrowedArgTwinNormal( + that: this, + unrelatedBorrowed: unrelatedBorrowed, + unrelatedOwned: unrelatedOwned); +} + +@sealed +class LtOwnedStructTwinSyncImpl extends RustOpaque + implements LtOwnedStructTwinSync { + // Not to be used by end users + LtOwnedStructTwinSyncImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + LtOwnedStructTwinSyncImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: RustLib + .instance.api.rust_arc_increment_strong_count_LtOwnedStructTwinSync, + rustArcDecrementStrongCount: RustLib + .instance.api.rust_arc_decrement_strong_count_LtOwnedStructTwinSync, + rustArcDecrementStrongCountPtr: RustLib + .instance.api.rust_arc_decrement_strong_count_LtOwnedStructTwinSyncPtr, + ); + + /// `fn f(x: &'a T) -> S<'a>` + Future computeTypeWithLifetimeTwinSync() => + RustLib.instance.api + .crateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncComputeTypeWithLifetimeTwinSync( + that: this, + ); + + /// The unrelated arg should not affect results + Future computeWithUnrelatedBorrowedArgTwinSync( + {required LtOwnedStructTwinSync unrelatedBorrowed, + required LtOwnedStructTwinSync unrelatedOwned}) => + RustLib.instance.api + .crateApiPseudoManualLifetimeableTwinSyncLtOwnedStructTwinSyncComputeWithUnrelatedBorrowedArgTwinSync( + that: this, + unrelatedBorrowed: unrelatedBorrowed, + unrelatedOwned: unrelatedOwned); +} + +@sealed +class LtSubStructTwinNormalImpl extends RustOpaque + implements LtSubStructTwinNormal { + // Not to be used by end users + LtSubStructTwinNormalImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + LtSubStructTwinNormalImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: RustLib + .instance.api.rust_arc_increment_strong_count_LtSubStructTwinNormal, + rustArcDecrementStrongCount: RustLib + .instance.api.rust_arc_decrement_strong_count_LtSubStructTwinNormal, + rustArcDecrementStrongCountPtr: RustLib + .instance.api.rust_arc_decrement_strong_count_LtSubStructTwinNormalPtr, + ); + + Future greetBorrowMutSelfTwinNormal() => RustLib.instance.api + .crateApiLifetimeableLtSubStructTwinNormalGreetBorrowMutSelfTwinNormal( + that: this, + ); + + Future greetBorrowSelfTwinNormal() => RustLib.instance.api + .crateApiLifetimeableLtSubStructTwinNormalGreetBorrowSelfTwinNormal( + that: this, + ); +} + +@sealed +class LtSubStructTwinSyncImpl extends RustOpaque + implements LtSubStructTwinSync { + // Not to be used by end users + LtSubStructTwinSyncImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + LtSubStructTwinSyncImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: RustLib + .instance.api.rust_arc_increment_strong_count_LtSubStructTwinSync, + rustArcDecrementStrongCount: RustLib + .instance.api.rust_arc_decrement_strong_count_LtSubStructTwinSync, + rustArcDecrementStrongCountPtr: RustLib + .instance.api.rust_arc_decrement_strong_count_LtSubStructTwinSyncPtr, + ); + + String greetBorrowMutSelfTwinSync() => RustLib.instance.api + .crateApiPseudoManualLifetimeableTwinSyncLtSubStructTwinSyncGreetBorrowMutSelfTwinSync( + that: this, + ); + + String greetBorrowSelfTwinSync() => RustLib.instance.api + .crateApiPseudoManualLifetimeableTwinSyncLtSubStructTwinSyncGreetBorrowSelfTwinSync( + that: this, + ); +} + +@sealed +class LtTypeWithLifetimeTwinNormalImpl extends RustOpaque + implements LtTypeWithLifetimeTwinNormal { + // Not to be used by end users + LtTypeWithLifetimeTwinNormalImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + LtTypeWithLifetimeTwinNormalImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: RustLib.instance.api + .rust_arc_increment_strong_count_LtTypeWithLifetimeTwinNormal, + rustArcDecrementStrongCount: RustLib.instance.api + .rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormal, + rustArcDecrementStrongCountPtr: RustLib.instance.api + .rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormalPtr, + ); + + /// Input lifetimeable and output another lifetimeable + Future + computeNestedTypeWithLifetimeTwinNormal() => RustLib.instance.api + .crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticComputeNestedTypeWithLifetimeTwinNormal( + that: this, + ); + + /// `&mut T` where T is lifetimeable + Future greetBorrowMutSelfTwinNormal() => RustLib.instance.api + .crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowMutSelfTwinNormal( + that: this, + ); + + /// `&T` where T is lifetimeable + Future greetBorrowSelfTwinNormal() => RustLib.instance.api + .crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstaticGreetBorrowSelfTwinNormal( + that: this, + ); +} + +@sealed +class LtTypeWithLifetimeTwinSyncImpl extends RustOpaque + implements LtTypeWithLifetimeTwinSync { + // Not to be used by end users + LtTypeWithLifetimeTwinSyncImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + LtTypeWithLifetimeTwinSyncImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: RustLib.instance.api + .rust_arc_increment_strong_count_LtTypeWithLifetimeTwinSync, + rustArcDecrementStrongCount: RustLib.instance.api + .rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinSync, + rustArcDecrementStrongCountPtr: RustLib.instance.api + .rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinSyncPtr, + ); + + /// Input lifetimeable and output another lifetimeable + Future + computeNestedTypeWithLifetimeTwinSync() => RustLib.instance.api + .crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticComputeNestedTypeWithLifetimeTwinSync( + that: this, + ); + + /// `&mut T` where T is lifetimeable + String greetBorrowMutSelfTwinSync() => RustLib.instance.api + .crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticGreetBorrowMutSelfTwinSync( + that: this, + ); + + /// `&T` where T is lifetimeable + String greetBorrowSelfTwinSync() => RustLib.instance.api + .crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstaticGreetBorrowSelfTwinSync( + that: this, + ); +} + +@sealed +class LtTypeWithMultiDepTwinNormalImpl extends RustOpaque + implements LtTypeWithMultiDepTwinNormal { + // Not to be used by end users + LtTypeWithMultiDepTwinNormalImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + LtTypeWithMultiDepTwinNormalImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: RustLib.instance.api + .rust_arc_increment_strong_count_LtTypeWithMultiDepTwinNormal, + rustArcDecrementStrongCount: RustLib.instance.api + .rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormal, + rustArcDecrementStrongCountPtr: RustLib.instance.api + .rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr, + ); + + Future> greetBorrowMutSelfTwinNormal() => RustLib.instance.api + .crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowMutSelfTwinNormal( + that: this, + ); + + Future> greetBorrowSelfTwinNormal() => RustLib.instance.api + .crateApiLifetimeableLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstaticGreetBorrowSelfTwinNormal( + that: this, + ); +} + +@sealed +class LtTypeWithMultiDepTwinSyncImpl extends RustOpaque + implements LtTypeWithMultiDepTwinSync { + // Not to be used by end users + LtTypeWithMultiDepTwinSyncImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + LtTypeWithMultiDepTwinSyncImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: RustLib.instance.api + .rust_arc_increment_strong_count_LtTypeWithMultiDepTwinSync, + rustArcDecrementStrongCount: RustLib.instance.api + .rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinSync, + rustArcDecrementStrongCountPtr: RustLib.instance.api + .rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinSyncPtr, + ); + + List greetBorrowMutSelfTwinSync() => RustLib.instance.api + .crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstaticGreetBorrowMutSelfTwinSync( + that: this, + ); + + List greetBorrowSelfTwinSync() => RustLib.instance.api + .crateApiPseudoManualLifetimeableTwinSyncLifetimeableAutoOwnedRustOpaqueFlutterRustBridgeforGeneratedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstaticGreetBorrowSelfTwinSync( + that: this, + ); +} + @sealed class MutexHideDataTwinNormalImpl extends RustOpaque implements MutexHideDataTwinNormal { @@ -73390,6 +76302,31 @@ class RwLockHideDataTwinSyncImpl extends RustOpaque ); } +@sealed +class SimpleLoggerImpl extends RustOpaque implements SimpleLogger { + // Not to be used by end users + SimpleLoggerImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + SimpleLoggerImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + RustLib.instance.api.rust_arc_increment_strong_count_SimpleLogger, + rustArcDecrementStrongCount: + RustLib.instance.api.rust_arc_decrement_strong_count_SimpleLogger, + rustArcDecrementStrongCountPtr: + RustLib.instance.api.rust_arc_decrement_strong_count_SimpleLoggerPtr, + ); + + List getAndReset() => + RustLib.instance.api.crateApiMiscNoTwinExampleASimpleLoggerGetAndReset( + that: this, + ); +} + @sealed class SimpleOpaqueExternalStructWithMethodImpl extends RustOpaque implements SimpleOpaqueExternalStructWithMethod { diff --git a/frb_example/pure_dart_pde/lib/src/rust/frb_generated.io.dart b/frb_example/pure_dart_pde/lib/src/rust/frb_generated.io.dart index 714f815d73..e868b972ea 100644 --- a/frb_example/pure_dart_pde/lib/src/rust/frb_generated.io.dart +++ b/frb_example/pure_dart_pde/lib/src/rust/frb_generated.io.dart @@ -29,6 +29,7 @@ import 'api/external_impl.dart'; import 'api/external_type_in_crate.dart'; import 'api/impl_trait.dart'; import 'api/inside_macro.dart'; +import 'api/lifetimeable.dart'; import 'api/map_and_set.dart'; import 'api/method.dart'; import 'api/mirror.dart'; @@ -79,6 +80,7 @@ import 'api/pseudo_manual/exception_twin_sync.dart'; import 'api/pseudo_manual/external_type_in_crate_twin_rust_async.dart'; import 'api/pseudo_manual/external_type_in_crate_twin_sync.dart'; import 'api/pseudo_manual/impl_trait_twin_sync.dart'; +import 'api/pseudo_manual/lifetimeable_twin_sync.dart'; import 'api/pseudo_manual/map_and_set_twin_rust_async.dart'; import 'api/pseudo_manual/map_and_set_twin_sync.dart'; import 'api/pseudo_manual/method_twin_rust_async.dart'; @@ -289,6 +291,46 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { get rust_arc_decrement_strong_count_ItemContainerSolutionOneTwinNormalPtr => wire._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormalPtr; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormalPtr => + wire._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstaticPtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinSyncPtr => + wire._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstaticPtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormalPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstaticPtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinSyncPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstaticPtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstaticPtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinSyncPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstaticPtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtOwnedStructTwinNormalPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormalPtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtOwnedStructTwinSyncPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSyncPtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtSubStructTwinNormalPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormalPtr; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtSubStructTwinSyncPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSyncPtr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_MyAudioParamTwinNormalPtr => wire ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormalPtr; @@ -353,6 +395,10 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { get rust_arc_decrement_strong_count_OpaqueTwoTwinSyncPtr => wire ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSyncPtr; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_SimpleLoggerPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLoggerPtr; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_SimpleOpaqueExternalStructWithMethodPtr => wire._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethodPtr; @@ -427,6 +473,36 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected AnyhowException dco_decode_AnyhowException(dynamic raw); + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtNestedTypeWithLifetimeTwinSync + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + dynamic raw); + + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithLifetimeTwinSync + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinSync + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + dynamic raw); + @protected MyNodeTwinNormal dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyNodeTwinNormal( @@ -537,6 +613,26 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( dynamic raw); + @protected + LtOwnedStructTwinNormal + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + dynamic raw); + + @protected + LtOwnedStructTwinSync + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + dynamic raw); + + @protected + LtSubStructTwinNormal + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + dynamic raw); + + @protected + LtSubStructTwinSync + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + dynamic raw); + @protected MyAudioParamTwinNormal dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -617,6 +713,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSync( dynamic raw); + @protected + SimpleLogger + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + dynamic raw); + @protected SimpleOpaqueExternalStructWithMethod dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -737,6 +838,16 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( dynamic raw); + @protected + LtSubStructTwinNormal + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + dynamic raw); + + @protected + LtSubStructTwinSync + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + dynamic raw); + @protected NonCloneSimpleTwinNormal dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinNormal( @@ -837,6 +948,26 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( dynamic raw); + @protected + LtOwnedStructTwinNormal + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + dynamic raw); + + @protected + LtOwnedStructTwinSync + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + dynamic raw); + + @protected + LtSubStructTwinNormal + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + dynamic raw); + + @protected + LtSubStructTwinSync + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + dynamic raw); + @protected MyAudioParamTwinNormal dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -882,6 +1013,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueStructWithDartCodeTwinNormal( dynamic raw); + @protected + SimpleLogger + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + dynamic raw); + @protected SimpleOpaqueExternalStructWithMethod dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -1047,6 +1183,66 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected BigInt dco_decode_I128(dynamic raw); + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtNestedTypeWithLifetimeTwinSync + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + dynamic raw); + + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithLifetimeTwinSync + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinSync + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + dynamic raw); + + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtNestedTypeWithLifetimeTwinSync + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + dynamic raw); + + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithLifetimeTwinSync + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinSync + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + dynamic raw); + @protected Map dco_decode_Map_String_String(dynamic raw); @@ -1353,6 +1549,56 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( dynamic raw); + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtNestedTypeWithLifetimeTwinSync + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + dynamic raw); + + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithLifetimeTwinSync + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinSync + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + dynamic raw); + + @protected + LtOwnedStructTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + dynamic raw); + + @protected + LtOwnedStructTwinSync + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + dynamic raw); + + @protected + LtSubStructTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + dynamic raw); + + @protected + LtSubStructTwinSync + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + dynamic raw); + @protected MyAudioParamTwinNormal dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -1433,6 +1679,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSync( dynamic raw); + @protected + SimpleLogger + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + dynamic raw); + @protected SimpleOpaqueExternalStructWithMethod dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -4643,6 +4894,36 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected AnyhowException sse_decode_AnyhowException(SseDeserializer deserializer); + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtNestedTypeWithLifetimeTwinSync + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithLifetimeTwinSync + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinSync + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + SseDeserializer deserializer); + @protected MyNodeTwinNormal sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyNodeTwinNormal( @@ -4753,6 +5034,26 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( SseDeserializer deserializer); + @protected + LtOwnedStructTwinNormal + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + SseDeserializer deserializer); + + @protected + LtOwnedStructTwinSync + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + SseDeserializer deserializer); + + @protected + LtSubStructTwinNormal + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + SseDeserializer deserializer); + + @protected + LtSubStructTwinSync + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + SseDeserializer deserializer); + @protected MyAudioParamTwinNormal sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -4833,6 +5134,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSync( SseDeserializer deserializer); + @protected + SimpleLogger + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SseDeserializer deserializer); + @protected SimpleOpaqueExternalStructWithMethod sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -4953,6 +5259,16 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( SseDeserializer deserializer); + @protected + LtSubStructTwinNormal + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + SseDeserializer deserializer); + + @protected + LtSubStructTwinSync + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + SseDeserializer deserializer); + @protected NonCloneSimpleTwinNormal sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinNormal( @@ -5053,6 +5369,26 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( SseDeserializer deserializer); + @protected + LtOwnedStructTwinNormal + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + SseDeserializer deserializer); + + @protected + LtOwnedStructTwinSync + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + SseDeserializer deserializer); + + @protected + LtSubStructTwinNormal + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + SseDeserializer deserializer); + + @protected + LtSubStructTwinSync + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + SseDeserializer deserializer); + @protected MyAudioParamTwinNormal sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -5098,6 +5434,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueStructWithDartCodeTwinNormal( SseDeserializer deserializer); + @protected + SimpleLogger + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SseDeserializer deserializer); + @protected SimpleOpaqueExternalStructWithMethod sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -5215,6 +5556,66 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected BigInt sse_decode_I128(SseDeserializer deserializer); + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtNestedTypeWithLifetimeTwinSync + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithLifetimeTwinSync + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinSync + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + SseDeserializer deserializer); + + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtNestedTypeWithLifetimeTwinSync + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithLifetimeTwinSync + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinSync + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + SseDeserializer deserializer); + @protected Map sse_decode_Map_String_String( SseDeserializer deserializer); @@ -5545,6 +5946,56 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( SseDeserializer deserializer); + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtNestedTypeWithLifetimeTwinSync + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithLifetimeTwinSync + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinSync + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + SseDeserializer deserializer); + + @protected + LtOwnedStructTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + SseDeserializer deserializer); + + @protected + LtOwnedStructTwinSync + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + SseDeserializer deserializer); + + @protected + LtSubStructTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + SseDeserializer deserializer); + + @protected + LtSubStructTwinSync + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + SseDeserializer deserializer); + @protected MyAudioParamTwinNormal sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -5625,6 +6076,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSync( SseDeserializer deserializer); + @protected + SimpleLogger + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SseDeserializer deserializer); + @protected SimpleOpaqueExternalStructWithMethod sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -9252,6 +9708,36 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { void sse_encode_AnyhowException( AnyhowException self, SseSerializer serializer); + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + LtNestedTypeWithLifetimeTwinSync self, SseSerializer serializer); + + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + LtTypeWithLifetimeTwinSync self, SseSerializer serializer); + + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + LtTypeWithMultiDepTwinSync self, SseSerializer serializer); + @protected void sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyNodeTwinNormal( @@ -9365,6 +9851,26 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( ItemContainerSolutionOneTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtOwnedStructTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + LtOwnedStructTwinSync self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + LtSubStructTwinSync self, SseSerializer serializer); + @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -9445,6 +9951,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSync( OpaqueTwoTwinSync self, SseSerializer serializer); + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger self, SseSerializer serializer); + @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -9568,6 +10079,16 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( ItemContainerSolutionOneTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + LtSubStructTwinSync self, SseSerializer serializer); + @protected void sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinNormal( @@ -9671,6 +10192,26 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( ItemContainerSolutionOneTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtOwnedStructTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + LtOwnedStructTwinSync self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + LtSubStructTwinSync self, SseSerializer serializer); + @protected void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -9716,6 +10257,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueStructWithDartCodeTwinNormal( OpaqueStructWithDartCodeTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger self, SseSerializer serializer); + @protected void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -9891,7 +10437,67 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { SimpleTraitForDynTwinNormal self, SseSerializer serializer); @protected - void sse_encode_I128(BigInt self, SseSerializer serializer); + void sse_encode_I128(BigInt self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + LtNestedTypeWithLifetimeTwinSync self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + LtTypeWithLifetimeTwinSync self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + LtTypeWithMultiDepTwinSync self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + LtNestedTypeWithLifetimeTwinSync self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + LtTypeWithLifetimeTwinSync self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + LtTypeWithMultiDepTwinSync self, SseSerializer serializer); @protected void sse_encode_Map_String_String( @@ -10219,6 +10825,56 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( ItemContainerSolutionOneTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + LtNestedTypeWithLifetimeTwinSync self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + LtTypeWithLifetimeTwinSync self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + LtTypeWithMultiDepTwinSync self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtOwnedStructTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + LtOwnedStructTwinSync self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + LtSubStructTwinSync self, SseSerializer serializer); + @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -10299,6 +10955,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSync( OpaqueTwoTwinSync self, SseSerializer serializer); + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger self, SseSerializer serializer); + @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -14895,6 +15556,326 @@ class RustLibWire implements BaseWire { _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormalPtr .asFunction)>(); + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstaticPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_pde_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstaticPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstaticPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_pde_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstaticPtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstaticPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_pde_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstaticPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstaticPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_pde_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstaticPtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstaticPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_pde_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstaticPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstaticPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_pde_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstaticPtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstaticPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_pde_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstaticPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstaticPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_pde_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstaticPtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstaticPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_pde_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstaticPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstaticPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_pde_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstaticPtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstaticPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_pde_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstaticPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstaticPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_pde_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstaticPtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormalPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_pde_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormalPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormalPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_pde_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormalPtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSyncPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_pde_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSyncPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSyncPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_pde_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSyncPtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormalPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_pde_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormalPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormalPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_pde_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormalPtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSyncPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_pde_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSyncPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSyncPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_pde_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSyncPtr + .asFunction)>(); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( ffi.Pointer ptr, @@ -15407,6 +16388,38 @@ class RustLibWire implements BaseWire { _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSyncPtr .asFunction)>(); + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLoggerPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_pde_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLoggerPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLoggerPtr = + _lookup)>>( + 'frbgen_frb_example_pure_dart_pde_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLoggerPtr + .asFunction)>(); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( ffi.Pointer ptr, diff --git a/frb_example/pure_dart_pde/lib/src/rust/frb_generated.web.dart b/frb_example/pure_dart_pde/lib/src/rust/frb_generated.web.dart index 07f60dd7b7..905ffb755b 100644 --- a/frb_example/pure_dart_pde/lib/src/rust/frb_generated.web.dart +++ b/frb_example/pure_dart_pde/lib/src/rust/frb_generated.web.dart @@ -32,6 +32,7 @@ import 'api/external_impl.dart'; import 'api/external_type_in_crate.dart'; import 'api/impl_trait.dart'; import 'api/inside_macro.dart'; +import 'api/lifetimeable.dart'; import 'api/map_and_set.dart'; import 'api/method.dart'; import 'api/mirror.dart'; @@ -82,6 +83,7 @@ import 'api/pseudo_manual/exception_twin_sync.dart'; import 'api/pseudo_manual/external_type_in_crate_twin_rust_async.dart'; import 'api/pseudo_manual/external_type_in_crate_twin_sync.dart'; import 'api/pseudo_manual/impl_trait_twin_sync.dart'; +import 'api/pseudo_manual/lifetimeable_twin_sync.dart'; import 'api/pseudo_manual/map_and_set_twin_rust_async.dart'; import 'api/pseudo_manual/map_and_set_twin_sync.dart'; import 'api/pseudo_manual/method_twin_rust_async.dart'; @@ -291,6 +293,46 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { get rust_arc_decrement_strong_count_ItemContainerSolutionOneTwinNormalPtr => wire.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinNormalPtr => + wire.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtNestedTypeWithLifetimeTwinSyncPtr => + wire.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinNormalPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithLifetimeTwinSyncPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinNormalPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtTypeWithMultiDepTwinSyncPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtOwnedStructTwinNormalPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtOwnedStructTwinSyncPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtSubStructTwinNormalPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LtSubStructTwinSyncPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_MyAudioParamTwinNormalPtr => wire .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal; @@ -355,6 +397,10 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { get rust_arc_decrement_strong_count_OpaqueTwoTwinSyncPtr => wire .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSync; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_SimpleLoggerPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger; + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_SimpleOpaqueExternalStructWithMethodPtr => wire.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod; @@ -429,6 +475,36 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected AnyhowException dco_decode_AnyhowException(dynamic raw); + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtNestedTypeWithLifetimeTwinSync + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + dynamic raw); + + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithLifetimeTwinSync + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinSync + dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + dynamic raw); + @protected MyNodeTwinNormal dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyNodeTwinNormal( @@ -539,6 +615,26 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( dynamic raw); + @protected + LtOwnedStructTwinNormal + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + dynamic raw); + + @protected + LtOwnedStructTwinSync + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + dynamic raw); + + @protected + LtSubStructTwinNormal + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + dynamic raw); + + @protected + LtSubStructTwinSync + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + dynamic raw); + @protected MyAudioParamTwinNormal dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -619,6 +715,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSync( dynamic raw); + @protected + SimpleLogger + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + dynamic raw); + @protected SimpleOpaqueExternalStructWithMethod dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -739,6 +840,16 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( dynamic raw); + @protected + LtSubStructTwinNormal + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + dynamic raw); + + @protected + LtSubStructTwinSync + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + dynamic raw); + @protected NonCloneSimpleTwinNormal dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinNormal( @@ -839,6 +950,26 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( dynamic raw); + @protected + LtOwnedStructTwinNormal + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + dynamic raw); + + @protected + LtOwnedStructTwinSync + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + dynamic raw); + + @protected + LtSubStructTwinNormal + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + dynamic raw); + + @protected + LtSubStructTwinSync + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + dynamic raw); + @protected MyAudioParamTwinNormal dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -884,6 +1015,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueStructWithDartCodeTwinNormal( dynamic raw); + @protected + SimpleLogger + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + dynamic raw); + @protected SimpleOpaqueExternalStructWithMethod dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -1049,6 +1185,66 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected BigInt dco_decode_I128(dynamic raw); + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtNestedTypeWithLifetimeTwinSync + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + dynamic raw); + + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithLifetimeTwinSync + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinSync + dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + dynamic raw); + + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtNestedTypeWithLifetimeTwinSync + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + dynamic raw); + + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithLifetimeTwinSync + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinSync + dco_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + dynamic raw); + @protected Map dco_decode_Map_String_String(dynamic raw); @@ -1355,6 +1551,56 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( dynamic raw); + @protected + LtNestedTypeWithLifetimeTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtNestedTypeWithLifetimeTwinSync + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + dynamic raw); + + @protected + LtTypeWithLifetimeTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithLifetimeTwinSync + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + dynamic raw); + + @protected + LtTypeWithMultiDepTwinSync + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + dynamic raw); + + @protected + LtOwnedStructTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + dynamic raw); + + @protected + LtOwnedStructTwinSync + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + dynamic raw); + + @protected + LtSubStructTwinNormal + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + dynamic raw); + + @protected + LtSubStructTwinSync + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + dynamic raw); + @protected MyAudioParamTwinNormal dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -1435,6 +1681,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSync( dynamic raw); + @protected + SimpleLogger + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + dynamic raw); + @protected SimpleOpaqueExternalStructWithMethod dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -4645,6 +4896,36 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected AnyhowException sse_decode_AnyhowException(SseDeserializer deserializer); + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtNestedTypeWithLifetimeTwinSync + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithLifetimeTwinSync + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinSync + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + SseDeserializer deserializer); + @protected MyNodeTwinNormal sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyNodeTwinNormal( @@ -4755,6 +5036,26 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( SseDeserializer deserializer); + @protected + LtOwnedStructTwinNormal + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + SseDeserializer deserializer); + + @protected + LtOwnedStructTwinSync + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + SseDeserializer deserializer); + + @protected + LtSubStructTwinNormal + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + SseDeserializer deserializer); + + @protected + LtSubStructTwinSync + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + SseDeserializer deserializer); + @protected MyAudioParamTwinNormal sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -4835,6 +5136,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSync( SseDeserializer deserializer); + @protected + SimpleLogger + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SseDeserializer deserializer); + @protected SimpleOpaqueExternalStructWithMethod sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -4955,6 +5261,16 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( SseDeserializer deserializer); + @protected + LtSubStructTwinNormal + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + SseDeserializer deserializer); + + @protected + LtSubStructTwinSync + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + SseDeserializer deserializer); + @protected NonCloneSimpleTwinNormal sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinNormal( @@ -5055,6 +5371,26 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( SseDeserializer deserializer); + @protected + LtOwnedStructTwinNormal + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + SseDeserializer deserializer); + + @protected + LtOwnedStructTwinSync + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + SseDeserializer deserializer); + + @protected + LtSubStructTwinNormal + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + SseDeserializer deserializer); + + @protected + LtSubStructTwinSync + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + SseDeserializer deserializer); + @protected MyAudioParamTwinNormal sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -5100,6 +5436,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueStructWithDartCodeTwinNormal( SseDeserializer deserializer); + @protected + SimpleLogger + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SseDeserializer deserializer); + @protected SimpleOpaqueExternalStructWithMethod sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -5217,6 +5558,66 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected BigInt sse_decode_I128(SseDeserializer deserializer); + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtNestedTypeWithLifetimeTwinSync + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithLifetimeTwinSync + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinSync + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + SseDeserializer deserializer); + + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtNestedTypeWithLifetimeTwinSync + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithLifetimeTwinSync + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinSync + sse_decode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + SseDeserializer deserializer); + @protected Map sse_decode_Map_String_String( SseDeserializer deserializer); @@ -5547,6 +5948,56 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( SseDeserializer deserializer); + @protected + LtNestedTypeWithLifetimeTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtNestedTypeWithLifetimeTwinSync + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithLifetimeTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithLifetimeTwinSync + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + SseDeserializer deserializer); + + @protected + LtTypeWithMultiDepTwinSync + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + SseDeserializer deserializer); + + @protected + LtOwnedStructTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + SseDeserializer deserializer); + + @protected + LtOwnedStructTwinSync + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + SseDeserializer deserializer); + + @protected + LtSubStructTwinNormal + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + SseDeserializer deserializer); + + @protected + LtSubStructTwinSync + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + SseDeserializer deserializer); + @protected MyAudioParamTwinNormal sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -5627,6 +6078,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSync( SseDeserializer deserializer); + @protected + SimpleLogger + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SseDeserializer deserializer); + @protected SimpleOpaqueExternalStructWithMethod sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -9254,6 +9710,36 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { void sse_encode_AnyhowException( AnyhowException self, SseSerializer serializer); + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + LtNestedTypeWithLifetimeTwinSync self, SseSerializer serializer); + + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + LtTypeWithLifetimeTwinSync self, SseSerializer serializer); + + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + LtTypeWithMultiDepTwinSync self, SseSerializer serializer); + @protected void sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyNodeTwinNormal( @@ -9352,20 +9838,40 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEnumWithGoodAndOpaqueWithoutOptionTwinRustAsync( - EnumWithGoodAndOpaqueWithoutOptionTwinRustAsync self, - SseSerializer serializer); + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEnumWithGoodAndOpaqueWithoutOptionTwinRustAsync( + EnumWithGoodAndOpaqueWithoutOptionTwinRustAsync self, + SseSerializer serializer); + + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEnumWithGoodAndOpaqueWithoutOptionTwinSync( + EnumWithGoodAndOpaqueWithoutOptionTwinSync self, + SseSerializer serializer); + + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( + ItemContainerSolutionOneTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtOwnedStructTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + LtOwnedStructTwinSync self, SseSerializer serializer); @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerEnumWithGoodAndOpaqueWithoutOptionTwinSync( - EnumWithGoodAndOpaqueWithoutOptionTwinSync self, - SseSerializer serializer); + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer); @protected void - sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( - ItemContainerSolutionOneTwinNormal self, SseSerializer serializer); + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + LtSubStructTwinSync self, SseSerializer serializer); @protected void @@ -9447,6 +9953,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSync( OpaqueTwoTwinSync self, SseSerializer serializer); + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger self, SseSerializer serializer); + @protected void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -9570,6 +10081,16 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( ItemContainerSolutionOneTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + LtSubStructTwinSync self, SseSerializer serializer); + @protected void sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerNonCloneSimpleTwinNormal( @@ -9673,6 +10194,26 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( ItemContainerSolutionOneTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtOwnedStructTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + LtOwnedStructTwinSync self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + LtSubStructTwinSync self, SseSerializer serializer); + @protected void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -9718,6 +10259,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueStructWithDartCodeTwinNormal( OpaqueStructWithDartCodeTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger self, SseSerializer serializer); + @protected void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -9895,6 +10441,66 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected void sse_encode_I128(BigInt self, SseSerializer serializer); + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + LtNestedTypeWithLifetimeTwinSync self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + LtTypeWithLifetimeTwinSync self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + LtTypeWithMultiDepTwinSync self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic( + LtNestedTypeWithLifetimeTwinSync self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic( + LtTypeWithLifetimeTwinSync self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic( + LtTypeWithMultiDepTwinSync self, SseSerializer serializer); + @protected void sse_encode_Map_String_String( Map self, SseSerializer serializer); @@ -10221,6 +10827,56 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( ItemContainerSolutionOneTwinNormal self, SseSerializer serializer); + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + LtNestedTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + LtNestedTypeWithLifetimeTwinSync self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + LtTypeWithLifetimeTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + LtTypeWithLifetimeTwinSync self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + LtTypeWithMultiDepTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + LtTypeWithMultiDepTwinSync self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + LtOwnedStructTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + LtOwnedStructTwinSync self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + LtSubStructTwinNormal self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + LtSubStructTwinSync self, SseSerializer serializer); + @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( @@ -10301,6 +10957,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSync( OpaqueTwoTwinSync self, SseSerializer serializer); + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + SimpleLogger self, SseSerializer serializer); + @protected void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( @@ -14218,6 +14879,126 @@ class RustLibWire implements BaseWire { .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( ptr); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + ptr); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( int ptr) => wasmModule @@ -14410,6 +15191,18 @@ class RustLibWire implements BaseWire { .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSync( ptr); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + ptr); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( int ptr) => wasmModule @@ -14897,6 +15690,86 @@ extension type RustLibWasmModule._(JSObject _) implements JSObject { rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerItemContainerSolutionOneTwinNormal( int ptr); + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + int ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + int ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + int ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + int ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + int ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + int ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + int ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + int ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + int ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + int ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + int ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + int ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + int ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + int ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + int ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + int ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + int ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + int ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + int ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + int ptr); + external void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( int ptr); @@ -15025,6 +15898,14 @@ extension type RustLibWasmModule._(JSObject _) implements JSObject { rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerOpaqueTwoTwinSync( int ptr); + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + int ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + int ptr); + external void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( int ptr); diff --git a/frb_example/pure_dart_pde/rust/src/api/lifetimeable.rs b/frb_example/pure_dart_pde/rust/src/api/lifetimeable.rs new file mode 100644 index 0000000000..44ebbf0248 --- /dev/null +++ b/frb_example/pure_dart_pde/rust/src/api/lifetimeable.rs @@ -0,0 +1,204 @@ +// AUTO-GENERATED FROM frb_example/pure_dart, DO NOT EDIT + +// FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "sse", "sync sse", "rustAsync sse"]} + +#![allow(clippy::needless_lifetimes)] + +use crate::api::misc_no_twin_example_a::SimpleLogger; +use flutter_rust_bridge::frb; + +// --------------------------- struct definitions --------------------------- + +/// Try *NOT* to impl Clone for these types in order to ensure there are no extra clones +#[frb(opaque)] +#[derive(Debug)] +pub struct LtOwnedStructTwinNormal { + sub: LtSubStructTwinNormal, +} + +#[frb(opaque)] +#[derive(Debug)] +pub struct LtSubStructTwinNormal { + value: String, + logger: SimpleLogger, +} + +#[frb(opaque)] +#[derive(Debug)] +pub struct LtTypeWithLifetimeTwinNormal<'a> { + field: &'a LtOwnedStructTwinNormal, +} + +#[frb(opaque)] +#[derive(Debug)] +pub struct LtNestedTypeWithLifetimeTwinNormal<'a> { + field: &'a LtTypeWithLifetimeTwinNormal<'a>, +} + +#[frb(opaque)] +#[derive(Debug)] +pub struct LtTypeWithMultiDepTwinNormal<'a> { + fields: Vec<&'a LtOwnedStructTwinNormal>, +} + +// --------------------------- drops --------------------------- + +impl Drop for LtOwnedStructTwinNormal { + fn drop(&mut self) { + self.sub.logger.log("LtOwnedStructTwinNormal.drop"); + } +} + +impl Drop for LtSubStructTwinNormal { + fn drop(&mut self) { + self.logger.log("LtOwnedSubStructTwinNormal.drop"); + } +} + +impl Drop for LtTypeWithLifetimeTwinNormal<'_> { + fn drop(&mut self) { + (self.field.sub.logger).log("LtTypeWithLifetimeTwinNormal.drop"); + } +} + +impl Drop for LtNestedTypeWithLifetimeTwinNormal<'_> { + fn drop(&mut self) { + (self.field.field.sub.logger).log("LtNestedTypeWithLifetimeTwinNormal.drop"); + } +} + +// --------------------------- methods --------------------------- + +impl LtOwnedStructTwinNormal { + #[frb(serialize)] + pub fn create(value: String) -> Self { + Self { + sub: LtSubStructTwinNormal { + value, + logger: SimpleLogger::new(), + }, + } + } + + #[frb(serialize)] + pub fn create_with_logger(value: String, logger: &SimpleLogger) -> Self { + Self { + sub: LtSubStructTwinNormal { + value, + logger: logger.clone(), + }, + } + } + + /// `fn f(x: &'a T) -> S<'a>` + #[frb(serialize)] + pub fn compute_type_with_lifetime_twin_normal<'a>( + &'a self, + ) -> LtTypeWithLifetimeTwinNormal<'a> { + LtTypeWithLifetimeTwinNormal { field: self } + } + + // /// `fn f(x: &'a T) -> &'a S` + // pub fn compute_sub_struct_twin_normal<'a>(&'a self) -> &'a LtSubStructTwinNormal { + // &self.sub + // } + + /// The unrelated arg should not affect results + #[frb(serialize)] + pub fn compute_with_unrelated_borrowed_arg_twin_normal<'a>( + &'a self, + unrelated_borrowed: &LtOwnedStructTwinNormal, + unrelated_owned: LtOwnedStructTwinNormal, + ) -> LtTypeWithLifetimeTwinNormal<'a> { + assert_eq!(&unrelated_borrowed.sub.value, "hi"); + assert_eq!(&unrelated_owned.sub.value, "hi"); + LtTypeWithLifetimeTwinNormal { field: self } + } +} + +/// Functions (other tests are mainly methods) +#[frb(serialize)] +pub fn lt_compute_with_lifetime_function_twin_normal<'a>( + arg: &'a LtOwnedStructTwinNormal, +) -> LtTypeWithLifetimeTwinNormal<'a> { + LtTypeWithLifetimeTwinNormal { field: arg } +} + +impl LtSubStructTwinNormal { + #[frb(serialize)] + pub fn greet_borrow_self_twin_normal(&self) -> String { + self.value.clone() + } + + #[frb(serialize)] + pub fn greet_borrow_mut_self_twin_normal(&mut self) -> String { + self.value.clone() + } +} + +impl LtTypeWithLifetimeTwinNormal<'_> { + /// `&T` where T is lifetimeable + #[frb(serialize)] + pub fn greet_borrow_self_twin_normal(&self) -> String { + self.field.sub.value.clone() + } + + /// `&mut T` where T is lifetimeable + #[frb(serialize)] + pub fn greet_borrow_mut_self_twin_normal(&mut self) -> String { + self.field.sub.value.clone() + } + + /// Input lifetimeable and output another lifetimeable + #[frb(serialize)] + pub fn compute_nested_type_with_lifetime_twin_normal<'a>( + &'a self, + ) -> LtNestedTypeWithLifetimeTwinNormal<'a> { + LtNestedTypeWithLifetimeTwinNormal { field: self } + } + + /// Input argument has type `T<'a>` (other tests mainly are `&'a T`) + #[frb(serialize)] + pub fn compute_arg_generic_lifetime_twin_normal<'a>( + arg: &LtTypeWithLifetimeTwinNormal<'a>, + ) -> LtTypeWithLifetimeTwinNormal<'a> { + LtTypeWithLifetimeTwinNormal { field: arg.field } + } +} + +impl LtNestedTypeWithLifetimeTwinNormal<'_> { + #[frb(serialize)] + pub fn greet_borrow_self_twin_normal(&self) -> String { + self.field.field.sub.value.clone() + } + + #[frb(serialize)] + pub fn greet_borrow_mut_self_twin_normal(&mut self) -> String { + self.field.field.sub.value.clone() + } +} + +impl LtTypeWithMultiDepTwinNormal<'_> { + /// Multiple input args have lifetime + #[frb(serialize)] + pub fn compute_with_multi_arg_having_lifetime_twin_normal<'a>( + a: &'a LtOwnedStructTwinNormal, + b: &'a LtOwnedStructTwinNormal, + unrelated_borrowed: &LtOwnedStructTwinNormal, + unrelated_owned: LtOwnedStructTwinNormal, + ) -> LtTypeWithMultiDepTwinNormal<'a> { + assert_eq!(&unrelated_borrowed.sub.value, "hi"); + assert_eq!(&unrelated_owned.sub.value, "hi"); + LtTypeWithMultiDepTwinNormal { fields: vec![a, b] } + } + + #[frb(serialize)] + pub fn greet_borrow_self_twin_normal(&self) -> Vec { + self.fields.iter().map(|x| x.sub.value.clone()).collect() + } + + #[frb(serialize)] + pub fn greet_borrow_mut_self_twin_normal(&mut self) -> Vec { + self.fields.iter().map(|x| x.sub.value.clone()).collect() + } +} diff --git a/frb_example/pure_dart_pde/rust/src/api/misc_no_twin_example_a.rs b/frb_example/pure_dart_pde/rust/src/api/misc_no_twin_example_a.rs index 1d8ebf2ab8..4d3a81e7b2 100644 --- a/frb_example/pure_dart_pde/rust/src/api/misc_no_twin_example_a.rs +++ b/frb_example/pure_dart_pde/rust/src/api/misc_no_twin_example_a.rs @@ -5,6 +5,7 @@ use crate::frb_generated::RustAutoOpaque; use flutter_rust_bridge::frb; pub use std::any::Any; +use std::sync::{Arc, Mutex}; // Reproduce #1630 #[frb(opaque)] @@ -134,3 +135,23 @@ impl DeliberateFailSanityCheckTwinNormal { pub fn function_with_arg_type_name_override(a: Box) { let _ = a; } + +#[derive(Debug, Clone)] +#[frb(opaque)] +pub struct SimpleLogger(Arc>>); + +impl SimpleLogger { + #[frb(sync)] + pub fn new() -> Self { + Self(Arc::new(Mutex::new(vec![]))) + } + + pub(crate) fn log(&self, message: &str) { + self.0.lock().unwrap().push(message.to_owned()); + } + + #[frb(sync)] + pub fn get_and_reset(&self) -> Vec { + self.0.lock().unwrap().drain(..).collect() + } +} diff --git a/frb_example/pure_dart_pde/rust/src/api/mod.rs b/frb_example/pure_dart_pde/rust/src/api/mod.rs index c395f2fa3f..88ccf2ddee 100644 --- a/frb_example/pure_dart_pde/rust/src/api/mod.rs +++ b/frb_example/pure_dart_pde/rust/src/api/mod.rs @@ -29,6 +29,7 @@ pub mod external_impl; pub mod external_type_in_crate; pub mod impl_trait; pub mod inside_macro; +pub mod lifetimeable; pub mod map_and_set; pub mod method; pub mod mirror; diff --git a/frb_example/pure_dart_pde/rust/src/api/pseudo_manual/lifetimeable_twin_sync.rs b/frb_example/pure_dart_pde/rust/src/api/pseudo_manual/lifetimeable_twin_sync.rs new file mode 100644 index 0000000000..0cda10b521 --- /dev/null +++ b/frb_example/pure_dart_pde/rust/src/api/pseudo_manual/lifetimeable_twin_sync.rs @@ -0,0 +1,216 @@ +// NOTE: This file is mimicking how a human developer writes tests, +// and is auto-generated from `lifetimeable.rs` by frb_internal +// Please do not modify manually, but modify the origin and re-run frb_internal generator + +// AUTO-GENERATED FROM frb_example/pure_dart, DO NOT EDIT + +// FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "sse", "sync sse", "rustAsync sse"]} + +#![allow(clippy::needless_lifetimes)] + +use crate::api::pseudo_manual::misc_no_twin_example_a_twin_sync::SimpleLogger; +use flutter_rust_bridge::frb; + +// --------------------------- struct definitions --------------------------- + +/// Try *NOT* to impl Clone for these types in order to ensure there are no extra clones +#[frb(opaque)] +#[derive(Debug)] +pub struct LtOwnedStructTwinSync { + sub: LtSubStructTwinSync, +} + +#[frb(opaque)] +#[derive(Debug)] +pub struct LtSubStructTwinSync { + value: String, + logger: SimpleLogger, +} + +#[frb(opaque)] +#[derive(Debug)] +pub struct LtTypeWithLifetimeTwinSync<'a> { + field: &'a LtOwnedStructTwinSync, +} + +#[frb(opaque)] +#[derive(Debug)] +pub struct LtNestedTypeWithLifetimeTwinSync<'a> { + field: &'a LtTypeWithLifetimeTwinSync<'a>, +} + +#[frb(opaque)] +#[derive(Debug)] +pub struct LtTypeWithMultiDepTwinSync<'a> { + fields: Vec<&'a LtOwnedStructTwinSync>, +} + +// --------------------------- drops --------------------------- + +impl Drop for LtOwnedStructTwinSync { + fn drop(&mut self) { + self.sub.logger.log("LtOwnedStructTwinSync.drop"); + } +} + +impl Drop for LtSubStructTwinSync { + fn drop(&mut self) { + self.logger.log("LtOwnedSubStructTwinSync.drop"); + } +} + +impl Drop for LtTypeWithLifetimeTwinSync<'_> { + fn drop(&mut self) { + (self.field.sub.logger).log("LtTypeWithLifetimeTwinSync.drop"); + } +} + +impl Drop for LtNestedTypeWithLifetimeTwinSync<'_> { + fn drop(&mut self) { + (self.field.field.sub.logger).log("LtNestedTypeWithLifetimeTwinSync.drop"); + } +} + +// --------------------------- methods --------------------------- + +impl LtOwnedStructTwinSync { + #[frb(serialize)] + #[flutter_rust_bridge::frb(sync)] + pub fn create_twin_sync(value: String) -> Self { + Self { + sub: LtSubStructTwinSync { + value, + logger: SimpleLogger::new(), + }, + } + } + + #[frb(serialize)] + #[flutter_rust_bridge::frb(sync)] + pub fn create_with_logger_twin_sync(value: String, logger: &SimpleLogger) -> Self { + Self { + sub: LtSubStructTwinSync { + value, + logger: logger.clone(), + }, + } + } + + /// `fn f(x: &'a T) -> S<'a>` + #[frb(serialize)] + pub fn compute_type_with_lifetime_twin_sync<'a>(&'a self) -> LtTypeWithLifetimeTwinSync<'a> { + LtTypeWithLifetimeTwinSync { field: self } + } + + // /// `fn f(x: &'a T) -> &'a S` + // pub fn compute_sub_struct_twin_sync<'a>(&'a self) -> &'a LtSubStructTwinSync { + // &self.sub + // } + + /// The unrelated arg should not affect results + #[frb(serialize)] + pub fn compute_with_unrelated_borrowed_arg_twin_sync<'a>( + &'a self, + unrelated_borrowed: &LtOwnedStructTwinSync, + unrelated_owned: LtOwnedStructTwinSync, + ) -> LtTypeWithLifetimeTwinSync<'a> { + assert_eq!(&unrelated_borrowed.sub.value, "hi"); + assert_eq!(&unrelated_owned.sub.value, "hi"); + LtTypeWithLifetimeTwinSync { field: self } + } +} + +/// Functions (other tests are mainly methods) +#[frb(serialize)] +pub fn lt_compute_with_lifetime_function_twin_sync<'a>( + arg: &'a LtOwnedStructTwinSync, +) -> LtTypeWithLifetimeTwinSync<'a> { + LtTypeWithLifetimeTwinSync { field: arg } +} + +impl LtSubStructTwinSync { + #[frb(serialize)] + #[flutter_rust_bridge::frb(sync)] + pub fn greet_borrow_self_twin_sync(&self) -> String { + self.value.clone() + } + + #[frb(serialize)] + #[flutter_rust_bridge::frb(sync)] + pub fn greet_borrow_mut_self_twin_sync(&mut self) -> String { + self.value.clone() + } +} + +impl LtTypeWithLifetimeTwinSync<'_> { + /// `&T` where T is lifetimeable + #[frb(serialize)] + #[flutter_rust_bridge::frb(sync)] + pub fn greet_borrow_self_twin_sync(&self) -> String { + self.field.sub.value.clone() + } + + /// `&mut T` where T is lifetimeable + #[frb(serialize)] + #[flutter_rust_bridge::frb(sync)] + pub fn greet_borrow_mut_self_twin_sync(&mut self) -> String { + self.field.sub.value.clone() + } + + /// Input lifetimeable and output another lifetimeable + #[frb(serialize)] + pub fn compute_nested_type_with_lifetime_twin_sync<'a>( + &'a self, + ) -> LtNestedTypeWithLifetimeTwinSync<'a> { + LtNestedTypeWithLifetimeTwinSync { field: self } + } + + /// Input argument has type `T<'a>` (other tests mainly are `&'a T`) + #[frb(serialize)] + pub fn compute_arg_generic_lifetime_twin_sync<'a>( + arg: &LtTypeWithLifetimeTwinSync<'a>, + ) -> LtTypeWithLifetimeTwinSync<'a> { + LtTypeWithLifetimeTwinSync { field: arg.field } + } +} + +impl LtNestedTypeWithLifetimeTwinSync<'_> { + #[frb(serialize)] + #[flutter_rust_bridge::frb(sync)] + pub fn greet_borrow_self_twin_sync(&self) -> String { + self.field.field.sub.value.clone() + } + + #[frb(serialize)] + #[flutter_rust_bridge::frb(sync)] + pub fn greet_borrow_mut_self_twin_sync(&mut self) -> String { + self.field.field.sub.value.clone() + } +} + +impl LtTypeWithMultiDepTwinSync<'_> { + /// Multiple input args have lifetime + #[frb(serialize)] + pub fn compute_with_multi_arg_having_lifetime_twin_sync<'a>( + a: &'a LtOwnedStructTwinSync, + b: &'a LtOwnedStructTwinSync, + unrelated_borrowed: &LtOwnedStructTwinSync, + unrelated_owned: LtOwnedStructTwinSync, + ) -> LtTypeWithMultiDepTwinSync<'a> { + assert_eq!(&unrelated_borrowed.sub.value, "hi"); + assert_eq!(&unrelated_owned.sub.value, "hi"); + LtTypeWithMultiDepTwinSync { fields: vec![a, b] } + } + + #[frb(serialize)] + #[flutter_rust_bridge::frb(sync)] + pub fn greet_borrow_self_twin_sync(&self) -> Vec { + self.fields.iter().map(|x| x.sub.value.clone()).collect() + } + + #[frb(serialize)] + #[flutter_rust_bridge::frb(sync)] + pub fn greet_borrow_mut_self_twin_sync(&mut self) -> Vec { + self.fields.iter().map(|x| x.sub.value.clone()).collect() + } +} diff --git a/frb_example/pure_dart_pde/rust/src/api/pseudo_manual/mod.rs b/frb_example/pure_dart_pde/rust/src/api/pseudo_manual/mod.rs index 39ae19b2bc..47f4ca9a79 100644 --- a/frb_example/pure_dart_pde/rust/src/api/pseudo_manual/mod.rs +++ b/frb_example/pure_dart_pde/rust/src/api/pseudo_manual/mod.rs @@ -35,6 +35,7 @@ pub mod exception_twin_sync; pub mod external_type_in_crate_twin_rust_async; pub mod external_type_in_crate_twin_sync; pub mod impl_trait_twin_sync; +pub mod lifetimeable_twin_sync; pub mod map_and_set_twin_rust_async; pub mod map_and_set_twin_sync; pub mod method_twin_rust_async; diff --git a/frb_example/pure_dart_pde/rust/src/frb_generated.io.rs b/frb_example/pure_dart_pde/rust/src/frb_generated.io.rs index 7eb23d773b..a63332ab7a 100644 --- a/frb_example/pure_dart_pde/rust/src/frb_generated.io.rs +++ b/frb_example/pure_dart_pde/rust/src/frb_generated.io.rs @@ -13,6 +13,7 @@ use crate::api::dyn_trait::*; use crate::api::external_impl::*; use crate::api::impl_trait::SimpleTraitTwinNormal; use crate::api::impl_trait::*; +use crate::api::lifetimeable::*; use crate::api::method::*; use crate::api::misc_no_twin_example_a::*; use crate::api::misc_no_twin_example_b::*; @@ -21,6 +22,7 @@ use crate::api::pseudo_manual::dropping_twin_rust_async::*; use crate::api::pseudo_manual::dropping_twin_sync::*; use crate::api::pseudo_manual::impl_trait_twin_sync::SimpleTraitTwinSync; use crate::api::pseudo_manual::impl_trait_twin_sync::*; +use crate::api::pseudo_manual::lifetimeable_twin_sync::*; use crate::api::pseudo_manual::method_twin_rust_async::*; use crate::api::pseudo_manual::method_twin_sync::*; use crate::api::pseudo_manual::rust_auto_opaque_twin_rust_async::*; @@ -31,7 +33,7 @@ use crate::api::rust_auto_opaque::*; use crate::api::rust_opaque::*; use crate::api::rust_opaque_sync::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; -use flutter_rust_bridge::for_generated::{transform_result_dco, Lockable}; +use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; // Section: boilerplate @@ -618,6 +620,194 @@ pub extern "C" fn frbgen_frb_example_pure_dart_pde_rust_arc_decrement_strong_cou >::decrement_strong_count(ptr as _); } +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_pde_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::increment_strong_count(ptr as _); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_pde_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::decrement_strong_count(ptr as _); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_pde_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::increment_strong_count(ptr as _); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_pde_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::decrement_strong_count(ptr as _); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_pde_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::increment_strong_count(ptr as _); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_pde_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::decrement_strong_count(ptr as _); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_pde_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::increment_strong_count(ptr as _); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_pde_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::decrement_strong_count(ptr as _); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_pde_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::increment_strong_count(ptr as _); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_pde_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::decrement_strong_count(ptr as _); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_pde_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::increment_strong_count(ptr as _); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_pde_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::decrement_strong_count(ptr as _); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_pde_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + ptr: *const std::ffi::c_void, +) { + MoiArc::>::increment_strong_count(ptr as _); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_pde_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + ptr: *const std::ffi::c_void, +) { + MoiArc::>::decrement_strong_count(ptr as _); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_pde_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + ptr: *const std::ffi::c_void, +) { + MoiArc::>::increment_strong_count(ptr as _); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_pde_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + ptr: *const std::ffi::c_void, +) { + MoiArc::>::decrement_strong_count(ptr as _); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_pde_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + ptr: *const std::ffi::c_void, +) { + MoiArc::>::increment_strong_count(ptr as _); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_pde_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + ptr: *const std::ffi::c_void, +) { + MoiArc::>::decrement_strong_count(ptr as _); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_pde_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + ptr: *const std::ffi::c_void, +) { + MoiArc::>::increment_strong_count(ptr as _); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_pde_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + ptr: *const std::ffi::c_void, +) { + MoiArc::>::decrement_strong_count(ptr as _); +} + #[no_mangle] pub extern "C" fn frbgen_frb_example_pure_dart_pde_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( ptr: *const std::ffi::c_void, @@ -850,6 +1040,20 @@ pub extern "C" fn frbgen_frb_example_pure_dart_pde_rust_arc_decrement_strong_cou MoiArc::>::decrement_strong_count(ptr as _); } +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_pde_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + ptr: *const std::ffi::c_void, +) { + MoiArc::>::increment_strong_count(ptr as _); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_pure_dart_pde_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + ptr: *const std::ffi::c_void, +) { + MoiArc::>::decrement_strong_count(ptr as _); +} + #[no_mangle] pub extern "C" fn frbgen_frb_example_pure_dart_pde_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( ptr: *const std::ffi::c_void, diff --git a/frb_example/pure_dart_pde/rust/src/frb_generated.rs b/frb_example/pure_dart_pde/rust/src/frb_generated.rs index 072e3fe1f1..a860bb6ba4 100644 --- a/frb_example/pure_dart_pde/rust/src/frb_generated.rs +++ b/frb_example/pure_dart_pde/rust/src/frb_generated.rs @@ -30,6 +30,7 @@ use crate::api::dyn_trait::*; use crate::api::external_impl::*; use crate::api::impl_trait::SimpleTraitTwinNormal; use crate::api::impl_trait::*; +use crate::api::lifetimeable::*; use crate::api::method::*; use crate::api::misc_no_twin_example_a::*; use crate::api::misc_no_twin_example_b::*; @@ -38,6 +39,7 @@ use crate::api::pseudo_manual::dropping_twin_rust_async::*; use crate::api::pseudo_manual::dropping_twin_sync::*; use crate::api::pseudo_manual::impl_trait_twin_sync::SimpleTraitTwinSync; use crate::api::pseudo_manual::impl_trait_twin_sync::*; +use crate::api::pseudo_manual::lifetimeable_twin_sync::*; use crate::api::pseudo_manual::method_twin_rust_async::*; use crate::api::pseudo_manual::method_twin_sync::*; use crate::api::pseudo_manual::rust_auto_opaque_twin_rust_async::*; @@ -48,7 +50,7 @@ use crate::api::rust_auto_opaque::*; use crate::api::rust_opaque::*; use crate::api::rust_opaque_sync::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; -use flutter_rust_bridge::for_generated::{transform_result_dco, Lockable}; +use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; // Section: boilerplate @@ -61,7 +63,7 @@ flutter_rust_bridge::frb_generated_boilerplate!( default_rust_auto_opaque = RustAutoOpaqueMoi, ); pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.0.0-dev.39"; -pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = 395683424; +pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = 1410295838; // Section: executor @@ -5610,6 +5612,523 @@ fn wire__crate__api__inside_macro__func_macro_struct_twin_normal_impl( }, ) } +fn wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), + _ => unreachable!(), + } + } + let mut api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtNestedTypeWithLifetimeTwinNormal ::greet_borrow_mut_self_twin_normal(&mut *api_that_guard))?; Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtNestedTypeWithLifetimeTwinNormal ::greet_borrow_self_twin_normal(&*&api_that_guard))?; Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_arg = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let api_arg_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg) + };let mut api_arg_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_arg, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_arg_guard = Some(api_arg_illegal_static_ref.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_arg_guard = api_arg_guard.unwrap(); +let api_arg_guard = Arc::new(api_arg_guard); + let api_arg_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg_guard) + }; let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtTypeWithLifetimeTwinNormal ::compute_arg_generic_lifetime_twin_normal(&*&api_arg_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_arg.clone()), Box::new(api_arg_guard.clone())])); Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_nested_type_with_lifetime_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_nested_type_with_lifetime_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let api_that_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that) + };let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that_illegal_static_ref.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); +let api_that_guard = Arc::new(api_that_guard); + let api_that_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that_guard) + }; let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtTypeWithLifetimeTwinNormal ::compute_nested_type_with_lifetime_twin_normal(&*&api_that_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), + _ => unreachable!(), + } + } + let mut api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtTypeWithLifetimeTwinNormal ::greet_borrow_mut_self_twin_normal(&mut *api_that_guard))?; Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtTypeWithLifetimeTwinNormal ::greet_borrow_self_twin_normal(&*&api_that_guard))?; Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_a = >>::sse_decode(&mut deserializer); +let api_b = >>::sse_decode(&mut deserializer); +let api_unrelated_borrowed = >>::sse_decode(&mut deserializer); +let api_unrelated_owned = ::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let api_a_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_a) + };let api_b_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_b) + };let mut api_a_guard = None; +let mut api_b_guard = None; +let mut api_unrelated_borrowed_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_a, 0, false), flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_b, 1, false), flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_unrelated_borrowed, 2, false)]); + for i in decode_indices_ { + match i { + 0 => api_a_guard = Some(api_a_illegal_static_ref.lockable_decode_sync_ref()), +1 => api_b_guard = Some(api_b_illegal_static_ref.lockable_decode_sync_ref()), +2 => api_unrelated_borrowed_guard = Some(api_unrelated_borrowed.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_a_guard = api_a_guard.unwrap(); +let api_b_guard = api_b_guard.unwrap(); +let api_unrelated_borrowed_guard = api_unrelated_borrowed_guard.unwrap(); +let api_a_guard = Arc::new(api_a_guard); + let api_a_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_a_guard) + };let api_b_guard = Arc::new(api_b_guard); + let api_b_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_b_guard) + }; let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtTypeWithMultiDepTwinNormal ::compute_with_multi_arg_having_lifetime_twin_normal(&*api_a_guard_illegal_static_ref, &*api_b_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_a.clone()), Box::new(api_a_guard.clone()), Box::new(api_b.clone()), Box::new(api_b_guard.clone())])); Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), + _ => unreachable!(), + } + } + let mut api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtTypeWithMultiDepTwinNormal ::greet_borrow_mut_self_twin_normal(&mut *api_that_guard))?; Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtTypeWithMultiDepTwinNormal ::greet_borrow_self_twin_normal(&*&api_that_guard))?; Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let api_that_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that) + };let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that_illegal_static_ref.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); +let api_that_guard = Arc::new(api_that_guard); + let api_that_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that_guard) + }; let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtOwnedStructTwinNormal::compute_type_with_lifetime_twin_normal(&*api_that_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>::sse_decode(&mut deserializer); +let api_unrelated_borrowed = >>::sse_decode(&mut deserializer); +let api_unrelated_owned = ::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let api_that_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that) + };let mut api_that_guard = None; +let mut api_unrelated_borrowed_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false), flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_unrelated_borrowed, 1, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that_illegal_static_ref.lockable_decode_sync_ref()), +1 => api_unrelated_borrowed_guard = Some(api_unrelated_borrowed.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); +let api_unrelated_borrowed_guard = api_unrelated_borrowed_guard.unwrap(); +let api_that_guard = Arc::new(api_that_guard); + let api_that_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that_guard) + }; let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtOwnedStructTwinNormal::compute_with_unrelated_borrowed_arg_twin_normal(&*api_that_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "LtOwnedStructTwinNormal_create", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let message = unsafe { + flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire( + ptr_, + rust_vec_len_, + data_len_, + ) + }; + let mut deserializer = + flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_value = ::sse_decode(&mut deserializer); + deserializer.end(); + move |context| { + transform_result_sse::<_, ()>((move || { + let output_ok = Result::<_, ()>::Ok( + crate::api::lifetimeable::LtOwnedStructTwinNormal::create(api_value), + )?; + Ok(output_ok) + })()) + } + }, + ) +} +fn wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "LtOwnedStructTwinNormal_create_with_logger", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let message = unsafe { + flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire( + ptr_, + rust_vec_len_, + data_len_, + ) + }; + let mut deserializer = + flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_value = ::sse_decode(&mut deserializer); + let api_logger = , + >>::sse_decode(&mut deserializer); + deserializer.end(); + move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_logger_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_logger, + 0, + false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_logger_guard = Some(api_logger.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_logger_guard = api_logger_guard.unwrap(); + let output_ok = Result::<_, ()>::Ok( + crate::api::lifetimeable::LtOwnedStructTwinNormal::create_with_logger( + api_value, + &*api_logger_guard, + ), + )?; + Ok(output_ok) + })()) + } + }, + ) +} +fn wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), + _ => unreachable!(), + } + } + let mut api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtSubStructTwinNormal::greet_borrow_mut_self_twin_normal(&mut *api_that_guard))?; Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_self_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtSubStructTwinNormal_greet_borrow_self_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtSubStructTwinNormal::greet_borrow_self_twin_normal(&*api_that_guard))?; Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__lifetimeable__lt_compute_with_lifetime_function_twin_normal_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "lt_compute_with_lifetime_function_twin_normal", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let message = unsafe { + flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire( + ptr_, + rust_vec_len_, + data_len_, + ) + }; + let mut deserializer = + flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_arg = , + >>::sse_decode(&mut deserializer); + deserializer.end(); + move |context| { + transform_result_sse::<_, ()>((move || { + let api_arg_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg) + }; + let mut api_arg_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_arg, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => { + api_arg_guard = + Some(api_arg_illegal_static_ref.lockable_decode_sync_ref()) + } + _ => unreachable!(), + } + } + let api_arg_guard = api_arg_guard.unwrap(); + let api_arg_guard = Arc::new(api_arg_guard); + let api_arg_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime( + &api_arg_guard, + ) + }; + let output_ok = Result::<_, ()>::Ok( + crate::api::lifetimeable::lt_compute_with_lifetime_function_twin_normal( + &*api_arg_guard_illegal_static_ref, + ), + )?; + let output_ok = RustAutoOpaque::new(Lifetimeable::new( + output_ok, + vec![Box::new(api_arg.clone()), Box::new(api_arg_guard.clone())], + )); + Ok(output_ok) + })()) + } + }, + ) +} fn wire__crate__api__map_and_set__func_hash_map_i32_i32_twin_normal_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, @@ -8662,6 +9181,86 @@ let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decod })()) } }) } +fn wire__crate__api__misc_no_twin_example_a__SimpleLogger_get_and_reset_impl( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "SimpleLogger_get_and_reset", + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, + }, + move || { + let message = unsafe { + flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire( + ptr_, + rust_vec_len_, + data_len_, + ) + }; + let mut deserializer = + flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = , + >>::sse_decode(&mut deserializer); + deserializer.end(); + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_, ()>::Ok( + crate::api::misc_no_twin_example_a::SimpleLogger::get_and_reset( + &*api_that_guard, + ), + )?; + Ok(output_ok) + })()) + }, + ) +} +fn wire__crate__api__misc_no_twin_example_a__SimpleLogger_new_impl( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "SimpleLogger_new", + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, + }, + move || { + let message = unsafe { + flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire( + ptr_, + rust_vec_len_, + data_len_, + ) + }; + let mut deserializer = + flutter_rust_bridge::for_generated::SseDeserializer::new(message); + deserializer.end(); + transform_result_sse::<_, ()>((move || { + let output_ok = + Result::<_, ()>::Ok(crate::api::misc_no_twin_example_a::SimpleLogger::new())?; + Ok(output_ok) + })()) + }, + ) +} fn wire__crate__api__misc_no_twin_example_a__StructInMiscNoTwinExampleA_sample_function_a_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, @@ -18628,6 +19227,411 @@ fn wire__crate__api__pseudo_manual__impl_trait_twin_sync__StructTwoWithTraitTwin })()) } }) } +fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync_impl( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync", port: None, mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), + _ => unreachable!(), + } + } + let mut api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtNestedTypeWithLifetimeTwinSync ::greet_borrow_mut_self_twin_sync(&mut *api_that_guard))?; Ok(output_ok) + })()) }) +} +fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync_impl( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync", port: None, mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtNestedTypeWithLifetimeTwinSync ::greet_borrow_self_twin_sync(&*&api_that_guard))?; Ok(output_ok) + })()) }) +} +fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_arg_generic_lifetime_twin_sync_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_arg_generic_lifetime_twin_sync", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_arg = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let api_arg_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg) + };let mut api_arg_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_arg, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_arg_guard = Some(api_arg_illegal_static_ref.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_arg_guard = api_arg_guard.unwrap(); +let api_arg_guard = Arc::new(api_arg_guard); + let api_arg_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg_guard) + }; let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtTypeWithLifetimeTwinSync ::compute_arg_generic_lifetime_twin_sync(&*&api_arg_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_arg.clone()), Box::new(api_arg_guard.clone())])); Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_nested_type_with_lifetime_twin_sync_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_nested_type_with_lifetime_twin_sync", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let api_that_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that) + };let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that_illegal_static_ref.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); +let api_that_guard = Arc::new(api_that_guard); + let api_that_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that_guard) + }; let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtTypeWithLifetimeTwinSync ::compute_nested_type_with_lifetime_twin_sync(&*&api_that_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync_impl( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync", port: None, mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), + _ => unreachable!(), + } + } + let mut api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtTypeWithLifetimeTwinSync ::greet_borrow_mut_self_twin_sync(&mut *api_that_guard))?; Ok(output_ok) + })()) }) +} +fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync_impl( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync", port: None, mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtTypeWithLifetimeTwinSync ::greet_borrow_self_twin_sync(&*&api_that_guard))?; Ok(output_ok) + })()) }) +} +fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_compute_with_multi_arg_having_lifetime_twin_sync_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_compute_with_multi_arg_having_lifetime_twin_sync", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_a = >>::sse_decode(&mut deserializer); +let api_b = >>::sse_decode(&mut deserializer); +let api_unrelated_borrowed = >>::sse_decode(&mut deserializer); +let api_unrelated_owned = ::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let api_a_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_a) + };let api_b_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_b) + };let mut api_a_guard = None; +let mut api_b_guard = None; +let mut api_unrelated_borrowed_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_a, 0, false), flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_b, 1, false), flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_unrelated_borrowed, 2, false)]); + for i in decode_indices_ { + match i { + 0 => api_a_guard = Some(api_a_illegal_static_ref.lockable_decode_sync_ref()), +1 => api_b_guard = Some(api_b_illegal_static_ref.lockable_decode_sync_ref()), +2 => api_unrelated_borrowed_guard = Some(api_unrelated_borrowed.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_a_guard = api_a_guard.unwrap(); +let api_b_guard = api_b_guard.unwrap(); +let api_unrelated_borrowed_guard = api_unrelated_borrowed_guard.unwrap(); +let api_a_guard = Arc::new(api_a_guard); + let api_a_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_a_guard) + };let api_b_guard = Arc::new(api_b_guard); + let api_b_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_b_guard) + }; let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtTypeWithMultiDepTwinSync ::compute_with_multi_arg_having_lifetime_twin_sync(&*api_a_guard_illegal_static_ref, &*api_b_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_a.clone()), Box::new(api_a_guard.clone()), Box::new(api_b.clone()), Box::new(api_b_guard.clone())])); Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_mut_self_twin_sync_impl( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_mut_self_twin_sync", port: None, mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), + _ => unreachable!(), + } + } + let mut api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtTypeWithMultiDepTwinSync ::greet_borrow_mut_self_twin_sync(&mut *api_that_guard))?; Ok(output_ok) + })()) }) +} +fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_self_twin_sync_impl( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_self_twin_sync", port: None, mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>>>::sse_decode(&mut deserializer);deserializer.end(); + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtTypeWithMultiDepTwinSync ::greet_borrow_self_twin_sync(&*&api_that_guard))?; Ok(output_ok) + })()) }) +} +fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_type_with_lifetime_twin_sync_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtOwnedStructTwinSync_compute_type_with_lifetime_twin_sync", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let api_that_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that) + };let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that_illegal_static_ref.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); +let api_that_guard = Arc::new(api_that_guard); + let api_that_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that_guard) + }; let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtOwnedStructTwinSync::compute_type_with_lifetime_twin_sync(&*api_that_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_with_unrelated_borrowed_arg_twin_sync_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtOwnedStructTwinSync_compute_with_unrelated_borrowed_arg_twin_sync", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>::sse_decode(&mut deserializer); +let api_unrelated_borrowed = >>::sse_decode(&mut deserializer); +let api_unrelated_owned = ::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let api_that_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that) + };let mut api_that_guard = None; +let mut api_unrelated_borrowed_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false), flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_unrelated_borrowed, 1, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that_illegal_static_ref.lockable_decode_sync_ref()), +1 => api_unrelated_borrowed_guard = Some(api_unrelated_borrowed.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); +let api_unrelated_borrowed_guard = api_unrelated_borrowed_guard.unwrap(); +let api_that_guard = Arc::new(api_that_guard); + let api_that_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that_guard) + }; let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtOwnedStructTwinSync::compute_with_unrelated_borrowed_arg_twin_sync(&*api_that_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) + })()) + } }) +} +fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_twin_sync_impl( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtOwnedStructTwinSync_create_twin_sync", port: None, mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_value = ::sse_decode(&mut deserializer);deserializer.end(); + transform_result_sse::<_, ()>((move || { + let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtOwnedStructTwinSync::create_twin_sync(api_value))?; Ok(output_ok) + })()) }) +} +fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_with_logger_twin_sync_impl( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtOwnedStructTwinSync_create_with_logger_twin_sync", port: None, mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_value = ::sse_decode(&mut deserializer); +let api_logger = >>::sse_decode(&mut deserializer);deserializer.end(); + transform_result_sse::<_, ()>((move || { + let mut api_logger_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_logger, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_logger_guard = Some(api_logger.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_logger_guard = api_logger_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtOwnedStructTwinSync::create_with_logger_twin_sync(api_value, &*api_logger_guard))?; Ok(output_ok) + })()) }) +} +fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_mut_self_twin_sync_impl( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtSubStructTwinSync_greet_borrow_mut_self_twin_sync", port: None, mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>::sse_decode(&mut deserializer);deserializer.end(); + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, true)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref_mut()), + _ => unreachable!(), + } + } + let mut api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtSubStructTwinSync::greet_borrow_mut_self_twin_sync(&mut *api_that_guard))?; Ok(output_ok) + })()) }) +} +fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_self_twin_sync_impl( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtSubStructTwinSync_greet_borrow_self_twin_sync", port: None, mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>::sse_decode(&mut deserializer);deserializer.end(); + transform_result_sse::<_, ()>((move || { + let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtSubStructTwinSync::greet_borrow_self_twin_sync(&*api_that_guard))?; Ok(output_ok) + })()) }) +} +fn wire__crate__api__pseudo_manual__lifetimeable_twin_sync__lt_compute_with_lifetime_function_twin_sync_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "lt_compute_with_lifetime_function_twin_sync", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_arg = >>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let api_arg_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg) + };let mut api_arg_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_arg, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_arg_guard = Some(api_arg_illegal_static_ref.lockable_decode_sync_ref()), + _ => unreachable!(), + } + } + let api_arg_guard = api_arg_guard.unwrap(); +let api_arg_guard = Arc::new(api_arg_guard); + let api_arg_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg_guard) + }; let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::lt_compute_with_lifetime_function_twin_sync(&*api_arg_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_arg.clone()), Box::new(api_arg_guard.clone())])); Ok(output_ok) + })()) + } }) +} fn wire__crate__api__pseudo_manual__map_and_set_twin_rust_async__func_hash_map_i32_i32_twin_rust_async_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, @@ -28775,6 +29779,48 @@ flutter_rust_bridge::frb_generated_moi_arc_impl_value!( flutter_rust_bridge::frb_generated_moi_arc_impl_value!( flutter_rust_bridge::for_generated::RustAutoOpaqueInner ); +flutter_rust_bridge::frb_generated_moi_arc_impl_value!( + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + > +); +flutter_rust_bridge::frb_generated_moi_arc_impl_value!( + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + > +); +flutter_rust_bridge::frb_generated_moi_arc_impl_value!( + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + > +); +flutter_rust_bridge::frb_generated_moi_arc_impl_value!( + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + > +); +flutter_rust_bridge::frb_generated_moi_arc_impl_value!( + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + > +); +flutter_rust_bridge::frb_generated_moi_arc_impl_value!( + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + > +); +flutter_rust_bridge::frb_generated_moi_arc_impl_value!( + flutter_rust_bridge::for_generated::RustAutoOpaqueInner +); +flutter_rust_bridge::frb_generated_moi_arc_impl_value!( + flutter_rust_bridge::for_generated::RustAutoOpaqueInner +); +flutter_rust_bridge::frb_generated_moi_arc_impl_value!( + flutter_rust_bridge::for_generated::RustAutoOpaqueInner +); +flutter_rust_bridge::frb_generated_moi_arc_impl_value!( + flutter_rust_bridge::for_generated::RustAutoOpaqueInner +); flutter_rust_bridge::frb_generated_moi_arc_impl_value!( flutter_rust_bridge::for_generated::RustAutoOpaqueInner ); @@ -28823,6 +29869,9 @@ flutter_rust_bridge::frb_generated_moi_arc_impl_value!( flutter_rust_bridge::frb_generated_moi_arc_impl_value!( flutter_rust_bridge::for_generated::RustAutoOpaqueInner ); +flutter_rust_bridge::frb_generated_moi_arc_impl_value!( + flutter_rust_bridge::for_generated::RustAutoOpaqueInner +); flutter_rust_bridge::frb_generated_moi_arc_impl_value!( flutter_rust_bridge::for_generated::RustAutoOpaqueInner ); @@ -29189,6 +30238,78 @@ impl SseDecode for flutter_rust_bridge::for_generated::anyhow::Error { } } +impl SseDecode for RustAutoOpaqueMoi>> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = >, + >, + >>::sse_decode(deserializer); + return flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_decode(inner); + } +} + +impl SseDecode for RustAutoOpaqueMoi>> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = >, + >, + >>::sse_decode(deserializer); + return flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_decode(inner); + } +} + +impl SseDecode for RustAutoOpaqueMoi>> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = >, + >, + >>::sse_decode(deserializer); + return flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_decode(inner); + } +} + +impl SseDecode for RustAutoOpaqueMoi>> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = >, + >, + >>::sse_decode(deserializer); + return flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_decode(inner); + } +} + +impl SseDecode for RustAutoOpaqueMoi>> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = >, + >, + >>::sse_decode(deserializer); + return flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_decode(inner); + } +} + +impl SseDecode for RustAutoOpaqueMoi>> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = >, + >, + >>::sse_decode(deserializer); + return flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_decode(inner); + } +} + impl SseDecode for RustAutoOpaqueMoi { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -29437,6 +30558,46 @@ impl SseDecode for ItemContainerSolutionOneTwinNormal { } } +impl SseDecode for LtOwnedStructTwinNormal { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = , + >>::sse_decode(deserializer); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); + } +} + +impl SseDecode for LtOwnedStructTwinSync { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = , + >>::sse_decode(deserializer); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); + } +} + +impl SseDecode for LtSubStructTwinNormal { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = , + >>::sse_decode(deserializer); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); + } +} + +impl SseDecode for LtSubStructTwinSync { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = , + >>::sse_decode(deserializer); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); + } +} + impl SseDecode for MyAudioParamTwinNormal { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -29601,6 +30762,16 @@ impl SseDecode for OpaqueTwoTwinSync { } } +impl SseDecode for SimpleLogger { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = , + >>::sse_decode(deserializer); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); + } +} + impl SseDecode for SimpleOpaqueExternalStructWithMethod { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -30661,6 +31832,136 @@ impl SseDecode } } +impl SseDecode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return decode_rust_opaque_moi(inner); + } +} + +impl SseDecode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return decode_rust_opaque_moi(inner); + } +} + +impl SseDecode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return decode_rust_opaque_moi(inner); + } +} + +impl SseDecode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return decode_rust_opaque_moi(inner); + } +} + +impl SseDecode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return decode_rust_opaque_moi(inner); + } +} + +impl SseDecode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return decode_rust_opaque_moi(inner); + } +} + +impl SseDecode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return decode_rust_opaque_moi(inner); + } +} + +impl SseDecode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return decode_rust_opaque_moi(inner); + } +} + +impl SseDecode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return decode_rust_opaque_moi(inner); + } +} + +impl SseDecode + for RustOpaqueMoi> +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return decode_rust_opaque_moi(inner); + } +} + impl SseDecode for RustOpaqueMoi< flutter_rust_bridge::for_generated::RustAutoOpaqueInner, @@ -30841,6 +32142,16 @@ impl SseDecode } } +impl SseDecode + for RustOpaqueMoi> +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return decode_rust_opaque_moi(inner); + } +} + impl SseDecode for RustOpaqueMoi< flutter_rust_bridge::for_generated::RustAutoOpaqueInner< @@ -39485,668 +40796,690 @@ fn pde_ffi_dispatcher_primary_impl( 164 => wire__crate__api__impl_trait__StructTwoWithTraitTwinNormal_simple_trait_fn_with_default_impl_twin_normal_impl(port, ptr, rust_vec_len, data_len), 168 => wire__crate__api__inside_macro__another_macro_struct_twin_normal_impl(port, ptr, rust_vec_len, data_len), 169 => wire__crate__api__inside_macro__func_macro_struct_twin_normal_impl(port, ptr, rust_vec_len, data_len), -170 => wire__crate__api__map_and_set__func_hash_map_i32_i32_twin_normal_impl(port, ptr, rust_vec_len, data_len), -171 => wire__crate__api__map_and_set__func_hash_map_string_bytes_twin_normal_impl(port, ptr, rust_vec_len, data_len), -172 => wire__crate__api__map_and_set__func_hash_map_string_complex_enum_twin_normal_impl(port, ptr, rust_vec_len, data_len), -173 => wire__crate__api__map_and_set__func_hash_map_string_simple_enum_twin_normal_impl(port, ptr, rust_vec_len, data_len), -174 => wire__crate__api__map_and_set__func_hash_map_string_string_twin_normal_impl(port, ptr, rust_vec_len, data_len), -175 => wire__crate__api__map_and_set__func_hash_map_string_struct_twin_normal_impl(port, ptr, rust_vec_len, data_len), -176 => wire__crate__api__map_and_set__func_hash_set_i32_twin_normal_impl(port, ptr, rust_vec_len, data_len), -177 => wire__crate__api__map_and_set__func_hash_set_string_twin_normal_impl(port, ptr, rust_vec_len, data_len), -178 => wire__crate__api__method__StaticGetterOnlyTwinNormal_static_getter_twin_normal_impl(port, ptr, rust_vec_len, data_len), -179 => wire__crate__api__method__concatenate_with_twin_normal_concatenate_static_twin_normal_impl(port, ptr, rust_vec_len, data_len), -180 => wire__crate__api__method__concatenate_with_twin_normal_concatenate_twin_normal_impl(port, ptr, rust_vec_len, data_len), -181 => wire__crate__api__method__concatenate_with_twin_normal_handle_some_static_stream_sink_single_arg_twin_normal_impl(port, ptr, rust_vec_len, data_len), -182 => wire__crate__api__method__concatenate_with_twin_normal_handle_some_static_stream_sink_twin_normal_impl(port, ptr, rust_vec_len, data_len), -183 => wire__crate__api__method__concatenate_with_twin_normal_handle_some_stream_sink_at_1_twin_normal_impl(port, ptr, rust_vec_len, data_len), -184 => wire__crate__api__method__concatenate_with_twin_normal_handle_some_stream_sink_twin_normal_impl(port, ptr, rust_vec_len, data_len), -185 => wire__crate__api__method__concatenate_with_twin_normal_new_twin_normal_impl(port, ptr, rust_vec_len, data_len), -186 => wire__crate__api__method__concatenate_with_twin_normal_simple_getter_twin_normal_impl(port, ptr, rust_vec_len, data_len), -187 => wire__crate__api__method__get_sum_array_twin_normal_impl(port, ptr, rust_vec_len, data_len), -188 => wire__crate__api__method__get_sum_struct_twin_normal_impl(port, ptr, rust_vec_len, data_len), -189 => wire__crate__api__method__my_callable_twin_normal_call_impl(port, ptr, rust_vec_len, data_len), -190 => wire__crate__api__method__simple_enum_twin_normal_return_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), -191 => wire__crate__api__method__simple_enum_twin_normal_simple_method_twin_normal_impl(port, ptr, rust_vec_len, data_len), -192 => wire__crate__api__method__simple_primitive_enum_twin_normal_simple_method_twin_normal_impl(port, ptr, rust_vec_len, data_len), -193 => wire__crate__api__method__simple_struct_twin_normal_arg_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), -194 => wire__crate__api__method__simple_struct_twin_normal_receiver_borrow_twin_normal_impl(port, ptr, rust_vec_len, data_len), -195 => wire__crate__api__method__simple_struct_twin_normal_receiver_own_twin_normal_impl(port, ptr, rust_vec_len, data_len), -196 => wire__crate__api__method__simple_struct_twin_normal_return_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), -197 => wire__crate__api__method__simple_struct_twin_normal_vec_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), -198 => wire__crate__api__method__static_only_twin_normal_static_method_twin_normal_impl(port, ptr, rust_vec_len, data_len), -199 => wire__crate__api__method__sum_with_twin_normal_sum_twin_normal_impl(port, ptr, rust_vec_len, data_len), -200 => wire__crate__api__mirror__app_settings_stream_twin_normal_impl(port, ptr, rust_vec_len, data_len), -201 => wire__crate__api__mirror__app_settings_vec_stream_twin_normal_impl(port, ptr, rust_vec_len, data_len), -202 => wire__crate__api__mirror__first_number_twin_normal_impl(port, ptr, rust_vec_len, data_len), -203 => wire__crate__api__mirror__first_sequence_twin_normal_impl(port, ptr, rust_vec_len, data_len), -204 => wire__crate__api__mirror__get_app_settings_twin_normal_impl(port, ptr, rust_vec_len, data_len), -205 => wire__crate__api__mirror__get_fallible_app_settings_twin_normal_impl(port, ptr, rust_vec_len, data_len), -206 => wire__crate__api__mirror__get_message_twin_normal_impl(port, ptr, rust_vec_len, data_len), -207 => wire__crate__api__mirror__is_app_embedded_twin_normal_impl(port, ptr, rust_vec_len, data_len), -208 => wire__crate__api__mirror__mirror_array_enum_stream_twin_normal_impl(port, ptr, rust_vec_len, data_len), -209 => wire__crate__api__mirror__mirror_enum_stream_twin_normal_impl(port, ptr, rust_vec_len, data_len), -210 => wire__crate__api__mirror__mirror_map_enum_stream_twin_normal_impl(port, ptr, rust_vec_len, data_len), -211 => wire__crate__api__mirror__mirror_option_enum_stream_twin_normal_impl(port, ptr, rust_vec_len, data_len), -212 => wire__crate__api__mirror__mirror_set_enum_stream_twin_normal_impl(port, ptr, rust_vec_len, data_len), -213 => wire__crate__api__mirror__mirror_struct_stream_twin_normal_impl(port, ptr, rust_vec_len, data_len), -214 => wire__crate__api__mirror__mirror_tuple_stream_twin_normal_impl(port, ptr, rust_vec_len, data_len), -215 => wire__crate__api__mirror__mirror_vec_enum_stream_twin_normal_impl(port, ptr, rust_vec_len, data_len), -216 => wire__crate__api__mirror__repeat_number_twin_normal_impl(port, ptr, rust_vec_len, data_len), -217 => wire__crate__api__mirror__repeat_sequence_twin_normal_impl(port, ptr, rust_vec_len, data_len), -218 => wire__crate__api__mirror__test_contains_mirrored_sub_struct_twin_normal_impl(port, ptr, rust_vec_len, data_len), -219 => wire__crate__api__mirror__test_fallible_of_raw_string_mirrored_twin_normal_impl(port, ptr, rust_vec_len, data_len), -220 => wire__crate__api__mirror__test_hashmap_with_mirrored_value_twin_normal_impl(port, ptr, rust_vec_len, data_len), -221 => wire__crate__api__mirror__test_list_of_nested_enums_mirrored_twin_normal_impl(port, ptr, rust_vec_len, data_len), -222 => wire__crate__api__mirror__test_list_of_raw_nested_string_mirrored_twin_normal_impl(port, ptr, rust_vec_len, data_len), -223 => wire__crate__api__mirror__test_nested_raw_string_mirrored_twin_normal_impl(port, ptr, rust_vec_len, data_len), -224 => wire__crate__api__mirror__test_raw_string_enum_mirrored_twin_normal_impl(port, ptr, rust_vec_len, data_len), -225 => wire__crate__api__mirror__test_raw_string_mirrored_twin_normal_impl(port, ptr, rust_vec_len, data_len), -226 => wire__crate__api__misc_example__handle_big_buffers_twin_normal_impl(port, ptr, rust_vec_len, data_len), -227 => wire__crate__api__misc_example__handle_char_twin_normal_impl(port, ptr, rust_vec_len, data_len), -228 => wire__crate__api__misc_example__handle_complex_struct_twin_normal_impl(port, ptr, rust_vec_len, data_len), -229 => wire__crate__api__misc_example__handle_nested_struct_twin_normal_impl(port, ptr, rust_vec_len, data_len), -230 => wire__crate__api__misc_example__handle_string_twin_normal_impl(port, ptr, rust_vec_len, data_len), -231 => wire__crate__api__misc_example__handle_struct_twin_normal_impl(port, ptr, rust_vec_len, data_len), -232 => wire__crate__api__misc_example__handle_vec_u8_twin_normal_impl(port, ptr, rust_vec_len, data_len), -233 => wire__crate__api__misc_example__list_of_primitive_enums_twin_normal_impl(port, ptr, rust_vec_len, data_len), -234 => wire__crate__api__misc_example__positional_arguments_twin_normal_impl(port, ptr, rust_vec_len, data_len), -235 => wire__crate__api__misc_example__test_abc_enum_twin_normal_impl(port, ptr, rust_vec_len, data_len), -236 => wire__crate__api__misc_example__test_struct_with_enum_twin_normal_impl(port, ptr, rust_vec_len, data_len), -249 => wire__crate__api__misc_no_twin_example_a__DeliberateFailSanityCheckTwinNormal_dummy_function_twin_normal_impl(port, ptr, rust_vec_len, data_len), -252 => wire__crate__api__misc_no_twin_example_a__ItemContainerSolutionOneTwinNormal_create_twin_normal_impl(port, ptr, rust_vec_len, data_len), -253 => wire__crate__api__misc_no_twin_example_a__ItemContainerSolutionOneTwinNormal_get_item_contents_twin_normal_impl(port, ptr, rust_vec_len, data_len), -254 => wire__crate__api__misc_no_twin_example_a__StructInMiscNoTwinExampleA_sample_function_a_impl(port, ptr, rust_vec_len, data_len), -255 => wire__crate__api__misc_no_twin_example_a__StructWithImplBlockInMultiFile_method_in_a_impl(port, ptr, rust_vec_len, data_len), -256 => wire__crate__api__misc_no_twin_example_a__StructWithImplBlockInMultiFile_method_in_b_impl(port, ptr, rust_vec_len, data_len), -262 => wire__crate__api__misc_no_twin_example_a__function_with_arg_type_name_override_impl(port, ptr, rust_vec_len, data_len), -263 => wire__crate__api__misc_no_twin_example_a__function_with_custom_name_twin_normal_impl(port, ptr, rust_vec_len, data_len), -264 => wire__crate__api__misc_no_twin_example_a__item_container_solution_two_twin_normal_create_twin_normal_impl(port, ptr, rust_vec_len, data_len), -265 => wire__crate__api__misc_no_twin_example_a__item_container_solution_two_twin_normal_get_item_contents_twin_normal_impl(port, ptr, rust_vec_len, data_len), -266 => wire__crate__api__misc_no_twin_example_a__same_function_name_in_different_files_impl(port, ptr, rust_vec_len, data_len), -268 => wire__crate__api__misc_no_twin_example_a__struct_with_impl_block_in_another_file_f_impl(port, ptr, rust_vec_len, data_len), -269 => wire__crate__api__misc_no_twin_example_b__StructInMiscNoTwinExampleB_get_struct_in_misc_no_twin_example_a_impl(port, ptr, rust_vec_len, data_len), -270 => wire__crate__api__misc_no_twin_example_b__StructInMiscNoTwinExampleB_sample_function_b_impl(port, ptr, rust_vec_len, data_len), -271 => wire__crate__api__misc_no_twin_example_b__same_function_name_in_different_files_impl(port, ptr, rust_vec_len, data_len), -272 => wire__crate__api__misc_type__empty_struct_twin_normal_impl(port, ptr, rust_vec_len, data_len), -273 => wire__crate__api__misc_type__func_return_unit_twin_normal_impl(port, ptr, rust_vec_len, data_len), -274 => wire__crate__api__misc_type__handle_list_of_struct_twin_normal_impl(port, ptr, rust_vec_len, data_len), -275 => wire__crate__api__misc_type__handle_string_list_twin_normal_impl(port, ptr, rust_vec_len, data_len), -276 => wire__crate__api__newtype_pattern__handle_newtype_twin_normal_impl(port, ptr, rust_vec_len, data_len), -277 => wire__crate__api__optional__handle_increment_boxed_optional_twin_normal_impl(port, ptr, rust_vec_len, data_len), -278 => wire__crate__api__optional__handle_option_box_arguments_twin_normal_impl(port, ptr, rust_vec_len, data_len), -279 => wire__crate__api__optional__handle_optional_increment_twin_normal_impl(port, ptr, rust_vec_len, data_len), -280 => wire__crate__api__optional__handle_optional_return_twin_normal_impl(port, ptr, rust_vec_len, data_len), -281 => wire__crate__api__optional__handle_optional_struct_twin_normal_impl(port, ptr, rust_vec_len, data_len), -282 => wire__crate__api__optional__handle_vec_of_opts_twin_normal_impl(port, ptr, rust_vec_len, data_len), -283 => wire__crate__api__optional_primitive_misc__primitive_optional_types_twin_normal_impl(port, ptr, rust_vec_len, data_len), -284 => wire__crate__api__ownership__borrow_i32_twin_normal_impl(port, ptr, rust_vec_len, data_len), -285 => wire__crate__api__ownership__borrow_slice_string_twin_normal_impl(port, ptr, rust_vec_len, data_len), -286 => wire__crate__api__ownership__borrow_slice_u8_twin_normal_impl(port, ptr, rust_vec_len, data_len), -287 => wire__crate__api__ownership__borrow_str_twin_normal_impl(port, ptr, rust_vec_len, data_len), -288 => wire__crate__api__ownership__borrow_string_twin_normal_impl(port, ptr, rust_vec_len, data_len), -289 => wire__crate__api__ownership__borrow_struct_twin_normal_impl(port, ptr, rust_vec_len, data_len), -290 => wire__crate__api__primitive_list_misc__handle_vec_of_primitive_twin_normal_impl(port, ptr, rust_vec_len, data_len), -291 => wire__crate__api__primitive_misc__primitive_types_twin_normal_impl(port, ptr, rust_vec_len, data_len), -292 => wire__crate__api__primitive_misc__primitive_u32_twin_normal_impl(port, ptr, rust_vec_len, data_len), -293 => wire__crate__api__proxy__MyAudioParamTwinNormal_create_twin_normal_impl(port, ptr, rust_vec_len, data_len), -294 => wire__crate__api__proxy__MyAudioParamTwinNormal_my_method_twin_normal_impl(port, ptr, rust_vec_len, data_len), -295 => wire__crate__api__proxy__MyNodeTwinNormal_create_twin_normal_impl(port, ptr, rust_vec_len, data_len), -298 => wire__crate__api__pseudo_manual__array_twin_rust_async__boxed_blob_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -299 => wire__crate__api__pseudo_manual__array_twin_rust_async__func_test_id_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -300 => wire__crate__api__pseudo_manual__array_twin_rust_async__get_array_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -301 => wire__crate__api__pseudo_manual__array_twin_rust_async__get_complex_array_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -302 => wire__crate__api__pseudo_manual__array_twin_rust_async__last_number_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -303 => wire__crate__api__pseudo_manual__array_twin_rust_async__nested_id_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -304 => wire__crate__api__pseudo_manual__array_twin_rust_async__new_msgid_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -305 => wire__crate__api__pseudo_manual__array_twin_rust_async__return_boxed_feed_id_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -306 => wire__crate__api__pseudo_manual__array_twin_rust_async__return_boxed_raw_feed_id_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -307 => wire__crate__api__pseudo_manual__array_twin_rust_async__use_boxed_blob_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -308 => wire__crate__api__pseudo_manual__array_twin_rust_async__use_msgid_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -320 => wire__crate__api__pseudo_manual__attribute_twin_rust_async__handle_customized_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -321 => wire__crate__api__pseudo_manual__attribute_twin_rust_async__next_user_id_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -324 => wire__crate__api__pseudo_manual__basic__example_basic_type_basic_general_enum_twin_normal_twin_normal_impl(port, ptr, rust_vec_len, data_len), -325 => wire__crate__api__pseudo_manual__basic__example_basic_type_basic_primitive_enum_twin_normal_twin_normal_impl(port, ptr, rust_vec_len, data_len), -326 => wire__crate__api__pseudo_manual__basic__example_basic_type_basic_struct_twin_normal_twin_normal_impl(port, ptr, rust_vec_len, data_len), -327 => wire__crate__api__pseudo_manual__basic__example_basic_type_bool_twin_normal_impl(port, ptr, rust_vec_len, data_len), -328 => wire__crate__api__pseudo_manual__basic__example_basic_type_bytes_twin_normal_impl(port, ptr, rust_vec_len, data_len), -329 => wire__crate__api__pseudo_manual__basic__example_basic_type_f32_twin_normal_impl(port, ptr, rust_vec_len, data_len), -330 => wire__crate__api__pseudo_manual__basic__example_basic_type_f64_twin_normal_impl(port, ptr, rust_vec_len, data_len), -331 => wire__crate__api__pseudo_manual__basic__example_basic_type_i128_twin_normal_impl(port, ptr, rust_vec_len, data_len), -332 => wire__crate__api__pseudo_manual__basic__example_basic_type_i16_twin_normal_impl(port, ptr, rust_vec_len, data_len), -333 => wire__crate__api__pseudo_manual__basic__example_basic_type_i32_twin_normal_impl(port, ptr, rust_vec_len, data_len), -334 => wire__crate__api__pseudo_manual__basic__example_basic_type_i64_twin_normal_impl(port, ptr, rust_vec_len, data_len), -335 => wire__crate__api__pseudo_manual__basic__example_basic_type_i8_twin_normal_impl(port, ptr, rust_vec_len, data_len), -336 => wire__crate__api__pseudo_manual__basic__example_basic_type_isize_twin_normal_impl(port, ptr, rust_vec_len, data_len), -337 => wire__crate__api__pseudo_manual__basic__example_basic_type_string_twin_normal_impl(port, ptr, rust_vec_len, data_len), -338 => wire__crate__api__pseudo_manual__basic__example_basic_type_u128_twin_normal_impl(port, ptr, rust_vec_len, data_len), -339 => wire__crate__api__pseudo_manual__basic__example_basic_type_u16_twin_normal_impl(port, ptr, rust_vec_len, data_len), -340 => wire__crate__api__pseudo_manual__basic__example_basic_type_u32_twin_normal_impl(port, ptr, rust_vec_len, data_len), -341 => wire__crate__api__pseudo_manual__basic__example_basic_type_u64_twin_normal_impl(port, ptr, rust_vec_len, data_len), -342 => wire__crate__api__pseudo_manual__basic__example_basic_type_u8_twin_normal_impl(port, ptr, rust_vec_len, data_len), -343 => wire__crate__api__pseudo_manual__basic__example_basic_type_usize_twin_normal_impl(port, ptr, rust_vec_len, data_len), -344 => wire__crate__api__pseudo_manual__basic_list__example_basic_list_type_basic_general_enum_twin_normal_twin_normal_impl(port, ptr, rust_vec_len, data_len), -345 => wire__crate__api__pseudo_manual__basic_list__example_basic_list_type_basic_primitive_enum_twin_normal_twin_normal_impl(port, ptr, rust_vec_len, data_len), -346 => wire__crate__api__pseudo_manual__basic_list__example_basic_list_type_basic_struct_twin_normal_twin_normal_impl(port, ptr, rust_vec_len, data_len), -347 => wire__crate__api__pseudo_manual__basic_list__example_basic_list_type_bool_twin_normal_impl(port, ptr, rust_vec_len, data_len), -348 => wire__crate__api__pseudo_manual__basic_list__example_basic_list_type_bytes_twin_normal_impl(port, ptr, rust_vec_len, data_len), -349 => wire__crate__api__pseudo_manual__basic_list__example_basic_list_type_f32_twin_normal_impl(port, ptr, rust_vec_len, data_len), -350 => wire__crate__api__pseudo_manual__basic_list__example_basic_list_type_f64_twin_normal_impl(port, ptr, rust_vec_len, data_len), -351 => wire__crate__api__pseudo_manual__basic_list__example_basic_list_type_i16_twin_normal_impl(port, ptr, rust_vec_len, data_len), -352 => wire__crate__api__pseudo_manual__basic_list__example_basic_list_type_i32_twin_normal_impl(port, ptr, rust_vec_len, data_len), -353 => wire__crate__api__pseudo_manual__basic_list__example_basic_list_type_i64_twin_normal_impl(port, ptr, rust_vec_len, data_len), -354 => wire__crate__api__pseudo_manual__basic_list__example_basic_list_type_i8_twin_normal_impl(port, ptr, rust_vec_len, data_len), -355 => wire__crate__api__pseudo_manual__basic_list__example_basic_list_type_string_twin_normal_impl(port, ptr, rust_vec_len, data_len), -356 => wire__crate__api__pseudo_manual__basic_list__example_basic_list_type_u16_twin_normal_impl(port, ptr, rust_vec_len, data_len), -357 => wire__crate__api__pseudo_manual__basic_list__example_basic_list_type_u32_twin_normal_impl(port, ptr, rust_vec_len, data_len), -358 => wire__crate__api__pseudo_manual__basic_list__example_basic_list_type_u64_twin_normal_impl(port, ptr, rust_vec_len, data_len), -359 => wire__crate__api__pseudo_manual__basic_list__example_basic_list_type_u8_twin_normal_impl(port, ptr, rust_vec_len, data_len), -360 => wire__crate__api__pseudo_manual__basic_list_twin_rust_async__example_basic_list_type_basic_general_enum_twin_rust_async_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -361 => wire__crate__api__pseudo_manual__basic_list_twin_rust_async__example_basic_list_type_basic_primitive_enum_twin_rust_async_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -362 => wire__crate__api__pseudo_manual__basic_list_twin_rust_async__example_basic_list_type_basic_struct_twin_rust_async_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -363 => wire__crate__api__pseudo_manual__basic_list_twin_rust_async__example_basic_list_type_bool_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -364 => wire__crate__api__pseudo_manual__basic_list_twin_rust_async__example_basic_list_type_bytes_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -365 => wire__crate__api__pseudo_manual__basic_list_twin_rust_async__example_basic_list_type_f32_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -366 => wire__crate__api__pseudo_manual__basic_list_twin_rust_async__example_basic_list_type_f64_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -367 => wire__crate__api__pseudo_manual__basic_list_twin_rust_async__example_basic_list_type_i16_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -368 => wire__crate__api__pseudo_manual__basic_list_twin_rust_async__example_basic_list_type_i32_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -369 => wire__crate__api__pseudo_manual__basic_list_twin_rust_async__example_basic_list_type_i64_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -370 => wire__crate__api__pseudo_manual__basic_list_twin_rust_async__example_basic_list_type_i8_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -371 => wire__crate__api__pseudo_manual__basic_list_twin_rust_async__example_basic_list_type_string_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -372 => wire__crate__api__pseudo_manual__basic_list_twin_rust_async__example_basic_list_type_u16_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -373 => wire__crate__api__pseudo_manual__basic_list_twin_rust_async__example_basic_list_type_u32_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -374 => wire__crate__api__pseudo_manual__basic_list_twin_rust_async__example_basic_list_type_u64_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -375 => wire__crate__api__pseudo_manual__basic_list_twin_rust_async__example_basic_list_type_u8_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -392 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_basic_general_enum_twin_normal_twin_normal_impl(port, ptr, rust_vec_len, data_len), -393 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_basic_primitive_enum_twin_normal_twin_normal_impl(port, ptr, rust_vec_len, data_len), -394 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_basic_struct_twin_normal_twin_normal_impl(port, ptr, rust_vec_len, data_len), -395 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_bool_twin_normal_impl(port, ptr, rust_vec_len, data_len), -396 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_bytes_twin_normal_impl(port, ptr, rust_vec_len, data_len), -397 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_f32_twin_normal_impl(port, ptr, rust_vec_len, data_len), -398 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_f64_twin_normal_impl(port, ptr, rust_vec_len, data_len), -399 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_i128_twin_normal_impl(port, ptr, rust_vec_len, data_len), -400 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_i16_twin_normal_impl(port, ptr, rust_vec_len, data_len), -401 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_i32_twin_normal_impl(port, ptr, rust_vec_len, data_len), -402 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_i64_twin_normal_impl(port, ptr, rust_vec_len, data_len), -403 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_i8_twin_normal_impl(port, ptr, rust_vec_len, data_len), -404 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_isize_twin_normal_impl(port, ptr, rust_vec_len, data_len), -405 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_string_twin_normal_impl(port, ptr, rust_vec_len, data_len), -406 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_u128_twin_normal_impl(port, ptr, rust_vec_len, data_len), -407 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_u16_twin_normal_impl(port, ptr, rust_vec_len, data_len), -408 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_u32_twin_normal_impl(port, ptr, rust_vec_len, data_len), -409 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_u64_twin_normal_impl(port, ptr, rust_vec_len, data_len), -410 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_u8_twin_normal_impl(port, ptr, rust_vec_len, data_len), -411 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_usize_twin_normal_impl(port, ptr, rust_vec_len, data_len), -412 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_basic_general_enum_twin_rust_async_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -413 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_basic_primitive_enum_twin_rust_async_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -414 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_basic_struct_twin_rust_async_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -415 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_bool_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -416 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_bytes_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -417 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_f32_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -418 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_f64_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -419 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_i128_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -420 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_i16_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -421 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_i32_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -422 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_i64_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -423 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_i8_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -424 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_isize_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -425 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_string_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -426 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_u128_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -427 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_u16_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -428 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_u32_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -429 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_u64_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -430 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_u8_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -431 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_usize_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -452 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_basic_general_enum_twin_normal_twin_normal_impl(port, ptr, rust_vec_len, data_len), -453 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_basic_primitive_enum_twin_normal_twin_normal_impl(port, ptr, rust_vec_len, data_len), -454 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_basic_struct_twin_normal_twin_normal_impl(port, ptr, rust_vec_len, data_len), -455 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_bool_twin_normal_impl(port, ptr, rust_vec_len, data_len), -456 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_bytes_twin_normal_impl(port, ptr, rust_vec_len, data_len), -457 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_f32_twin_normal_impl(port, ptr, rust_vec_len, data_len), -458 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_f64_twin_normal_impl(port, ptr, rust_vec_len, data_len), -459 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_i128_twin_normal_impl(port, ptr, rust_vec_len, data_len), -460 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_i16_twin_normal_impl(port, ptr, rust_vec_len, data_len), -461 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_i32_twin_normal_impl(port, ptr, rust_vec_len, data_len), -462 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_i64_twin_normal_impl(port, ptr, rust_vec_len, data_len), -463 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_i8_twin_normal_impl(port, ptr, rust_vec_len, data_len), -464 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_isize_twin_normal_impl(port, ptr, rust_vec_len, data_len), -465 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_string_twin_normal_impl(port, ptr, rust_vec_len, data_len), -466 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_u128_twin_normal_impl(port, ptr, rust_vec_len, data_len), -467 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_u16_twin_normal_impl(port, ptr, rust_vec_len, data_len), -468 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_u32_twin_normal_impl(port, ptr, rust_vec_len, data_len), -469 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_u64_twin_normal_impl(port, ptr, rust_vec_len, data_len), -470 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_u8_twin_normal_impl(port, ptr, rust_vec_len, data_len), -471 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_usize_twin_normal_impl(port, ptr, rust_vec_len, data_len), -472 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_basic_general_enum_twin_rust_async_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -473 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_basic_primitive_enum_twin_rust_async_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -474 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_basic_struct_twin_rust_async_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -475 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_bool_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -476 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_bytes_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -477 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_f32_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -478 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_f64_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -479 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_i128_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -480 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_i16_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -481 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_i32_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -482 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_i64_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -483 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_i8_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -484 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_isize_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -485 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_string_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -486 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_u128_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -487 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_u16_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -488 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_u32_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -489 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_u64_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -490 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_u8_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -491 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_usize_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -512 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_basic_general_enum_twin_rust_async_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -513 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_basic_primitive_enum_twin_rust_async_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -514 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_basic_struct_twin_rust_async_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -515 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_bool_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -516 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_bytes_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -517 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_f32_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -518 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_f64_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -519 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_i128_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -520 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_i16_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -521 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_i32_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -522 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_i64_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -523 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_i8_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -524 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_isize_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -525 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_string_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -526 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_u128_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -527 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_u16_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -528 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_u32_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -529 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_u64_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -530 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_u8_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -531 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_usize_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -552 => wire__crate__api__pseudo_manual__benchmark_api__benchmark_binary_tree_input_json_twin_normal_impl(port, ptr, rust_vec_len, data_len), -553 => wire__crate__api__pseudo_manual__benchmark_api__benchmark_binary_tree_input_protobuf_twin_normal_impl(port, ptr, rust_vec_len, data_len), -554 => wire__crate__api__pseudo_manual__benchmark_api__benchmark_binary_tree_input_twin_normal_impl(port, ptr, rust_vec_len, data_len), -555 => wire__crate__api__pseudo_manual__benchmark_api__benchmark_binary_tree_output_json_twin_normal_impl(port, ptr, rust_vec_len, data_len), -556 => wire__crate__api__pseudo_manual__benchmark_api__benchmark_binary_tree_output_protobuf_twin_normal_impl(port, ptr, rust_vec_len, data_len), -557 => wire__crate__api__pseudo_manual__benchmark_api__benchmark_binary_tree_output_twin_normal_impl(port, ptr, rust_vec_len, data_len), -558 => wire__crate__api__pseudo_manual__benchmark_api__benchmark_blob_input_json_twin_normal_impl(port, ptr, rust_vec_len, data_len), -559 => wire__crate__api__pseudo_manual__benchmark_api__benchmark_blob_input_protobuf_twin_normal_impl(port, ptr, rust_vec_len, data_len), -560 => wire__crate__api__pseudo_manual__benchmark_api__benchmark_blob_input_twin_normal_impl(port, ptr, rust_vec_len, data_len), -561 => wire__crate__api__pseudo_manual__benchmark_api__benchmark_blob_output_json_twin_normal_impl(port, ptr, rust_vec_len, data_len), -562 => wire__crate__api__pseudo_manual__benchmark_api__benchmark_blob_output_protobuf_twin_normal_impl(port, ptr, rust_vec_len, data_len), -563 => wire__crate__api__pseudo_manual__benchmark_api__benchmark_blob_output_twin_normal_impl(port, ptr, rust_vec_len, data_len), -564 => wire__crate__api__pseudo_manual__benchmark_api__benchmark_input_bytes_twin_normal_impl(port, ptr, rust_vec_len, data_len), -565 => wire__crate__api__pseudo_manual__benchmark_api__benchmark_output_bytes_twin_normal_impl(port, ptr, rust_vec_len, data_len), -566 => wire__crate__api__pseudo_manual__benchmark_api__benchmark_void_twin_normal_impl(port, ptr, rust_vec_len, data_len), -567 => wire__crate__api__pseudo_manual__benchmark_api_twin_rust_async__benchmark_binary_tree_input_json_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -568 => wire__crate__api__pseudo_manual__benchmark_api_twin_rust_async__benchmark_binary_tree_input_protobuf_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -569 => wire__crate__api__pseudo_manual__benchmark_api_twin_rust_async__benchmark_binary_tree_input_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -570 => wire__crate__api__pseudo_manual__benchmark_api_twin_rust_async__benchmark_binary_tree_output_json_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -571 => wire__crate__api__pseudo_manual__benchmark_api_twin_rust_async__benchmark_binary_tree_output_protobuf_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -572 => wire__crate__api__pseudo_manual__benchmark_api_twin_rust_async__benchmark_binary_tree_output_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -573 => wire__crate__api__pseudo_manual__benchmark_api_twin_rust_async__benchmark_blob_input_json_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -574 => wire__crate__api__pseudo_manual__benchmark_api_twin_rust_async__benchmark_blob_input_protobuf_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -575 => wire__crate__api__pseudo_manual__benchmark_api_twin_rust_async__benchmark_blob_input_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -576 => wire__crate__api__pseudo_manual__benchmark_api_twin_rust_async__benchmark_blob_output_json_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -577 => wire__crate__api__pseudo_manual__benchmark_api_twin_rust_async__benchmark_blob_output_protobuf_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -578 => wire__crate__api__pseudo_manual__benchmark_api_twin_rust_async__benchmark_blob_output_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -579 => wire__crate__api__pseudo_manual__benchmark_api_twin_rust_async__benchmark_input_bytes_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -580 => wire__crate__api__pseudo_manual__benchmark_api_twin_rust_async__benchmark_output_bytes_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -581 => wire__crate__api__pseudo_manual__benchmark_api_twin_rust_async__benchmark_void_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -597 => wire__crate__api__pseudo_manual__chrono_type_twin_rust_async__datetime_local_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -598 => wire__crate__api__pseudo_manual__chrono_type_twin_rust_async__datetime_utc_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -599 => wire__crate__api__pseudo_manual__chrono_type_twin_rust_async__duration_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -600 => wire__crate__api__pseudo_manual__chrono_type_twin_rust_async__handle_durations_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -601 => wire__crate__api__pseudo_manual__chrono_type_twin_rust_async__handle_timestamps_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -602 => wire__crate__api__pseudo_manual__chrono_type_twin_rust_async__how_long_does_it_take_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -603 => wire__crate__api__pseudo_manual__chrono_type_twin_rust_async__naivedatetime_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -604 => wire__crate__api__pseudo_manual__chrono_type_twin_rust_async__optional_empty_datetime_utc_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -605 => wire__crate__api__pseudo_manual__chrono_type_twin_rust_async__test_chrono_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -606 => wire__crate__api__pseudo_manual__chrono_type_twin_rust_async__test_precise_chrono_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -617 => wire__crate__api__pseudo_manual__comment_twin_rust_async__function_with_comments_slash_star_star_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -618 => wire__crate__api__pseudo_manual__comment_twin_rust_async__function_with_comments_triple_slash_multi_line_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -619 => wire__crate__api__pseudo_manual__comment_twin_rust_async__function_with_comments_triple_slash_single_line_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -620 => wire__crate__api__pseudo_manual__comment_twin_rust_async__struct_with_comments_twin_rust_async_instance_method_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -621 => wire__crate__api__pseudo_manual__comment_twin_rust_async__struct_with_comments_twin_rust_async_static_method_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -627 => wire__crate__api__pseudo_manual__dart_fn_twin_rust_async__rust_call_dart_loopback_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -628 => wire__crate__api__pseudo_manual__dart_fn_twin_rust_async__rust_call_dart_multi_times_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -629 => wire__crate__api__pseudo_manual__dart_fn_twin_rust_async__rust_call_dart_one_arg_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -630 => wire__crate__api__pseudo_manual__dart_fn_twin_rust_async__rust_call_dart_return_result_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -631 => wire__crate__api__pseudo_manual__dart_fn_twin_rust_async__rust_call_dart_return_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -632 => wire__crate__api__pseudo_manual__dart_fn_twin_rust_async__rust_call_dart_simple_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -633 => wire__crate__api__pseudo_manual__dart_fn_twin_rust_async__rust_call_dart_two_args_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -634 => wire__crate__api__pseudo_manual__dart_fn_twin_rust_async__rust_call_dart_with_dart_opaque_arg_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -635 => wire__crate__api__pseudo_manual__dart_fn_twin_rust_async__rust_call_dart_with_dart_opaque_result_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -636 => wire__crate__api__pseudo_manual__dart_opaque_twin_rust_async__async_accept_dart_opaque_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -637 => wire__crate__api__pseudo_manual__dart_opaque_twin_rust_async__clone_dart_opaque_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -638 => wire__crate__api__pseudo_manual__dart_opaque_twin_rust_async__create_enum_dart_opaque_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -639 => wire__crate__api__pseudo_manual__dart_opaque_twin_rust_async__create_nested_dart_opaque_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -640 => wire__crate__api__pseudo_manual__dart_opaque_twin_rust_async__drop_static_dart_opaque_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -641 => wire__crate__api__pseudo_manual__dart_opaque_twin_rust_async__get_enum_dart_opaque_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -642 => wire__crate__api__pseudo_manual__dart_opaque_twin_rust_async__get_nested_dart_opaque_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -643 => wire__crate__api__pseudo_manual__dart_opaque_twin_rust_async__loop_back_array_get_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -644 => wire__crate__api__pseudo_manual__dart_opaque_twin_rust_async__loop_back_array_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -645 => wire__crate__api__pseudo_manual__dart_opaque_twin_rust_async__loop_back_option_get_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -646 => wire__crate__api__pseudo_manual__dart_opaque_twin_rust_async__loop_back_option_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -647 => wire__crate__api__pseudo_manual__dart_opaque_twin_rust_async__loop_back_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -648 => wire__crate__api__pseudo_manual__dart_opaque_twin_rust_async__loop_back_vec_get_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -649 => wire__crate__api__pseudo_manual__dart_opaque_twin_rust_async__loop_back_vec_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -650 => wire__crate__api__pseudo_manual__dart_opaque_twin_rust_async__panic_unwrap_dart_opaque_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -651 => wire__crate__api__pseudo_manual__dart_opaque_twin_rust_async__set_static_dart_opaque_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -668 => wire__crate__api__pseudo_manual__dropping_twin_rust_async__DroppableTwinRustAsync_create_stream_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -669 => wire__crate__api__pseudo_manual__dropping_twin_rust_async__DroppableTwinRustAsync_get_drop_count_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -670 => wire__crate__api__pseudo_manual__dropping_twin_rust_async__DroppableTwinRustAsync_new_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -671 => wire__crate__api__pseudo_manual__dropping_twin_rust_async__DroppableTwinRustAsync_simple_method_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -676 => wire__crate__api__pseudo_manual__enumeration_twin_rust_async__func_enum_simple_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -677 => wire__crate__api__pseudo_manual__enumeration_twin_rust_async__func_enum_with_discriminant_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -678 => wire__crate__api__pseudo_manual__enumeration_twin_rust_async__func_enum_with_item_mixed_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -679 => wire__crate__api__pseudo_manual__enumeration_twin_rust_async__func_enum_with_item_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -680 => wire__crate__api__pseudo_manual__enumeration_twin_rust_async__func_enum_with_item_tuple_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -681 => wire__crate__api__pseudo_manual__enumeration_twin_rust_async__handle_enum_parameter_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -682 => wire__crate__api__pseudo_manual__enumeration_twin_rust_async__handle_enum_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -683 => wire__crate__api__pseudo_manual__enumeration_twin_rust_async__handle_return_enum_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -684 => wire__crate__api__pseudo_manual__enumeration_twin_rust_async__multiply_by_ten_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -685 => wire__crate__api__pseudo_manual__enumeration_twin_rust_async__print_note_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -696 => wire__crate__api__pseudo_manual__event_listener_twin_rust_async__close_event_listener_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -697 => wire__crate__api__pseudo_manual__event_listener_twin_rust_async__create_event_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -698 => wire__crate__api__pseudo_manual__event_listener_twin_rust_async__event_twin_rust_async_as_string_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -699 => wire__crate__api__pseudo_manual__event_listener_twin_rust_async__register_event_listener_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -700 => wire__crate__api__pseudo_manual__exception_twin_rust_async__custom_enum_error_panic_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -701 => wire__crate__api__pseudo_manual__exception_twin_rust_async__custom_enum_error_return_error_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -702 => wire__crate__api__pseudo_manual__exception_twin_rust_async__custom_enum_error_return_ok_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -703 => wire__crate__api__pseudo_manual__exception_twin_rust_async__custom_nested_error_return_error_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -704 => wire__crate__api__pseudo_manual__exception_twin_rust_async__custom_struct_error_return_error_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -705 => wire__crate__api__pseudo_manual__exception_twin_rust_async__custom_struct_twin_rust_async_new_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -706 => wire__crate__api__pseudo_manual__exception_twin_rust_async__custom_struct_twin_rust_async_nonstatic_return_custom_struct_error_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -707 => wire__crate__api__pseudo_manual__exception_twin_rust_async__custom_struct_twin_rust_async_nonstatic_return_custom_struct_ok_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -708 => wire__crate__api__pseudo_manual__exception_twin_rust_async__custom_struct_twin_rust_async_static_return_custom_struct_error_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -709 => wire__crate__api__pseudo_manual__exception_twin_rust_async__custom_struct_twin_rust_async_static_return_custom_struct_ok_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -710 => wire__crate__api__pseudo_manual__exception_twin_rust_async__func_return_error_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -711 => wire__crate__api__pseudo_manual__exception_twin_rust_async__func_type_fallible_panic_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -712 => wire__crate__api__pseudo_manual__exception_twin_rust_async__func_type_infallible_panic_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -713 => wire__crate__api__pseudo_manual__exception_twin_rust_async__panic_with_custom_result_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -714 => wire__crate__api__pseudo_manual__exception_twin_rust_async__return_custom_nested_error_1_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -715 => wire__crate__api__pseudo_manual__exception_twin_rust_async__return_custom_nested_error_1_variant1_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -716 => wire__crate__api__pseudo_manual__exception_twin_rust_async__return_custom_nested_error_2_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -717 => wire__crate__api__pseudo_manual__exception_twin_rust_async__return_custom_struct_error_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -718 => wire__crate__api__pseudo_manual__exception_twin_rust_async__return_custom_struct_ok_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -719 => wire__crate__api__pseudo_manual__exception_twin_rust_async__return_err_custom_error_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -720 => wire__crate__api__pseudo_manual__exception_twin_rust_async__return_error_variant_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -721 => wire__crate__api__pseudo_manual__exception_twin_rust_async__return_ok_custom_error_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -722 => wire__crate__api__pseudo_manual__exception_twin_rust_async__some_struct_twin_rust_async_new_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -723 => wire__crate__api__pseudo_manual__exception_twin_rust_async__some_struct_twin_rust_async_non_static_return_err_custom_error_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -724 => wire__crate__api__pseudo_manual__exception_twin_rust_async__some_struct_twin_rust_async_non_static_return_ok_custom_error_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -725 => wire__crate__api__pseudo_manual__exception_twin_rust_async__some_struct_twin_rust_async_static_return_err_custom_error_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -726 => wire__crate__api__pseudo_manual__exception_twin_rust_async__some_struct_twin_rust_async_static_return_ok_custom_error_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -727 => wire__crate__api__pseudo_manual__exception_twin_rust_async__stream_sink_throw_anyhow_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -728 => wire__crate__api__pseudo_manual__exception_twin_rust_async__throw_anyhow_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -758 => wire__crate__api__pseudo_manual__external_type_in_crate_twin_rust_async__call_new_module_system_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -759 => wire__crate__api__pseudo_manual__external_type_in_crate_twin_rust_async__call_old_module_system_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -760 => wire__crate__api__pseudo_manual__external_type_in_crate_twin_rust_async__use_imported_enum_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -761 => wire__crate__api__pseudo_manual__external_type_in_crate_twin_rust_async__use_imported_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -768 => wire__crate__api__pseudo_manual__impl_trait_twin_sync__StructOneWithTraitTwinSync_simple_trait_fn_receiver_borrow_twin_sync_impl(port, ptr, rust_vec_len, data_len), -769 => wire__crate__api__pseudo_manual__impl_trait_twin_sync__StructOneWithTraitTwinSync_simple_trait_fn_twin_sync_impl(port, ptr, rust_vec_len, data_len), -770 => wire__crate__api__pseudo_manual__impl_trait_twin_sync__StructOneWithTraitTwinSync_simple_trait_fn_with_default_impl_twin_sync_impl(port, ptr, rust_vec_len, data_len), -773 => wire__crate__api__pseudo_manual__impl_trait_twin_sync__StructTwoWithTraitTwinSync_simple_trait_fn_receiver_borrow_twin_sync_impl(port, ptr, rust_vec_len, data_len), -774 => wire__crate__api__pseudo_manual__impl_trait_twin_sync__StructTwoWithTraitTwinSync_simple_trait_fn_twin_sync_impl(port, ptr, rust_vec_len, data_len), -775 => wire__crate__api__pseudo_manual__impl_trait_twin_sync__StructTwoWithTraitTwinSync_simple_trait_fn_with_default_impl_twin_sync_impl(port, ptr, rust_vec_len, data_len), -779 => wire__crate__api__pseudo_manual__map_and_set_twin_rust_async__func_hash_map_i32_i32_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -780 => wire__crate__api__pseudo_manual__map_and_set_twin_rust_async__func_hash_map_string_bytes_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -781 => wire__crate__api__pseudo_manual__map_and_set_twin_rust_async__func_hash_map_string_complex_enum_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -782 => wire__crate__api__pseudo_manual__map_and_set_twin_rust_async__func_hash_map_string_simple_enum_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -783 => wire__crate__api__pseudo_manual__map_and_set_twin_rust_async__func_hash_map_string_string_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -784 => wire__crate__api__pseudo_manual__map_and_set_twin_rust_async__func_hash_map_string_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -785 => wire__crate__api__pseudo_manual__map_and_set_twin_rust_async__func_hash_set_i32_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -786 => wire__crate__api__pseudo_manual__map_and_set_twin_rust_async__func_hash_set_string_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -795 => wire__crate__api__pseudo_manual__method_twin_rust_async__StaticGetterOnlyTwinRustAsync_static_getter_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -796 => wire__crate__api__pseudo_manual__method_twin_rust_async__concatenate_with_twin_rust_async_concatenate_static_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -797 => wire__crate__api__pseudo_manual__method_twin_rust_async__concatenate_with_twin_rust_async_concatenate_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -798 => wire__crate__api__pseudo_manual__method_twin_rust_async__concatenate_with_twin_rust_async_handle_some_static_stream_sink_single_arg_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -799 => wire__crate__api__pseudo_manual__method_twin_rust_async__concatenate_with_twin_rust_async_handle_some_static_stream_sink_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -800 => wire__crate__api__pseudo_manual__method_twin_rust_async__concatenate_with_twin_rust_async_handle_some_stream_sink_at_1_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -801 => wire__crate__api__pseudo_manual__method_twin_rust_async__concatenate_with_twin_rust_async_handle_some_stream_sink_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -802 => wire__crate__api__pseudo_manual__method_twin_rust_async__concatenate_with_twin_rust_async_new_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -803 => wire__crate__api__pseudo_manual__method_twin_rust_async__concatenate_with_twin_rust_async_simple_getter_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -804 => wire__crate__api__pseudo_manual__method_twin_rust_async__get_sum_array_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -805 => wire__crate__api__pseudo_manual__method_twin_rust_async__get_sum_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -806 => wire__crate__api__pseudo_manual__method_twin_rust_async__my_callable_twin_rust_async_call_impl(port, ptr, rust_vec_len, data_len), -807 => wire__crate__api__pseudo_manual__method_twin_rust_async__simple_enum_twin_rust_async_return_self_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -808 => wire__crate__api__pseudo_manual__method_twin_rust_async__simple_enum_twin_rust_async_simple_method_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -809 => wire__crate__api__pseudo_manual__method_twin_rust_async__simple_primitive_enum_twin_rust_async_simple_method_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -810 => wire__crate__api__pseudo_manual__method_twin_rust_async__simple_struct_twin_rust_async_arg_self_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -811 => wire__crate__api__pseudo_manual__method_twin_rust_async__simple_struct_twin_rust_async_receiver_borrow_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -812 => wire__crate__api__pseudo_manual__method_twin_rust_async__simple_struct_twin_rust_async_receiver_own_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -813 => wire__crate__api__pseudo_manual__method_twin_rust_async__simple_struct_twin_rust_async_return_self_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -814 => wire__crate__api__pseudo_manual__method_twin_rust_async__simple_struct_twin_rust_async_vec_self_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -815 => wire__crate__api__pseudo_manual__method_twin_rust_async__static_only_twin_rust_async_static_method_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -816 => wire__crate__api__pseudo_manual__method_twin_rust_async__sum_with_twin_rust_async_sum_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -839 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__app_settings_stream_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -840 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__app_settings_vec_stream_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -841 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__first_number_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -842 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__first_sequence_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -843 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__get_app_settings_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -844 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__get_fallible_app_settings_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -845 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__get_message_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -846 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__is_app_embedded_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -847 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__mirror_array_enum_stream_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -848 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__mirror_enum_stream_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -849 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__mirror_map_enum_stream_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -850 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__mirror_option_enum_stream_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -851 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__mirror_set_enum_stream_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -852 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__mirror_struct_stream_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -853 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__mirror_tuple_stream_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -854 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__mirror_vec_enum_stream_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -855 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__repeat_number_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -856 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__repeat_sequence_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -857 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__test_contains_mirrored_sub_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -858 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__test_fallible_of_raw_string_mirrored_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -859 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__test_hashmap_with_mirrored_value_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -860 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__test_list_of_nested_enums_mirrored_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -861 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__test_list_of_raw_nested_string_mirrored_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -862 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__test_nested_raw_string_mirrored_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -863 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__test_raw_string_enum_mirrored_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -864 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__test_raw_string_mirrored_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -891 => wire__crate__api__pseudo_manual__misc_example_twin_rust_async__handle_big_buffers_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -892 => wire__crate__api__pseudo_manual__misc_example_twin_rust_async__handle_char_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -893 => wire__crate__api__pseudo_manual__misc_example_twin_rust_async__handle_complex_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -894 => wire__crate__api__pseudo_manual__misc_example_twin_rust_async__handle_nested_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -895 => wire__crate__api__pseudo_manual__misc_example_twin_rust_async__handle_string_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -896 => wire__crate__api__pseudo_manual__misc_example_twin_rust_async__handle_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -897 => wire__crate__api__pseudo_manual__misc_example_twin_rust_async__handle_vec_u8_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -898 => wire__crate__api__pseudo_manual__misc_example_twin_rust_async__list_of_primitive_enums_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -899 => wire__crate__api__pseudo_manual__misc_example_twin_rust_async__positional_arguments_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -900 => wire__crate__api__pseudo_manual__misc_example_twin_rust_async__test_abc_enum_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -901 => wire__crate__api__pseudo_manual__misc_example_twin_rust_async__test_struct_with_enum_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -913 => wire__crate__api__pseudo_manual__misc_type_twin_rust_async__empty_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -914 => wire__crate__api__pseudo_manual__misc_type_twin_rust_async__func_return_unit_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -915 => wire__crate__api__pseudo_manual__misc_type_twin_rust_async__handle_list_of_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -916 => wire__crate__api__pseudo_manual__misc_type_twin_rust_async__handle_string_list_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -921 => wire__crate__api__pseudo_manual__newtype_pattern_twin_rust_async__handle_newtype_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -923 => wire__crate__api__pseudo_manual__optional_primitive_misc_twin_rust_async__primitive_optional_types_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -925 => wire__crate__api__pseudo_manual__optional_twin_rust_async__handle_increment_boxed_optional_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -926 => wire__crate__api__pseudo_manual__optional_twin_rust_async__handle_option_box_arguments_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -927 => wire__crate__api__pseudo_manual__optional_twin_rust_async__handle_optional_increment_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -928 => wire__crate__api__pseudo_manual__optional_twin_rust_async__handle_optional_return_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -929 => wire__crate__api__pseudo_manual__optional_twin_rust_async__handle_optional_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -930 => wire__crate__api__pseudo_manual__optional_twin_rust_async__handle_vec_of_opts_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -937 => wire__crate__api__pseudo_manual__ownership_twin_rust_async__borrow_i32_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -938 => wire__crate__api__pseudo_manual__ownership_twin_rust_async__borrow_slice_string_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -939 => wire__crate__api__pseudo_manual__ownership_twin_rust_async__borrow_slice_u8_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -940 => wire__crate__api__pseudo_manual__ownership_twin_rust_async__borrow_str_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -941 => wire__crate__api__pseudo_manual__ownership_twin_rust_async__borrow_string_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -942 => wire__crate__api__pseudo_manual__ownership_twin_rust_async__borrow_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -949 => wire__crate__api__pseudo_manual__primitive_list_misc_twin_rust_async__handle_vec_of_primitive_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -951 => wire__crate__api__pseudo_manual__primitive_misc_twin_rust_async__primitive_types_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -952 => wire__crate__api__pseudo_manual__primitive_misc_twin_rust_async__primitive_u32_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -955 => wire__crate__api__pseudo_manual__raw_string_twin_rust_async__test_more_than_just_one_raw_string_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -956 => wire__crate__api__pseudo_manual__raw_string_twin_rust_async__test_raw_string_item_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -959 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__NonCloneSimpleTwinRustAsync_instance_method_arg_borrow_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -960 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__NonCloneSimpleTwinRustAsync_instance_method_arg_mut_borrow_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -961 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__NonCloneSimpleTwinRustAsync_instance_method_arg_own_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -962 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__NonCloneSimpleTwinRustAsync_instance_method_getter_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -963 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__NonCloneSimpleTwinRustAsync_instance_method_return_own_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -964 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__NonCloneSimpleTwinRustAsync_new_custom_name_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -965 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__NonCloneSimpleTwinRustAsync_new_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -966 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__NonCloneSimpleTwinRustAsync_new_with_result_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -967 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__NonCloneSimpleTwinRustAsync_static_method_arg_borrow_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -968 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__NonCloneSimpleTwinRustAsync_static_method_arg_mut_borrow_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -969 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__NonCloneSimpleTwinRustAsync_static_method_arg_own_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -970 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__NonCloneSimpleTwinRustAsync_static_method_return_own_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -974 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_arg_borrow_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -975 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_arg_mut_borrow_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -976 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_arg_own_and_return_own_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -977 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_arg_own_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -978 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_arg_vec_own_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -979 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_borrow_and_borrow_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -980 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_borrow_and_mut_borrow_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -981 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_callable_arg_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -982 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_callable_return_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -983 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_dummy_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -984 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_enum_arg_borrow_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -985 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_enum_return_own_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -986 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_enum_with_good_and_opaque_arg_own_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -987 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_enum_with_good_and_opaque_return_own_good_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -988 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_enum_with_good_and_opaque_return_own_opaque_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -989 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_explicit_arg_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -990 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_explicit_return_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -991 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_explicit_return_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -992 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_explicit_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -993 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_normal_and_opaque_arg_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -994 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_plus_sign_arg_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -995 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_plus_sign_return_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -996 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_return_opaque_one_and_two_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -997 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_return_opaque_two_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -998 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_return_own_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -999 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_return_vec_own_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1000 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_sleep_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1001 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_stream_sink_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1002 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_struct_with_good_and_opaque_field_arg_own_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1003 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_struct_with_good_and_opaque_field_return_own_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1004 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_two_args_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1051 => wire__crate__api__pseudo_manual__rust_opaque_twin_rust_async__create_array_opaque_enum_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1052 => wire__crate__api__pseudo_manual__rust_opaque_twin_rust_async__create_nested_opaque_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1053 => wire__crate__api__pseudo_manual__rust_opaque_twin_rust_async__create_opaque_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1054 => wire__crate__api__pseudo_manual__rust_opaque_twin_rust_async__create_option_opaque_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1055 => wire__crate__api__pseudo_manual__rust_opaque_twin_rust_async__frb_generator_test_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1056 => wire__crate__api__pseudo_manual__rust_opaque_twin_rust_async__opaque_array_run_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1057 => wire__crate__api__pseudo_manual__rust_opaque_twin_rust_async__opaque_array_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1058 => wire__crate__api__pseudo_manual__rust_opaque_twin_rust_async__opaque_vec_run_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1059 => wire__crate__api__pseudo_manual__rust_opaque_twin_rust_async__opaque_vec_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1060 => wire__crate__api__pseudo_manual__rust_opaque_twin_rust_async__run_enum_opaque_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1061 => wire__crate__api__pseudo_manual__rust_opaque_twin_rust_async__run_nested_opaque_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1062 => wire__crate__api__pseudo_manual__rust_opaque_twin_rust_async__run_non_clone_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1063 => wire__crate__api__pseudo_manual__rust_opaque_twin_rust_async__run_opaque_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1064 => wire__crate__api__pseudo_manual__rust_opaque_twin_rust_async__run_opaque_with_delay_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1065 => wire__crate__api__pseudo_manual__rust_opaque_twin_rust_async__unwrap_rust_opaque_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1081 => wire__crate__api__pseudo_manual__simple_twin_rust_async__simple_adder_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1083 => wire__crate__api__pseudo_manual__stream_twin_rust_async__func_stream_add_value_and_error_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1084 => wire__crate__api__pseudo_manual__stream_twin_rust_async__func_stream_return_error_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1085 => wire__crate__api__pseudo_manual__stream_twin_rust_async__func_stream_return_panic_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1086 => wire__crate__api__pseudo_manual__stream_twin_rust_async__func_stream_sink_arg_position_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1087 => wire__crate__api__pseudo_manual__stream_twin_rust_async__handle_stream_of_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1088 => wire__crate__api__pseudo_manual__stream_twin_rust_async__handle_stream_sink_at_1_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1089 => wire__crate__api__pseudo_manual__stream_twin_rust_async__handle_stream_sink_at_2_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1090 => wire__crate__api__pseudo_manual__stream_twin_rust_async__handle_stream_sink_at_3_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1091 => wire__crate__api__pseudo_manual__stream_twin_rust_async__stream_sink_fixed_sized_primitive_array_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1092 => wire__crate__api__pseudo_manual__stream_twin_rust_async__stream_sink_inside_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1093 => wire__crate__api__pseudo_manual__stream_twin_rust_async__stream_sink_inside_vec_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1094 => wire__crate__api__pseudo_manual__structure_twin_rust_async__func_for_struct_with_dart_keyword_field_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1095 => wire__crate__api__pseudo_manual__structure_twin_rust_async__func_for_struct_with_field_rename_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1096 => wire__crate__api__pseudo_manual__structure_twin_rust_async__func_struct_with_one_field_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1097 => wire__crate__api__pseudo_manual__structure_twin_rust_async__func_struct_with_two_field_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1098 => wire__crate__api__pseudo_manual__structure_twin_rust_async__func_struct_with_zero_field_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1099 => wire__crate__api__pseudo_manual__structure_twin_rust_async__func_tuple_struct_with_one_field_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1100 => wire__crate__api__pseudo_manual__structure_twin_rust_async__func_tuple_struct_with_two_field_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1108 => wire__crate__api__pseudo_manual__tuple_twin_rust_async__test_tuple_2_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1109 => wire__crate__api__pseudo_manual__tuple_twin_rust_async__test_tuple_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1112 => wire__crate__api__pseudo_manual__type_alias_twin_rust_async__handle_type_alias_id_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1113 => wire__crate__api__pseudo_manual__type_alias_twin_rust_async__handle_type_alias_model_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1114 => wire__crate__api__pseudo_manual__type_alias_twin_rust_async__handle_type_nest_alias_id_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1118 => wire__crate__api__pseudo_manual__uuid_type_twin_rust_async__handle_nested_uuids_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1119 => wire__crate__api__pseudo_manual__uuid_type_twin_rust_async__handle_uuid_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1120 => wire__crate__api__pseudo_manual__uuid_type_twin_rust_async__handle_uuids_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), -1124 => wire__crate__api__raw_string__test_more_than_just_one_raw_string_struct_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1125 => wire__crate__api__raw_string__test_raw_string_item_struct_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1126 => wire__crate__api__rust_auto_opaque__NonCloneSimpleTwinNormal_instance_method_arg_borrow_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1127 => wire__crate__api__rust_auto_opaque__NonCloneSimpleTwinNormal_instance_method_arg_mut_borrow_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1128 => wire__crate__api__rust_auto_opaque__NonCloneSimpleTwinNormal_instance_method_arg_own_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1129 => wire__crate__api__rust_auto_opaque__NonCloneSimpleTwinNormal_instance_method_getter_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1130 => wire__crate__api__rust_auto_opaque__NonCloneSimpleTwinNormal_instance_method_return_own_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1131 => wire__crate__api__rust_auto_opaque__NonCloneSimpleTwinNormal_new_custom_name_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1132 => wire__crate__api__rust_auto_opaque__NonCloneSimpleTwinNormal_new_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1133 => wire__crate__api__rust_auto_opaque__NonCloneSimpleTwinNormal_new_with_result_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1134 => wire__crate__api__rust_auto_opaque__NonCloneSimpleTwinNormal_static_method_arg_borrow_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1135 => wire__crate__api__rust_auto_opaque__NonCloneSimpleTwinNormal_static_method_arg_mut_borrow_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1136 => wire__crate__api__rust_auto_opaque__NonCloneSimpleTwinNormal_static_method_arg_own_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1137 => wire__crate__api__rust_auto_opaque__NonCloneSimpleTwinNormal_static_method_return_own_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1141 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_arg_borrow_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1142 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_arg_mut_borrow_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1143 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_arg_own_and_return_own_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1144 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_arg_own_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1145 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_arg_vec_own_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1146 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_borrow_and_borrow_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1147 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_borrow_and_mut_borrow_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1148 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_callable_arg_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1149 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_callable_return_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1150 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_dummy_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1151 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_enum_arg_borrow_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1152 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_enum_return_own_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1153 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_enum_with_good_and_opaque_arg_own_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1154 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_enum_with_good_and_opaque_return_own_good_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1155 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_enum_with_good_and_opaque_return_own_opaque_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1156 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_explicit_arg_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1157 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_explicit_return_struct_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1158 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_explicit_return_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1159 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_explicit_struct_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1160 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_normal_and_opaque_arg_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1161 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_plus_sign_arg_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1162 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_plus_sign_return_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1163 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_return_opaque_one_and_two_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1164 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_return_opaque_two_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1165 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_return_own_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1166 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_return_vec_own_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1167 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_sleep_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1168 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_stream_sink_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1169 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_struct_with_good_and_opaque_field_arg_own_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1170 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_struct_with_good_and_opaque_field_return_own_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1171 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_two_args_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1172 => wire__crate__api__rust_opaque__create_array_opaque_enum_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1173 => wire__crate__api__rust_opaque__create_nested_opaque_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1174 => wire__crate__api__rust_opaque__create_opaque_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1175 => wire__crate__api__rust_opaque__create_option_opaque_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1176 => wire__crate__api__rust_opaque__frb_generator_test_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1177 => wire__crate__api__rust_opaque__opaque_array_run_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1178 => wire__crate__api__rust_opaque__opaque_array_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1179 => wire__crate__api__rust_opaque__opaque_vec_run_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1180 => wire__crate__api__rust_opaque__opaque_vec_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1181 => wire__crate__api__rust_opaque__run_enum_opaque_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1182 => wire__crate__api__rust_opaque__run_nested_opaque_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1183 => wire__crate__api__rust_opaque__run_non_clone_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1184 => wire__crate__api__rust_opaque__run_opaque_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1185 => wire__crate__api__rust_opaque__run_opaque_with_delay_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1186 => wire__crate__api__rust_opaque__unwrap_rust_opaque_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1191 => wire__crate__api__simple__simple_adder_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1192 => wire__crate__api__stream__func_stream_add_value_and_error_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1193 => wire__crate__api__stream__func_stream_return_error_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1194 => wire__crate__api__stream__func_stream_return_panic_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1195 => wire__crate__api__stream__func_stream_sink_arg_position_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1196 => wire__crate__api__stream__handle_stream_of_struct_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1197 => wire__crate__api__stream__handle_stream_sink_at_1_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1198 => wire__crate__api__stream__handle_stream_sink_at_2_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1199 => wire__crate__api__stream__handle_stream_sink_at_3_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1200 => wire__crate__api__stream__stream_sink_fixed_sized_primitive_array_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1201 => wire__crate__api__stream__stream_sink_inside_struct_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1202 => wire__crate__api__stream__stream_sink_inside_vec_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1203 => wire__crate__api__stream_misc__func_stream_realistic_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1204 => wire__crate__api__stream_misc__stream_sink_dart_async_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1205 => wire__crate__api__structure__func_for_struct_with_dart_keyword_field_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1206 => wire__crate__api__structure__func_for_struct_with_field_rename_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1207 => wire__crate__api__structure__func_struct_with_one_field_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1208 => wire__crate__api__structure__func_struct_with_two_field_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1209 => wire__crate__api__structure__func_struct_with_zero_field_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1210 => wire__crate__api__structure__func_tuple_struct_with_one_field_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1211 => wire__crate__api__structure__func_tuple_struct_with_two_field_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1212 => wire__crate__api__tuple__test_tuple_2_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1213 => wire__crate__api__tuple__test_tuple_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1214 => wire__crate__api__type_alias__handle_type_alias_id_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1215 => wire__crate__api__type_alias__handle_type_alias_model_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1216 => wire__crate__api__type_alias__handle_type_nest_alias_id_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1217 => wire__crate__api__uuid_type__handle_nested_uuids_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1218 => wire__crate__api__uuid_type__handle_uuid_twin_normal_impl(port, ptr, rust_vec_len, data_len), -1219 => wire__crate__api__uuid_type__handle_uuids_twin_normal_impl(port, ptr, rust_vec_len, data_len), +170 => wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +171 => wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +172 => wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_arg_generic_lifetime_twin_normal_impl(port, ptr, rust_vec_len, data_len), +173 => wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_compute_nested_type_with_lifetime_twin_normal_impl(port, ptr, rust_vec_len, data_len), +174 => wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +175 => wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinNormalstatic_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +176 => wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_compute_with_multi_arg_having_lifetime_twin_normal_impl(port, ptr, rust_vec_len, data_len), +177 => wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_mut_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +178 => wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +179 => wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal_impl(port, ptr, rust_vec_len, data_len), +180 => wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal_impl(port, ptr, rust_vec_len, data_len), +181 => wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_impl(port, ptr, rust_vec_len, data_len), +182 => wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger_impl(port, ptr, rust_vec_len, data_len), +183 => wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +184 => wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +185 => wire__crate__api__lifetimeable__lt_compute_with_lifetime_function_twin_normal_impl(port, ptr, rust_vec_len, data_len), +186 => wire__crate__api__map_and_set__func_hash_map_i32_i32_twin_normal_impl(port, ptr, rust_vec_len, data_len), +187 => wire__crate__api__map_and_set__func_hash_map_string_bytes_twin_normal_impl(port, ptr, rust_vec_len, data_len), +188 => wire__crate__api__map_and_set__func_hash_map_string_complex_enum_twin_normal_impl(port, ptr, rust_vec_len, data_len), +189 => wire__crate__api__map_and_set__func_hash_map_string_simple_enum_twin_normal_impl(port, ptr, rust_vec_len, data_len), +190 => wire__crate__api__map_and_set__func_hash_map_string_string_twin_normal_impl(port, ptr, rust_vec_len, data_len), +191 => wire__crate__api__map_and_set__func_hash_map_string_struct_twin_normal_impl(port, ptr, rust_vec_len, data_len), +192 => wire__crate__api__map_and_set__func_hash_set_i32_twin_normal_impl(port, ptr, rust_vec_len, data_len), +193 => wire__crate__api__map_and_set__func_hash_set_string_twin_normal_impl(port, ptr, rust_vec_len, data_len), +194 => wire__crate__api__method__StaticGetterOnlyTwinNormal_static_getter_twin_normal_impl(port, ptr, rust_vec_len, data_len), +195 => wire__crate__api__method__concatenate_with_twin_normal_concatenate_static_twin_normal_impl(port, ptr, rust_vec_len, data_len), +196 => wire__crate__api__method__concatenate_with_twin_normal_concatenate_twin_normal_impl(port, ptr, rust_vec_len, data_len), +197 => wire__crate__api__method__concatenate_with_twin_normal_handle_some_static_stream_sink_single_arg_twin_normal_impl(port, ptr, rust_vec_len, data_len), +198 => wire__crate__api__method__concatenate_with_twin_normal_handle_some_static_stream_sink_twin_normal_impl(port, ptr, rust_vec_len, data_len), +199 => wire__crate__api__method__concatenate_with_twin_normal_handle_some_stream_sink_at_1_twin_normal_impl(port, ptr, rust_vec_len, data_len), +200 => wire__crate__api__method__concatenate_with_twin_normal_handle_some_stream_sink_twin_normal_impl(port, ptr, rust_vec_len, data_len), +201 => wire__crate__api__method__concatenate_with_twin_normal_new_twin_normal_impl(port, ptr, rust_vec_len, data_len), +202 => wire__crate__api__method__concatenate_with_twin_normal_simple_getter_twin_normal_impl(port, ptr, rust_vec_len, data_len), +203 => wire__crate__api__method__get_sum_array_twin_normal_impl(port, ptr, rust_vec_len, data_len), +204 => wire__crate__api__method__get_sum_struct_twin_normal_impl(port, ptr, rust_vec_len, data_len), +205 => wire__crate__api__method__my_callable_twin_normal_call_impl(port, ptr, rust_vec_len, data_len), +206 => wire__crate__api__method__simple_enum_twin_normal_return_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +207 => wire__crate__api__method__simple_enum_twin_normal_simple_method_twin_normal_impl(port, ptr, rust_vec_len, data_len), +208 => wire__crate__api__method__simple_primitive_enum_twin_normal_simple_method_twin_normal_impl(port, ptr, rust_vec_len, data_len), +209 => wire__crate__api__method__simple_struct_twin_normal_arg_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +210 => wire__crate__api__method__simple_struct_twin_normal_receiver_borrow_twin_normal_impl(port, ptr, rust_vec_len, data_len), +211 => wire__crate__api__method__simple_struct_twin_normal_receiver_own_twin_normal_impl(port, ptr, rust_vec_len, data_len), +212 => wire__crate__api__method__simple_struct_twin_normal_return_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +213 => wire__crate__api__method__simple_struct_twin_normal_vec_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), +214 => wire__crate__api__method__static_only_twin_normal_static_method_twin_normal_impl(port, ptr, rust_vec_len, data_len), +215 => wire__crate__api__method__sum_with_twin_normal_sum_twin_normal_impl(port, ptr, rust_vec_len, data_len), +216 => wire__crate__api__mirror__app_settings_stream_twin_normal_impl(port, ptr, rust_vec_len, data_len), +217 => wire__crate__api__mirror__app_settings_vec_stream_twin_normal_impl(port, ptr, rust_vec_len, data_len), +218 => wire__crate__api__mirror__first_number_twin_normal_impl(port, ptr, rust_vec_len, data_len), +219 => wire__crate__api__mirror__first_sequence_twin_normal_impl(port, ptr, rust_vec_len, data_len), +220 => wire__crate__api__mirror__get_app_settings_twin_normal_impl(port, ptr, rust_vec_len, data_len), +221 => wire__crate__api__mirror__get_fallible_app_settings_twin_normal_impl(port, ptr, rust_vec_len, data_len), +222 => wire__crate__api__mirror__get_message_twin_normal_impl(port, ptr, rust_vec_len, data_len), +223 => wire__crate__api__mirror__is_app_embedded_twin_normal_impl(port, ptr, rust_vec_len, data_len), +224 => wire__crate__api__mirror__mirror_array_enum_stream_twin_normal_impl(port, ptr, rust_vec_len, data_len), +225 => wire__crate__api__mirror__mirror_enum_stream_twin_normal_impl(port, ptr, rust_vec_len, data_len), +226 => wire__crate__api__mirror__mirror_map_enum_stream_twin_normal_impl(port, ptr, rust_vec_len, data_len), +227 => wire__crate__api__mirror__mirror_option_enum_stream_twin_normal_impl(port, ptr, rust_vec_len, data_len), +228 => wire__crate__api__mirror__mirror_set_enum_stream_twin_normal_impl(port, ptr, rust_vec_len, data_len), +229 => wire__crate__api__mirror__mirror_struct_stream_twin_normal_impl(port, ptr, rust_vec_len, data_len), +230 => wire__crate__api__mirror__mirror_tuple_stream_twin_normal_impl(port, ptr, rust_vec_len, data_len), +231 => wire__crate__api__mirror__mirror_vec_enum_stream_twin_normal_impl(port, ptr, rust_vec_len, data_len), +232 => wire__crate__api__mirror__repeat_number_twin_normal_impl(port, ptr, rust_vec_len, data_len), +233 => wire__crate__api__mirror__repeat_sequence_twin_normal_impl(port, ptr, rust_vec_len, data_len), +234 => wire__crate__api__mirror__test_contains_mirrored_sub_struct_twin_normal_impl(port, ptr, rust_vec_len, data_len), +235 => wire__crate__api__mirror__test_fallible_of_raw_string_mirrored_twin_normal_impl(port, ptr, rust_vec_len, data_len), +236 => wire__crate__api__mirror__test_hashmap_with_mirrored_value_twin_normal_impl(port, ptr, rust_vec_len, data_len), +237 => wire__crate__api__mirror__test_list_of_nested_enums_mirrored_twin_normal_impl(port, ptr, rust_vec_len, data_len), +238 => wire__crate__api__mirror__test_list_of_raw_nested_string_mirrored_twin_normal_impl(port, ptr, rust_vec_len, data_len), +239 => wire__crate__api__mirror__test_nested_raw_string_mirrored_twin_normal_impl(port, ptr, rust_vec_len, data_len), +240 => wire__crate__api__mirror__test_raw_string_enum_mirrored_twin_normal_impl(port, ptr, rust_vec_len, data_len), +241 => wire__crate__api__mirror__test_raw_string_mirrored_twin_normal_impl(port, ptr, rust_vec_len, data_len), +242 => wire__crate__api__misc_example__handle_big_buffers_twin_normal_impl(port, ptr, rust_vec_len, data_len), +243 => wire__crate__api__misc_example__handle_char_twin_normal_impl(port, ptr, rust_vec_len, data_len), +244 => wire__crate__api__misc_example__handle_complex_struct_twin_normal_impl(port, ptr, rust_vec_len, data_len), +245 => wire__crate__api__misc_example__handle_nested_struct_twin_normal_impl(port, ptr, rust_vec_len, data_len), +246 => wire__crate__api__misc_example__handle_string_twin_normal_impl(port, ptr, rust_vec_len, data_len), +247 => wire__crate__api__misc_example__handle_struct_twin_normal_impl(port, ptr, rust_vec_len, data_len), +248 => wire__crate__api__misc_example__handle_vec_u8_twin_normal_impl(port, ptr, rust_vec_len, data_len), +249 => wire__crate__api__misc_example__list_of_primitive_enums_twin_normal_impl(port, ptr, rust_vec_len, data_len), +250 => wire__crate__api__misc_example__positional_arguments_twin_normal_impl(port, ptr, rust_vec_len, data_len), +251 => wire__crate__api__misc_example__test_abc_enum_twin_normal_impl(port, ptr, rust_vec_len, data_len), +252 => wire__crate__api__misc_example__test_struct_with_enum_twin_normal_impl(port, ptr, rust_vec_len, data_len), +265 => wire__crate__api__misc_no_twin_example_a__DeliberateFailSanityCheckTwinNormal_dummy_function_twin_normal_impl(port, ptr, rust_vec_len, data_len), +268 => wire__crate__api__misc_no_twin_example_a__ItemContainerSolutionOneTwinNormal_create_twin_normal_impl(port, ptr, rust_vec_len, data_len), +269 => wire__crate__api__misc_no_twin_example_a__ItemContainerSolutionOneTwinNormal_get_item_contents_twin_normal_impl(port, ptr, rust_vec_len, data_len), +272 => wire__crate__api__misc_no_twin_example_a__StructInMiscNoTwinExampleA_sample_function_a_impl(port, ptr, rust_vec_len, data_len), +273 => wire__crate__api__misc_no_twin_example_a__StructWithImplBlockInMultiFile_method_in_a_impl(port, ptr, rust_vec_len, data_len), +274 => wire__crate__api__misc_no_twin_example_a__StructWithImplBlockInMultiFile_method_in_b_impl(port, ptr, rust_vec_len, data_len), +280 => wire__crate__api__misc_no_twin_example_a__function_with_arg_type_name_override_impl(port, ptr, rust_vec_len, data_len), +281 => wire__crate__api__misc_no_twin_example_a__function_with_custom_name_twin_normal_impl(port, ptr, rust_vec_len, data_len), +282 => wire__crate__api__misc_no_twin_example_a__item_container_solution_two_twin_normal_create_twin_normal_impl(port, ptr, rust_vec_len, data_len), +283 => wire__crate__api__misc_no_twin_example_a__item_container_solution_two_twin_normal_get_item_contents_twin_normal_impl(port, ptr, rust_vec_len, data_len), +284 => wire__crate__api__misc_no_twin_example_a__same_function_name_in_different_files_impl(port, ptr, rust_vec_len, data_len), +286 => wire__crate__api__misc_no_twin_example_a__struct_with_impl_block_in_another_file_f_impl(port, ptr, rust_vec_len, data_len), +287 => wire__crate__api__misc_no_twin_example_b__StructInMiscNoTwinExampleB_get_struct_in_misc_no_twin_example_a_impl(port, ptr, rust_vec_len, data_len), +288 => wire__crate__api__misc_no_twin_example_b__StructInMiscNoTwinExampleB_sample_function_b_impl(port, ptr, rust_vec_len, data_len), +289 => wire__crate__api__misc_no_twin_example_b__same_function_name_in_different_files_impl(port, ptr, rust_vec_len, data_len), +290 => wire__crate__api__misc_type__empty_struct_twin_normal_impl(port, ptr, rust_vec_len, data_len), +291 => wire__crate__api__misc_type__func_return_unit_twin_normal_impl(port, ptr, rust_vec_len, data_len), +292 => wire__crate__api__misc_type__handle_list_of_struct_twin_normal_impl(port, ptr, rust_vec_len, data_len), +293 => wire__crate__api__misc_type__handle_string_list_twin_normal_impl(port, ptr, rust_vec_len, data_len), +294 => wire__crate__api__newtype_pattern__handle_newtype_twin_normal_impl(port, ptr, rust_vec_len, data_len), +295 => wire__crate__api__optional__handle_increment_boxed_optional_twin_normal_impl(port, ptr, rust_vec_len, data_len), +296 => wire__crate__api__optional__handle_option_box_arguments_twin_normal_impl(port, ptr, rust_vec_len, data_len), +297 => wire__crate__api__optional__handle_optional_increment_twin_normal_impl(port, ptr, rust_vec_len, data_len), +298 => wire__crate__api__optional__handle_optional_return_twin_normal_impl(port, ptr, rust_vec_len, data_len), +299 => wire__crate__api__optional__handle_optional_struct_twin_normal_impl(port, ptr, rust_vec_len, data_len), +300 => wire__crate__api__optional__handle_vec_of_opts_twin_normal_impl(port, ptr, rust_vec_len, data_len), +301 => wire__crate__api__optional_primitive_misc__primitive_optional_types_twin_normal_impl(port, ptr, rust_vec_len, data_len), +302 => wire__crate__api__ownership__borrow_i32_twin_normal_impl(port, ptr, rust_vec_len, data_len), +303 => wire__crate__api__ownership__borrow_slice_string_twin_normal_impl(port, ptr, rust_vec_len, data_len), +304 => wire__crate__api__ownership__borrow_slice_u8_twin_normal_impl(port, ptr, rust_vec_len, data_len), +305 => wire__crate__api__ownership__borrow_str_twin_normal_impl(port, ptr, rust_vec_len, data_len), +306 => wire__crate__api__ownership__borrow_string_twin_normal_impl(port, ptr, rust_vec_len, data_len), +307 => wire__crate__api__ownership__borrow_struct_twin_normal_impl(port, ptr, rust_vec_len, data_len), +308 => wire__crate__api__primitive_list_misc__handle_vec_of_primitive_twin_normal_impl(port, ptr, rust_vec_len, data_len), +309 => wire__crate__api__primitive_misc__primitive_types_twin_normal_impl(port, ptr, rust_vec_len, data_len), +310 => wire__crate__api__primitive_misc__primitive_u32_twin_normal_impl(port, ptr, rust_vec_len, data_len), +311 => wire__crate__api__proxy__MyAudioParamTwinNormal_create_twin_normal_impl(port, ptr, rust_vec_len, data_len), +312 => wire__crate__api__proxy__MyAudioParamTwinNormal_my_method_twin_normal_impl(port, ptr, rust_vec_len, data_len), +313 => wire__crate__api__proxy__MyNodeTwinNormal_create_twin_normal_impl(port, ptr, rust_vec_len, data_len), +316 => wire__crate__api__pseudo_manual__array_twin_rust_async__boxed_blob_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +317 => wire__crate__api__pseudo_manual__array_twin_rust_async__func_test_id_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +318 => wire__crate__api__pseudo_manual__array_twin_rust_async__get_array_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +319 => wire__crate__api__pseudo_manual__array_twin_rust_async__get_complex_array_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +320 => wire__crate__api__pseudo_manual__array_twin_rust_async__last_number_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +321 => wire__crate__api__pseudo_manual__array_twin_rust_async__nested_id_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +322 => wire__crate__api__pseudo_manual__array_twin_rust_async__new_msgid_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +323 => wire__crate__api__pseudo_manual__array_twin_rust_async__return_boxed_feed_id_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +324 => wire__crate__api__pseudo_manual__array_twin_rust_async__return_boxed_raw_feed_id_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +325 => wire__crate__api__pseudo_manual__array_twin_rust_async__use_boxed_blob_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +326 => wire__crate__api__pseudo_manual__array_twin_rust_async__use_msgid_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +338 => wire__crate__api__pseudo_manual__attribute_twin_rust_async__handle_customized_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +339 => wire__crate__api__pseudo_manual__attribute_twin_rust_async__next_user_id_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +342 => wire__crate__api__pseudo_manual__basic__example_basic_type_basic_general_enum_twin_normal_twin_normal_impl(port, ptr, rust_vec_len, data_len), +343 => wire__crate__api__pseudo_manual__basic__example_basic_type_basic_primitive_enum_twin_normal_twin_normal_impl(port, ptr, rust_vec_len, data_len), +344 => wire__crate__api__pseudo_manual__basic__example_basic_type_basic_struct_twin_normal_twin_normal_impl(port, ptr, rust_vec_len, data_len), +345 => wire__crate__api__pseudo_manual__basic__example_basic_type_bool_twin_normal_impl(port, ptr, rust_vec_len, data_len), +346 => wire__crate__api__pseudo_manual__basic__example_basic_type_bytes_twin_normal_impl(port, ptr, rust_vec_len, data_len), +347 => wire__crate__api__pseudo_manual__basic__example_basic_type_f32_twin_normal_impl(port, ptr, rust_vec_len, data_len), +348 => wire__crate__api__pseudo_manual__basic__example_basic_type_f64_twin_normal_impl(port, ptr, rust_vec_len, data_len), +349 => wire__crate__api__pseudo_manual__basic__example_basic_type_i128_twin_normal_impl(port, ptr, rust_vec_len, data_len), +350 => wire__crate__api__pseudo_manual__basic__example_basic_type_i16_twin_normal_impl(port, ptr, rust_vec_len, data_len), +351 => wire__crate__api__pseudo_manual__basic__example_basic_type_i32_twin_normal_impl(port, ptr, rust_vec_len, data_len), +352 => wire__crate__api__pseudo_manual__basic__example_basic_type_i64_twin_normal_impl(port, ptr, rust_vec_len, data_len), +353 => wire__crate__api__pseudo_manual__basic__example_basic_type_i8_twin_normal_impl(port, ptr, rust_vec_len, data_len), +354 => wire__crate__api__pseudo_manual__basic__example_basic_type_isize_twin_normal_impl(port, ptr, rust_vec_len, data_len), +355 => wire__crate__api__pseudo_manual__basic__example_basic_type_string_twin_normal_impl(port, ptr, rust_vec_len, data_len), +356 => wire__crate__api__pseudo_manual__basic__example_basic_type_u128_twin_normal_impl(port, ptr, rust_vec_len, data_len), +357 => wire__crate__api__pseudo_manual__basic__example_basic_type_u16_twin_normal_impl(port, ptr, rust_vec_len, data_len), +358 => wire__crate__api__pseudo_manual__basic__example_basic_type_u32_twin_normal_impl(port, ptr, rust_vec_len, data_len), +359 => wire__crate__api__pseudo_manual__basic__example_basic_type_u64_twin_normal_impl(port, ptr, rust_vec_len, data_len), +360 => wire__crate__api__pseudo_manual__basic__example_basic_type_u8_twin_normal_impl(port, ptr, rust_vec_len, data_len), +361 => wire__crate__api__pseudo_manual__basic__example_basic_type_usize_twin_normal_impl(port, ptr, rust_vec_len, data_len), +362 => wire__crate__api__pseudo_manual__basic_list__example_basic_list_type_basic_general_enum_twin_normal_twin_normal_impl(port, ptr, rust_vec_len, data_len), +363 => wire__crate__api__pseudo_manual__basic_list__example_basic_list_type_basic_primitive_enum_twin_normal_twin_normal_impl(port, ptr, rust_vec_len, data_len), +364 => wire__crate__api__pseudo_manual__basic_list__example_basic_list_type_basic_struct_twin_normal_twin_normal_impl(port, ptr, rust_vec_len, data_len), +365 => wire__crate__api__pseudo_manual__basic_list__example_basic_list_type_bool_twin_normal_impl(port, ptr, rust_vec_len, data_len), +366 => wire__crate__api__pseudo_manual__basic_list__example_basic_list_type_bytes_twin_normal_impl(port, ptr, rust_vec_len, data_len), +367 => wire__crate__api__pseudo_manual__basic_list__example_basic_list_type_f32_twin_normal_impl(port, ptr, rust_vec_len, data_len), +368 => wire__crate__api__pseudo_manual__basic_list__example_basic_list_type_f64_twin_normal_impl(port, ptr, rust_vec_len, data_len), +369 => wire__crate__api__pseudo_manual__basic_list__example_basic_list_type_i16_twin_normal_impl(port, ptr, rust_vec_len, data_len), +370 => wire__crate__api__pseudo_manual__basic_list__example_basic_list_type_i32_twin_normal_impl(port, ptr, rust_vec_len, data_len), +371 => wire__crate__api__pseudo_manual__basic_list__example_basic_list_type_i64_twin_normal_impl(port, ptr, rust_vec_len, data_len), +372 => wire__crate__api__pseudo_manual__basic_list__example_basic_list_type_i8_twin_normal_impl(port, ptr, rust_vec_len, data_len), +373 => wire__crate__api__pseudo_manual__basic_list__example_basic_list_type_string_twin_normal_impl(port, ptr, rust_vec_len, data_len), +374 => wire__crate__api__pseudo_manual__basic_list__example_basic_list_type_u16_twin_normal_impl(port, ptr, rust_vec_len, data_len), +375 => wire__crate__api__pseudo_manual__basic_list__example_basic_list_type_u32_twin_normal_impl(port, ptr, rust_vec_len, data_len), +376 => wire__crate__api__pseudo_manual__basic_list__example_basic_list_type_u64_twin_normal_impl(port, ptr, rust_vec_len, data_len), +377 => wire__crate__api__pseudo_manual__basic_list__example_basic_list_type_u8_twin_normal_impl(port, ptr, rust_vec_len, data_len), +378 => wire__crate__api__pseudo_manual__basic_list_twin_rust_async__example_basic_list_type_basic_general_enum_twin_rust_async_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +379 => wire__crate__api__pseudo_manual__basic_list_twin_rust_async__example_basic_list_type_basic_primitive_enum_twin_rust_async_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +380 => wire__crate__api__pseudo_manual__basic_list_twin_rust_async__example_basic_list_type_basic_struct_twin_rust_async_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +381 => wire__crate__api__pseudo_manual__basic_list_twin_rust_async__example_basic_list_type_bool_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +382 => wire__crate__api__pseudo_manual__basic_list_twin_rust_async__example_basic_list_type_bytes_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +383 => wire__crate__api__pseudo_manual__basic_list_twin_rust_async__example_basic_list_type_f32_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +384 => wire__crate__api__pseudo_manual__basic_list_twin_rust_async__example_basic_list_type_f64_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +385 => wire__crate__api__pseudo_manual__basic_list_twin_rust_async__example_basic_list_type_i16_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +386 => wire__crate__api__pseudo_manual__basic_list_twin_rust_async__example_basic_list_type_i32_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +387 => wire__crate__api__pseudo_manual__basic_list_twin_rust_async__example_basic_list_type_i64_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +388 => wire__crate__api__pseudo_manual__basic_list_twin_rust_async__example_basic_list_type_i8_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +389 => wire__crate__api__pseudo_manual__basic_list_twin_rust_async__example_basic_list_type_string_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +390 => wire__crate__api__pseudo_manual__basic_list_twin_rust_async__example_basic_list_type_u16_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +391 => wire__crate__api__pseudo_manual__basic_list_twin_rust_async__example_basic_list_type_u32_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +392 => wire__crate__api__pseudo_manual__basic_list_twin_rust_async__example_basic_list_type_u64_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +393 => wire__crate__api__pseudo_manual__basic_list_twin_rust_async__example_basic_list_type_u8_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +410 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_basic_general_enum_twin_normal_twin_normal_impl(port, ptr, rust_vec_len, data_len), +411 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_basic_primitive_enum_twin_normal_twin_normal_impl(port, ptr, rust_vec_len, data_len), +412 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_basic_struct_twin_normal_twin_normal_impl(port, ptr, rust_vec_len, data_len), +413 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_bool_twin_normal_impl(port, ptr, rust_vec_len, data_len), +414 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_bytes_twin_normal_impl(port, ptr, rust_vec_len, data_len), +415 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_f32_twin_normal_impl(port, ptr, rust_vec_len, data_len), +416 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_f64_twin_normal_impl(port, ptr, rust_vec_len, data_len), +417 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_i128_twin_normal_impl(port, ptr, rust_vec_len, data_len), +418 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_i16_twin_normal_impl(port, ptr, rust_vec_len, data_len), +419 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_i32_twin_normal_impl(port, ptr, rust_vec_len, data_len), +420 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_i64_twin_normal_impl(port, ptr, rust_vec_len, data_len), +421 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_i8_twin_normal_impl(port, ptr, rust_vec_len, data_len), +422 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_isize_twin_normal_impl(port, ptr, rust_vec_len, data_len), +423 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_string_twin_normal_impl(port, ptr, rust_vec_len, data_len), +424 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_u128_twin_normal_impl(port, ptr, rust_vec_len, data_len), +425 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_u16_twin_normal_impl(port, ptr, rust_vec_len, data_len), +426 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_u32_twin_normal_impl(port, ptr, rust_vec_len, data_len), +427 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_u64_twin_normal_impl(port, ptr, rust_vec_len, data_len), +428 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_u8_twin_normal_impl(port, ptr, rust_vec_len, data_len), +429 => wire__crate__api__pseudo_manual__basic_map__example_basic_map_type_usize_twin_normal_impl(port, ptr, rust_vec_len, data_len), +430 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_basic_general_enum_twin_rust_async_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +431 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_basic_primitive_enum_twin_rust_async_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +432 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_basic_struct_twin_rust_async_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +433 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_bool_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +434 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_bytes_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +435 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_f32_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +436 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_f64_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +437 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_i128_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +438 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_i16_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +439 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_i32_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +440 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_i64_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +441 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_i8_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +442 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_isize_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +443 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_string_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +444 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_u128_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +445 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_u16_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +446 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_u32_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +447 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_u64_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +448 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_u8_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +449 => wire__crate__api__pseudo_manual__basic_map_twin_rust_async__example_basic_map_type_usize_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +470 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_basic_general_enum_twin_normal_twin_normal_impl(port, ptr, rust_vec_len, data_len), +471 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_basic_primitive_enum_twin_normal_twin_normal_impl(port, ptr, rust_vec_len, data_len), +472 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_basic_struct_twin_normal_twin_normal_impl(port, ptr, rust_vec_len, data_len), +473 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_bool_twin_normal_impl(port, ptr, rust_vec_len, data_len), +474 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_bytes_twin_normal_impl(port, ptr, rust_vec_len, data_len), +475 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_f32_twin_normal_impl(port, ptr, rust_vec_len, data_len), +476 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_f64_twin_normal_impl(port, ptr, rust_vec_len, data_len), +477 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_i128_twin_normal_impl(port, ptr, rust_vec_len, data_len), +478 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_i16_twin_normal_impl(port, ptr, rust_vec_len, data_len), +479 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_i32_twin_normal_impl(port, ptr, rust_vec_len, data_len), +480 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_i64_twin_normal_impl(port, ptr, rust_vec_len, data_len), +481 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_i8_twin_normal_impl(port, ptr, rust_vec_len, data_len), +482 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_isize_twin_normal_impl(port, ptr, rust_vec_len, data_len), +483 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_string_twin_normal_impl(port, ptr, rust_vec_len, data_len), +484 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_u128_twin_normal_impl(port, ptr, rust_vec_len, data_len), +485 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_u16_twin_normal_impl(port, ptr, rust_vec_len, data_len), +486 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_u32_twin_normal_impl(port, ptr, rust_vec_len, data_len), +487 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_u64_twin_normal_impl(port, ptr, rust_vec_len, data_len), +488 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_u8_twin_normal_impl(port, ptr, rust_vec_len, data_len), +489 => wire__crate__api__pseudo_manual__basic_optional__example_basic_optional_type_usize_twin_normal_impl(port, ptr, rust_vec_len, data_len), +490 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_basic_general_enum_twin_rust_async_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +491 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_basic_primitive_enum_twin_rust_async_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +492 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_basic_struct_twin_rust_async_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +493 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_bool_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +494 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_bytes_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +495 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_f32_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +496 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_f64_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +497 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_i128_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +498 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_i16_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +499 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_i32_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +500 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_i64_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +501 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_i8_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +502 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_isize_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +503 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_string_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +504 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_u128_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +505 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_u16_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +506 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_u32_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +507 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_u64_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +508 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_u8_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +509 => wire__crate__api__pseudo_manual__basic_optional_twin_rust_async__example_basic_optional_type_usize_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +530 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_basic_general_enum_twin_rust_async_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +531 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_basic_primitive_enum_twin_rust_async_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +532 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_basic_struct_twin_rust_async_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +533 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_bool_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +534 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_bytes_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +535 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_f32_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +536 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_f64_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +537 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_i128_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +538 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_i16_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +539 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_i32_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +540 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_i64_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +541 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_i8_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +542 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_isize_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +543 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_string_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +544 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_u128_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +545 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_u16_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +546 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_u32_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +547 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_u64_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +548 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_u8_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +549 => wire__crate__api__pseudo_manual__basic_twin_rust_async__example_basic_type_usize_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +570 => wire__crate__api__pseudo_manual__benchmark_api__benchmark_binary_tree_input_json_twin_normal_impl(port, ptr, rust_vec_len, data_len), +571 => wire__crate__api__pseudo_manual__benchmark_api__benchmark_binary_tree_input_protobuf_twin_normal_impl(port, ptr, rust_vec_len, data_len), +572 => wire__crate__api__pseudo_manual__benchmark_api__benchmark_binary_tree_input_twin_normal_impl(port, ptr, rust_vec_len, data_len), +573 => wire__crate__api__pseudo_manual__benchmark_api__benchmark_binary_tree_output_json_twin_normal_impl(port, ptr, rust_vec_len, data_len), +574 => wire__crate__api__pseudo_manual__benchmark_api__benchmark_binary_tree_output_protobuf_twin_normal_impl(port, ptr, rust_vec_len, data_len), +575 => wire__crate__api__pseudo_manual__benchmark_api__benchmark_binary_tree_output_twin_normal_impl(port, ptr, rust_vec_len, data_len), +576 => wire__crate__api__pseudo_manual__benchmark_api__benchmark_blob_input_json_twin_normal_impl(port, ptr, rust_vec_len, data_len), +577 => wire__crate__api__pseudo_manual__benchmark_api__benchmark_blob_input_protobuf_twin_normal_impl(port, ptr, rust_vec_len, data_len), +578 => wire__crate__api__pseudo_manual__benchmark_api__benchmark_blob_input_twin_normal_impl(port, ptr, rust_vec_len, data_len), +579 => wire__crate__api__pseudo_manual__benchmark_api__benchmark_blob_output_json_twin_normal_impl(port, ptr, rust_vec_len, data_len), +580 => wire__crate__api__pseudo_manual__benchmark_api__benchmark_blob_output_protobuf_twin_normal_impl(port, ptr, rust_vec_len, data_len), +581 => wire__crate__api__pseudo_manual__benchmark_api__benchmark_blob_output_twin_normal_impl(port, ptr, rust_vec_len, data_len), +582 => wire__crate__api__pseudo_manual__benchmark_api__benchmark_input_bytes_twin_normal_impl(port, ptr, rust_vec_len, data_len), +583 => wire__crate__api__pseudo_manual__benchmark_api__benchmark_output_bytes_twin_normal_impl(port, ptr, rust_vec_len, data_len), +584 => wire__crate__api__pseudo_manual__benchmark_api__benchmark_void_twin_normal_impl(port, ptr, rust_vec_len, data_len), +585 => wire__crate__api__pseudo_manual__benchmark_api_twin_rust_async__benchmark_binary_tree_input_json_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +586 => wire__crate__api__pseudo_manual__benchmark_api_twin_rust_async__benchmark_binary_tree_input_protobuf_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +587 => wire__crate__api__pseudo_manual__benchmark_api_twin_rust_async__benchmark_binary_tree_input_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +588 => wire__crate__api__pseudo_manual__benchmark_api_twin_rust_async__benchmark_binary_tree_output_json_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +589 => wire__crate__api__pseudo_manual__benchmark_api_twin_rust_async__benchmark_binary_tree_output_protobuf_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +590 => wire__crate__api__pseudo_manual__benchmark_api_twin_rust_async__benchmark_binary_tree_output_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +591 => wire__crate__api__pseudo_manual__benchmark_api_twin_rust_async__benchmark_blob_input_json_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +592 => wire__crate__api__pseudo_manual__benchmark_api_twin_rust_async__benchmark_blob_input_protobuf_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +593 => wire__crate__api__pseudo_manual__benchmark_api_twin_rust_async__benchmark_blob_input_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +594 => wire__crate__api__pseudo_manual__benchmark_api_twin_rust_async__benchmark_blob_output_json_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +595 => wire__crate__api__pseudo_manual__benchmark_api_twin_rust_async__benchmark_blob_output_protobuf_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +596 => wire__crate__api__pseudo_manual__benchmark_api_twin_rust_async__benchmark_blob_output_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +597 => wire__crate__api__pseudo_manual__benchmark_api_twin_rust_async__benchmark_input_bytes_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +598 => wire__crate__api__pseudo_manual__benchmark_api_twin_rust_async__benchmark_output_bytes_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +599 => wire__crate__api__pseudo_manual__benchmark_api_twin_rust_async__benchmark_void_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +615 => wire__crate__api__pseudo_manual__chrono_type_twin_rust_async__datetime_local_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +616 => wire__crate__api__pseudo_manual__chrono_type_twin_rust_async__datetime_utc_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +617 => wire__crate__api__pseudo_manual__chrono_type_twin_rust_async__duration_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +618 => wire__crate__api__pseudo_manual__chrono_type_twin_rust_async__handle_durations_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +619 => wire__crate__api__pseudo_manual__chrono_type_twin_rust_async__handle_timestamps_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +620 => wire__crate__api__pseudo_manual__chrono_type_twin_rust_async__how_long_does_it_take_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +621 => wire__crate__api__pseudo_manual__chrono_type_twin_rust_async__naivedatetime_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +622 => wire__crate__api__pseudo_manual__chrono_type_twin_rust_async__optional_empty_datetime_utc_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +623 => wire__crate__api__pseudo_manual__chrono_type_twin_rust_async__test_chrono_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +624 => wire__crate__api__pseudo_manual__chrono_type_twin_rust_async__test_precise_chrono_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +635 => wire__crate__api__pseudo_manual__comment_twin_rust_async__function_with_comments_slash_star_star_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +636 => wire__crate__api__pseudo_manual__comment_twin_rust_async__function_with_comments_triple_slash_multi_line_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +637 => wire__crate__api__pseudo_manual__comment_twin_rust_async__function_with_comments_triple_slash_single_line_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +638 => wire__crate__api__pseudo_manual__comment_twin_rust_async__struct_with_comments_twin_rust_async_instance_method_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +639 => wire__crate__api__pseudo_manual__comment_twin_rust_async__struct_with_comments_twin_rust_async_static_method_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +645 => wire__crate__api__pseudo_manual__dart_fn_twin_rust_async__rust_call_dart_loopback_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +646 => wire__crate__api__pseudo_manual__dart_fn_twin_rust_async__rust_call_dart_multi_times_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +647 => wire__crate__api__pseudo_manual__dart_fn_twin_rust_async__rust_call_dart_one_arg_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +648 => wire__crate__api__pseudo_manual__dart_fn_twin_rust_async__rust_call_dart_return_result_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +649 => wire__crate__api__pseudo_manual__dart_fn_twin_rust_async__rust_call_dart_return_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +650 => wire__crate__api__pseudo_manual__dart_fn_twin_rust_async__rust_call_dart_simple_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +651 => wire__crate__api__pseudo_manual__dart_fn_twin_rust_async__rust_call_dart_two_args_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +652 => wire__crate__api__pseudo_manual__dart_fn_twin_rust_async__rust_call_dart_with_dart_opaque_arg_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +653 => wire__crate__api__pseudo_manual__dart_fn_twin_rust_async__rust_call_dart_with_dart_opaque_result_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +654 => wire__crate__api__pseudo_manual__dart_opaque_twin_rust_async__async_accept_dart_opaque_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +655 => wire__crate__api__pseudo_manual__dart_opaque_twin_rust_async__clone_dart_opaque_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +656 => wire__crate__api__pseudo_manual__dart_opaque_twin_rust_async__create_enum_dart_opaque_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +657 => wire__crate__api__pseudo_manual__dart_opaque_twin_rust_async__create_nested_dart_opaque_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +658 => wire__crate__api__pseudo_manual__dart_opaque_twin_rust_async__drop_static_dart_opaque_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +659 => wire__crate__api__pseudo_manual__dart_opaque_twin_rust_async__get_enum_dart_opaque_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +660 => wire__crate__api__pseudo_manual__dart_opaque_twin_rust_async__get_nested_dart_opaque_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +661 => wire__crate__api__pseudo_manual__dart_opaque_twin_rust_async__loop_back_array_get_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +662 => wire__crate__api__pseudo_manual__dart_opaque_twin_rust_async__loop_back_array_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +663 => wire__crate__api__pseudo_manual__dart_opaque_twin_rust_async__loop_back_option_get_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +664 => wire__crate__api__pseudo_manual__dart_opaque_twin_rust_async__loop_back_option_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +665 => wire__crate__api__pseudo_manual__dart_opaque_twin_rust_async__loop_back_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +666 => wire__crate__api__pseudo_manual__dart_opaque_twin_rust_async__loop_back_vec_get_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +667 => wire__crate__api__pseudo_manual__dart_opaque_twin_rust_async__loop_back_vec_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +668 => wire__crate__api__pseudo_manual__dart_opaque_twin_rust_async__panic_unwrap_dart_opaque_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +669 => wire__crate__api__pseudo_manual__dart_opaque_twin_rust_async__set_static_dart_opaque_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +686 => wire__crate__api__pseudo_manual__dropping_twin_rust_async__DroppableTwinRustAsync_create_stream_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +687 => wire__crate__api__pseudo_manual__dropping_twin_rust_async__DroppableTwinRustAsync_get_drop_count_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +688 => wire__crate__api__pseudo_manual__dropping_twin_rust_async__DroppableTwinRustAsync_new_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +689 => wire__crate__api__pseudo_manual__dropping_twin_rust_async__DroppableTwinRustAsync_simple_method_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +694 => wire__crate__api__pseudo_manual__enumeration_twin_rust_async__func_enum_simple_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +695 => wire__crate__api__pseudo_manual__enumeration_twin_rust_async__func_enum_with_discriminant_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +696 => wire__crate__api__pseudo_manual__enumeration_twin_rust_async__func_enum_with_item_mixed_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +697 => wire__crate__api__pseudo_manual__enumeration_twin_rust_async__func_enum_with_item_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +698 => wire__crate__api__pseudo_manual__enumeration_twin_rust_async__func_enum_with_item_tuple_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +699 => wire__crate__api__pseudo_manual__enumeration_twin_rust_async__handle_enum_parameter_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +700 => wire__crate__api__pseudo_manual__enumeration_twin_rust_async__handle_enum_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +701 => wire__crate__api__pseudo_manual__enumeration_twin_rust_async__handle_return_enum_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +702 => wire__crate__api__pseudo_manual__enumeration_twin_rust_async__multiply_by_ten_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +703 => wire__crate__api__pseudo_manual__enumeration_twin_rust_async__print_note_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +714 => wire__crate__api__pseudo_manual__event_listener_twin_rust_async__close_event_listener_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +715 => wire__crate__api__pseudo_manual__event_listener_twin_rust_async__create_event_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +716 => wire__crate__api__pseudo_manual__event_listener_twin_rust_async__event_twin_rust_async_as_string_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +717 => wire__crate__api__pseudo_manual__event_listener_twin_rust_async__register_event_listener_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +718 => wire__crate__api__pseudo_manual__exception_twin_rust_async__custom_enum_error_panic_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +719 => wire__crate__api__pseudo_manual__exception_twin_rust_async__custom_enum_error_return_error_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +720 => wire__crate__api__pseudo_manual__exception_twin_rust_async__custom_enum_error_return_ok_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +721 => wire__crate__api__pseudo_manual__exception_twin_rust_async__custom_nested_error_return_error_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +722 => wire__crate__api__pseudo_manual__exception_twin_rust_async__custom_struct_error_return_error_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +723 => wire__crate__api__pseudo_manual__exception_twin_rust_async__custom_struct_twin_rust_async_new_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +724 => wire__crate__api__pseudo_manual__exception_twin_rust_async__custom_struct_twin_rust_async_nonstatic_return_custom_struct_error_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +725 => wire__crate__api__pseudo_manual__exception_twin_rust_async__custom_struct_twin_rust_async_nonstatic_return_custom_struct_ok_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +726 => wire__crate__api__pseudo_manual__exception_twin_rust_async__custom_struct_twin_rust_async_static_return_custom_struct_error_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +727 => wire__crate__api__pseudo_manual__exception_twin_rust_async__custom_struct_twin_rust_async_static_return_custom_struct_ok_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +728 => wire__crate__api__pseudo_manual__exception_twin_rust_async__func_return_error_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +729 => wire__crate__api__pseudo_manual__exception_twin_rust_async__func_type_fallible_panic_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +730 => wire__crate__api__pseudo_manual__exception_twin_rust_async__func_type_infallible_panic_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +731 => wire__crate__api__pseudo_manual__exception_twin_rust_async__panic_with_custom_result_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +732 => wire__crate__api__pseudo_manual__exception_twin_rust_async__return_custom_nested_error_1_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +733 => wire__crate__api__pseudo_manual__exception_twin_rust_async__return_custom_nested_error_1_variant1_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +734 => wire__crate__api__pseudo_manual__exception_twin_rust_async__return_custom_nested_error_2_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +735 => wire__crate__api__pseudo_manual__exception_twin_rust_async__return_custom_struct_error_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +736 => wire__crate__api__pseudo_manual__exception_twin_rust_async__return_custom_struct_ok_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +737 => wire__crate__api__pseudo_manual__exception_twin_rust_async__return_err_custom_error_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +738 => wire__crate__api__pseudo_manual__exception_twin_rust_async__return_error_variant_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +739 => wire__crate__api__pseudo_manual__exception_twin_rust_async__return_ok_custom_error_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +740 => wire__crate__api__pseudo_manual__exception_twin_rust_async__some_struct_twin_rust_async_new_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +741 => wire__crate__api__pseudo_manual__exception_twin_rust_async__some_struct_twin_rust_async_non_static_return_err_custom_error_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +742 => wire__crate__api__pseudo_manual__exception_twin_rust_async__some_struct_twin_rust_async_non_static_return_ok_custom_error_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +743 => wire__crate__api__pseudo_manual__exception_twin_rust_async__some_struct_twin_rust_async_static_return_err_custom_error_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +744 => wire__crate__api__pseudo_manual__exception_twin_rust_async__some_struct_twin_rust_async_static_return_ok_custom_error_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +745 => wire__crate__api__pseudo_manual__exception_twin_rust_async__stream_sink_throw_anyhow_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +746 => wire__crate__api__pseudo_manual__exception_twin_rust_async__throw_anyhow_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +776 => wire__crate__api__pseudo_manual__external_type_in_crate_twin_rust_async__call_new_module_system_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +777 => wire__crate__api__pseudo_manual__external_type_in_crate_twin_rust_async__call_old_module_system_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +778 => wire__crate__api__pseudo_manual__external_type_in_crate_twin_rust_async__use_imported_enum_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +779 => wire__crate__api__pseudo_manual__external_type_in_crate_twin_rust_async__use_imported_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +786 => wire__crate__api__pseudo_manual__impl_trait_twin_sync__StructOneWithTraitTwinSync_simple_trait_fn_receiver_borrow_twin_sync_impl(port, ptr, rust_vec_len, data_len), +787 => wire__crate__api__pseudo_manual__impl_trait_twin_sync__StructOneWithTraitTwinSync_simple_trait_fn_twin_sync_impl(port, ptr, rust_vec_len, data_len), +788 => wire__crate__api__pseudo_manual__impl_trait_twin_sync__StructOneWithTraitTwinSync_simple_trait_fn_with_default_impl_twin_sync_impl(port, ptr, rust_vec_len, data_len), +791 => wire__crate__api__pseudo_manual__impl_trait_twin_sync__StructTwoWithTraitTwinSync_simple_trait_fn_receiver_borrow_twin_sync_impl(port, ptr, rust_vec_len, data_len), +792 => wire__crate__api__pseudo_manual__impl_trait_twin_sync__StructTwoWithTraitTwinSync_simple_trait_fn_twin_sync_impl(port, ptr, rust_vec_len, data_len), +793 => wire__crate__api__pseudo_manual__impl_trait_twin_sync__StructTwoWithTraitTwinSync_simple_trait_fn_with_default_impl_twin_sync_impl(port, ptr, rust_vec_len, data_len), +799 => wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_arg_generic_lifetime_twin_sync_impl(port, ptr, rust_vec_len, data_len), +800 => wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_compute_nested_type_with_lifetime_twin_sync_impl(port, ptr, rust_vec_len, data_len), +803 => wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_compute_with_multi_arg_having_lifetime_twin_sync_impl(port, ptr, rust_vec_len, data_len), +806 => wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_type_with_lifetime_twin_sync_impl(port, ptr, rust_vec_len, data_len), +807 => wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_compute_with_unrelated_borrowed_arg_twin_sync_impl(port, ptr, rust_vec_len, data_len), +812 => wire__crate__api__pseudo_manual__lifetimeable_twin_sync__lt_compute_with_lifetime_function_twin_sync_impl(port, ptr, rust_vec_len, data_len), +813 => wire__crate__api__pseudo_manual__map_and_set_twin_rust_async__func_hash_map_i32_i32_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +814 => wire__crate__api__pseudo_manual__map_and_set_twin_rust_async__func_hash_map_string_bytes_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +815 => wire__crate__api__pseudo_manual__map_and_set_twin_rust_async__func_hash_map_string_complex_enum_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +816 => wire__crate__api__pseudo_manual__map_and_set_twin_rust_async__func_hash_map_string_simple_enum_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +817 => wire__crate__api__pseudo_manual__map_and_set_twin_rust_async__func_hash_map_string_string_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +818 => wire__crate__api__pseudo_manual__map_and_set_twin_rust_async__func_hash_map_string_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +819 => wire__crate__api__pseudo_manual__map_and_set_twin_rust_async__func_hash_set_i32_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +820 => wire__crate__api__pseudo_manual__map_and_set_twin_rust_async__func_hash_set_string_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +829 => wire__crate__api__pseudo_manual__method_twin_rust_async__StaticGetterOnlyTwinRustAsync_static_getter_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +830 => wire__crate__api__pseudo_manual__method_twin_rust_async__concatenate_with_twin_rust_async_concatenate_static_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +831 => wire__crate__api__pseudo_manual__method_twin_rust_async__concatenate_with_twin_rust_async_concatenate_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +832 => wire__crate__api__pseudo_manual__method_twin_rust_async__concatenate_with_twin_rust_async_handle_some_static_stream_sink_single_arg_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +833 => wire__crate__api__pseudo_manual__method_twin_rust_async__concatenate_with_twin_rust_async_handle_some_static_stream_sink_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +834 => wire__crate__api__pseudo_manual__method_twin_rust_async__concatenate_with_twin_rust_async_handle_some_stream_sink_at_1_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +835 => wire__crate__api__pseudo_manual__method_twin_rust_async__concatenate_with_twin_rust_async_handle_some_stream_sink_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +836 => wire__crate__api__pseudo_manual__method_twin_rust_async__concatenate_with_twin_rust_async_new_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +837 => wire__crate__api__pseudo_manual__method_twin_rust_async__concatenate_with_twin_rust_async_simple_getter_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +838 => wire__crate__api__pseudo_manual__method_twin_rust_async__get_sum_array_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +839 => wire__crate__api__pseudo_manual__method_twin_rust_async__get_sum_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +840 => wire__crate__api__pseudo_manual__method_twin_rust_async__my_callable_twin_rust_async_call_impl(port, ptr, rust_vec_len, data_len), +841 => wire__crate__api__pseudo_manual__method_twin_rust_async__simple_enum_twin_rust_async_return_self_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +842 => wire__crate__api__pseudo_manual__method_twin_rust_async__simple_enum_twin_rust_async_simple_method_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +843 => wire__crate__api__pseudo_manual__method_twin_rust_async__simple_primitive_enum_twin_rust_async_simple_method_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +844 => wire__crate__api__pseudo_manual__method_twin_rust_async__simple_struct_twin_rust_async_arg_self_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +845 => wire__crate__api__pseudo_manual__method_twin_rust_async__simple_struct_twin_rust_async_receiver_borrow_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +846 => wire__crate__api__pseudo_manual__method_twin_rust_async__simple_struct_twin_rust_async_receiver_own_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +847 => wire__crate__api__pseudo_manual__method_twin_rust_async__simple_struct_twin_rust_async_return_self_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +848 => wire__crate__api__pseudo_manual__method_twin_rust_async__simple_struct_twin_rust_async_vec_self_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +849 => wire__crate__api__pseudo_manual__method_twin_rust_async__static_only_twin_rust_async_static_method_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +850 => wire__crate__api__pseudo_manual__method_twin_rust_async__sum_with_twin_rust_async_sum_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +873 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__app_settings_stream_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +874 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__app_settings_vec_stream_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +875 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__first_number_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +876 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__first_sequence_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +877 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__get_app_settings_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +878 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__get_fallible_app_settings_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +879 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__get_message_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +880 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__is_app_embedded_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +881 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__mirror_array_enum_stream_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +882 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__mirror_enum_stream_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +883 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__mirror_map_enum_stream_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +884 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__mirror_option_enum_stream_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +885 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__mirror_set_enum_stream_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +886 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__mirror_struct_stream_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +887 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__mirror_tuple_stream_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +888 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__mirror_vec_enum_stream_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +889 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__repeat_number_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +890 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__repeat_sequence_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +891 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__test_contains_mirrored_sub_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +892 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__test_fallible_of_raw_string_mirrored_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +893 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__test_hashmap_with_mirrored_value_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +894 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__test_list_of_nested_enums_mirrored_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +895 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__test_list_of_raw_nested_string_mirrored_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +896 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__test_nested_raw_string_mirrored_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +897 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__test_raw_string_enum_mirrored_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +898 => wire__crate__api__pseudo_manual__mirror_twin_rust_async__test_raw_string_mirrored_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +925 => wire__crate__api__pseudo_manual__misc_example_twin_rust_async__handle_big_buffers_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +926 => wire__crate__api__pseudo_manual__misc_example_twin_rust_async__handle_char_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +927 => wire__crate__api__pseudo_manual__misc_example_twin_rust_async__handle_complex_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +928 => wire__crate__api__pseudo_manual__misc_example_twin_rust_async__handle_nested_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +929 => wire__crate__api__pseudo_manual__misc_example_twin_rust_async__handle_string_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +930 => wire__crate__api__pseudo_manual__misc_example_twin_rust_async__handle_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +931 => wire__crate__api__pseudo_manual__misc_example_twin_rust_async__handle_vec_u8_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +932 => wire__crate__api__pseudo_manual__misc_example_twin_rust_async__list_of_primitive_enums_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +933 => wire__crate__api__pseudo_manual__misc_example_twin_rust_async__positional_arguments_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +934 => wire__crate__api__pseudo_manual__misc_example_twin_rust_async__test_abc_enum_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +935 => wire__crate__api__pseudo_manual__misc_example_twin_rust_async__test_struct_with_enum_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +947 => wire__crate__api__pseudo_manual__misc_type_twin_rust_async__empty_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +948 => wire__crate__api__pseudo_manual__misc_type_twin_rust_async__func_return_unit_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +949 => wire__crate__api__pseudo_manual__misc_type_twin_rust_async__handle_list_of_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +950 => wire__crate__api__pseudo_manual__misc_type_twin_rust_async__handle_string_list_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +955 => wire__crate__api__pseudo_manual__newtype_pattern_twin_rust_async__handle_newtype_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +957 => wire__crate__api__pseudo_manual__optional_primitive_misc_twin_rust_async__primitive_optional_types_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +959 => wire__crate__api__pseudo_manual__optional_twin_rust_async__handle_increment_boxed_optional_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +960 => wire__crate__api__pseudo_manual__optional_twin_rust_async__handle_option_box_arguments_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +961 => wire__crate__api__pseudo_manual__optional_twin_rust_async__handle_optional_increment_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +962 => wire__crate__api__pseudo_manual__optional_twin_rust_async__handle_optional_return_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +963 => wire__crate__api__pseudo_manual__optional_twin_rust_async__handle_optional_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +964 => wire__crate__api__pseudo_manual__optional_twin_rust_async__handle_vec_of_opts_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +971 => wire__crate__api__pseudo_manual__ownership_twin_rust_async__borrow_i32_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +972 => wire__crate__api__pseudo_manual__ownership_twin_rust_async__borrow_slice_string_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +973 => wire__crate__api__pseudo_manual__ownership_twin_rust_async__borrow_slice_u8_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +974 => wire__crate__api__pseudo_manual__ownership_twin_rust_async__borrow_str_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +975 => wire__crate__api__pseudo_manual__ownership_twin_rust_async__borrow_string_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +976 => wire__crate__api__pseudo_manual__ownership_twin_rust_async__borrow_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +983 => wire__crate__api__pseudo_manual__primitive_list_misc_twin_rust_async__handle_vec_of_primitive_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +985 => wire__crate__api__pseudo_manual__primitive_misc_twin_rust_async__primitive_types_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +986 => wire__crate__api__pseudo_manual__primitive_misc_twin_rust_async__primitive_u32_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +989 => wire__crate__api__pseudo_manual__raw_string_twin_rust_async__test_more_than_just_one_raw_string_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +990 => wire__crate__api__pseudo_manual__raw_string_twin_rust_async__test_raw_string_item_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +993 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__NonCloneSimpleTwinRustAsync_instance_method_arg_borrow_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +994 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__NonCloneSimpleTwinRustAsync_instance_method_arg_mut_borrow_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +995 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__NonCloneSimpleTwinRustAsync_instance_method_arg_own_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +996 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__NonCloneSimpleTwinRustAsync_instance_method_getter_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +997 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__NonCloneSimpleTwinRustAsync_instance_method_return_own_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +998 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__NonCloneSimpleTwinRustAsync_new_custom_name_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +999 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__NonCloneSimpleTwinRustAsync_new_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1000 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__NonCloneSimpleTwinRustAsync_new_with_result_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1001 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__NonCloneSimpleTwinRustAsync_static_method_arg_borrow_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1002 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__NonCloneSimpleTwinRustAsync_static_method_arg_mut_borrow_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1003 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__NonCloneSimpleTwinRustAsync_static_method_arg_own_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1004 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__NonCloneSimpleTwinRustAsync_static_method_return_own_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1008 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_arg_borrow_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1009 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_arg_mut_borrow_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1010 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_arg_own_and_return_own_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1011 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_arg_own_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1012 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_arg_vec_own_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1013 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_borrow_and_borrow_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1014 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_borrow_and_mut_borrow_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1015 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_callable_arg_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1016 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_callable_return_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1017 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_dummy_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1018 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_enum_arg_borrow_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1019 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_enum_return_own_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1020 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_enum_with_good_and_opaque_arg_own_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1021 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_enum_with_good_and_opaque_return_own_good_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1022 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_enum_with_good_and_opaque_return_own_opaque_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1023 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_explicit_arg_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1024 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_explicit_return_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1025 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_explicit_return_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1026 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_explicit_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1027 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_normal_and_opaque_arg_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1028 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_plus_sign_arg_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1029 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_plus_sign_return_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1030 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_return_opaque_one_and_two_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1031 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_return_opaque_two_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1032 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_return_own_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1033 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_return_vec_own_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1034 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_sleep_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1035 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_stream_sink_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1036 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_struct_with_good_and_opaque_field_arg_own_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1037 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_struct_with_good_and_opaque_field_return_own_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1038 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__rust_auto_opaque_two_args_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1085 => wire__crate__api__pseudo_manual__rust_opaque_twin_rust_async__create_array_opaque_enum_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1086 => wire__crate__api__pseudo_manual__rust_opaque_twin_rust_async__create_nested_opaque_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1087 => wire__crate__api__pseudo_manual__rust_opaque_twin_rust_async__create_opaque_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1088 => wire__crate__api__pseudo_manual__rust_opaque_twin_rust_async__create_option_opaque_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1089 => wire__crate__api__pseudo_manual__rust_opaque_twin_rust_async__frb_generator_test_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1090 => wire__crate__api__pseudo_manual__rust_opaque_twin_rust_async__opaque_array_run_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1091 => wire__crate__api__pseudo_manual__rust_opaque_twin_rust_async__opaque_array_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1092 => wire__crate__api__pseudo_manual__rust_opaque_twin_rust_async__opaque_vec_run_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1093 => wire__crate__api__pseudo_manual__rust_opaque_twin_rust_async__opaque_vec_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1094 => wire__crate__api__pseudo_manual__rust_opaque_twin_rust_async__run_enum_opaque_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1095 => wire__crate__api__pseudo_manual__rust_opaque_twin_rust_async__run_nested_opaque_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1096 => wire__crate__api__pseudo_manual__rust_opaque_twin_rust_async__run_non_clone_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1097 => wire__crate__api__pseudo_manual__rust_opaque_twin_rust_async__run_opaque_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1098 => wire__crate__api__pseudo_manual__rust_opaque_twin_rust_async__run_opaque_with_delay_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1099 => wire__crate__api__pseudo_manual__rust_opaque_twin_rust_async__unwrap_rust_opaque_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1115 => wire__crate__api__pseudo_manual__simple_twin_rust_async__simple_adder_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1117 => wire__crate__api__pseudo_manual__stream_twin_rust_async__func_stream_add_value_and_error_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1118 => wire__crate__api__pseudo_manual__stream_twin_rust_async__func_stream_return_error_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1119 => wire__crate__api__pseudo_manual__stream_twin_rust_async__func_stream_return_panic_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1120 => wire__crate__api__pseudo_manual__stream_twin_rust_async__func_stream_sink_arg_position_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1121 => wire__crate__api__pseudo_manual__stream_twin_rust_async__handle_stream_of_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1122 => wire__crate__api__pseudo_manual__stream_twin_rust_async__handle_stream_sink_at_1_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1123 => wire__crate__api__pseudo_manual__stream_twin_rust_async__handle_stream_sink_at_2_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1124 => wire__crate__api__pseudo_manual__stream_twin_rust_async__handle_stream_sink_at_3_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1125 => wire__crate__api__pseudo_manual__stream_twin_rust_async__stream_sink_fixed_sized_primitive_array_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1126 => wire__crate__api__pseudo_manual__stream_twin_rust_async__stream_sink_inside_struct_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1127 => wire__crate__api__pseudo_manual__stream_twin_rust_async__stream_sink_inside_vec_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1128 => wire__crate__api__pseudo_manual__structure_twin_rust_async__func_for_struct_with_dart_keyword_field_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1129 => wire__crate__api__pseudo_manual__structure_twin_rust_async__func_for_struct_with_field_rename_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1130 => wire__crate__api__pseudo_manual__structure_twin_rust_async__func_struct_with_one_field_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1131 => wire__crate__api__pseudo_manual__structure_twin_rust_async__func_struct_with_two_field_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1132 => wire__crate__api__pseudo_manual__structure_twin_rust_async__func_struct_with_zero_field_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1133 => wire__crate__api__pseudo_manual__structure_twin_rust_async__func_tuple_struct_with_one_field_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1134 => wire__crate__api__pseudo_manual__structure_twin_rust_async__func_tuple_struct_with_two_field_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1142 => wire__crate__api__pseudo_manual__tuple_twin_rust_async__test_tuple_2_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1143 => wire__crate__api__pseudo_manual__tuple_twin_rust_async__test_tuple_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1146 => wire__crate__api__pseudo_manual__type_alias_twin_rust_async__handle_type_alias_id_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1147 => wire__crate__api__pseudo_manual__type_alias_twin_rust_async__handle_type_alias_model_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1148 => wire__crate__api__pseudo_manual__type_alias_twin_rust_async__handle_type_nest_alias_id_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1152 => wire__crate__api__pseudo_manual__uuid_type_twin_rust_async__handle_nested_uuids_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1153 => wire__crate__api__pseudo_manual__uuid_type_twin_rust_async__handle_uuid_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1154 => wire__crate__api__pseudo_manual__uuid_type_twin_rust_async__handle_uuids_twin_rust_async_impl(port, ptr, rust_vec_len, data_len), +1158 => wire__crate__api__raw_string__test_more_than_just_one_raw_string_struct_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1159 => wire__crate__api__raw_string__test_raw_string_item_struct_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1160 => wire__crate__api__rust_auto_opaque__NonCloneSimpleTwinNormal_instance_method_arg_borrow_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1161 => wire__crate__api__rust_auto_opaque__NonCloneSimpleTwinNormal_instance_method_arg_mut_borrow_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1162 => wire__crate__api__rust_auto_opaque__NonCloneSimpleTwinNormal_instance_method_arg_own_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1163 => wire__crate__api__rust_auto_opaque__NonCloneSimpleTwinNormal_instance_method_getter_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1164 => wire__crate__api__rust_auto_opaque__NonCloneSimpleTwinNormal_instance_method_return_own_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1165 => wire__crate__api__rust_auto_opaque__NonCloneSimpleTwinNormal_new_custom_name_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1166 => wire__crate__api__rust_auto_opaque__NonCloneSimpleTwinNormal_new_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1167 => wire__crate__api__rust_auto_opaque__NonCloneSimpleTwinNormal_new_with_result_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1168 => wire__crate__api__rust_auto_opaque__NonCloneSimpleTwinNormal_static_method_arg_borrow_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1169 => wire__crate__api__rust_auto_opaque__NonCloneSimpleTwinNormal_static_method_arg_mut_borrow_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1170 => wire__crate__api__rust_auto_opaque__NonCloneSimpleTwinNormal_static_method_arg_own_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1171 => wire__crate__api__rust_auto_opaque__NonCloneSimpleTwinNormal_static_method_return_own_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1175 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_arg_borrow_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1176 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_arg_mut_borrow_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1177 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_arg_own_and_return_own_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1178 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_arg_own_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1179 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_arg_vec_own_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1180 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_borrow_and_borrow_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1181 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_borrow_and_mut_borrow_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1182 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_callable_arg_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1183 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_callable_return_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1184 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_dummy_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1185 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_enum_arg_borrow_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1186 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_enum_return_own_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1187 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_enum_with_good_and_opaque_arg_own_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1188 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_enum_with_good_and_opaque_return_own_good_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1189 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_enum_with_good_and_opaque_return_own_opaque_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1190 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_explicit_arg_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1191 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_explicit_return_struct_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1192 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_explicit_return_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1193 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_explicit_struct_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1194 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_normal_and_opaque_arg_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1195 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_plus_sign_arg_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1196 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_plus_sign_return_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1197 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_return_opaque_one_and_two_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1198 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_return_opaque_two_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1199 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_return_own_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1200 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_return_vec_own_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1201 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_sleep_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1202 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_stream_sink_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1203 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_struct_with_good_and_opaque_field_arg_own_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1204 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_struct_with_good_and_opaque_field_return_own_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1205 => wire__crate__api__rust_auto_opaque__rust_auto_opaque_two_args_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1206 => wire__crate__api__rust_opaque__create_array_opaque_enum_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1207 => wire__crate__api__rust_opaque__create_nested_opaque_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1208 => wire__crate__api__rust_opaque__create_opaque_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1209 => wire__crate__api__rust_opaque__create_option_opaque_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1210 => wire__crate__api__rust_opaque__frb_generator_test_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1211 => wire__crate__api__rust_opaque__opaque_array_run_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1212 => wire__crate__api__rust_opaque__opaque_array_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1213 => wire__crate__api__rust_opaque__opaque_vec_run_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1214 => wire__crate__api__rust_opaque__opaque_vec_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1215 => wire__crate__api__rust_opaque__run_enum_opaque_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1216 => wire__crate__api__rust_opaque__run_nested_opaque_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1217 => wire__crate__api__rust_opaque__run_non_clone_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1218 => wire__crate__api__rust_opaque__run_opaque_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1219 => wire__crate__api__rust_opaque__run_opaque_with_delay_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1220 => wire__crate__api__rust_opaque__unwrap_rust_opaque_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1225 => wire__crate__api__simple__simple_adder_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1226 => wire__crate__api__stream__func_stream_add_value_and_error_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1227 => wire__crate__api__stream__func_stream_return_error_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1228 => wire__crate__api__stream__func_stream_return_panic_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1229 => wire__crate__api__stream__func_stream_sink_arg_position_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1230 => wire__crate__api__stream__handle_stream_of_struct_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1231 => wire__crate__api__stream__handle_stream_sink_at_1_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1232 => wire__crate__api__stream__handle_stream_sink_at_2_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1233 => wire__crate__api__stream__handle_stream_sink_at_3_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1234 => wire__crate__api__stream__stream_sink_fixed_sized_primitive_array_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1235 => wire__crate__api__stream__stream_sink_inside_struct_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1236 => wire__crate__api__stream__stream_sink_inside_vec_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1237 => wire__crate__api__stream_misc__func_stream_realistic_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1238 => wire__crate__api__stream_misc__stream_sink_dart_async_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1239 => wire__crate__api__structure__func_for_struct_with_dart_keyword_field_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1240 => wire__crate__api__structure__func_for_struct_with_field_rename_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1241 => wire__crate__api__structure__func_struct_with_one_field_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1242 => wire__crate__api__structure__func_struct_with_two_field_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1243 => wire__crate__api__structure__func_struct_with_zero_field_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1244 => wire__crate__api__structure__func_tuple_struct_with_one_field_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1245 => wire__crate__api__structure__func_tuple_struct_with_two_field_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1246 => wire__crate__api__tuple__test_tuple_2_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1247 => wire__crate__api__tuple__test_tuple_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1248 => wire__crate__api__type_alias__handle_type_alias_id_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1249 => wire__crate__api__type_alias__handle_type_alias_model_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1250 => wire__crate__api__type_alias__handle_type_nest_alias_id_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1251 => wire__crate__api__uuid_type__handle_nested_uuids_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1252 => wire__crate__api__uuid_type__handle_uuid_twin_normal_impl(port, ptr, rust_vec_len, data_len), +1253 => wire__crate__api__uuid_type__handle_uuids_twin_normal_impl(port, ptr, rust_vec_len, data_len), _ => unreachable!(), } } @@ -40183,386 +41516,398 @@ fn pde_ffi_dispatcher_sync_impl( 156 => wire__crate__api__impl_trait__StructOneWithTraitTwinNormal_auto_accessor_set_one_impl(ptr, rust_vec_len, data_len), 160 => wire__crate__api__impl_trait__StructTwoWithTraitTwinNormal_auto_accessor_get_two_impl(ptr, rust_vec_len, data_len), 161 => wire__crate__api__impl_trait__StructTwoWithTraitTwinNormal_auto_accessor_set_two_impl(ptr, rust_vec_len, data_len), -237 => wire__crate__api__misc_no_twin_example_a__DeliberateFailSanityCheckTwinNormal_auto_accessor_get_deliberate_bad_field_a_impl(ptr, rust_vec_len, data_len), -238 => wire__crate__api__misc_no_twin_example_a__DeliberateFailSanityCheckTwinNormal_auto_accessor_get_deliberate_bad_field_b_impl(ptr, rust_vec_len, data_len), -239 => wire__crate__api__misc_no_twin_example_a__DeliberateFailSanityCheckTwinNormal_auto_accessor_get_deliberate_bad_field_c_impl(ptr, rust_vec_len, data_len), -240 => wire__crate__api__misc_no_twin_example_a__DeliberateFailSanityCheckTwinNormal_auto_accessor_get_good_field_a_impl(ptr, rust_vec_len, data_len), -241 => wire__crate__api__misc_no_twin_example_a__DeliberateFailSanityCheckTwinNormal_auto_accessor_get_good_field_b_impl(ptr, rust_vec_len, data_len), -242 => wire__crate__api__misc_no_twin_example_a__DeliberateFailSanityCheckTwinNormal_auto_accessor_get_good_field_c_impl(ptr, rust_vec_len, data_len), -243 => wire__crate__api__misc_no_twin_example_a__DeliberateFailSanityCheckTwinNormal_auto_accessor_set_deliberate_bad_field_a_impl(ptr, rust_vec_len, data_len), -244 => wire__crate__api__misc_no_twin_example_a__DeliberateFailSanityCheckTwinNormal_auto_accessor_set_deliberate_bad_field_b_impl(ptr, rust_vec_len, data_len), -245 => wire__crate__api__misc_no_twin_example_a__DeliberateFailSanityCheckTwinNormal_auto_accessor_set_deliberate_bad_field_c_impl(ptr, rust_vec_len, data_len), -246 => wire__crate__api__misc_no_twin_example_a__DeliberateFailSanityCheckTwinNormal_auto_accessor_set_good_field_a_impl(ptr, rust_vec_len, data_len), -247 => wire__crate__api__misc_no_twin_example_a__DeliberateFailSanityCheckTwinNormal_auto_accessor_set_good_field_b_impl(ptr, rust_vec_len, data_len), -248 => wire__crate__api__misc_no_twin_example_a__DeliberateFailSanityCheckTwinNormal_auto_accessor_set_good_field_c_impl(ptr, rust_vec_len, data_len), -250 => wire__crate__api__misc_no_twin_example_a__ItemContainerSolutionOneTwinNormal_auto_accessor_get_name_impl(ptr, rust_vec_len, data_len), -251 => wire__crate__api__misc_no_twin_example_a__ItemContainerSolutionOneTwinNormal_auto_accessor_set_name_impl(ptr, rust_vec_len, data_len), -257 => wire__crate__api__misc_no_twin_example_a__StructWithSimpleSetterTwinNormal_get_something_impl(ptr, rust_vec_len, data_len), -258 => wire__crate__api__misc_no_twin_example_a__StructWithSimpleSetterTwinNormal_new_impl(ptr, rust_vec_len, data_len), -259 => wire__crate__api__misc_no_twin_example_a__StructWithSimpleSetterTwinNormal_set_something_impl(ptr, rust_vec_len, data_len), -260 => wire__crate__api__misc_no_twin_example_a__StructWithSimpleSetterTwinNormal_simple_getter_impl(ptr, rust_vec_len, data_len), -261 => wire__crate__api__misc_no_twin_example_a__StructWithSimpleSetterTwinNormal_simple_setter_impl(ptr, rust_vec_len, data_len), -267 => wire__crate__api__misc_no_twin_example_a__struct_with_custom_name_method_twin_normal_method_with_custom_name_twin_normal_impl(ptr, rust_vec_len, data_len), -309 => wire__crate__api__pseudo_manual__array_twin_sync__boxed_blob_twin_sync_impl(ptr, rust_vec_len, data_len), -310 => wire__crate__api__pseudo_manual__array_twin_sync__func_test_id_twin_sync_impl(ptr, rust_vec_len, data_len), -311 => wire__crate__api__pseudo_manual__array_twin_sync__get_array_twin_sync_impl(ptr, rust_vec_len, data_len), -312 => wire__crate__api__pseudo_manual__array_twin_sync__get_complex_array_twin_sync_impl(ptr, rust_vec_len, data_len), -313 => wire__crate__api__pseudo_manual__array_twin_sync__last_number_twin_sync_impl(ptr, rust_vec_len, data_len), -314 => wire__crate__api__pseudo_manual__array_twin_sync__nested_id_twin_sync_impl(ptr, rust_vec_len, data_len), -315 => wire__crate__api__pseudo_manual__array_twin_sync__new_msgid_twin_sync_impl(ptr, rust_vec_len, data_len), -316 => wire__crate__api__pseudo_manual__array_twin_sync__return_boxed_feed_id_twin_sync_impl(ptr, rust_vec_len, data_len), -317 => wire__crate__api__pseudo_manual__array_twin_sync__return_boxed_raw_feed_id_twin_sync_impl(ptr, rust_vec_len, data_len), -318 => wire__crate__api__pseudo_manual__array_twin_sync__use_boxed_blob_twin_sync_impl(ptr, rust_vec_len, data_len), -319 => wire__crate__api__pseudo_manual__array_twin_sync__use_msgid_twin_sync_impl(ptr, rust_vec_len, data_len), -322 => wire__crate__api__pseudo_manual__attribute_twin_sync__handle_customized_struct_twin_sync_impl(ptr, rust_vec_len, data_len), -323 => wire__crate__api__pseudo_manual__attribute_twin_sync__next_user_id_twin_sync_impl(ptr, rust_vec_len, data_len), -376 => wire__crate__api__pseudo_manual__basic_list_twin_sync__example_basic_list_type_basic_general_enum_twin_sync_twin_sync_impl(ptr, rust_vec_len, data_len), -377 => wire__crate__api__pseudo_manual__basic_list_twin_sync__example_basic_list_type_basic_primitive_enum_twin_sync_twin_sync_impl(ptr, rust_vec_len, data_len), -378 => wire__crate__api__pseudo_manual__basic_list_twin_sync__example_basic_list_type_basic_struct_twin_sync_twin_sync_impl(ptr, rust_vec_len, data_len), -379 => wire__crate__api__pseudo_manual__basic_list_twin_sync__example_basic_list_type_bool_twin_sync_impl(ptr, rust_vec_len, data_len), -380 => wire__crate__api__pseudo_manual__basic_list_twin_sync__example_basic_list_type_bytes_twin_sync_impl(ptr, rust_vec_len, data_len), -381 => wire__crate__api__pseudo_manual__basic_list_twin_sync__example_basic_list_type_f32_twin_sync_impl(ptr, rust_vec_len, data_len), -382 => wire__crate__api__pseudo_manual__basic_list_twin_sync__example_basic_list_type_f64_twin_sync_impl(ptr, rust_vec_len, data_len), -383 => wire__crate__api__pseudo_manual__basic_list_twin_sync__example_basic_list_type_i16_twin_sync_impl(ptr, rust_vec_len, data_len), -384 => wire__crate__api__pseudo_manual__basic_list_twin_sync__example_basic_list_type_i32_twin_sync_impl(ptr, rust_vec_len, data_len), -385 => wire__crate__api__pseudo_manual__basic_list_twin_sync__example_basic_list_type_i64_twin_sync_impl(ptr, rust_vec_len, data_len), -386 => wire__crate__api__pseudo_manual__basic_list_twin_sync__example_basic_list_type_i8_twin_sync_impl(ptr, rust_vec_len, data_len), -387 => wire__crate__api__pseudo_manual__basic_list_twin_sync__example_basic_list_type_string_twin_sync_impl(ptr, rust_vec_len, data_len), -388 => wire__crate__api__pseudo_manual__basic_list_twin_sync__example_basic_list_type_u16_twin_sync_impl(ptr, rust_vec_len, data_len), -389 => wire__crate__api__pseudo_manual__basic_list_twin_sync__example_basic_list_type_u32_twin_sync_impl(ptr, rust_vec_len, data_len), -390 => wire__crate__api__pseudo_manual__basic_list_twin_sync__example_basic_list_type_u64_twin_sync_impl(ptr, rust_vec_len, data_len), -391 => wire__crate__api__pseudo_manual__basic_list_twin_sync__example_basic_list_type_u8_twin_sync_impl(ptr, rust_vec_len, data_len), -432 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_basic_general_enum_twin_sync_twin_sync_impl(ptr, rust_vec_len, data_len), -433 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_basic_primitive_enum_twin_sync_twin_sync_impl(ptr, rust_vec_len, data_len), -434 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_basic_struct_twin_sync_twin_sync_impl(ptr, rust_vec_len, data_len), -435 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_bool_twin_sync_impl(ptr, rust_vec_len, data_len), -436 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_bytes_twin_sync_impl(ptr, rust_vec_len, data_len), -437 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_f32_twin_sync_impl(ptr, rust_vec_len, data_len), -438 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_f64_twin_sync_impl(ptr, rust_vec_len, data_len), -439 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_i128_twin_sync_impl(ptr, rust_vec_len, data_len), -440 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_i16_twin_sync_impl(ptr, rust_vec_len, data_len), -441 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_i32_twin_sync_impl(ptr, rust_vec_len, data_len), -442 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_i64_twin_sync_impl(ptr, rust_vec_len, data_len), -443 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_i8_twin_sync_impl(ptr, rust_vec_len, data_len), -444 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_isize_twin_sync_impl(ptr, rust_vec_len, data_len), -445 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_string_twin_sync_impl(ptr, rust_vec_len, data_len), -446 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_u128_twin_sync_impl(ptr, rust_vec_len, data_len), -447 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_u16_twin_sync_impl(ptr, rust_vec_len, data_len), -448 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_u32_twin_sync_impl(ptr, rust_vec_len, data_len), -449 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_u64_twin_sync_impl(ptr, rust_vec_len, data_len), -450 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_u8_twin_sync_impl(ptr, rust_vec_len, data_len), -451 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_usize_twin_sync_impl(ptr, rust_vec_len, data_len), -492 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_basic_general_enum_twin_sync_twin_sync_impl(ptr, rust_vec_len, data_len), -493 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_basic_primitive_enum_twin_sync_twin_sync_impl(ptr, rust_vec_len, data_len), -494 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_basic_struct_twin_sync_twin_sync_impl(ptr, rust_vec_len, data_len), -495 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_bool_twin_sync_impl(ptr, rust_vec_len, data_len), -496 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_bytes_twin_sync_impl(ptr, rust_vec_len, data_len), -497 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_f32_twin_sync_impl(ptr, rust_vec_len, data_len), -498 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_f64_twin_sync_impl(ptr, rust_vec_len, data_len), -499 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_i128_twin_sync_impl(ptr, rust_vec_len, data_len), -500 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_i16_twin_sync_impl(ptr, rust_vec_len, data_len), -501 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_i32_twin_sync_impl(ptr, rust_vec_len, data_len), -502 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_i64_twin_sync_impl(ptr, rust_vec_len, data_len), -503 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_i8_twin_sync_impl(ptr, rust_vec_len, data_len), -504 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_isize_twin_sync_impl(ptr, rust_vec_len, data_len), -505 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_string_twin_sync_impl(ptr, rust_vec_len, data_len), -506 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_u128_twin_sync_impl(ptr, rust_vec_len, data_len), -507 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_u16_twin_sync_impl(ptr, rust_vec_len, data_len), -508 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_u32_twin_sync_impl(ptr, rust_vec_len, data_len), -509 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_u64_twin_sync_impl(ptr, rust_vec_len, data_len), -510 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_u8_twin_sync_impl(ptr, rust_vec_len, data_len), -511 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_usize_twin_sync_impl(ptr, rust_vec_len, data_len), -532 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_basic_general_enum_twin_sync_twin_sync_impl(ptr, rust_vec_len, data_len), -533 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_basic_primitive_enum_twin_sync_twin_sync_impl(ptr, rust_vec_len, data_len), -534 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_basic_struct_twin_sync_twin_sync_impl(ptr, rust_vec_len, data_len), -535 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_bool_twin_sync_impl(ptr, rust_vec_len, data_len), -536 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_bytes_twin_sync_impl(ptr, rust_vec_len, data_len), -537 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_f32_twin_sync_impl(ptr, rust_vec_len, data_len), -538 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_f64_twin_sync_impl(ptr, rust_vec_len, data_len), -539 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_i128_twin_sync_impl(ptr, rust_vec_len, data_len), -540 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_i16_twin_sync_impl(ptr, rust_vec_len, data_len), -541 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_i32_twin_sync_impl(ptr, rust_vec_len, data_len), -542 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_i64_twin_sync_impl(ptr, rust_vec_len, data_len), -543 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_i8_twin_sync_impl(ptr, rust_vec_len, data_len), -544 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_isize_twin_sync_impl(ptr, rust_vec_len, data_len), -545 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_string_twin_sync_impl(ptr, rust_vec_len, data_len), -546 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_u128_twin_sync_impl(ptr, rust_vec_len, data_len), -547 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_u16_twin_sync_impl(ptr, rust_vec_len, data_len), -548 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_u32_twin_sync_impl(ptr, rust_vec_len, data_len), -549 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_u64_twin_sync_impl(ptr, rust_vec_len, data_len), -550 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_u8_twin_sync_impl(ptr, rust_vec_len, data_len), -551 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_usize_twin_sync_impl(ptr, rust_vec_len, data_len), -582 => wire__crate__api__pseudo_manual__benchmark_api_twin_sync__benchmark_binary_tree_input_json_twin_sync_impl(ptr, rust_vec_len, data_len), -583 => wire__crate__api__pseudo_manual__benchmark_api_twin_sync__benchmark_binary_tree_input_protobuf_twin_sync_impl(ptr, rust_vec_len, data_len), -584 => wire__crate__api__pseudo_manual__benchmark_api_twin_sync__benchmark_binary_tree_input_twin_sync_impl(ptr, rust_vec_len, data_len), -585 => wire__crate__api__pseudo_manual__benchmark_api_twin_sync__benchmark_binary_tree_output_json_twin_sync_impl(ptr, rust_vec_len, data_len), -586 => wire__crate__api__pseudo_manual__benchmark_api_twin_sync__benchmark_binary_tree_output_protobuf_twin_sync_impl(ptr, rust_vec_len, data_len), -587 => wire__crate__api__pseudo_manual__benchmark_api_twin_sync__benchmark_binary_tree_output_twin_sync_impl(ptr, rust_vec_len, data_len), -588 => wire__crate__api__pseudo_manual__benchmark_api_twin_sync__benchmark_blob_input_json_twin_sync_impl(ptr, rust_vec_len, data_len), -589 => wire__crate__api__pseudo_manual__benchmark_api_twin_sync__benchmark_blob_input_protobuf_twin_sync_impl(ptr, rust_vec_len, data_len), -590 => wire__crate__api__pseudo_manual__benchmark_api_twin_sync__benchmark_blob_input_twin_sync_impl(ptr, rust_vec_len, data_len), -591 => wire__crate__api__pseudo_manual__benchmark_api_twin_sync__benchmark_blob_output_json_twin_sync_impl(ptr, rust_vec_len, data_len), -592 => wire__crate__api__pseudo_manual__benchmark_api_twin_sync__benchmark_blob_output_protobuf_twin_sync_impl(ptr, rust_vec_len, data_len), -593 => wire__crate__api__pseudo_manual__benchmark_api_twin_sync__benchmark_blob_output_twin_sync_impl(ptr, rust_vec_len, data_len), -594 => wire__crate__api__pseudo_manual__benchmark_api_twin_sync__benchmark_input_bytes_twin_sync_impl(ptr, rust_vec_len, data_len), -595 => wire__crate__api__pseudo_manual__benchmark_api_twin_sync__benchmark_output_bytes_twin_sync_impl(ptr, rust_vec_len, data_len), -596 => wire__crate__api__pseudo_manual__benchmark_api_twin_sync__benchmark_void_twin_sync_impl(ptr, rust_vec_len, data_len), -607 => wire__crate__api__pseudo_manual__chrono_type_twin_sync__datetime_local_twin_sync_impl(ptr, rust_vec_len, data_len), -608 => wire__crate__api__pseudo_manual__chrono_type_twin_sync__datetime_utc_twin_sync_impl(ptr, rust_vec_len, data_len), -609 => wire__crate__api__pseudo_manual__chrono_type_twin_sync__duration_twin_sync_impl(ptr, rust_vec_len, data_len), -610 => wire__crate__api__pseudo_manual__chrono_type_twin_sync__handle_durations_twin_sync_impl(ptr, rust_vec_len, data_len), -611 => wire__crate__api__pseudo_manual__chrono_type_twin_sync__handle_timestamps_twin_sync_impl(ptr, rust_vec_len, data_len), -612 => wire__crate__api__pseudo_manual__chrono_type_twin_sync__how_long_does_it_take_twin_sync_impl(ptr, rust_vec_len, data_len), -613 => wire__crate__api__pseudo_manual__chrono_type_twin_sync__naivedatetime_twin_sync_impl(ptr, rust_vec_len, data_len), -614 => wire__crate__api__pseudo_manual__chrono_type_twin_sync__optional_empty_datetime_utc_twin_sync_impl(ptr, rust_vec_len, data_len), -615 => wire__crate__api__pseudo_manual__chrono_type_twin_sync__test_chrono_twin_sync_impl(ptr, rust_vec_len, data_len), -616 => wire__crate__api__pseudo_manual__chrono_type_twin_sync__test_precise_chrono_twin_sync_impl(ptr, rust_vec_len, data_len), -622 => wire__crate__api__pseudo_manual__comment_twin_sync__function_with_comments_slash_star_star_twin_sync_impl(ptr, rust_vec_len, data_len), -623 => wire__crate__api__pseudo_manual__comment_twin_sync__function_with_comments_triple_slash_multi_line_twin_sync_impl(ptr, rust_vec_len, data_len), -624 => wire__crate__api__pseudo_manual__comment_twin_sync__function_with_comments_triple_slash_single_line_twin_sync_impl(ptr, rust_vec_len, data_len), -625 => wire__crate__api__pseudo_manual__comment_twin_sync__struct_with_comments_twin_sync_instance_method_twin_sync_impl(ptr, rust_vec_len, data_len), -626 => wire__crate__api__pseudo_manual__comment_twin_sync__struct_with_comments_twin_sync_static_method_twin_sync_impl(ptr, rust_vec_len, data_len), -652 => wire__crate__api__pseudo_manual__dart_opaque_twin_sync__async_accept_dart_opaque_twin_sync_impl(ptr, rust_vec_len, data_len), -653 => wire__crate__api__pseudo_manual__dart_opaque_twin_sync__clone_dart_opaque_twin_sync_impl(ptr, rust_vec_len, data_len), -654 => wire__crate__api__pseudo_manual__dart_opaque_twin_sync__create_enum_dart_opaque_twin_sync_impl(ptr, rust_vec_len, data_len), -655 => wire__crate__api__pseudo_manual__dart_opaque_twin_sync__create_nested_dart_opaque_twin_sync_impl(ptr, rust_vec_len, data_len), -656 => wire__crate__api__pseudo_manual__dart_opaque_twin_sync__drop_static_dart_opaque_twin_sync_impl(ptr, rust_vec_len, data_len), -657 => wire__crate__api__pseudo_manual__dart_opaque_twin_sync__get_enum_dart_opaque_twin_sync_impl(ptr, rust_vec_len, data_len), -658 => wire__crate__api__pseudo_manual__dart_opaque_twin_sync__get_nested_dart_opaque_twin_sync_impl(ptr, rust_vec_len, data_len), -659 => wire__crate__api__pseudo_manual__dart_opaque_twin_sync__loop_back_array_get_twin_sync_impl(ptr, rust_vec_len, data_len), -660 => wire__crate__api__pseudo_manual__dart_opaque_twin_sync__loop_back_array_twin_sync_impl(ptr, rust_vec_len, data_len), -661 => wire__crate__api__pseudo_manual__dart_opaque_twin_sync__loop_back_option_get_twin_sync_impl(ptr, rust_vec_len, data_len), -662 => wire__crate__api__pseudo_manual__dart_opaque_twin_sync__loop_back_option_twin_sync_impl(ptr, rust_vec_len, data_len), -663 => wire__crate__api__pseudo_manual__dart_opaque_twin_sync__loop_back_twin_sync_impl(ptr, rust_vec_len, data_len), -664 => wire__crate__api__pseudo_manual__dart_opaque_twin_sync__loop_back_vec_get_twin_sync_impl(ptr, rust_vec_len, data_len), -665 => wire__crate__api__pseudo_manual__dart_opaque_twin_sync__loop_back_vec_twin_sync_impl(ptr, rust_vec_len, data_len), -666 => wire__crate__api__pseudo_manual__dart_opaque_twin_sync__panic_unwrap_dart_opaque_twin_sync_impl(ptr, rust_vec_len, data_len), -667 => wire__crate__api__pseudo_manual__dart_opaque_twin_sync__set_static_dart_opaque_twin_sync_impl(ptr, rust_vec_len, data_len), -672 => wire__crate__api__pseudo_manual__dropping_twin_sync__DroppableTwinSync_create_stream_twin_sync_impl(ptr, rust_vec_len, data_len), -673 => wire__crate__api__pseudo_manual__dropping_twin_sync__DroppableTwinSync_get_drop_count_twin_sync_impl(ptr, rust_vec_len, data_len), -674 => wire__crate__api__pseudo_manual__dropping_twin_sync__DroppableTwinSync_new_twin_sync_impl(ptr, rust_vec_len, data_len), -675 => wire__crate__api__pseudo_manual__dropping_twin_sync__DroppableTwinSync_simple_method_twin_sync_impl(ptr, rust_vec_len, data_len), -686 => wire__crate__api__pseudo_manual__enumeration_twin_sync__func_enum_simple_twin_sync_impl(ptr, rust_vec_len, data_len), -687 => wire__crate__api__pseudo_manual__enumeration_twin_sync__func_enum_with_discriminant_twin_sync_impl(ptr, rust_vec_len, data_len), -688 => wire__crate__api__pseudo_manual__enumeration_twin_sync__func_enum_with_item_mixed_twin_sync_impl(ptr, rust_vec_len, data_len), -689 => wire__crate__api__pseudo_manual__enumeration_twin_sync__func_enum_with_item_struct_twin_sync_impl(ptr, rust_vec_len, data_len), -690 => wire__crate__api__pseudo_manual__enumeration_twin_sync__func_enum_with_item_tuple_twin_sync_impl(ptr, rust_vec_len, data_len), -691 => wire__crate__api__pseudo_manual__enumeration_twin_sync__handle_enum_parameter_twin_sync_impl(ptr, rust_vec_len, data_len), -692 => wire__crate__api__pseudo_manual__enumeration_twin_sync__handle_enum_struct_twin_sync_impl(ptr, rust_vec_len, data_len), -693 => wire__crate__api__pseudo_manual__enumeration_twin_sync__handle_return_enum_twin_sync_impl(ptr, rust_vec_len, data_len), -694 => wire__crate__api__pseudo_manual__enumeration_twin_sync__multiply_by_ten_twin_sync_impl(ptr, rust_vec_len, data_len), -695 => wire__crate__api__pseudo_manual__enumeration_twin_sync__print_note_twin_sync_impl(ptr, rust_vec_len, data_len), -729 => wire__crate__api__pseudo_manual__exception_twin_sync__custom_enum_error_panic_twin_sync_impl(ptr, rust_vec_len, data_len), -730 => wire__crate__api__pseudo_manual__exception_twin_sync__custom_enum_error_return_error_twin_sync_impl(ptr, rust_vec_len, data_len), -731 => wire__crate__api__pseudo_manual__exception_twin_sync__custom_enum_error_return_ok_twin_sync_impl(ptr, rust_vec_len, data_len), -732 => wire__crate__api__pseudo_manual__exception_twin_sync__custom_nested_error_return_error_twin_sync_impl(ptr, rust_vec_len, data_len), -733 => wire__crate__api__pseudo_manual__exception_twin_sync__custom_struct_error_return_error_twin_sync_impl(ptr, rust_vec_len, data_len), -734 => wire__crate__api__pseudo_manual__exception_twin_sync__custom_struct_twin_sync_new_twin_sync_impl(ptr, rust_vec_len, data_len), -735 => wire__crate__api__pseudo_manual__exception_twin_sync__custom_struct_twin_sync_nonstatic_return_custom_struct_error_twin_sync_impl(ptr, rust_vec_len, data_len), -736 => wire__crate__api__pseudo_manual__exception_twin_sync__custom_struct_twin_sync_nonstatic_return_custom_struct_ok_twin_sync_impl(ptr, rust_vec_len, data_len), -737 => wire__crate__api__pseudo_manual__exception_twin_sync__custom_struct_twin_sync_static_return_custom_struct_error_twin_sync_impl(ptr, rust_vec_len, data_len), -738 => wire__crate__api__pseudo_manual__exception_twin_sync__custom_struct_twin_sync_static_return_custom_struct_ok_twin_sync_impl(ptr, rust_vec_len, data_len), -739 => wire__crate__api__pseudo_manual__exception_twin_sync__func_return_error_twin_sync_impl(ptr, rust_vec_len, data_len), -740 => wire__crate__api__pseudo_manual__exception_twin_sync__func_type_fallible_panic_twin_sync_impl(ptr, rust_vec_len, data_len), -741 => wire__crate__api__pseudo_manual__exception_twin_sync__func_type_infallible_panic_twin_sync_impl(ptr, rust_vec_len, data_len), -742 => wire__crate__api__pseudo_manual__exception_twin_sync__panic_with_custom_result_twin_sync_impl(ptr, rust_vec_len, data_len), -743 => wire__crate__api__pseudo_manual__exception_twin_sync__return_custom_nested_error_1_twin_sync_impl(ptr, rust_vec_len, data_len), -744 => wire__crate__api__pseudo_manual__exception_twin_sync__return_custom_nested_error_1_variant1_twin_sync_impl(ptr, rust_vec_len, data_len), -745 => wire__crate__api__pseudo_manual__exception_twin_sync__return_custom_nested_error_2_twin_sync_impl(ptr, rust_vec_len, data_len), -746 => wire__crate__api__pseudo_manual__exception_twin_sync__return_custom_struct_error_twin_sync_impl(ptr, rust_vec_len, data_len), -747 => wire__crate__api__pseudo_manual__exception_twin_sync__return_custom_struct_ok_twin_sync_impl(ptr, rust_vec_len, data_len), -748 => wire__crate__api__pseudo_manual__exception_twin_sync__return_err_custom_error_twin_sync_impl(ptr, rust_vec_len, data_len), -749 => wire__crate__api__pseudo_manual__exception_twin_sync__return_error_variant_twin_sync_impl(ptr, rust_vec_len, data_len), -750 => wire__crate__api__pseudo_manual__exception_twin_sync__return_ok_custom_error_twin_sync_impl(ptr, rust_vec_len, data_len), -751 => wire__crate__api__pseudo_manual__exception_twin_sync__some_struct_twin_sync_new_twin_sync_impl(ptr, rust_vec_len, data_len), -752 => wire__crate__api__pseudo_manual__exception_twin_sync__some_struct_twin_sync_non_static_return_err_custom_error_twin_sync_impl(ptr, rust_vec_len, data_len), -753 => wire__crate__api__pseudo_manual__exception_twin_sync__some_struct_twin_sync_non_static_return_ok_custom_error_twin_sync_impl(ptr, rust_vec_len, data_len), -754 => wire__crate__api__pseudo_manual__exception_twin_sync__some_struct_twin_sync_static_return_err_custom_error_twin_sync_impl(ptr, rust_vec_len, data_len), -755 => wire__crate__api__pseudo_manual__exception_twin_sync__some_struct_twin_sync_static_return_ok_custom_error_twin_sync_impl(ptr, rust_vec_len, data_len), -756 => wire__crate__api__pseudo_manual__exception_twin_sync__stream_sink_throw_anyhow_twin_sync_impl(ptr, rust_vec_len, data_len), -757 => wire__crate__api__pseudo_manual__exception_twin_sync__throw_anyhow_twin_sync_impl(ptr, rust_vec_len, data_len), -762 => wire__crate__api__pseudo_manual__external_type_in_crate_twin_sync__call_new_module_system_twin_sync_impl(ptr, rust_vec_len, data_len), -763 => wire__crate__api__pseudo_manual__external_type_in_crate_twin_sync__call_old_module_system_twin_sync_impl(ptr, rust_vec_len, data_len), -764 => wire__crate__api__pseudo_manual__external_type_in_crate_twin_sync__use_imported_enum_twin_sync_impl(ptr, rust_vec_len, data_len), -765 => wire__crate__api__pseudo_manual__external_type_in_crate_twin_sync__use_imported_struct_twin_sync_impl(ptr, rust_vec_len, data_len), -766 => wire__crate__api__pseudo_manual__impl_trait_twin_sync__StructOneWithTraitTwinSync_auto_accessor_get_one_impl(ptr, rust_vec_len, data_len), -767 => wire__crate__api__pseudo_manual__impl_trait_twin_sync__StructOneWithTraitTwinSync_auto_accessor_set_one_impl(ptr, rust_vec_len, data_len), -771 => wire__crate__api__pseudo_manual__impl_trait_twin_sync__StructTwoWithTraitTwinSync_auto_accessor_get_two_impl(ptr, rust_vec_len, data_len), -772 => wire__crate__api__pseudo_manual__impl_trait_twin_sync__StructTwoWithTraitTwinSync_auto_accessor_set_two_impl(ptr, rust_vec_len, data_len), -787 => wire__crate__api__pseudo_manual__map_and_set_twin_sync__func_hash_map_i32_i32_twin_sync_impl(ptr, rust_vec_len, data_len), -788 => wire__crate__api__pseudo_manual__map_and_set_twin_sync__func_hash_map_string_bytes_twin_sync_impl(ptr, rust_vec_len, data_len), -789 => wire__crate__api__pseudo_manual__map_and_set_twin_sync__func_hash_map_string_complex_enum_twin_sync_impl(ptr, rust_vec_len, data_len), -790 => wire__crate__api__pseudo_manual__map_and_set_twin_sync__func_hash_map_string_simple_enum_twin_sync_impl(ptr, rust_vec_len, data_len), -791 => wire__crate__api__pseudo_manual__map_and_set_twin_sync__func_hash_map_string_string_twin_sync_impl(ptr, rust_vec_len, data_len), -792 => wire__crate__api__pseudo_manual__map_and_set_twin_sync__func_hash_map_string_struct_twin_sync_impl(ptr, rust_vec_len, data_len), -793 => wire__crate__api__pseudo_manual__map_and_set_twin_sync__func_hash_set_i32_twin_sync_impl(ptr, rust_vec_len, data_len), -794 => wire__crate__api__pseudo_manual__map_and_set_twin_sync__func_hash_set_string_twin_sync_impl(ptr, rust_vec_len, data_len), -817 => wire__crate__api__pseudo_manual__method_twin_sync__StaticGetterOnlyTwinSync_static_getter_twin_sync_impl(ptr, rust_vec_len, data_len), -818 => wire__crate__api__pseudo_manual__method_twin_sync__concatenate_with_twin_sync_concatenate_static_twin_sync_impl(ptr, rust_vec_len, data_len), -819 => wire__crate__api__pseudo_manual__method_twin_sync__concatenate_with_twin_sync_concatenate_twin_sync_impl(ptr, rust_vec_len, data_len), -820 => wire__crate__api__pseudo_manual__method_twin_sync__concatenate_with_twin_sync_handle_some_static_stream_sink_single_arg_twin_sync_impl(ptr, rust_vec_len, data_len), -821 => wire__crate__api__pseudo_manual__method_twin_sync__concatenate_with_twin_sync_handle_some_static_stream_sink_twin_sync_impl(ptr, rust_vec_len, data_len), -822 => wire__crate__api__pseudo_manual__method_twin_sync__concatenate_with_twin_sync_handle_some_stream_sink_at_1_twin_sync_impl(ptr, rust_vec_len, data_len), -823 => wire__crate__api__pseudo_manual__method_twin_sync__concatenate_with_twin_sync_handle_some_stream_sink_twin_sync_impl(ptr, rust_vec_len, data_len), -824 => wire__crate__api__pseudo_manual__method_twin_sync__concatenate_with_twin_sync_new_twin_sync_impl(ptr, rust_vec_len, data_len), -825 => wire__crate__api__pseudo_manual__method_twin_sync__concatenate_with_twin_sync_simple_getter_twin_sync_impl(ptr, rust_vec_len, data_len), -826 => wire__crate__api__pseudo_manual__method_twin_sync__get_sum_array_twin_sync_impl(ptr, rust_vec_len, data_len), -827 => wire__crate__api__pseudo_manual__method_twin_sync__get_sum_struct_twin_sync_impl(ptr, rust_vec_len, data_len), -828 => wire__crate__api__pseudo_manual__method_twin_sync__my_callable_twin_sync_call_impl(ptr, rust_vec_len, data_len), -829 => wire__crate__api__pseudo_manual__method_twin_sync__simple_enum_twin_sync_return_self_twin_sync_impl(ptr, rust_vec_len, data_len), -830 => wire__crate__api__pseudo_manual__method_twin_sync__simple_enum_twin_sync_simple_method_twin_sync_impl(ptr, rust_vec_len, data_len), -831 => wire__crate__api__pseudo_manual__method_twin_sync__simple_primitive_enum_twin_sync_simple_method_twin_sync_impl(ptr, rust_vec_len, data_len), -832 => wire__crate__api__pseudo_manual__method_twin_sync__simple_struct_twin_sync_arg_self_twin_sync_impl(ptr, rust_vec_len, data_len), -833 => wire__crate__api__pseudo_manual__method_twin_sync__simple_struct_twin_sync_receiver_borrow_twin_sync_impl(ptr, rust_vec_len, data_len), -834 => wire__crate__api__pseudo_manual__method_twin_sync__simple_struct_twin_sync_receiver_own_twin_sync_impl(ptr, rust_vec_len, data_len), -835 => wire__crate__api__pseudo_manual__method_twin_sync__simple_struct_twin_sync_return_self_twin_sync_impl(ptr, rust_vec_len, data_len), -836 => wire__crate__api__pseudo_manual__method_twin_sync__simple_struct_twin_sync_vec_self_twin_sync_impl(ptr, rust_vec_len, data_len), -837 => wire__crate__api__pseudo_manual__method_twin_sync__static_only_twin_sync_static_method_twin_sync_impl(ptr, rust_vec_len, data_len), -838 => wire__crate__api__pseudo_manual__method_twin_sync__sum_with_twin_sync_sum_twin_sync_impl(ptr, rust_vec_len, data_len), -865 => wire__crate__api__pseudo_manual__mirror_twin_sync__app_settings_stream_twin_sync_impl(ptr, rust_vec_len, data_len), -866 => wire__crate__api__pseudo_manual__mirror_twin_sync__app_settings_vec_stream_twin_sync_impl(ptr, rust_vec_len, data_len), -867 => wire__crate__api__pseudo_manual__mirror_twin_sync__first_number_twin_sync_impl(ptr, rust_vec_len, data_len), -868 => wire__crate__api__pseudo_manual__mirror_twin_sync__first_sequence_twin_sync_impl(ptr, rust_vec_len, data_len), -869 => wire__crate__api__pseudo_manual__mirror_twin_sync__get_app_settings_twin_sync_impl(ptr, rust_vec_len, data_len), -870 => wire__crate__api__pseudo_manual__mirror_twin_sync__get_fallible_app_settings_twin_sync_impl(ptr, rust_vec_len, data_len), -871 => wire__crate__api__pseudo_manual__mirror_twin_sync__get_message_twin_sync_impl(ptr, rust_vec_len, data_len), -872 => wire__crate__api__pseudo_manual__mirror_twin_sync__is_app_embedded_twin_sync_impl(ptr, rust_vec_len, data_len), -873 => wire__crate__api__pseudo_manual__mirror_twin_sync__mirror_array_enum_stream_twin_sync_impl(ptr, rust_vec_len, data_len), -874 => wire__crate__api__pseudo_manual__mirror_twin_sync__mirror_enum_stream_twin_sync_impl(ptr, rust_vec_len, data_len), -875 => wire__crate__api__pseudo_manual__mirror_twin_sync__mirror_map_enum_stream_twin_sync_impl(ptr, rust_vec_len, data_len), -876 => wire__crate__api__pseudo_manual__mirror_twin_sync__mirror_option_enum_stream_twin_sync_impl(ptr, rust_vec_len, data_len), -877 => wire__crate__api__pseudo_manual__mirror_twin_sync__mirror_set_enum_stream_twin_sync_impl(ptr, rust_vec_len, data_len), -878 => wire__crate__api__pseudo_manual__mirror_twin_sync__mirror_struct_stream_twin_sync_impl(ptr, rust_vec_len, data_len), -879 => wire__crate__api__pseudo_manual__mirror_twin_sync__mirror_tuple_stream_twin_sync_impl(ptr, rust_vec_len, data_len), -880 => wire__crate__api__pseudo_manual__mirror_twin_sync__mirror_vec_enum_stream_twin_sync_impl(ptr, rust_vec_len, data_len), -881 => wire__crate__api__pseudo_manual__mirror_twin_sync__repeat_number_twin_sync_impl(ptr, rust_vec_len, data_len), -882 => wire__crate__api__pseudo_manual__mirror_twin_sync__repeat_sequence_twin_sync_impl(ptr, rust_vec_len, data_len), -883 => wire__crate__api__pseudo_manual__mirror_twin_sync__test_contains_mirrored_sub_struct_twin_sync_impl(ptr, rust_vec_len, data_len), -884 => wire__crate__api__pseudo_manual__mirror_twin_sync__test_fallible_of_raw_string_mirrored_twin_sync_impl(ptr, rust_vec_len, data_len), -885 => wire__crate__api__pseudo_manual__mirror_twin_sync__test_hashmap_with_mirrored_value_twin_sync_impl(ptr, rust_vec_len, data_len), -886 => wire__crate__api__pseudo_manual__mirror_twin_sync__test_list_of_nested_enums_mirrored_twin_sync_impl(ptr, rust_vec_len, data_len), -887 => wire__crate__api__pseudo_manual__mirror_twin_sync__test_list_of_raw_nested_string_mirrored_twin_sync_impl(ptr, rust_vec_len, data_len), -888 => wire__crate__api__pseudo_manual__mirror_twin_sync__test_nested_raw_string_mirrored_twin_sync_impl(ptr, rust_vec_len, data_len), -889 => wire__crate__api__pseudo_manual__mirror_twin_sync__test_raw_string_enum_mirrored_twin_sync_impl(ptr, rust_vec_len, data_len), -890 => wire__crate__api__pseudo_manual__mirror_twin_sync__test_raw_string_mirrored_twin_sync_impl(ptr, rust_vec_len, data_len), -902 => wire__crate__api__pseudo_manual__misc_example_twin_sync__handle_big_buffers_twin_sync_impl(ptr, rust_vec_len, data_len), -903 => wire__crate__api__pseudo_manual__misc_example_twin_sync__handle_char_twin_sync_impl(ptr, rust_vec_len, data_len), -904 => wire__crate__api__pseudo_manual__misc_example_twin_sync__handle_complex_struct_twin_sync_impl(ptr, rust_vec_len, data_len), -905 => wire__crate__api__pseudo_manual__misc_example_twin_sync__handle_nested_struct_twin_sync_impl(ptr, rust_vec_len, data_len), -906 => wire__crate__api__pseudo_manual__misc_example_twin_sync__handle_string_twin_sync_impl(ptr, rust_vec_len, data_len), -907 => wire__crate__api__pseudo_manual__misc_example_twin_sync__handle_struct_twin_sync_impl(ptr, rust_vec_len, data_len), -908 => wire__crate__api__pseudo_manual__misc_example_twin_sync__handle_vec_u8_twin_sync_impl(ptr, rust_vec_len, data_len), -909 => wire__crate__api__pseudo_manual__misc_example_twin_sync__list_of_primitive_enums_twin_sync_impl(ptr, rust_vec_len, data_len), -910 => wire__crate__api__pseudo_manual__misc_example_twin_sync__positional_arguments_twin_sync_impl(ptr, rust_vec_len, data_len), -911 => wire__crate__api__pseudo_manual__misc_example_twin_sync__test_abc_enum_twin_sync_impl(ptr, rust_vec_len, data_len), -912 => wire__crate__api__pseudo_manual__misc_example_twin_sync__test_struct_with_enum_twin_sync_impl(ptr, rust_vec_len, data_len), -917 => wire__crate__api__pseudo_manual__misc_type_twin_sync__empty_struct_twin_sync_impl(ptr, rust_vec_len, data_len), -918 => wire__crate__api__pseudo_manual__misc_type_twin_sync__func_return_unit_twin_sync_impl(ptr, rust_vec_len, data_len), -919 => wire__crate__api__pseudo_manual__misc_type_twin_sync__handle_list_of_struct_twin_sync_impl(ptr, rust_vec_len, data_len), -920 => wire__crate__api__pseudo_manual__misc_type_twin_sync__handle_string_list_twin_sync_impl(ptr, rust_vec_len, data_len), -922 => wire__crate__api__pseudo_manual__newtype_pattern_twin_sync__handle_newtype_twin_sync_impl(ptr, rust_vec_len, data_len), -924 => wire__crate__api__pseudo_manual__optional_primitive_misc_twin_sync__primitive_optional_types_twin_sync_impl(ptr, rust_vec_len, data_len), -931 => wire__crate__api__pseudo_manual__optional_twin_sync__handle_increment_boxed_optional_twin_sync_impl(ptr, rust_vec_len, data_len), -932 => wire__crate__api__pseudo_manual__optional_twin_sync__handle_option_box_arguments_twin_sync_impl(ptr, rust_vec_len, data_len), -933 => wire__crate__api__pseudo_manual__optional_twin_sync__handle_optional_increment_twin_sync_impl(ptr, rust_vec_len, data_len), -934 => wire__crate__api__pseudo_manual__optional_twin_sync__handle_optional_return_twin_sync_impl(ptr, rust_vec_len, data_len), -935 => wire__crate__api__pseudo_manual__optional_twin_sync__handle_optional_struct_twin_sync_impl(ptr, rust_vec_len, data_len), -936 => wire__crate__api__pseudo_manual__optional_twin_sync__handle_vec_of_opts_twin_sync_impl(ptr, rust_vec_len, data_len), -943 => wire__crate__api__pseudo_manual__ownership_twin_sync__borrow_i32_twin_sync_impl(ptr, rust_vec_len, data_len), -944 => wire__crate__api__pseudo_manual__ownership_twin_sync__borrow_slice_string_twin_sync_impl(ptr, rust_vec_len, data_len), -945 => wire__crate__api__pseudo_manual__ownership_twin_sync__borrow_slice_u8_twin_sync_impl(ptr, rust_vec_len, data_len), -946 => wire__crate__api__pseudo_manual__ownership_twin_sync__borrow_str_twin_sync_impl(ptr, rust_vec_len, data_len), -947 => wire__crate__api__pseudo_manual__ownership_twin_sync__borrow_string_twin_sync_impl(ptr, rust_vec_len, data_len), -948 => wire__crate__api__pseudo_manual__ownership_twin_sync__borrow_struct_twin_sync_impl(ptr, rust_vec_len, data_len), -950 => wire__crate__api__pseudo_manual__primitive_list_misc_twin_sync__handle_vec_of_primitive_twin_sync_impl(ptr, rust_vec_len, data_len), -953 => wire__crate__api__pseudo_manual__primitive_misc_twin_sync__primitive_types_twin_sync_impl(ptr, rust_vec_len, data_len), -954 => wire__crate__api__pseudo_manual__primitive_misc_twin_sync__primitive_u32_twin_sync_impl(ptr, rust_vec_len, data_len), -957 => wire__crate__api__pseudo_manual__raw_string_twin_sync__test_more_than_just_one_raw_string_struct_twin_sync_impl(ptr, rust_vec_len, data_len), -958 => wire__crate__api__pseudo_manual__raw_string_twin_sync__test_raw_string_item_struct_twin_sync_impl(ptr, rust_vec_len, data_len), -971 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__StructWithGoodAndOpaqueFieldWithoutOptionTwinRustAsync_auto_accessor_get_good_impl(ptr, rust_vec_len, data_len), -972 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__StructWithGoodAndOpaqueFieldWithoutOptionTwinRustAsync_auto_accessor_set_good_impl(ptr, rust_vec_len, data_len), -1005 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__NonCloneSimpleTwinSync_instance_method_arg_borrow_twin_sync_impl(ptr, rust_vec_len, data_len), -1006 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__NonCloneSimpleTwinSync_instance_method_arg_mut_borrow_twin_sync_impl(ptr, rust_vec_len, data_len), -1007 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__NonCloneSimpleTwinSync_instance_method_arg_own_twin_sync_impl(ptr, rust_vec_len, data_len), -1008 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__NonCloneSimpleTwinSync_instance_method_getter_twin_sync_impl(ptr, rust_vec_len, data_len), -1009 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__NonCloneSimpleTwinSync_instance_method_return_own_twin_sync_impl(ptr, rust_vec_len, data_len), -1010 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__NonCloneSimpleTwinSync_new_custom_name_twin_sync_impl(ptr, rust_vec_len, data_len), -1011 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__NonCloneSimpleTwinSync_new_twin_sync_impl(ptr, rust_vec_len, data_len), -1012 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__NonCloneSimpleTwinSync_new_with_result_twin_sync_impl(ptr, rust_vec_len, data_len), -1013 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__NonCloneSimpleTwinSync_static_method_arg_borrow_twin_sync_impl(ptr, rust_vec_len, data_len), -1014 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__NonCloneSimpleTwinSync_static_method_arg_mut_borrow_twin_sync_impl(ptr, rust_vec_len, data_len), -1015 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__NonCloneSimpleTwinSync_static_method_arg_own_twin_sync_impl(ptr, rust_vec_len, data_len), -1016 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__NonCloneSimpleTwinSync_static_method_return_own_twin_sync_impl(ptr, rust_vec_len, data_len), -1017 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__StructWithGoodAndOpaqueFieldWithoutOptionTwinSync_auto_accessor_get_good_impl(ptr, rust_vec_len, data_len), -1018 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__StructWithGoodAndOpaqueFieldWithoutOptionTwinSync_auto_accessor_set_good_impl(ptr, rust_vec_len, data_len), -1020 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_arg_borrow_twin_sync_impl(ptr, rust_vec_len, data_len), -1021 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_arg_mut_borrow_twin_sync_impl(ptr, rust_vec_len, data_len), -1022 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_arg_own_and_return_own_twin_sync_impl(ptr, rust_vec_len, data_len), -1023 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_arg_own_twin_sync_impl(ptr, rust_vec_len, data_len), -1024 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_arg_vec_own_twin_sync_impl(ptr, rust_vec_len, data_len), -1025 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_borrow_and_borrow_twin_sync_impl(ptr, rust_vec_len, data_len), -1026 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_borrow_and_mut_borrow_twin_sync_impl(ptr, rust_vec_len, data_len), -1027 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_callable_arg_twin_sync_impl(ptr, rust_vec_len, data_len), -1028 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_callable_return_twin_sync_impl(ptr, rust_vec_len, data_len), -1029 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_dummy_twin_sync_impl(ptr, rust_vec_len, data_len), -1030 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_enum_arg_borrow_twin_sync_impl(ptr, rust_vec_len, data_len), -1031 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_enum_return_own_twin_sync_impl(ptr, rust_vec_len, data_len), -1032 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_enum_with_good_and_opaque_arg_own_twin_sync_impl(ptr, rust_vec_len, data_len), -1033 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_enum_with_good_and_opaque_return_own_good_twin_sync_impl(ptr, rust_vec_len, data_len), -1034 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_enum_with_good_and_opaque_return_own_opaque_twin_sync_impl(ptr, rust_vec_len, data_len), -1035 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_explicit_arg_twin_sync_impl(ptr, rust_vec_len, data_len), -1036 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_explicit_return_struct_twin_sync_impl(ptr, rust_vec_len, data_len), -1037 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_explicit_return_twin_sync_impl(ptr, rust_vec_len, data_len), -1038 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_explicit_struct_twin_sync_impl(ptr, rust_vec_len, data_len), -1039 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_normal_and_opaque_arg_twin_sync_impl(ptr, rust_vec_len, data_len), -1040 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_plus_sign_arg_twin_sync_impl(ptr, rust_vec_len, data_len), -1041 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_plus_sign_return_twin_sync_impl(ptr, rust_vec_len, data_len), -1042 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_return_opaque_one_and_two_twin_sync_impl(ptr, rust_vec_len, data_len), -1043 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_return_opaque_two_twin_sync_impl(ptr, rust_vec_len, data_len), -1044 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_return_own_twin_sync_impl(ptr, rust_vec_len, data_len), -1045 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_return_vec_own_twin_sync_impl(ptr, rust_vec_len, data_len), -1046 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_sleep_twin_sync_impl(ptr, rust_vec_len, data_len), -1047 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_stream_sink_twin_sync_impl(ptr, rust_vec_len, data_len), -1048 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_struct_with_good_and_opaque_field_arg_own_twin_sync_impl(ptr, rust_vec_len, data_len), -1049 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_struct_with_good_and_opaque_field_return_own_twin_sync_impl(ptr, rust_vec_len, data_len), -1050 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_two_args_twin_sync_impl(ptr, rust_vec_len, data_len), -1066 => wire__crate__api__pseudo_manual__rust_opaque_twin_sync__create_array_opaque_enum_twin_sync_impl(ptr, rust_vec_len, data_len), -1067 => wire__crate__api__pseudo_manual__rust_opaque_twin_sync__create_nested_opaque_twin_sync_impl(ptr, rust_vec_len, data_len), -1068 => wire__crate__api__pseudo_manual__rust_opaque_twin_sync__create_opaque_twin_sync_impl(ptr, rust_vec_len, data_len), -1069 => wire__crate__api__pseudo_manual__rust_opaque_twin_sync__create_option_opaque_twin_sync_impl(ptr, rust_vec_len, data_len), -1070 => wire__crate__api__pseudo_manual__rust_opaque_twin_sync__frb_generator_test_twin_sync_impl(ptr, rust_vec_len, data_len), -1071 => wire__crate__api__pseudo_manual__rust_opaque_twin_sync__opaque_array_run_twin_sync_impl(ptr, rust_vec_len, data_len), -1072 => wire__crate__api__pseudo_manual__rust_opaque_twin_sync__opaque_array_twin_sync_impl(ptr, rust_vec_len, data_len), -1073 => wire__crate__api__pseudo_manual__rust_opaque_twin_sync__opaque_vec_run_twin_sync_impl(ptr, rust_vec_len, data_len), -1074 => wire__crate__api__pseudo_manual__rust_opaque_twin_sync__opaque_vec_twin_sync_impl(ptr, rust_vec_len, data_len), -1075 => wire__crate__api__pseudo_manual__rust_opaque_twin_sync__run_enum_opaque_twin_sync_impl(ptr, rust_vec_len, data_len), -1076 => wire__crate__api__pseudo_manual__rust_opaque_twin_sync__run_nested_opaque_twin_sync_impl(ptr, rust_vec_len, data_len), -1077 => wire__crate__api__pseudo_manual__rust_opaque_twin_sync__run_non_clone_twin_sync_impl(ptr, rust_vec_len, data_len), -1078 => wire__crate__api__pseudo_manual__rust_opaque_twin_sync__run_opaque_twin_sync_impl(ptr, rust_vec_len, data_len), -1079 => wire__crate__api__pseudo_manual__rust_opaque_twin_sync__run_opaque_with_delay_twin_sync_impl(ptr, rust_vec_len, data_len), -1080 => wire__crate__api__pseudo_manual__rust_opaque_twin_sync__unwrap_rust_opaque_twin_sync_impl(ptr, rust_vec_len, data_len), -1082 => wire__crate__api__pseudo_manual__simple_twin_sync__simple_adder_twin_sync_impl(ptr, rust_vec_len, data_len), -1101 => wire__crate__api__pseudo_manual__structure_twin_sync__func_for_struct_with_dart_keyword_field_twin_sync_impl(ptr, rust_vec_len, data_len), -1102 => wire__crate__api__pseudo_manual__structure_twin_sync__func_for_struct_with_field_rename_twin_sync_impl(ptr, rust_vec_len, data_len), -1103 => wire__crate__api__pseudo_manual__structure_twin_sync__func_struct_with_one_field_twin_sync_impl(ptr, rust_vec_len, data_len), -1104 => wire__crate__api__pseudo_manual__structure_twin_sync__func_struct_with_two_field_twin_sync_impl(ptr, rust_vec_len, data_len), -1105 => wire__crate__api__pseudo_manual__structure_twin_sync__func_struct_with_zero_field_twin_sync_impl(ptr, rust_vec_len, data_len), -1106 => wire__crate__api__pseudo_manual__structure_twin_sync__func_tuple_struct_with_one_field_twin_sync_impl(ptr, rust_vec_len, data_len), -1107 => wire__crate__api__pseudo_manual__structure_twin_sync__func_tuple_struct_with_two_field_twin_sync_impl(ptr, rust_vec_len, data_len), -1110 => wire__crate__api__pseudo_manual__tuple_twin_sync__test_tuple_2_twin_sync_impl(ptr, rust_vec_len, data_len), -1111 => wire__crate__api__pseudo_manual__tuple_twin_sync__test_tuple_twin_sync_impl(ptr, rust_vec_len, data_len), -1115 => wire__crate__api__pseudo_manual__type_alias_twin_sync__handle_type_alias_id_twin_sync_impl(ptr, rust_vec_len, data_len), -1116 => wire__crate__api__pseudo_manual__type_alias_twin_sync__handle_type_alias_model_twin_sync_impl(ptr, rust_vec_len, data_len), -1117 => wire__crate__api__pseudo_manual__type_alias_twin_sync__handle_type_nest_alias_id_twin_sync_impl(ptr, rust_vec_len, data_len), -1121 => wire__crate__api__pseudo_manual__uuid_type_twin_sync__handle_nested_uuids_twin_sync_impl(ptr, rust_vec_len, data_len), -1122 => wire__crate__api__pseudo_manual__uuid_type_twin_sync__handle_uuid_twin_sync_impl(ptr, rust_vec_len, data_len), -1123 => wire__crate__api__pseudo_manual__uuid_type_twin_sync__handle_uuids_twin_sync_impl(ptr, rust_vec_len, data_len), -1138 => wire__crate__api__rust_auto_opaque__StructWithGoodAndOpaqueFieldWithoutOptionTwinNormal_auto_accessor_get_good_impl(ptr, rust_vec_len, data_len), -1139 => wire__crate__api__rust_auto_opaque__StructWithGoodAndOpaqueFieldWithoutOptionTwinNormal_auto_accessor_set_good_impl(ptr, rust_vec_len, data_len), -1187 => wire__crate__api__rust_opaque_sync__frb_sync_generator_test_twin_normal_impl(ptr, rust_vec_len, data_len), -1188 => wire__crate__api__rust_opaque_sync__sync_create_non_clone_twin_normal_impl(ptr, rust_vec_len, data_len), -1189 => wire__crate__api__rust_opaque_sync__sync_create_opaque_twin_normal_impl(ptr, rust_vec_len, data_len), -1190 => wire__crate__api__rust_opaque_sync__sync_option_rust_opaque_twin_normal_impl(ptr, rust_vec_len, data_len), +253 => wire__crate__api__misc_no_twin_example_a__DeliberateFailSanityCheckTwinNormal_auto_accessor_get_deliberate_bad_field_a_impl(ptr, rust_vec_len, data_len), +254 => wire__crate__api__misc_no_twin_example_a__DeliberateFailSanityCheckTwinNormal_auto_accessor_get_deliberate_bad_field_b_impl(ptr, rust_vec_len, data_len), +255 => wire__crate__api__misc_no_twin_example_a__DeliberateFailSanityCheckTwinNormal_auto_accessor_get_deliberate_bad_field_c_impl(ptr, rust_vec_len, data_len), +256 => wire__crate__api__misc_no_twin_example_a__DeliberateFailSanityCheckTwinNormal_auto_accessor_get_good_field_a_impl(ptr, rust_vec_len, data_len), +257 => wire__crate__api__misc_no_twin_example_a__DeliberateFailSanityCheckTwinNormal_auto_accessor_get_good_field_b_impl(ptr, rust_vec_len, data_len), +258 => wire__crate__api__misc_no_twin_example_a__DeliberateFailSanityCheckTwinNormal_auto_accessor_get_good_field_c_impl(ptr, rust_vec_len, data_len), +259 => wire__crate__api__misc_no_twin_example_a__DeliberateFailSanityCheckTwinNormal_auto_accessor_set_deliberate_bad_field_a_impl(ptr, rust_vec_len, data_len), +260 => wire__crate__api__misc_no_twin_example_a__DeliberateFailSanityCheckTwinNormal_auto_accessor_set_deliberate_bad_field_b_impl(ptr, rust_vec_len, data_len), +261 => wire__crate__api__misc_no_twin_example_a__DeliberateFailSanityCheckTwinNormal_auto_accessor_set_deliberate_bad_field_c_impl(ptr, rust_vec_len, data_len), +262 => wire__crate__api__misc_no_twin_example_a__DeliberateFailSanityCheckTwinNormal_auto_accessor_set_good_field_a_impl(ptr, rust_vec_len, data_len), +263 => wire__crate__api__misc_no_twin_example_a__DeliberateFailSanityCheckTwinNormal_auto_accessor_set_good_field_b_impl(ptr, rust_vec_len, data_len), +264 => wire__crate__api__misc_no_twin_example_a__DeliberateFailSanityCheckTwinNormal_auto_accessor_set_good_field_c_impl(ptr, rust_vec_len, data_len), +266 => wire__crate__api__misc_no_twin_example_a__ItemContainerSolutionOneTwinNormal_auto_accessor_get_name_impl(ptr, rust_vec_len, data_len), +267 => wire__crate__api__misc_no_twin_example_a__ItemContainerSolutionOneTwinNormal_auto_accessor_set_name_impl(ptr, rust_vec_len, data_len), +270 => wire__crate__api__misc_no_twin_example_a__SimpleLogger_get_and_reset_impl(ptr, rust_vec_len, data_len), +271 => wire__crate__api__misc_no_twin_example_a__SimpleLogger_new_impl(ptr, rust_vec_len, data_len), +275 => wire__crate__api__misc_no_twin_example_a__StructWithSimpleSetterTwinNormal_get_something_impl(ptr, rust_vec_len, data_len), +276 => wire__crate__api__misc_no_twin_example_a__StructWithSimpleSetterTwinNormal_new_impl(ptr, rust_vec_len, data_len), +277 => wire__crate__api__misc_no_twin_example_a__StructWithSimpleSetterTwinNormal_set_something_impl(ptr, rust_vec_len, data_len), +278 => wire__crate__api__misc_no_twin_example_a__StructWithSimpleSetterTwinNormal_simple_getter_impl(ptr, rust_vec_len, data_len), +279 => wire__crate__api__misc_no_twin_example_a__StructWithSimpleSetterTwinNormal_simple_setter_impl(ptr, rust_vec_len, data_len), +285 => wire__crate__api__misc_no_twin_example_a__struct_with_custom_name_method_twin_normal_method_with_custom_name_twin_normal_impl(ptr, rust_vec_len, data_len), +327 => wire__crate__api__pseudo_manual__array_twin_sync__boxed_blob_twin_sync_impl(ptr, rust_vec_len, data_len), +328 => wire__crate__api__pseudo_manual__array_twin_sync__func_test_id_twin_sync_impl(ptr, rust_vec_len, data_len), +329 => wire__crate__api__pseudo_manual__array_twin_sync__get_array_twin_sync_impl(ptr, rust_vec_len, data_len), +330 => wire__crate__api__pseudo_manual__array_twin_sync__get_complex_array_twin_sync_impl(ptr, rust_vec_len, data_len), +331 => wire__crate__api__pseudo_manual__array_twin_sync__last_number_twin_sync_impl(ptr, rust_vec_len, data_len), +332 => wire__crate__api__pseudo_manual__array_twin_sync__nested_id_twin_sync_impl(ptr, rust_vec_len, data_len), +333 => wire__crate__api__pseudo_manual__array_twin_sync__new_msgid_twin_sync_impl(ptr, rust_vec_len, data_len), +334 => wire__crate__api__pseudo_manual__array_twin_sync__return_boxed_feed_id_twin_sync_impl(ptr, rust_vec_len, data_len), +335 => wire__crate__api__pseudo_manual__array_twin_sync__return_boxed_raw_feed_id_twin_sync_impl(ptr, rust_vec_len, data_len), +336 => wire__crate__api__pseudo_manual__array_twin_sync__use_boxed_blob_twin_sync_impl(ptr, rust_vec_len, data_len), +337 => wire__crate__api__pseudo_manual__array_twin_sync__use_msgid_twin_sync_impl(ptr, rust_vec_len, data_len), +340 => wire__crate__api__pseudo_manual__attribute_twin_sync__handle_customized_struct_twin_sync_impl(ptr, rust_vec_len, data_len), +341 => wire__crate__api__pseudo_manual__attribute_twin_sync__next_user_id_twin_sync_impl(ptr, rust_vec_len, data_len), +394 => wire__crate__api__pseudo_manual__basic_list_twin_sync__example_basic_list_type_basic_general_enum_twin_sync_twin_sync_impl(ptr, rust_vec_len, data_len), +395 => wire__crate__api__pseudo_manual__basic_list_twin_sync__example_basic_list_type_basic_primitive_enum_twin_sync_twin_sync_impl(ptr, rust_vec_len, data_len), +396 => wire__crate__api__pseudo_manual__basic_list_twin_sync__example_basic_list_type_basic_struct_twin_sync_twin_sync_impl(ptr, rust_vec_len, data_len), +397 => wire__crate__api__pseudo_manual__basic_list_twin_sync__example_basic_list_type_bool_twin_sync_impl(ptr, rust_vec_len, data_len), +398 => wire__crate__api__pseudo_manual__basic_list_twin_sync__example_basic_list_type_bytes_twin_sync_impl(ptr, rust_vec_len, data_len), +399 => wire__crate__api__pseudo_manual__basic_list_twin_sync__example_basic_list_type_f32_twin_sync_impl(ptr, rust_vec_len, data_len), +400 => wire__crate__api__pseudo_manual__basic_list_twin_sync__example_basic_list_type_f64_twin_sync_impl(ptr, rust_vec_len, data_len), +401 => wire__crate__api__pseudo_manual__basic_list_twin_sync__example_basic_list_type_i16_twin_sync_impl(ptr, rust_vec_len, data_len), +402 => wire__crate__api__pseudo_manual__basic_list_twin_sync__example_basic_list_type_i32_twin_sync_impl(ptr, rust_vec_len, data_len), +403 => wire__crate__api__pseudo_manual__basic_list_twin_sync__example_basic_list_type_i64_twin_sync_impl(ptr, rust_vec_len, data_len), +404 => wire__crate__api__pseudo_manual__basic_list_twin_sync__example_basic_list_type_i8_twin_sync_impl(ptr, rust_vec_len, data_len), +405 => wire__crate__api__pseudo_manual__basic_list_twin_sync__example_basic_list_type_string_twin_sync_impl(ptr, rust_vec_len, data_len), +406 => wire__crate__api__pseudo_manual__basic_list_twin_sync__example_basic_list_type_u16_twin_sync_impl(ptr, rust_vec_len, data_len), +407 => wire__crate__api__pseudo_manual__basic_list_twin_sync__example_basic_list_type_u32_twin_sync_impl(ptr, rust_vec_len, data_len), +408 => wire__crate__api__pseudo_manual__basic_list_twin_sync__example_basic_list_type_u64_twin_sync_impl(ptr, rust_vec_len, data_len), +409 => wire__crate__api__pseudo_manual__basic_list_twin_sync__example_basic_list_type_u8_twin_sync_impl(ptr, rust_vec_len, data_len), +450 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_basic_general_enum_twin_sync_twin_sync_impl(ptr, rust_vec_len, data_len), +451 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_basic_primitive_enum_twin_sync_twin_sync_impl(ptr, rust_vec_len, data_len), +452 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_basic_struct_twin_sync_twin_sync_impl(ptr, rust_vec_len, data_len), +453 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_bool_twin_sync_impl(ptr, rust_vec_len, data_len), +454 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_bytes_twin_sync_impl(ptr, rust_vec_len, data_len), +455 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_f32_twin_sync_impl(ptr, rust_vec_len, data_len), +456 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_f64_twin_sync_impl(ptr, rust_vec_len, data_len), +457 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_i128_twin_sync_impl(ptr, rust_vec_len, data_len), +458 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_i16_twin_sync_impl(ptr, rust_vec_len, data_len), +459 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_i32_twin_sync_impl(ptr, rust_vec_len, data_len), +460 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_i64_twin_sync_impl(ptr, rust_vec_len, data_len), +461 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_i8_twin_sync_impl(ptr, rust_vec_len, data_len), +462 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_isize_twin_sync_impl(ptr, rust_vec_len, data_len), +463 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_string_twin_sync_impl(ptr, rust_vec_len, data_len), +464 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_u128_twin_sync_impl(ptr, rust_vec_len, data_len), +465 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_u16_twin_sync_impl(ptr, rust_vec_len, data_len), +466 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_u32_twin_sync_impl(ptr, rust_vec_len, data_len), +467 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_u64_twin_sync_impl(ptr, rust_vec_len, data_len), +468 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_u8_twin_sync_impl(ptr, rust_vec_len, data_len), +469 => wire__crate__api__pseudo_manual__basic_map_twin_sync__example_basic_map_type_usize_twin_sync_impl(ptr, rust_vec_len, data_len), +510 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_basic_general_enum_twin_sync_twin_sync_impl(ptr, rust_vec_len, data_len), +511 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_basic_primitive_enum_twin_sync_twin_sync_impl(ptr, rust_vec_len, data_len), +512 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_basic_struct_twin_sync_twin_sync_impl(ptr, rust_vec_len, data_len), +513 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_bool_twin_sync_impl(ptr, rust_vec_len, data_len), +514 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_bytes_twin_sync_impl(ptr, rust_vec_len, data_len), +515 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_f32_twin_sync_impl(ptr, rust_vec_len, data_len), +516 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_f64_twin_sync_impl(ptr, rust_vec_len, data_len), +517 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_i128_twin_sync_impl(ptr, rust_vec_len, data_len), +518 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_i16_twin_sync_impl(ptr, rust_vec_len, data_len), +519 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_i32_twin_sync_impl(ptr, rust_vec_len, data_len), +520 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_i64_twin_sync_impl(ptr, rust_vec_len, data_len), +521 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_i8_twin_sync_impl(ptr, rust_vec_len, data_len), +522 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_isize_twin_sync_impl(ptr, rust_vec_len, data_len), +523 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_string_twin_sync_impl(ptr, rust_vec_len, data_len), +524 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_u128_twin_sync_impl(ptr, rust_vec_len, data_len), +525 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_u16_twin_sync_impl(ptr, rust_vec_len, data_len), +526 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_u32_twin_sync_impl(ptr, rust_vec_len, data_len), +527 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_u64_twin_sync_impl(ptr, rust_vec_len, data_len), +528 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_u8_twin_sync_impl(ptr, rust_vec_len, data_len), +529 => wire__crate__api__pseudo_manual__basic_optional_twin_sync__example_basic_optional_type_usize_twin_sync_impl(ptr, rust_vec_len, data_len), +550 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_basic_general_enum_twin_sync_twin_sync_impl(ptr, rust_vec_len, data_len), +551 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_basic_primitive_enum_twin_sync_twin_sync_impl(ptr, rust_vec_len, data_len), +552 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_basic_struct_twin_sync_twin_sync_impl(ptr, rust_vec_len, data_len), +553 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_bool_twin_sync_impl(ptr, rust_vec_len, data_len), +554 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_bytes_twin_sync_impl(ptr, rust_vec_len, data_len), +555 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_f32_twin_sync_impl(ptr, rust_vec_len, data_len), +556 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_f64_twin_sync_impl(ptr, rust_vec_len, data_len), +557 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_i128_twin_sync_impl(ptr, rust_vec_len, data_len), +558 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_i16_twin_sync_impl(ptr, rust_vec_len, data_len), +559 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_i32_twin_sync_impl(ptr, rust_vec_len, data_len), +560 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_i64_twin_sync_impl(ptr, rust_vec_len, data_len), +561 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_i8_twin_sync_impl(ptr, rust_vec_len, data_len), +562 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_isize_twin_sync_impl(ptr, rust_vec_len, data_len), +563 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_string_twin_sync_impl(ptr, rust_vec_len, data_len), +564 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_u128_twin_sync_impl(ptr, rust_vec_len, data_len), +565 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_u16_twin_sync_impl(ptr, rust_vec_len, data_len), +566 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_u32_twin_sync_impl(ptr, rust_vec_len, data_len), +567 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_u64_twin_sync_impl(ptr, rust_vec_len, data_len), +568 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_u8_twin_sync_impl(ptr, rust_vec_len, data_len), +569 => wire__crate__api__pseudo_manual__basic_twin_sync__example_basic_type_usize_twin_sync_impl(ptr, rust_vec_len, data_len), +600 => wire__crate__api__pseudo_manual__benchmark_api_twin_sync__benchmark_binary_tree_input_json_twin_sync_impl(ptr, rust_vec_len, data_len), +601 => wire__crate__api__pseudo_manual__benchmark_api_twin_sync__benchmark_binary_tree_input_protobuf_twin_sync_impl(ptr, rust_vec_len, data_len), +602 => wire__crate__api__pseudo_manual__benchmark_api_twin_sync__benchmark_binary_tree_input_twin_sync_impl(ptr, rust_vec_len, data_len), +603 => wire__crate__api__pseudo_manual__benchmark_api_twin_sync__benchmark_binary_tree_output_json_twin_sync_impl(ptr, rust_vec_len, data_len), +604 => wire__crate__api__pseudo_manual__benchmark_api_twin_sync__benchmark_binary_tree_output_protobuf_twin_sync_impl(ptr, rust_vec_len, data_len), +605 => wire__crate__api__pseudo_manual__benchmark_api_twin_sync__benchmark_binary_tree_output_twin_sync_impl(ptr, rust_vec_len, data_len), +606 => wire__crate__api__pseudo_manual__benchmark_api_twin_sync__benchmark_blob_input_json_twin_sync_impl(ptr, rust_vec_len, data_len), +607 => wire__crate__api__pseudo_manual__benchmark_api_twin_sync__benchmark_blob_input_protobuf_twin_sync_impl(ptr, rust_vec_len, data_len), +608 => wire__crate__api__pseudo_manual__benchmark_api_twin_sync__benchmark_blob_input_twin_sync_impl(ptr, rust_vec_len, data_len), +609 => wire__crate__api__pseudo_manual__benchmark_api_twin_sync__benchmark_blob_output_json_twin_sync_impl(ptr, rust_vec_len, data_len), +610 => wire__crate__api__pseudo_manual__benchmark_api_twin_sync__benchmark_blob_output_protobuf_twin_sync_impl(ptr, rust_vec_len, data_len), +611 => wire__crate__api__pseudo_manual__benchmark_api_twin_sync__benchmark_blob_output_twin_sync_impl(ptr, rust_vec_len, data_len), +612 => wire__crate__api__pseudo_manual__benchmark_api_twin_sync__benchmark_input_bytes_twin_sync_impl(ptr, rust_vec_len, data_len), +613 => wire__crate__api__pseudo_manual__benchmark_api_twin_sync__benchmark_output_bytes_twin_sync_impl(ptr, rust_vec_len, data_len), +614 => wire__crate__api__pseudo_manual__benchmark_api_twin_sync__benchmark_void_twin_sync_impl(ptr, rust_vec_len, data_len), +625 => wire__crate__api__pseudo_manual__chrono_type_twin_sync__datetime_local_twin_sync_impl(ptr, rust_vec_len, data_len), +626 => wire__crate__api__pseudo_manual__chrono_type_twin_sync__datetime_utc_twin_sync_impl(ptr, rust_vec_len, data_len), +627 => wire__crate__api__pseudo_manual__chrono_type_twin_sync__duration_twin_sync_impl(ptr, rust_vec_len, data_len), +628 => wire__crate__api__pseudo_manual__chrono_type_twin_sync__handle_durations_twin_sync_impl(ptr, rust_vec_len, data_len), +629 => wire__crate__api__pseudo_manual__chrono_type_twin_sync__handle_timestamps_twin_sync_impl(ptr, rust_vec_len, data_len), +630 => wire__crate__api__pseudo_manual__chrono_type_twin_sync__how_long_does_it_take_twin_sync_impl(ptr, rust_vec_len, data_len), +631 => wire__crate__api__pseudo_manual__chrono_type_twin_sync__naivedatetime_twin_sync_impl(ptr, rust_vec_len, data_len), +632 => wire__crate__api__pseudo_manual__chrono_type_twin_sync__optional_empty_datetime_utc_twin_sync_impl(ptr, rust_vec_len, data_len), +633 => wire__crate__api__pseudo_manual__chrono_type_twin_sync__test_chrono_twin_sync_impl(ptr, rust_vec_len, data_len), +634 => wire__crate__api__pseudo_manual__chrono_type_twin_sync__test_precise_chrono_twin_sync_impl(ptr, rust_vec_len, data_len), +640 => wire__crate__api__pseudo_manual__comment_twin_sync__function_with_comments_slash_star_star_twin_sync_impl(ptr, rust_vec_len, data_len), +641 => wire__crate__api__pseudo_manual__comment_twin_sync__function_with_comments_triple_slash_multi_line_twin_sync_impl(ptr, rust_vec_len, data_len), +642 => wire__crate__api__pseudo_manual__comment_twin_sync__function_with_comments_triple_slash_single_line_twin_sync_impl(ptr, rust_vec_len, data_len), +643 => wire__crate__api__pseudo_manual__comment_twin_sync__struct_with_comments_twin_sync_instance_method_twin_sync_impl(ptr, rust_vec_len, data_len), +644 => wire__crate__api__pseudo_manual__comment_twin_sync__struct_with_comments_twin_sync_static_method_twin_sync_impl(ptr, rust_vec_len, data_len), +670 => wire__crate__api__pseudo_manual__dart_opaque_twin_sync__async_accept_dart_opaque_twin_sync_impl(ptr, rust_vec_len, data_len), +671 => wire__crate__api__pseudo_manual__dart_opaque_twin_sync__clone_dart_opaque_twin_sync_impl(ptr, rust_vec_len, data_len), +672 => wire__crate__api__pseudo_manual__dart_opaque_twin_sync__create_enum_dart_opaque_twin_sync_impl(ptr, rust_vec_len, data_len), +673 => wire__crate__api__pseudo_manual__dart_opaque_twin_sync__create_nested_dart_opaque_twin_sync_impl(ptr, rust_vec_len, data_len), +674 => wire__crate__api__pseudo_manual__dart_opaque_twin_sync__drop_static_dart_opaque_twin_sync_impl(ptr, rust_vec_len, data_len), +675 => wire__crate__api__pseudo_manual__dart_opaque_twin_sync__get_enum_dart_opaque_twin_sync_impl(ptr, rust_vec_len, data_len), +676 => wire__crate__api__pseudo_manual__dart_opaque_twin_sync__get_nested_dart_opaque_twin_sync_impl(ptr, rust_vec_len, data_len), +677 => wire__crate__api__pseudo_manual__dart_opaque_twin_sync__loop_back_array_get_twin_sync_impl(ptr, rust_vec_len, data_len), +678 => wire__crate__api__pseudo_manual__dart_opaque_twin_sync__loop_back_array_twin_sync_impl(ptr, rust_vec_len, data_len), +679 => wire__crate__api__pseudo_manual__dart_opaque_twin_sync__loop_back_option_get_twin_sync_impl(ptr, rust_vec_len, data_len), +680 => wire__crate__api__pseudo_manual__dart_opaque_twin_sync__loop_back_option_twin_sync_impl(ptr, rust_vec_len, data_len), +681 => wire__crate__api__pseudo_manual__dart_opaque_twin_sync__loop_back_twin_sync_impl(ptr, rust_vec_len, data_len), +682 => wire__crate__api__pseudo_manual__dart_opaque_twin_sync__loop_back_vec_get_twin_sync_impl(ptr, rust_vec_len, data_len), +683 => wire__crate__api__pseudo_manual__dart_opaque_twin_sync__loop_back_vec_twin_sync_impl(ptr, rust_vec_len, data_len), +684 => wire__crate__api__pseudo_manual__dart_opaque_twin_sync__panic_unwrap_dart_opaque_twin_sync_impl(ptr, rust_vec_len, data_len), +685 => wire__crate__api__pseudo_manual__dart_opaque_twin_sync__set_static_dart_opaque_twin_sync_impl(ptr, rust_vec_len, data_len), +690 => wire__crate__api__pseudo_manual__dropping_twin_sync__DroppableTwinSync_create_stream_twin_sync_impl(ptr, rust_vec_len, data_len), +691 => wire__crate__api__pseudo_manual__dropping_twin_sync__DroppableTwinSync_get_drop_count_twin_sync_impl(ptr, rust_vec_len, data_len), +692 => wire__crate__api__pseudo_manual__dropping_twin_sync__DroppableTwinSync_new_twin_sync_impl(ptr, rust_vec_len, data_len), +693 => wire__crate__api__pseudo_manual__dropping_twin_sync__DroppableTwinSync_simple_method_twin_sync_impl(ptr, rust_vec_len, data_len), +704 => wire__crate__api__pseudo_manual__enumeration_twin_sync__func_enum_simple_twin_sync_impl(ptr, rust_vec_len, data_len), +705 => wire__crate__api__pseudo_manual__enumeration_twin_sync__func_enum_with_discriminant_twin_sync_impl(ptr, rust_vec_len, data_len), +706 => wire__crate__api__pseudo_manual__enumeration_twin_sync__func_enum_with_item_mixed_twin_sync_impl(ptr, rust_vec_len, data_len), +707 => wire__crate__api__pseudo_manual__enumeration_twin_sync__func_enum_with_item_struct_twin_sync_impl(ptr, rust_vec_len, data_len), +708 => wire__crate__api__pseudo_manual__enumeration_twin_sync__func_enum_with_item_tuple_twin_sync_impl(ptr, rust_vec_len, data_len), +709 => wire__crate__api__pseudo_manual__enumeration_twin_sync__handle_enum_parameter_twin_sync_impl(ptr, rust_vec_len, data_len), +710 => wire__crate__api__pseudo_manual__enumeration_twin_sync__handle_enum_struct_twin_sync_impl(ptr, rust_vec_len, data_len), +711 => wire__crate__api__pseudo_manual__enumeration_twin_sync__handle_return_enum_twin_sync_impl(ptr, rust_vec_len, data_len), +712 => wire__crate__api__pseudo_manual__enumeration_twin_sync__multiply_by_ten_twin_sync_impl(ptr, rust_vec_len, data_len), +713 => wire__crate__api__pseudo_manual__enumeration_twin_sync__print_note_twin_sync_impl(ptr, rust_vec_len, data_len), +747 => wire__crate__api__pseudo_manual__exception_twin_sync__custom_enum_error_panic_twin_sync_impl(ptr, rust_vec_len, data_len), +748 => wire__crate__api__pseudo_manual__exception_twin_sync__custom_enum_error_return_error_twin_sync_impl(ptr, rust_vec_len, data_len), +749 => wire__crate__api__pseudo_manual__exception_twin_sync__custom_enum_error_return_ok_twin_sync_impl(ptr, rust_vec_len, data_len), +750 => wire__crate__api__pseudo_manual__exception_twin_sync__custom_nested_error_return_error_twin_sync_impl(ptr, rust_vec_len, data_len), +751 => wire__crate__api__pseudo_manual__exception_twin_sync__custom_struct_error_return_error_twin_sync_impl(ptr, rust_vec_len, data_len), +752 => wire__crate__api__pseudo_manual__exception_twin_sync__custom_struct_twin_sync_new_twin_sync_impl(ptr, rust_vec_len, data_len), +753 => wire__crate__api__pseudo_manual__exception_twin_sync__custom_struct_twin_sync_nonstatic_return_custom_struct_error_twin_sync_impl(ptr, rust_vec_len, data_len), +754 => wire__crate__api__pseudo_manual__exception_twin_sync__custom_struct_twin_sync_nonstatic_return_custom_struct_ok_twin_sync_impl(ptr, rust_vec_len, data_len), +755 => wire__crate__api__pseudo_manual__exception_twin_sync__custom_struct_twin_sync_static_return_custom_struct_error_twin_sync_impl(ptr, rust_vec_len, data_len), +756 => wire__crate__api__pseudo_manual__exception_twin_sync__custom_struct_twin_sync_static_return_custom_struct_ok_twin_sync_impl(ptr, rust_vec_len, data_len), +757 => wire__crate__api__pseudo_manual__exception_twin_sync__func_return_error_twin_sync_impl(ptr, rust_vec_len, data_len), +758 => wire__crate__api__pseudo_manual__exception_twin_sync__func_type_fallible_panic_twin_sync_impl(ptr, rust_vec_len, data_len), +759 => wire__crate__api__pseudo_manual__exception_twin_sync__func_type_infallible_panic_twin_sync_impl(ptr, rust_vec_len, data_len), +760 => wire__crate__api__pseudo_manual__exception_twin_sync__panic_with_custom_result_twin_sync_impl(ptr, rust_vec_len, data_len), +761 => wire__crate__api__pseudo_manual__exception_twin_sync__return_custom_nested_error_1_twin_sync_impl(ptr, rust_vec_len, data_len), +762 => wire__crate__api__pseudo_manual__exception_twin_sync__return_custom_nested_error_1_variant1_twin_sync_impl(ptr, rust_vec_len, data_len), +763 => wire__crate__api__pseudo_manual__exception_twin_sync__return_custom_nested_error_2_twin_sync_impl(ptr, rust_vec_len, data_len), +764 => wire__crate__api__pseudo_manual__exception_twin_sync__return_custom_struct_error_twin_sync_impl(ptr, rust_vec_len, data_len), +765 => wire__crate__api__pseudo_manual__exception_twin_sync__return_custom_struct_ok_twin_sync_impl(ptr, rust_vec_len, data_len), +766 => wire__crate__api__pseudo_manual__exception_twin_sync__return_err_custom_error_twin_sync_impl(ptr, rust_vec_len, data_len), +767 => wire__crate__api__pseudo_manual__exception_twin_sync__return_error_variant_twin_sync_impl(ptr, rust_vec_len, data_len), +768 => wire__crate__api__pseudo_manual__exception_twin_sync__return_ok_custom_error_twin_sync_impl(ptr, rust_vec_len, data_len), +769 => wire__crate__api__pseudo_manual__exception_twin_sync__some_struct_twin_sync_new_twin_sync_impl(ptr, rust_vec_len, data_len), +770 => wire__crate__api__pseudo_manual__exception_twin_sync__some_struct_twin_sync_non_static_return_err_custom_error_twin_sync_impl(ptr, rust_vec_len, data_len), +771 => wire__crate__api__pseudo_manual__exception_twin_sync__some_struct_twin_sync_non_static_return_ok_custom_error_twin_sync_impl(ptr, rust_vec_len, data_len), +772 => wire__crate__api__pseudo_manual__exception_twin_sync__some_struct_twin_sync_static_return_err_custom_error_twin_sync_impl(ptr, rust_vec_len, data_len), +773 => wire__crate__api__pseudo_manual__exception_twin_sync__some_struct_twin_sync_static_return_ok_custom_error_twin_sync_impl(ptr, rust_vec_len, data_len), +774 => wire__crate__api__pseudo_manual__exception_twin_sync__stream_sink_throw_anyhow_twin_sync_impl(ptr, rust_vec_len, data_len), +775 => wire__crate__api__pseudo_manual__exception_twin_sync__throw_anyhow_twin_sync_impl(ptr, rust_vec_len, data_len), +780 => wire__crate__api__pseudo_manual__external_type_in_crate_twin_sync__call_new_module_system_twin_sync_impl(ptr, rust_vec_len, data_len), +781 => wire__crate__api__pseudo_manual__external_type_in_crate_twin_sync__call_old_module_system_twin_sync_impl(ptr, rust_vec_len, data_len), +782 => wire__crate__api__pseudo_manual__external_type_in_crate_twin_sync__use_imported_enum_twin_sync_impl(ptr, rust_vec_len, data_len), +783 => wire__crate__api__pseudo_manual__external_type_in_crate_twin_sync__use_imported_struct_twin_sync_impl(ptr, rust_vec_len, data_len), +784 => wire__crate__api__pseudo_manual__impl_trait_twin_sync__StructOneWithTraitTwinSync_auto_accessor_get_one_impl(ptr, rust_vec_len, data_len), +785 => wire__crate__api__pseudo_manual__impl_trait_twin_sync__StructOneWithTraitTwinSync_auto_accessor_set_one_impl(ptr, rust_vec_len, data_len), +789 => wire__crate__api__pseudo_manual__impl_trait_twin_sync__StructTwoWithTraitTwinSync_auto_accessor_get_two_impl(ptr, rust_vec_len, data_len), +790 => wire__crate__api__pseudo_manual__impl_trait_twin_sync__StructTwoWithTraitTwinSync_auto_accessor_set_two_impl(ptr, rust_vec_len, data_len), +797 => wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync_impl(ptr, rust_vec_len, data_len), +798 => wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtNestedTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync_impl(ptr, rust_vec_len, data_len), +801 => wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_mut_self_twin_sync_impl(ptr, rust_vec_len, data_len), +802 => wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithLifetimeTwinSyncstatic_greet_borrow_self_twin_sync_impl(ptr, rust_vec_len, data_len), +804 => wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_mut_self_twin_sync_impl(ptr, rust_vec_len, data_len), +805 => wire__crate__api__pseudo_manual__lifetimeable_twin_sync__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinSyncstatic_greet_borrow_self_twin_sync_impl(ptr, rust_vec_len, data_len), +808 => wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_twin_sync_impl(ptr, rust_vec_len, data_len), +809 => wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtOwnedStructTwinSync_create_with_logger_twin_sync_impl(ptr, rust_vec_len, data_len), +810 => wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_mut_self_twin_sync_impl(ptr, rust_vec_len, data_len), +811 => wire__crate__api__pseudo_manual__lifetimeable_twin_sync__LtSubStructTwinSync_greet_borrow_self_twin_sync_impl(ptr, rust_vec_len, data_len), +821 => wire__crate__api__pseudo_manual__map_and_set_twin_sync__func_hash_map_i32_i32_twin_sync_impl(ptr, rust_vec_len, data_len), +822 => wire__crate__api__pseudo_manual__map_and_set_twin_sync__func_hash_map_string_bytes_twin_sync_impl(ptr, rust_vec_len, data_len), +823 => wire__crate__api__pseudo_manual__map_and_set_twin_sync__func_hash_map_string_complex_enum_twin_sync_impl(ptr, rust_vec_len, data_len), +824 => wire__crate__api__pseudo_manual__map_and_set_twin_sync__func_hash_map_string_simple_enum_twin_sync_impl(ptr, rust_vec_len, data_len), +825 => wire__crate__api__pseudo_manual__map_and_set_twin_sync__func_hash_map_string_string_twin_sync_impl(ptr, rust_vec_len, data_len), +826 => wire__crate__api__pseudo_manual__map_and_set_twin_sync__func_hash_map_string_struct_twin_sync_impl(ptr, rust_vec_len, data_len), +827 => wire__crate__api__pseudo_manual__map_and_set_twin_sync__func_hash_set_i32_twin_sync_impl(ptr, rust_vec_len, data_len), +828 => wire__crate__api__pseudo_manual__map_and_set_twin_sync__func_hash_set_string_twin_sync_impl(ptr, rust_vec_len, data_len), +851 => wire__crate__api__pseudo_manual__method_twin_sync__StaticGetterOnlyTwinSync_static_getter_twin_sync_impl(ptr, rust_vec_len, data_len), +852 => wire__crate__api__pseudo_manual__method_twin_sync__concatenate_with_twin_sync_concatenate_static_twin_sync_impl(ptr, rust_vec_len, data_len), +853 => wire__crate__api__pseudo_manual__method_twin_sync__concatenate_with_twin_sync_concatenate_twin_sync_impl(ptr, rust_vec_len, data_len), +854 => wire__crate__api__pseudo_manual__method_twin_sync__concatenate_with_twin_sync_handle_some_static_stream_sink_single_arg_twin_sync_impl(ptr, rust_vec_len, data_len), +855 => wire__crate__api__pseudo_manual__method_twin_sync__concatenate_with_twin_sync_handle_some_static_stream_sink_twin_sync_impl(ptr, rust_vec_len, data_len), +856 => wire__crate__api__pseudo_manual__method_twin_sync__concatenate_with_twin_sync_handle_some_stream_sink_at_1_twin_sync_impl(ptr, rust_vec_len, data_len), +857 => wire__crate__api__pseudo_manual__method_twin_sync__concatenate_with_twin_sync_handle_some_stream_sink_twin_sync_impl(ptr, rust_vec_len, data_len), +858 => wire__crate__api__pseudo_manual__method_twin_sync__concatenate_with_twin_sync_new_twin_sync_impl(ptr, rust_vec_len, data_len), +859 => wire__crate__api__pseudo_manual__method_twin_sync__concatenate_with_twin_sync_simple_getter_twin_sync_impl(ptr, rust_vec_len, data_len), +860 => wire__crate__api__pseudo_manual__method_twin_sync__get_sum_array_twin_sync_impl(ptr, rust_vec_len, data_len), +861 => wire__crate__api__pseudo_manual__method_twin_sync__get_sum_struct_twin_sync_impl(ptr, rust_vec_len, data_len), +862 => wire__crate__api__pseudo_manual__method_twin_sync__my_callable_twin_sync_call_impl(ptr, rust_vec_len, data_len), +863 => wire__crate__api__pseudo_manual__method_twin_sync__simple_enum_twin_sync_return_self_twin_sync_impl(ptr, rust_vec_len, data_len), +864 => wire__crate__api__pseudo_manual__method_twin_sync__simple_enum_twin_sync_simple_method_twin_sync_impl(ptr, rust_vec_len, data_len), +865 => wire__crate__api__pseudo_manual__method_twin_sync__simple_primitive_enum_twin_sync_simple_method_twin_sync_impl(ptr, rust_vec_len, data_len), +866 => wire__crate__api__pseudo_manual__method_twin_sync__simple_struct_twin_sync_arg_self_twin_sync_impl(ptr, rust_vec_len, data_len), +867 => wire__crate__api__pseudo_manual__method_twin_sync__simple_struct_twin_sync_receiver_borrow_twin_sync_impl(ptr, rust_vec_len, data_len), +868 => wire__crate__api__pseudo_manual__method_twin_sync__simple_struct_twin_sync_receiver_own_twin_sync_impl(ptr, rust_vec_len, data_len), +869 => wire__crate__api__pseudo_manual__method_twin_sync__simple_struct_twin_sync_return_self_twin_sync_impl(ptr, rust_vec_len, data_len), +870 => wire__crate__api__pseudo_manual__method_twin_sync__simple_struct_twin_sync_vec_self_twin_sync_impl(ptr, rust_vec_len, data_len), +871 => wire__crate__api__pseudo_manual__method_twin_sync__static_only_twin_sync_static_method_twin_sync_impl(ptr, rust_vec_len, data_len), +872 => wire__crate__api__pseudo_manual__method_twin_sync__sum_with_twin_sync_sum_twin_sync_impl(ptr, rust_vec_len, data_len), +899 => wire__crate__api__pseudo_manual__mirror_twin_sync__app_settings_stream_twin_sync_impl(ptr, rust_vec_len, data_len), +900 => wire__crate__api__pseudo_manual__mirror_twin_sync__app_settings_vec_stream_twin_sync_impl(ptr, rust_vec_len, data_len), +901 => wire__crate__api__pseudo_manual__mirror_twin_sync__first_number_twin_sync_impl(ptr, rust_vec_len, data_len), +902 => wire__crate__api__pseudo_manual__mirror_twin_sync__first_sequence_twin_sync_impl(ptr, rust_vec_len, data_len), +903 => wire__crate__api__pseudo_manual__mirror_twin_sync__get_app_settings_twin_sync_impl(ptr, rust_vec_len, data_len), +904 => wire__crate__api__pseudo_manual__mirror_twin_sync__get_fallible_app_settings_twin_sync_impl(ptr, rust_vec_len, data_len), +905 => wire__crate__api__pseudo_manual__mirror_twin_sync__get_message_twin_sync_impl(ptr, rust_vec_len, data_len), +906 => wire__crate__api__pseudo_manual__mirror_twin_sync__is_app_embedded_twin_sync_impl(ptr, rust_vec_len, data_len), +907 => wire__crate__api__pseudo_manual__mirror_twin_sync__mirror_array_enum_stream_twin_sync_impl(ptr, rust_vec_len, data_len), +908 => wire__crate__api__pseudo_manual__mirror_twin_sync__mirror_enum_stream_twin_sync_impl(ptr, rust_vec_len, data_len), +909 => wire__crate__api__pseudo_manual__mirror_twin_sync__mirror_map_enum_stream_twin_sync_impl(ptr, rust_vec_len, data_len), +910 => wire__crate__api__pseudo_manual__mirror_twin_sync__mirror_option_enum_stream_twin_sync_impl(ptr, rust_vec_len, data_len), +911 => wire__crate__api__pseudo_manual__mirror_twin_sync__mirror_set_enum_stream_twin_sync_impl(ptr, rust_vec_len, data_len), +912 => wire__crate__api__pseudo_manual__mirror_twin_sync__mirror_struct_stream_twin_sync_impl(ptr, rust_vec_len, data_len), +913 => wire__crate__api__pseudo_manual__mirror_twin_sync__mirror_tuple_stream_twin_sync_impl(ptr, rust_vec_len, data_len), +914 => wire__crate__api__pseudo_manual__mirror_twin_sync__mirror_vec_enum_stream_twin_sync_impl(ptr, rust_vec_len, data_len), +915 => wire__crate__api__pseudo_manual__mirror_twin_sync__repeat_number_twin_sync_impl(ptr, rust_vec_len, data_len), +916 => wire__crate__api__pseudo_manual__mirror_twin_sync__repeat_sequence_twin_sync_impl(ptr, rust_vec_len, data_len), +917 => wire__crate__api__pseudo_manual__mirror_twin_sync__test_contains_mirrored_sub_struct_twin_sync_impl(ptr, rust_vec_len, data_len), +918 => wire__crate__api__pseudo_manual__mirror_twin_sync__test_fallible_of_raw_string_mirrored_twin_sync_impl(ptr, rust_vec_len, data_len), +919 => wire__crate__api__pseudo_manual__mirror_twin_sync__test_hashmap_with_mirrored_value_twin_sync_impl(ptr, rust_vec_len, data_len), +920 => wire__crate__api__pseudo_manual__mirror_twin_sync__test_list_of_nested_enums_mirrored_twin_sync_impl(ptr, rust_vec_len, data_len), +921 => wire__crate__api__pseudo_manual__mirror_twin_sync__test_list_of_raw_nested_string_mirrored_twin_sync_impl(ptr, rust_vec_len, data_len), +922 => wire__crate__api__pseudo_manual__mirror_twin_sync__test_nested_raw_string_mirrored_twin_sync_impl(ptr, rust_vec_len, data_len), +923 => wire__crate__api__pseudo_manual__mirror_twin_sync__test_raw_string_enum_mirrored_twin_sync_impl(ptr, rust_vec_len, data_len), +924 => wire__crate__api__pseudo_manual__mirror_twin_sync__test_raw_string_mirrored_twin_sync_impl(ptr, rust_vec_len, data_len), +936 => wire__crate__api__pseudo_manual__misc_example_twin_sync__handle_big_buffers_twin_sync_impl(ptr, rust_vec_len, data_len), +937 => wire__crate__api__pseudo_manual__misc_example_twin_sync__handle_char_twin_sync_impl(ptr, rust_vec_len, data_len), +938 => wire__crate__api__pseudo_manual__misc_example_twin_sync__handle_complex_struct_twin_sync_impl(ptr, rust_vec_len, data_len), +939 => wire__crate__api__pseudo_manual__misc_example_twin_sync__handle_nested_struct_twin_sync_impl(ptr, rust_vec_len, data_len), +940 => wire__crate__api__pseudo_manual__misc_example_twin_sync__handle_string_twin_sync_impl(ptr, rust_vec_len, data_len), +941 => wire__crate__api__pseudo_manual__misc_example_twin_sync__handle_struct_twin_sync_impl(ptr, rust_vec_len, data_len), +942 => wire__crate__api__pseudo_manual__misc_example_twin_sync__handle_vec_u8_twin_sync_impl(ptr, rust_vec_len, data_len), +943 => wire__crate__api__pseudo_manual__misc_example_twin_sync__list_of_primitive_enums_twin_sync_impl(ptr, rust_vec_len, data_len), +944 => wire__crate__api__pseudo_manual__misc_example_twin_sync__positional_arguments_twin_sync_impl(ptr, rust_vec_len, data_len), +945 => wire__crate__api__pseudo_manual__misc_example_twin_sync__test_abc_enum_twin_sync_impl(ptr, rust_vec_len, data_len), +946 => wire__crate__api__pseudo_manual__misc_example_twin_sync__test_struct_with_enum_twin_sync_impl(ptr, rust_vec_len, data_len), +951 => wire__crate__api__pseudo_manual__misc_type_twin_sync__empty_struct_twin_sync_impl(ptr, rust_vec_len, data_len), +952 => wire__crate__api__pseudo_manual__misc_type_twin_sync__func_return_unit_twin_sync_impl(ptr, rust_vec_len, data_len), +953 => wire__crate__api__pseudo_manual__misc_type_twin_sync__handle_list_of_struct_twin_sync_impl(ptr, rust_vec_len, data_len), +954 => wire__crate__api__pseudo_manual__misc_type_twin_sync__handle_string_list_twin_sync_impl(ptr, rust_vec_len, data_len), +956 => wire__crate__api__pseudo_manual__newtype_pattern_twin_sync__handle_newtype_twin_sync_impl(ptr, rust_vec_len, data_len), +958 => wire__crate__api__pseudo_manual__optional_primitive_misc_twin_sync__primitive_optional_types_twin_sync_impl(ptr, rust_vec_len, data_len), +965 => wire__crate__api__pseudo_manual__optional_twin_sync__handle_increment_boxed_optional_twin_sync_impl(ptr, rust_vec_len, data_len), +966 => wire__crate__api__pseudo_manual__optional_twin_sync__handle_option_box_arguments_twin_sync_impl(ptr, rust_vec_len, data_len), +967 => wire__crate__api__pseudo_manual__optional_twin_sync__handle_optional_increment_twin_sync_impl(ptr, rust_vec_len, data_len), +968 => wire__crate__api__pseudo_manual__optional_twin_sync__handle_optional_return_twin_sync_impl(ptr, rust_vec_len, data_len), +969 => wire__crate__api__pseudo_manual__optional_twin_sync__handle_optional_struct_twin_sync_impl(ptr, rust_vec_len, data_len), +970 => wire__crate__api__pseudo_manual__optional_twin_sync__handle_vec_of_opts_twin_sync_impl(ptr, rust_vec_len, data_len), +977 => wire__crate__api__pseudo_manual__ownership_twin_sync__borrow_i32_twin_sync_impl(ptr, rust_vec_len, data_len), +978 => wire__crate__api__pseudo_manual__ownership_twin_sync__borrow_slice_string_twin_sync_impl(ptr, rust_vec_len, data_len), +979 => wire__crate__api__pseudo_manual__ownership_twin_sync__borrow_slice_u8_twin_sync_impl(ptr, rust_vec_len, data_len), +980 => wire__crate__api__pseudo_manual__ownership_twin_sync__borrow_str_twin_sync_impl(ptr, rust_vec_len, data_len), +981 => wire__crate__api__pseudo_manual__ownership_twin_sync__borrow_string_twin_sync_impl(ptr, rust_vec_len, data_len), +982 => wire__crate__api__pseudo_manual__ownership_twin_sync__borrow_struct_twin_sync_impl(ptr, rust_vec_len, data_len), +984 => wire__crate__api__pseudo_manual__primitive_list_misc_twin_sync__handle_vec_of_primitive_twin_sync_impl(ptr, rust_vec_len, data_len), +987 => wire__crate__api__pseudo_manual__primitive_misc_twin_sync__primitive_types_twin_sync_impl(ptr, rust_vec_len, data_len), +988 => wire__crate__api__pseudo_manual__primitive_misc_twin_sync__primitive_u32_twin_sync_impl(ptr, rust_vec_len, data_len), +991 => wire__crate__api__pseudo_manual__raw_string_twin_sync__test_more_than_just_one_raw_string_struct_twin_sync_impl(ptr, rust_vec_len, data_len), +992 => wire__crate__api__pseudo_manual__raw_string_twin_sync__test_raw_string_item_struct_twin_sync_impl(ptr, rust_vec_len, data_len), +1005 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__StructWithGoodAndOpaqueFieldWithoutOptionTwinRustAsync_auto_accessor_get_good_impl(ptr, rust_vec_len, data_len), +1006 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_rust_async__StructWithGoodAndOpaqueFieldWithoutOptionTwinRustAsync_auto_accessor_set_good_impl(ptr, rust_vec_len, data_len), +1039 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__NonCloneSimpleTwinSync_instance_method_arg_borrow_twin_sync_impl(ptr, rust_vec_len, data_len), +1040 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__NonCloneSimpleTwinSync_instance_method_arg_mut_borrow_twin_sync_impl(ptr, rust_vec_len, data_len), +1041 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__NonCloneSimpleTwinSync_instance_method_arg_own_twin_sync_impl(ptr, rust_vec_len, data_len), +1042 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__NonCloneSimpleTwinSync_instance_method_getter_twin_sync_impl(ptr, rust_vec_len, data_len), +1043 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__NonCloneSimpleTwinSync_instance_method_return_own_twin_sync_impl(ptr, rust_vec_len, data_len), +1044 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__NonCloneSimpleTwinSync_new_custom_name_twin_sync_impl(ptr, rust_vec_len, data_len), +1045 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__NonCloneSimpleTwinSync_new_twin_sync_impl(ptr, rust_vec_len, data_len), +1046 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__NonCloneSimpleTwinSync_new_with_result_twin_sync_impl(ptr, rust_vec_len, data_len), +1047 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__NonCloneSimpleTwinSync_static_method_arg_borrow_twin_sync_impl(ptr, rust_vec_len, data_len), +1048 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__NonCloneSimpleTwinSync_static_method_arg_mut_borrow_twin_sync_impl(ptr, rust_vec_len, data_len), +1049 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__NonCloneSimpleTwinSync_static_method_arg_own_twin_sync_impl(ptr, rust_vec_len, data_len), +1050 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__NonCloneSimpleTwinSync_static_method_return_own_twin_sync_impl(ptr, rust_vec_len, data_len), +1051 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__StructWithGoodAndOpaqueFieldWithoutOptionTwinSync_auto_accessor_get_good_impl(ptr, rust_vec_len, data_len), +1052 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__StructWithGoodAndOpaqueFieldWithoutOptionTwinSync_auto_accessor_set_good_impl(ptr, rust_vec_len, data_len), +1054 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_arg_borrow_twin_sync_impl(ptr, rust_vec_len, data_len), +1055 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_arg_mut_borrow_twin_sync_impl(ptr, rust_vec_len, data_len), +1056 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_arg_own_and_return_own_twin_sync_impl(ptr, rust_vec_len, data_len), +1057 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_arg_own_twin_sync_impl(ptr, rust_vec_len, data_len), +1058 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_arg_vec_own_twin_sync_impl(ptr, rust_vec_len, data_len), +1059 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_borrow_and_borrow_twin_sync_impl(ptr, rust_vec_len, data_len), +1060 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_borrow_and_mut_borrow_twin_sync_impl(ptr, rust_vec_len, data_len), +1061 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_callable_arg_twin_sync_impl(ptr, rust_vec_len, data_len), +1062 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_callable_return_twin_sync_impl(ptr, rust_vec_len, data_len), +1063 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_dummy_twin_sync_impl(ptr, rust_vec_len, data_len), +1064 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_enum_arg_borrow_twin_sync_impl(ptr, rust_vec_len, data_len), +1065 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_enum_return_own_twin_sync_impl(ptr, rust_vec_len, data_len), +1066 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_enum_with_good_and_opaque_arg_own_twin_sync_impl(ptr, rust_vec_len, data_len), +1067 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_enum_with_good_and_opaque_return_own_good_twin_sync_impl(ptr, rust_vec_len, data_len), +1068 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_enum_with_good_and_opaque_return_own_opaque_twin_sync_impl(ptr, rust_vec_len, data_len), +1069 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_explicit_arg_twin_sync_impl(ptr, rust_vec_len, data_len), +1070 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_explicit_return_struct_twin_sync_impl(ptr, rust_vec_len, data_len), +1071 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_explicit_return_twin_sync_impl(ptr, rust_vec_len, data_len), +1072 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_explicit_struct_twin_sync_impl(ptr, rust_vec_len, data_len), +1073 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_normal_and_opaque_arg_twin_sync_impl(ptr, rust_vec_len, data_len), +1074 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_plus_sign_arg_twin_sync_impl(ptr, rust_vec_len, data_len), +1075 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_plus_sign_return_twin_sync_impl(ptr, rust_vec_len, data_len), +1076 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_return_opaque_one_and_two_twin_sync_impl(ptr, rust_vec_len, data_len), +1077 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_return_opaque_two_twin_sync_impl(ptr, rust_vec_len, data_len), +1078 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_return_own_twin_sync_impl(ptr, rust_vec_len, data_len), +1079 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_return_vec_own_twin_sync_impl(ptr, rust_vec_len, data_len), +1080 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_sleep_twin_sync_impl(ptr, rust_vec_len, data_len), +1081 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_stream_sink_twin_sync_impl(ptr, rust_vec_len, data_len), +1082 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_struct_with_good_and_opaque_field_arg_own_twin_sync_impl(ptr, rust_vec_len, data_len), +1083 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_struct_with_good_and_opaque_field_return_own_twin_sync_impl(ptr, rust_vec_len, data_len), +1084 => wire__crate__api__pseudo_manual__rust_auto_opaque_twin_sync__rust_auto_opaque_two_args_twin_sync_impl(ptr, rust_vec_len, data_len), +1100 => wire__crate__api__pseudo_manual__rust_opaque_twin_sync__create_array_opaque_enum_twin_sync_impl(ptr, rust_vec_len, data_len), +1101 => wire__crate__api__pseudo_manual__rust_opaque_twin_sync__create_nested_opaque_twin_sync_impl(ptr, rust_vec_len, data_len), +1102 => wire__crate__api__pseudo_manual__rust_opaque_twin_sync__create_opaque_twin_sync_impl(ptr, rust_vec_len, data_len), +1103 => wire__crate__api__pseudo_manual__rust_opaque_twin_sync__create_option_opaque_twin_sync_impl(ptr, rust_vec_len, data_len), +1104 => wire__crate__api__pseudo_manual__rust_opaque_twin_sync__frb_generator_test_twin_sync_impl(ptr, rust_vec_len, data_len), +1105 => wire__crate__api__pseudo_manual__rust_opaque_twin_sync__opaque_array_run_twin_sync_impl(ptr, rust_vec_len, data_len), +1106 => wire__crate__api__pseudo_manual__rust_opaque_twin_sync__opaque_array_twin_sync_impl(ptr, rust_vec_len, data_len), +1107 => wire__crate__api__pseudo_manual__rust_opaque_twin_sync__opaque_vec_run_twin_sync_impl(ptr, rust_vec_len, data_len), +1108 => wire__crate__api__pseudo_manual__rust_opaque_twin_sync__opaque_vec_twin_sync_impl(ptr, rust_vec_len, data_len), +1109 => wire__crate__api__pseudo_manual__rust_opaque_twin_sync__run_enum_opaque_twin_sync_impl(ptr, rust_vec_len, data_len), +1110 => wire__crate__api__pseudo_manual__rust_opaque_twin_sync__run_nested_opaque_twin_sync_impl(ptr, rust_vec_len, data_len), +1111 => wire__crate__api__pseudo_manual__rust_opaque_twin_sync__run_non_clone_twin_sync_impl(ptr, rust_vec_len, data_len), +1112 => wire__crate__api__pseudo_manual__rust_opaque_twin_sync__run_opaque_twin_sync_impl(ptr, rust_vec_len, data_len), +1113 => wire__crate__api__pseudo_manual__rust_opaque_twin_sync__run_opaque_with_delay_twin_sync_impl(ptr, rust_vec_len, data_len), +1114 => wire__crate__api__pseudo_manual__rust_opaque_twin_sync__unwrap_rust_opaque_twin_sync_impl(ptr, rust_vec_len, data_len), +1116 => wire__crate__api__pseudo_manual__simple_twin_sync__simple_adder_twin_sync_impl(ptr, rust_vec_len, data_len), +1135 => wire__crate__api__pseudo_manual__structure_twin_sync__func_for_struct_with_dart_keyword_field_twin_sync_impl(ptr, rust_vec_len, data_len), +1136 => wire__crate__api__pseudo_manual__structure_twin_sync__func_for_struct_with_field_rename_twin_sync_impl(ptr, rust_vec_len, data_len), +1137 => wire__crate__api__pseudo_manual__structure_twin_sync__func_struct_with_one_field_twin_sync_impl(ptr, rust_vec_len, data_len), +1138 => wire__crate__api__pseudo_manual__structure_twin_sync__func_struct_with_two_field_twin_sync_impl(ptr, rust_vec_len, data_len), +1139 => wire__crate__api__pseudo_manual__structure_twin_sync__func_struct_with_zero_field_twin_sync_impl(ptr, rust_vec_len, data_len), +1140 => wire__crate__api__pseudo_manual__structure_twin_sync__func_tuple_struct_with_one_field_twin_sync_impl(ptr, rust_vec_len, data_len), +1141 => wire__crate__api__pseudo_manual__structure_twin_sync__func_tuple_struct_with_two_field_twin_sync_impl(ptr, rust_vec_len, data_len), +1144 => wire__crate__api__pseudo_manual__tuple_twin_sync__test_tuple_2_twin_sync_impl(ptr, rust_vec_len, data_len), +1145 => wire__crate__api__pseudo_manual__tuple_twin_sync__test_tuple_twin_sync_impl(ptr, rust_vec_len, data_len), +1149 => wire__crate__api__pseudo_manual__type_alias_twin_sync__handle_type_alias_id_twin_sync_impl(ptr, rust_vec_len, data_len), +1150 => wire__crate__api__pseudo_manual__type_alias_twin_sync__handle_type_alias_model_twin_sync_impl(ptr, rust_vec_len, data_len), +1151 => wire__crate__api__pseudo_manual__type_alias_twin_sync__handle_type_nest_alias_id_twin_sync_impl(ptr, rust_vec_len, data_len), +1155 => wire__crate__api__pseudo_manual__uuid_type_twin_sync__handle_nested_uuids_twin_sync_impl(ptr, rust_vec_len, data_len), +1156 => wire__crate__api__pseudo_manual__uuid_type_twin_sync__handle_uuid_twin_sync_impl(ptr, rust_vec_len, data_len), +1157 => wire__crate__api__pseudo_manual__uuid_type_twin_sync__handle_uuids_twin_sync_impl(ptr, rust_vec_len, data_len), +1172 => wire__crate__api__rust_auto_opaque__StructWithGoodAndOpaqueFieldWithoutOptionTwinNormal_auto_accessor_get_good_impl(ptr, rust_vec_len, data_len), +1173 => wire__crate__api__rust_auto_opaque__StructWithGoodAndOpaqueFieldWithoutOptionTwinNormal_auto_accessor_set_good_impl(ptr, rust_vec_len, data_len), +1221 => wire__crate__api__rust_opaque_sync__frb_sync_generator_test_twin_normal_impl(ptr, rust_vec_len, data_len), +1222 => wire__crate__api__rust_opaque_sync__sync_create_non_clone_twin_normal_impl(ptr, rust_vec_len, data_len), +1223 => wire__crate__api__rust_opaque_sync__sync_create_opaque_twin_normal_impl(ptr, rust_vec_len, data_len), +1224 => wire__crate__api__rust_opaque_sync__sync_option_rust_opaque_twin_normal_impl(ptr, rust_vec_len, data_len), _ => unreachable!(), } } @@ -40862,6 +42207,84 @@ impl flutter_rust_bridge::IntoIntoDart { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self.0) + .into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for FrbWrapper +{ +} + +impl flutter_rust_bridge::IntoIntoDart> + for LtOwnedStructTwinNormal +{ + fn into_into_dart(self) -> FrbWrapper { + self.into() + } +} + +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for FrbWrapper { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self.0) + .into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for FrbWrapper +{ +} + +impl flutter_rust_bridge::IntoIntoDart> + for LtOwnedStructTwinSync +{ + fn into_into_dart(self) -> FrbWrapper { + self.into() + } +} + +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for FrbWrapper { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self.0) + .into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for FrbWrapper +{ +} + +impl flutter_rust_bridge::IntoIntoDart> + for LtSubStructTwinNormal +{ + fn into_into_dart(self) -> FrbWrapper { + self.into() + } +} + +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for FrbWrapper { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self.0) + .into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for FrbWrapper +{ +} + +impl flutter_rust_bridge::IntoIntoDart> for LtSubStructTwinSync { + fn into_into_dart(self) -> FrbWrapper { + self.into() + } +} + // Codec=Dco (DartCObject based), see doc to use other codecs impl flutter_rust_bridge::IntoDart for FrbWrapper { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { @@ -41161,6 +42584,21 @@ impl flutter_rust_bridge::IntoIntoDart> for Opaque } } +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for FrbWrapper { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self.0) + .into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper {} + +impl flutter_rust_bridge::IntoIntoDart> for SimpleLogger { + fn into_into_dart(self) -> FrbWrapper { + self.into() + } +} + // Codec=Dco (DartCObject based), see doc to use other codecs impl flutter_rust_bridge::IntoDart for FrbWrapper { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { @@ -48558,6 +49996,90 @@ impl SseEncode for flutter_rust_bridge::for_generated::anyhow::Error { } } +impl SseEncode for RustAutoOpaqueMoi>> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >, + >, + >>::sse_encode( + flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_encode(self), + serializer, + ); + } +} + +impl SseEncode for RustAutoOpaqueMoi>> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >, + >, + >>::sse_encode( + flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_encode(self), + serializer, + ); + } +} + +impl SseEncode for RustAutoOpaqueMoi>> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >, + >, + >>::sse_encode( + flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_encode(self), + serializer, + ); + } +} + +impl SseEncode for RustAutoOpaqueMoi>> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >, + >, + >>::sse_encode( + flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_encode(self), + serializer, + ); + } +} + +impl SseEncode for RustAutoOpaqueMoi>> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >, + >, + >>::sse_encode( + flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_encode(self), + serializer, + ); + } +} + +impl SseEncode for RustAutoOpaqueMoi>> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >, + >, + >>::sse_encode( + flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_encode(self), + serializer, + ); + } +} + impl SseEncode for RustAutoOpaqueMoi { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -48835,6 +50357,49 @@ impl SseEncode for ItemContainerSolutionOneTwinNormal { } } +impl SseEncode for LtOwnedStructTwinNormal { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + , + >>::sse_encode( + flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self), + serializer, + ); + } +} + +impl SseEncode for LtOwnedStructTwinSync { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + , + >>::sse_encode( + flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self), + serializer, + ); + } +} + +impl SseEncode for LtSubStructTwinNormal { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + , + >>::sse_encode( + flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self), + serializer, + ); + } +} + +impl SseEncode for LtSubStructTwinSync { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self), serializer); + } +} + impl SseEncode for MyAudioParamTwinNormal { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -49006,6 +50571,13 @@ impl SseEncode for OpaqueTwoTwinSync { } } +impl SseEncode for SimpleLogger { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >>::sse_encode(flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self), serializer); + } +} + impl SseEncode for SimpleOpaqueExternalStructWithMethod { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -50113,6 +51685,146 @@ impl SseEncode } } +impl SseEncode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + +impl SseEncode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + +impl SseEncode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + +impl SseEncode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + +impl SseEncode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + +impl SseEncode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + +impl SseEncode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + +impl SseEncode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + +impl SseEncode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + +impl SseEncode + for RustOpaqueMoi> +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + impl SseEncode for RustOpaqueMoi< flutter_rust_bridge::for_generated::RustAutoOpaqueInner, @@ -50309,6 +52021,17 @@ impl SseEncode } } +impl SseEncode + for RustOpaqueMoi> +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + impl SseEncode for RustOpaqueMoi< flutter_rust_bridge::for_generated::RustAutoOpaqueInner< diff --git a/frb_example/pure_dart_pde/rust/src/frb_generated.web.rs b/frb_example/pure_dart_pde/rust/src/frb_generated.web.rs index cc310fbcfe..fcd93c929e 100644 --- a/frb_example/pure_dart_pde/rust/src/frb_generated.web.rs +++ b/frb_example/pure_dart_pde/rust/src/frb_generated.web.rs @@ -13,6 +13,7 @@ use crate::api::dyn_trait::*; use crate::api::external_impl::*; use crate::api::impl_trait::SimpleTraitTwinNormal; use crate::api::impl_trait::*; +use crate::api::lifetimeable::*; use crate::api::method::*; use crate::api::misc_no_twin_example_a::*; use crate::api::misc_no_twin_example_b::*; @@ -21,6 +22,7 @@ use crate::api::pseudo_manual::dropping_twin_rust_async::*; use crate::api::pseudo_manual::dropping_twin_sync::*; use crate::api::pseudo_manual::impl_trait_twin_sync::SimpleTraitTwinSync; use crate::api::pseudo_manual::impl_trait_twin_sync::*; +use crate::api::pseudo_manual::lifetimeable_twin_sync::*; use crate::api::pseudo_manual::method_twin_rust_async::*; use crate::api::pseudo_manual::method_twin_sync::*; use crate::api::pseudo_manual::rust_auto_opaque_twin_rust_async::*; @@ -33,7 +35,7 @@ use crate::api::rust_opaque_sync::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; use flutter_rust_bridge::for_generated::wasm_bindgen; use flutter_rust_bridge::for_generated::wasm_bindgen::prelude::*; -use flutter_rust_bridge::for_generated::{transform_result_dco, Lockable}; +use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; // Section: boilerplate @@ -612,6 +614,194 @@ pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generat >::decrement_strong_count(ptr as _); } +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::increment_strong_count(ptr as _); +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::decrement_strong_count(ptr as _); +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::increment_strong_count(ptr as _); +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtNestedTypeWithLifetimeTwinSyncstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::decrement_strong_count(ptr as _); +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::increment_strong_count(ptr as _); +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::decrement_strong_count(ptr as _); +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::increment_strong_count(ptr as _); +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithLifetimeTwinSyncstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::decrement_strong_count(ptr as _); +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::increment_strong_count(ptr as _); +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinNormalstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::decrement_strong_count(ptr as _); +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::increment_strong_count(ptr as _); +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableLtTypeWithMultiDepTwinSyncstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc::< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner< + Lifetimeable>, + >, + >::decrement_strong_count(ptr as _); +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + ptr: *const std::ffi::c_void, +) { + MoiArc::>::increment_strong_count(ptr as _); +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal( + ptr: *const std::ffi::c_void, +) { + MoiArc::>::decrement_strong_count(ptr as _); +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + ptr: *const std::ffi::c_void, +) { + MoiArc::>::increment_strong_count(ptr as _); +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinSync( + ptr: *const std::ffi::c_void, +) { + MoiArc::>::decrement_strong_count(ptr as _); +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + ptr: *const std::ffi::c_void, +) { + MoiArc::>::increment_strong_count(ptr as _); +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinNormal( + ptr: *const std::ffi::c_void, +) { + MoiArc::>::decrement_strong_count(ptr as _); +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + ptr: *const std::ffi::c_void, +) { + MoiArc::>::increment_strong_count(ptr as _); +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtSubStructTwinSync( + ptr: *const std::ffi::c_void, +) { + MoiArc::>::decrement_strong_count(ptr as _); +} + #[wasm_bindgen] pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyAudioParamTwinNormal( ptr: *const std::ffi::c_void, @@ -844,6 +1034,20 @@ pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generat MoiArc::>::decrement_strong_count(ptr as _); } +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + ptr: *const std::ffi::c_void, +) { + MoiArc::>::increment_strong_count(ptr as _); +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleLogger( + ptr: *const std::ffi::c_void, +) { + MoiArc::>::decrement_strong_count(ptr as _); +} + #[wasm_bindgen] pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerSimpleOpaqueExternalStructWithMethod( ptr: *const std::ffi::c_void, diff --git a/frb_example/pure_dart_pde/test/api/lifetimeable_test.dart b/frb_example/pure_dart_pde/test/api/lifetimeable_test.dart new file mode 100644 index 0000000000..c7701e9930 --- /dev/null +++ b/frb_example/pure_dart_pde/test/api/lifetimeable_test.dart @@ -0,0 +1,217 @@ +// AUTO-GENERATED FROM frb_example/pure_dart, DO NOT EDIT + +// FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "sse", "sync sse", "rustAsync sse"]} + +import 'dart:async'; + +import 'package:frb_example_pure_dart_pde/src/rust/api/lifetimeable.dart'; +import 'package:frb_example_pure_dart_pde/src/rust/api/misc_no_twin_example_a.dart'; +import 'package:frb_example_pure_dart_pde/src/rust/frb_generated.dart'; +import 'package:test/test.dart'; + +Future main({bool skipRustLibInit = false}) async { + if (!skipRustLibInit) await RustLib.init(); + + group('when to dispose and the dispose order', () { + test('dispose ownedStruct', () async { + final simpleLogger = SimpleLogger(); + final ownedStruct = await LtOwnedStructTwinNormal.createWithLogger( + value: 'a', logger: simpleLogger); + expect(simpleLogger.getAndReset(), []); + + ownedStruct.dispose(); + expect(simpleLogger.getAndReset(), [ + 'LtOwnedStructTwinNormal.drop', + 'LtOwnedSubStructTwinNormal.drop', + ]); + }); + + test('dispose ownedStruct - dispose typeWithLifetime', () async { + final simpleLogger = SimpleLogger(); + final ownedStruct = await LtOwnedStructTwinNormal.createWithLogger( + value: 'a', logger: simpleLogger); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinNormal(); + + ownedStruct.dispose(); + expect(simpleLogger.getAndReset(), [ + // Do *not* really dispose ownedStruct + ]); + + typeWithLifetime.dispose(); + expect(simpleLogger.getAndReset(), [ + // NOTE order: Firstly the borrowed type, secondly the owned type + 'LtTypeWithLifetimeTwinNormal.drop', + 'LtOwnedStructTwinNormal.drop', + 'LtOwnedSubStructTwinNormal.drop', + ]); + }); + + test('dispose typeWithLifetime - dispose ownedStruct', () async { + final simpleLogger = SimpleLogger(); + final ownedStruct = await LtOwnedStructTwinNormal.createWithLogger( + value: 'a', logger: simpleLogger); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinNormal(); + + typeWithLifetime.dispose(); + expect(simpleLogger.getAndReset(), [ + 'LtTypeWithLifetimeTwinNormal.drop', + ]); + + ownedStruct.dispose(); + expect(simpleLogger.getAndReset(), [ + 'LtOwnedStructTwinNormal.drop', + 'LtOwnedSubStructTwinNormal.drop', + ]); + }); + + test('dispose ownedStruct - dispose typeWithLifetime', () async { + final simpleLogger = SimpleLogger(); + final ownedStruct = await LtOwnedStructTwinNormal.createWithLogger( + value: 'a', logger: simpleLogger); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinNormal(); + + ownedStruct.dispose(); + expect(simpleLogger.getAndReset(), [ + // Do *not* really dispose ownedStruct + ]); + + typeWithLifetime.dispose(); + expect(simpleLogger.getAndReset(), [ + // NOTE order: Firstly the borrowed type, secondly the owned type + 'LtTypeWithLifetimeTwinNormal.drop', + 'LtOwnedStructTwinNormal.drop', + 'LtOwnedSubStructTwinNormal.drop', + ]); + }); + + test( + 'dispose ownedStruct - dispose typeWithLifetime - dispose nestedTypeWithLifetime', + () async { + final simpleLogger = SimpleLogger(); + final ownedStruct = await LtOwnedStructTwinNormal.createWithLogger( + value: 'a', logger: simpleLogger); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinNormal(); + final nestedTypeWithLifetime = + await typeWithLifetime.computeNestedTypeWithLifetimeTwinNormal(); + + ownedStruct.dispose(); + expect(simpleLogger.getAndReset(), [ + // Do *not* really dispose + ]); + + typeWithLifetime.dispose(); + expect(simpleLogger.getAndReset(), [ + // Do *not* really dispose + ]); + + nestedTypeWithLifetime.dispose(); + expect(simpleLogger.getAndReset(), [ + // NOTE the order + 'LtNestedTypeWithLifetimeTwinNormal.drop', + 'LtTypeWithLifetimeTwinNormal.drop', + 'LtOwnedStructTwinNormal.drop', + 'LtOwnedSubStructTwinNormal.drop', + ]); + }); + }); + + group('features', () { + test('computeTypeWithLifetimeTwinNormal', () async { + final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinNormal(); + await _testTypeWithLifetime(ownedStruct, typeWithLifetime); + }); + + test('computeWithUnrelatedBorrowedArgTwinNormal', () async { + final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); + final typeWithLifetime = + await ownedStruct.computeWithUnrelatedBorrowedArgTwinNormal( + unrelatedBorrowed: await LtOwnedStructTwinNormal.create(value: 'hi'), + unrelatedOwned: await LtOwnedStructTwinNormal.create(value: 'hi'), + ); + await _testTypeWithLifetime(ownedStruct, typeWithLifetime); + }); + + test('ltComputeWithLifetimeFunctionTwinNormal', () async { + final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); + final typeWithLifetime = + await ltComputeWithLifetimeFunctionTwinNormal(arg: ownedStruct); + await _testTypeWithLifetime(ownedStruct, typeWithLifetime); + }); + + test('computeNestedTypeWithLifetimeTwinNormal', () async { + final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinNormal(); + final nestedTypeWithLifetime = + await typeWithLifetime.computeNestedTypeWithLifetimeTwinNormal(); + await _testNestedTypeWithLifetime( + ownedStruct, typeWithLifetime, nestedTypeWithLifetime); + }); + + test('computeArgGenericLifetimeTwinNormal', () async { + final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinNormal(); + final anotherTypeWithLifetime = await LtTypeWithLifetimeTwinNormal + .computeArgGenericLifetimeTwinNormal(arg: typeWithLifetime); + + expect(await anotherTypeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); + expect(await anotherTypeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); + + ownedStruct.dispose(); + typeWithLifetime.dispose(); + + expect(await anotherTypeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); + expect(await anotherTypeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); + }); + + test('computeWithMultiArgHavingLifetimeTwinNormal', () async { + final typeWithMultiDep = await LtTypeWithMultiDepTwinNormal + .computeWithMultiArgHavingLifetimeTwinNormal( + a: await LtOwnedStructTwinNormal.create(value: 'a'), + b: await LtOwnedStructTwinNormal.create(value: 'b'), + unrelatedBorrowed: await LtOwnedStructTwinNormal.create(value: 'hi'), + unrelatedOwned: await LtOwnedStructTwinNormal.create(value: 'hi'), + ); + expect(await typeWithMultiDep.greetBorrowSelfTwinNormal(), ['a', 'b']); + expect(await typeWithMultiDep.greetBorrowMutSelfTwinNormal(), ['a', 'b']); + }); + }); +} + +Future _testTypeWithLifetime( + LtOwnedStructTwinNormal ownedStruct, + LtTypeWithLifetimeTwinNormal typeWithLifetime, +) async { + expect(await typeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); + expect(await typeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); + ownedStruct.dispose(); + expect(await typeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); + expect(await typeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); +} + +Future _testNestedTypeWithLifetime( + LtOwnedStructTwinNormal ownedStruct, + LtTypeWithLifetimeTwinNormal typeWithLifetime, + LtNestedTypeWithLifetimeTwinNormal nestedTypeWithLifetime, +) async { + expect(await typeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); + // cannot mut borrow, since nestedTypeWithLifetime has borrowed typeWithLifetime + // expect(await typeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); + + expect(await nestedTypeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); + expect(await nestedTypeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); + + ownedStruct.dispose(); + typeWithLifetime.dispose(); + + // can still call + expect(await nestedTypeWithLifetime.greetBorrowSelfTwinNormal(), 'a'); + expect(await nestedTypeWithLifetime.greetBorrowMutSelfTwinNormal(), 'a'); +} diff --git a/frb_example/pure_dart_pde/test/api/pseudo_manual/lifetimeable_twin_sync_test.dart b/frb_example/pure_dart_pde/test/api/pseudo_manual/lifetimeable_twin_sync_test.dart new file mode 100644 index 0000000000..2fcd738b93 --- /dev/null +++ b/frb_example/pure_dart_pde/test/api/pseudo_manual/lifetimeable_twin_sync_test.dart @@ -0,0 +1,222 @@ +// NOTE: This file is mimicking how a human developer writes tests, +// and is auto-generated from `lifetimeable_test.dart` by frb_internal +// Please do not modify manually, but modify the origin and re-run frb_internal generator + +// AUTO-GENERATED FROM frb_example/pure_dart, DO NOT EDIT + +// FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "sse", "sync sse", "rustAsync sse"]} + +import 'dart:async'; + +import 'package:frb_example_pure_dart_pde/src/rust/api/pseudo_manual/lifetimeable_twin_sync.dart'; +import 'package:frb_example_pure_dart_pde/src/rust/api/pseudo_manual/misc_no_twin_example_a_twin_sync.dart'; +import 'package:frb_example_pure_dart_pde/src/rust/frb_generated.dart'; +import 'package:test/test.dart'; + +Future main({bool skipRustLibInit = false}) async { + if (!skipRustLibInit) await RustLib.init(); + + group('when to dispose and the dispose order', () { + test('dispose ownedStruct', () async { + final simpleLogger = SimpleLogger(); + final ownedStruct = await LtOwnedStructTwinSync.createWithLogger( + value: 'a', logger: simpleLogger); + expect(simpleLogger.getAndReset(), []); + + ownedStruct.dispose(); + expect(simpleLogger.getAndReset(), [ + 'LtOwnedStructTwinSync.drop', + 'LtOwnedSubStructTwinSync.drop', + ]); + }); + + test('dispose ownedStruct - dispose typeWithLifetime', () async { + final simpleLogger = SimpleLogger(); + final ownedStruct = await LtOwnedStructTwinSync.createWithLogger( + value: 'a', logger: simpleLogger); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinSync(); + + ownedStruct.dispose(); + expect(simpleLogger.getAndReset(), [ + // Do *not* really dispose ownedStruct + ]); + + typeWithLifetime.dispose(); + expect(simpleLogger.getAndReset(), [ + // NOTE order: Firstly the borrowed type, secondly the owned type + 'LtTypeWithLifetimeTwinSync.drop', + 'LtOwnedStructTwinSync.drop', + 'LtOwnedSubStructTwinSync.drop', + ]); + }); + + test('dispose typeWithLifetime - dispose ownedStruct', () async { + final simpleLogger = SimpleLogger(); + final ownedStruct = await LtOwnedStructTwinSync.createWithLogger( + value: 'a', logger: simpleLogger); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinSync(); + + typeWithLifetime.dispose(); + expect(simpleLogger.getAndReset(), [ + 'LtTypeWithLifetimeTwinSync.drop', + ]); + + ownedStruct.dispose(); + expect(simpleLogger.getAndReset(), [ + 'LtOwnedStructTwinSync.drop', + 'LtOwnedSubStructTwinSync.drop', + ]); + }); + + test('dispose ownedStruct - dispose typeWithLifetime', () async { + final simpleLogger = SimpleLogger(); + final ownedStruct = await LtOwnedStructTwinSync.createWithLogger( + value: 'a', logger: simpleLogger); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinSync(); + + ownedStruct.dispose(); + expect(simpleLogger.getAndReset(), [ + // Do *not* really dispose ownedStruct + ]); + + typeWithLifetime.dispose(); + expect(simpleLogger.getAndReset(), [ + // NOTE order: Firstly the borrowed type, secondly the owned type + 'LtTypeWithLifetimeTwinSync.drop', + 'LtOwnedStructTwinSync.drop', + 'LtOwnedSubStructTwinSync.drop', + ]); + }); + + test( + 'dispose ownedStruct - dispose typeWithLifetime - dispose nestedTypeWithLifetime', + () async { + final simpleLogger = SimpleLogger(); + final ownedStruct = await LtOwnedStructTwinSync.createWithLogger( + value: 'a', logger: simpleLogger); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinSync(); + final nestedTypeWithLifetime = + await typeWithLifetime.computeNestedTypeWithLifetimeTwinSync(); + + ownedStruct.dispose(); + expect(simpleLogger.getAndReset(), [ + // Do *not* really dispose + ]); + + typeWithLifetime.dispose(); + expect(simpleLogger.getAndReset(), [ + // Do *not* really dispose + ]); + + nestedTypeWithLifetime.dispose(); + expect(simpleLogger.getAndReset(), [ + // NOTE the order + 'LtNestedTypeWithLifetimeTwinSync.drop', + 'LtTypeWithLifetimeTwinSync.drop', + 'LtOwnedStructTwinSync.drop', + 'LtOwnedSubStructTwinSync.drop', + ]); + }); + }); + + group('features', () { + test('computeTypeWithLifetimeTwinSync', () async { + final ownedStruct = await LtOwnedStructTwinSync.create(value: 'a'); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinSync(); + await _testTypeWithLifetime(ownedStruct, typeWithLifetime); + }); + + test('computeWithUnrelatedBorrowedArgTwinSync', () async { + final ownedStruct = await LtOwnedStructTwinSync.create(value: 'a'); + final typeWithLifetime = + await ownedStruct.computeWithUnrelatedBorrowedArgTwinSync( + unrelatedBorrowed: await LtOwnedStructTwinSync.create(value: 'hi'), + unrelatedOwned: await LtOwnedStructTwinSync.create(value: 'hi'), + ); + await _testTypeWithLifetime(ownedStruct, typeWithLifetime); + }); + + test('ltComputeWithLifetimeFunctionTwinSync', () async { + final ownedStruct = await LtOwnedStructTwinSync.create(value: 'a'); + final typeWithLifetime = + await ltComputeWithLifetimeFunctionTwinSync(arg: ownedStruct); + await _testTypeWithLifetime(ownedStruct, typeWithLifetime); + }); + + test('computeNestedTypeWithLifetimeTwinSync', () async { + final ownedStruct = await LtOwnedStructTwinSync.create(value: 'a'); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinSync(); + final nestedTypeWithLifetime = + await typeWithLifetime.computeNestedTypeWithLifetimeTwinSync(); + await _testNestedTypeWithLifetime( + ownedStruct, typeWithLifetime, nestedTypeWithLifetime); + }); + + test('computeArgGenericLifetimeTwinSync', () async { + final ownedStruct = await LtOwnedStructTwinSync.create(value: 'a'); + final typeWithLifetime = + await ownedStruct.computeTypeWithLifetimeTwinSync(); + final anotherTypeWithLifetime = + await LtTypeWithLifetimeTwinSync.computeArgGenericLifetimeTwinSync( + arg: typeWithLifetime); + + expect(await anotherTypeWithLifetime.greetBorrowSelfTwinSync(), 'a'); + expect(await anotherTypeWithLifetime.greetBorrowMutSelfTwinSync(), 'a'); + + ownedStruct.dispose(); + typeWithLifetime.dispose(); + + expect(await anotherTypeWithLifetime.greetBorrowSelfTwinSync(), 'a'); + expect(await anotherTypeWithLifetime.greetBorrowMutSelfTwinSync(), 'a'); + }); + + test('computeWithMultiArgHavingLifetimeTwinSync', () async { + final typeWithMultiDep = await LtTypeWithMultiDepTwinSync + .computeWithMultiArgHavingLifetimeTwinSync( + a: await LtOwnedStructTwinSync.create(value: 'a'), + b: await LtOwnedStructTwinSync.create(value: 'b'), + unrelatedBorrowed: await LtOwnedStructTwinSync.create(value: 'hi'), + unrelatedOwned: await LtOwnedStructTwinSync.create(value: 'hi'), + ); + expect(await typeWithMultiDep.greetBorrowSelfTwinSync(), ['a', 'b']); + expect(await typeWithMultiDep.greetBorrowMutSelfTwinSync(), ['a', 'b']); + }); + }); +} + +Future _testTypeWithLifetime( + LtOwnedStructTwinSync ownedStruct, + LtTypeWithLifetimeTwinSync typeWithLifetime, +) async { + expect(await typeWithLifetime.greetBorrowSelfTwinSync(), 'a'); + expect(await typeWithLifetime.greetBorrowMutSelfTwinSync(), 'a'); + ownedStruct.dispose(); + expect(await typeWithLifetime.greetBorrowSelfTwinSync(), 'a'); + expect(await typeWithLifetime.greetBorrowMutSelfTwinSync(), 'a'); +} + +Future _testNestedTypeWithLifetime( + LtOwnedStructTwinSync ownedStruct, + LtTypeWithLifetimeTwinSync typeWithLifetime, + LtNestedTypeWithLifetimeTwinSync nestedTypeWithLifetime, +) async { + expect(await typeWithLifetime.greetBorrowSelfTwinSync(), 'a'); + // cannot mut borrow, since nestedTypeWithLifetime has borrowed typeWithLifetime + // expect(await typeWithLifetime.greetBorrowMutSelfTwinSync(), 'a'); + + expect(await nestedTypeWithLifetime.greetBorrowSelfTwinSync(), 'a'); + expect(await nestedTypeWithLifetime.greetBorrowMutSelfTwinSync(), 'a'); + + ownedStruct.dispose(); + typeWithLifetime.dispose(); + + // can still call + expect(await nestedTypeWithLifetime.greetBorrowSelfTwinSync(), 'a'); + expect(await nestedTypeWithLifetime.greetBorrowMutSelfTwinSync(), 'a'); +} diff --git a/frb_example/pure_dart_pde/test/dart_valgrind_test_entrypoint.dart b/frb_example/pure_dart_pde/test/dart_valgrind_test_entrypoint.dart index cc0b130af4..b194534087 100644 --- a/frb_example/pure_dart_pde/test/dart_valgrind_test_entrypoint.dart +++ b/frb_example/pure_dart_pde/test/dart_valgrind_test_entrypoint.dart @@ -29,6 +29,7 @@ import 'api/external_impl_test.dart' as external_impl_test; import 'api/external_type_in_crate_test.dart' as external_type_in_crate_test; import 'api/impl_trait_test.dart' as impl_trait_test; import 'api/inside_macro_test.dart' as inside_macro_test; +import 'api/lifetimeable_test.dart' as lifetimeable_test; import 'api/map_and_set_test.dart' as map_and_set_test; import 'api/method_test.dart' as method_test; import 'api/mirror_test.dart' as mirror_test; @@ -99,6 +100,8 @@ import 'api/pseudo_manual/external_type_in_crate_twin_sync_test.dart' as external_type_in_crate_twin_sync_test; import 'api/pseudo_manual/impl_trait_twin_sync_test.dart' as impl_trait_twin_sync_test; +import 'api/pseudo_manual/lifetimeable_twin_sync_test.dart' + as lifetimeable_twin_sync_test; import 'api/pseudo_manual/map_and_set_twin_rust_async_test.dart' as map_and_set_twin_rust_async_test; import 'api/pseudo_manual/map_and_set_twin_sync_test.dart' @@ -225,6 +228,7 @@ Future callFileEntrypoints() async { await external_type_in_crate_test.main(skipRustLibInit: true); await impl_trait_test.main(skipRustLibInit: true); await inside_macro_test.main(skipRustLibInit: true); + await lifetimeable_test.main(skipRustLibInit: true); await map_and_set_test.main(skipRustLibInit: true); await method_test.main(skipRustLibInit: true); await mirror_test.main(skipRustLibInit: true); @@ -270,6 +274,7 @@ Future callFileEntrypoints() async { await external_type_in_crate_twin_rust_async_test.main(skipRustLibInit: true); await external_type_in_crate_twin_sync_test.main(skipRustLibInit: true); await impl_trait_twin_sync_test.main(skipRustLibInit: true); + await lifetimeable_twin_sync_test.main(skipRustLibInit: true); await map_and_set_twin_rust_async_test.main(skipRustLibInit: true); await map_and_set_twin_sync_test.main(skipRustLibInit: true); await method_twin_rust_async_test.main(skipRustLibInit: true); From ca607af6fd25d4f4ebfbf91baff8dec7fa7e6514 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 20:17:51 +0800 Subject: [PATCH 088/117] feat: config --- frb_example/pure_dart/rust/src/api/lifetimeable.rs | 2 +- frb_example/pure_dart/test/api/lifetimeable_test.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frb_example/pure_dart/rust/src/api/lifetimeable.rs b/frb_example/pure_dart/rust/src/api/lifetimeable.rs index c6ee8891fb..dfe44b6d88 100644 --- a/frb_example/pure_dart/rust/src/api/lifetimeable.rs +++ b/frb_example/pure_dart/rust/src/api/lifetimeable.rs @@ -1,4 +1,4 @@ -// FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "sse", "sync sse", "rustAsync sse"]} +// FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "sse", "sync sse", "rustAsync sse"], "addCode": "use crate::api::misc_no_twin_example_a::SimpleLogger;", "removeCode": ["use crate::api::pseudo_manual::misc_no_twin_example_a_twin_sync::SimpleLogger;"]} #![allow(clippy::needless_lifetimes)] diff --git a/frb_example/pure_dart/test/api/lifetimeable_test.dart b/frb_example/pure_dart/test/api/lifetimeable_test.dart index ad26e57d36..89f2083af1 100644 --- a/frb_example/pure_dart/test/api/lifetimeable_test.dart +++ b/frb_example/pure_dart/test/api/lifetimeable_test.dart @@ -1,4 +1,4 @@ -// FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "sse", "sync sse", "rustAsync sse"]} +// FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "sse", "sync sse", "rustAsync sse"], "addCode": "import 'package:frb_example_pure_dart/src/rust/api/misc_no_twin_example_a.dart';", "removeCode": ["import 'package:frb_example_pure_dart/src/rust/api/misc_no_twin_example_a_twin_sync.dart';"]} import 'dart:async'; From b7362fb0fcd894a10a9d54a507c89ed552830a75 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 20:19:55 +0800 Subject: [PATCH 089/117] feat: more --- frb_example/pure_dart/rust/src/api/lifetimeable.rs | 2 +- frb_example/pure_dart/test/api/lifetimeable_test.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frb_example/pure_dart/rust/src/api/lifetimeable.rs b/frb_example/pure_dart/rust/src/api/lifetimeable.rs index dfe44b6d88..51233bfa3d 100644 --- a/frb_example/pure_dart/rust/src/api/lifetimeable.rs +++ b/frb_example/pure_dart/rust/src/api/lifetimeable.rs @@ -1,4 +1,4 @@ -// FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "sse", "sync sse", "rustAsync sse"], "addCode": "use crate::api::misc_no_twin_example_a::SimpleLogger;", "removeCode": ["use crate::api::pseudo_manual::misc_no_twin_example_a_twin_sync::SimpleLogger;"]} +// FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "sse", "sync sse", "rustAsync sse"], "replaceCode": {"misc_no_twin_example_a_twin_sync": "misc_no_twin_example_a"}} #![allow(clippy::needless_lifetimes)] diff --git a/frb_example/pure_dart/test/api/lifetimeable_test.dart b/frb_example/pure_dart/test/api/lifetimeable_test.dart index 89f2083af1..55aa8acdcd 100644 --- a/frb_example/pure_dart/test/api/lifetimeable_test.dart +++ b/frb_example/pure_dart/test/api/lifetimeable_test.dart @@ -1,4 +1,4 @@ -// FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "sse", "sync sse", "rustAsync sse"], "addCode": "import 'package:frb_example_pure_dart/src/rust/api/misc_no_twin_example_a.dart';", "removeCode": ["import 'package:frb_example_pure_dart/src/rust/api/misc_no_twin_example_a_twin_sync.dart';"]} +// FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "sse", "sync sse", "rustAsync sse"], "replaceCode": {"misc_no_twin_example_a_twin_sync": "misc_no_twin_example_a"}} import 'dart:async'; From e90b51211e807583fcd6b57273df6fea6c6cac1e Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 20:21:00 +0800 Subject: [PATCH 090/117] feat: more --- .../utils/generator_utils.dart | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/frb_internal/lib/src/frb_example_pure_dart_generator/utils/generator_utils.dart b/tools/frb_internal/lib/src/frb_example_pure_dart_generator/utils/generator_utils.dart index b6c37d452c..15ccd2384b 100644 --- a/tools/frb_internal/lib/src/frb_example_pure_dart_generator/utils/generator_utils.dart +++ b/tools/frb_internal/lib/src/frb_example_pure_dart_generator/utils/generator_utils.dart @@ -119,8 +119,8 @@ class _Duplicator { (annotation.addCode ?? '') + generator.generateDuplicateCode( _handleFileContent(fileContent), mode); - for (final x in annotation.removeCode) { - outputText = outputText.replaceAll(x, ''); + for (final entry in annotation.replaceCode.entries) { + outputText = outputText.replaceAll(entry.key, entry.value); } final targetPath = generator.interestDir @@ -164,14 +164,14 @@ String _handleFileContent(String content) { class Annotation { final List forbiddenDuplicatorModes; final String? addCode; - final List removeCode; + final Map replaceCode; final bool enableAll; final bool skipPde; const Annotation({ this.forbiddenDuplicatorModes = const [], this.addCode, - this.removeCode = const [], + this.replaceCode = const {}, this.enableAll = false, this.skipPde = false, }); @@ -193,9 +193,9 @@ class Annotation { .map((x) => DuplicatorMode.parse(x as String)) .toList(), addCode: data['addCode'] as String?, - removeCode: ((data['removeCode'] as List?) ?? []) - .map((x) => x as String) - .toList(), + replaceCode: ((data['replaceCode'] as Map?) ?? + {}) + .map((k, v) => MapEntry(k as String, v as String)), enableAll: data['enableAll'] as bool? ?? false, skipPde: data['skipPde'] as bool? ?? false, ); From 8c173d8ff503dad8fb77d643c6ab54c0fc3dec8f Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 20:21:47 +0800 Subject: [PATCH 091/117] chore: codegen --- .../rust/src/api/pseudo_manual/lifetimeable_twin_sync.rs | 4 ++-- .../test/api/pseudo_manual/lifetimeable_twin_sync_test.dart | 4 ++-- frb_example/pure_dart_pde/rust/src/api/lifetimeable.rs | 2 +- .../rust/src/api/pseudo_manual/lifetimeable_twin_sync.rs | 4 ++-- frb_example/pure_dart_pde/test/api/lifetimeable_test.dart | 2 +- .../test/api/pseudo_manual/lifetimeable_twin_sync_test.dart | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/frb_example/pure_dart/rust/src/api/pseudo_manual/lifetimeable_twin_sync.rs b/frb_example/pure_dart/rust/src/api/pseudo_manual/lifetimeable_twin_sync.rs index 9edd792dd8..279ee32ebc 100644 --- a/frb_example/pure_dart/rust/src/api/pseudo_manual/lifetimeable_twin_sync.rs +++ b/frb_example/pure_dart/rust/src/api/pseudo_manual/lifetimeable_twin_sync.rs @@ -2,11 +2,11 @@ // and is auto-generated from `lifetimeable.rs` by frb_internal // Please do not modify manually, but modify the origin and re-run frb_internal generator -// FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "sse", "sync sse", "rustAsync sse"]} +// FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "sse", "sync sse", "rustAsync sse"], "replaceCode": {"misc_no_twin_example_a": "misc_no_twin_example_a"}} #![allow(clippy::needless_lifetimes)] -use crate::api::pseudo_manual::misc_no_twin_example_a_twin_sync::SimpleLogger; +use crate::api::pseudo_manual::misc_no_twin_example_a::SimpleLogger; use flutter_rust_bridge::frb; // --------------------------- struct definitions --------------------------- diff --git a/frb_example/pure_dart/test/api/pseudo_manual/lifetimeable_twin_sync_test.dart b/frb_example/pure_dart/test/api/pseudo_manual/lifetimeable_twin_sync_test.dart index 1d11aa77dd..5f4c795285 100644 --- a/frb_example/pure_dart/test/api/pseudo_manual/lifetimeable_twin_sync_test.dart +++ b/frb_example/pure_dart/test/api/pseudo_manual/lifetimeable_twin_sync_test.dart @@ -2,12 +2,12 @@ // and is auto-generated from `lifetimeable_test.dart` by frb_internal // Please do not modify manually, but modify the origin and re-run frb_internal generator -// FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "sse", "sync sse", "rustAsync sse"]} +// FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "sse", "sync sse", "rustAsync sse"], "replaceCode": {"misc_no_twin_example_a": "misc_no_twin_example_a"}} import 'dart:async'; import 'package:frb_example_pure_dart/src/rust/api/pseudo_manual/lifetimeable_twin_sync.dart'; -import 'package:frb_example_pure_dart/src/rust/api/pseudo_manual/misc_no_twin_example_a_twin_sync.dart'; +import 'package:frb_example_pure_dart/src/rust/api/pseudo_manual/misc_no_twin_example_a.dart'; import 'package:frb_example_pure_dart/src/rust/frb_generated.dart'; import 'package:test/test.dart'; diff --git a/frb_example/pure_dart_pde/rust/src/api/lifetimeable.rs b/frb_example/pure_dart_pde/rust/src/api/lifetimeable.rs index 44ebbf0248..8872be111c 100644 --- a/frb_example/pure_dart_pde/rust/src/api/lifetimeable.rs +++ b/frb_example/pure_dart_pde/rust/src/api/lifetimeable.rs @@ -1,6 +1,6 @@ // AUTO-GENERATED FROM frb_example/pure_dart, DO NOT EDIT -// FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "sse", "sync sse", "rustAsync sse"]} +// FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "sse", "sync sse", "rustAsync sse"], "replaceCode": {"misc_no_twin_example_a_twin_sync": "misc_no_twin_example_a"}} #![allow(clippy::needless_lifetimes)] diff --git a/frb_example/pure_dart_pde/rust/src/api/pseudo_manual/lifetimeable_twin_sync.rs b/frb_example/pure_dart_pde/rust/src/api/pseudo_manual/lifetimeable_twin_sync.rs index 0cda10b521..fc825aa72f 100644 --- a/frb_example/pure_dart_pde/rust/src/api/pseudo_manual/lifetimeable_twin_sync.rs +++ b/frb_example/pure_dart_pde/rust/src/api/pseudo_manual/lifetimeable_twin_sync.rs @@ -4,11 +4,11 @@ // AUTO-GENERATED FROM frb_example/pure_dart, DO NOT EDIT -// FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "sse", "sync sse", "rustAsync sse"]} +// FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "sse", "sync sse", "rustAsync sse"], "replaceCode": {"misc_no_twin_example_a": "misc_no_twin_example_a"}} #![allow(clippy::needless_lifetimes)] -use crate::api::pseudo_manual::misc_no_twin_example_a_twin_sync::SimpleLogger; +use crate::api::pseudo_manual::misc_no_twin_example_a::SimpleLogger; use flutter_rust_bridge::frb; // --------------------------- struct definitions --------------------------- diff --git a/frb_example/pure_dart_pde/test/api/lifetimeable_test.dart b/frb_example/pure_dart_pde/test/api/lifetimeable_test.dart index c7701e9930..5421eba4b6 100644 --- a/frb_example/pure_dart_pde/test/api/lifetimeable_test.dart +++ b/frb_example/pure_dart_pde/test/api/lifetimeable_test.dart @@ -1,6 +1,6 @@ // AUTO-GENERATED FROM frb_example/pure_dart, DO NOT EDIT -// FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "sse", "sync sse", "rustAsync sse"]} +// FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "sse", "sync sse", "rustAsync sse"], "replaceCode": {"misc_no_twin_example_a_twin_sync": "misc_no_twin_example_a"}} import 'dart:async'; diff --git a/frb_example/pure_dart_pde/test/api/pseudo_manual/lifetimeable_twin_sync_test.dart b/frb_example/pure_dart_pde/test/api/pseudo_manual/lifetimeable_twin_sync_test.dart index 2fcd738b93..1c6cacd475 100644 --- a/frb_example/pure_dart_pde/test/api/pseudo_manual/lifetimeable_twin_sync_test.dart +++ b/frb_example/pure_dart_pde/test/api/pseudo_manual/lifetimeable_twin_sync_test.dart @@ -4,12 +4,12 @@ // AUTO-GENERATED FROM frb_example/pure_dart, DO NOT EDIT -// FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "sse", "sync sse", "rustAsync sse"]} +// FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "sse", "sync sse", "rustAsync sse"], "replaceCode": {"misc_no_twin_example_a": "misc_no_twin_example_a"}} import 'dart:async'; import 'package:frb_example_pure_dart_pde/src/rust/api/pseudo_manual/lifetimeable_twin_sync.dart'; -import 'package:frb_example_pure_dart_pde/src/rust/api/pseudo_manual/misc_no_twin_example_a_twin_sync.dart'; +import 'package:frb_example_pure_dart_pde/src/rust/api/pseudo_manual/misc_no_twin_example_a.dart'; import 'package:frb_example_pure_dart_pde/src/rust/frb_generated.dart'; import 'package:test/test.dart'; From 5ac502e3f23882fdddd35a64b812e1460f7272f2 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 20:22:24 +0800 Subject: [PATCH 092/117] feat: more --- frb_example/pure_dart/rust/src/api/lifetimeable.rs | 2 +- frb_example/pure_dart/test/api/lifetimeable_test.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frb_example/pure_dart/rust/src/api/lifetimeable.rs b/frb_example/pure_dart/rust/src/api/lifetimeable.rs index 51233bfa3d..f42b767c2c 100644 --- a/frb_example/pure_dart/rust/src/api/lifetimeable.rs +++ b/frb_example/pure_dart/rust/src/api/lifetimeable.rs @@ -1,4 +1,4 @@ -// FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "sse", "sync sse", "rustAsync sse"], "replaceCode": {"misc_no_twin_example_a_twin_sync": "misc_no_twin_example_a"}} +// FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "sse", "sync sse", "rustAsync sse"], "replaceCode": {"pseudo_manual::misc_no_twin_example_a_twin_sync": "misc_no_twin_example_a"}} #![allow(clippy::needless_lifetimes)] diff --git a/frb_example/pure_dart/test/api/lifetimeable_test.dart b/frb_example/pure_dart/test/api/lifetimeable_test.dart index 55aa8acdcd..261d81e6f5 100644 --- a/frb_example/pure_dart/test/api/lifetimeable_test.dart +++ b/frb_example/pure_dart/test/api/lifetimeable_test.dart @@ -1,4 +1,4 @@ -// FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "sse", "sync sse", "rustAsync sse"], "replaceCode": {"misc_no_twin_example_a_twin_sync": "misc_no_twin_example_a"}} +// FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "sse", "sync sse", "rustAsync sse"], "replaceCode": {"pseudo_manual/misc_no_twin_example_a_twin_sync": "misc_no_twin_example_a"}} import 'dart:async'; From b40550890e18d19c97ac41de152e649d8e9acf85 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 20:23:57 +0800 Subject: [PATCH 093/117] chore: codegen --- .../rust/src/api/pseudo_manual/lifetimeable_twin_sync.rs | 2 +- .../test/api/pseudo_manual/lifetimeable_twin_sync_test.dart | 2 +- frb_example/pure_dart_pde/rust/src/api/lifetimeable.rs | 2 +- .../rust/src/api/pseudo_manual/lifetimeable_twin_sync.rs | 2 +- frb_example/pure_dart_pde/test/api/lifetimeable_test.dart | 2 +- .../test/api/pseudo_manual/lifetimeable_twin_sync_test.dart | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/frb_example/pure_dart/rust/src/api/pseudo_manual/lifetimeable_twin_sync.rs b/frb_example/pure_dart/rust/src/api/pseudo_manual/lifetimeable_twin_sync.rs index 279ee32ebc..96d20b6056 100644 --- a/frb_example/pure_dart/rust/src/api/pseudo_manual/lifetimeable_twin_sync.rs +++ b/frb_example/pure_dart/rust/src/api/pseudo_manual/lifetimeable_twin_sync.rs @@ -6,7 +6,7 @@ #![allow(clippy::needless_lifetimes)] -use crate::api::pseudo_manual::misc_no_twin_example_a::SimpleLogger; +use crate::api::misc_no_twin_example_a::SimpleLogger; use flutter_rust_bridge::frb; // --------------------------- struct definitions --------------------------- diff --git a/frb_example/pure_dart/test/api/pseudo_manual/lifetimeable_twin_sync_test.dart b/frb_example/pure_dart/test/api/pseudo_manual/lifetimeable_twin_sync_test.dart index 5f4c795285..38c1bcd675 100644 --- a/frb_example/pure_dart/test/api/pseudo_manual/lifetimeable_twin_sync_test.dart +++ b/frb_example/pure_dart/test/api/pseudo_manual/lifetimeable_twin_sync_test.dart @@ -7,7 +7,7 @@ import 'dart:async'; import 'package:frb_example_pure_dart/src/rust/api/pseudo_manual/lifetimeable_twin_sync.dart'; -import 'package:frb_example_pure_dart/src/rust/api/pseudo_manual/misc_no_twin_example_a.dart'; +import 'package:frb_example_pure_dart/src/rust/api/misc_no_twin_example_a.dart'; import 'package:frb_example_pure_dart/src/rust/frb_generated.dart'; import 'package:test/test.dart'; diff --git a/frb_example/pure_dart_pde/rust/src/api/lifetimeable.rs b/frb_example/pure_dart_pde/rust/src/api/lifetimeable.rs index 8872be111c..f9cab06546 100644 --- a/frb_example/pure_dart_pde/rust/src/api/lifetimeable.rs +++ b/frb_example/pure_dart_pde/rust/src/api/lifetimeable.rs @@ -1,6 +1,6 @@ // AUTO-GENERATED FROM frb_example/pure_dart, DO NOT EDIT -// FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "sse", "sync sse", "rustAsync sse"], "replaceCode": {"misc_no_twin_example_a_twin_sync": "misc_no_twin_example_a"}} +// FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "sse", "sync sse", "rustAsync sse"], "replaceCode": {"pseudo_manual::misc_no_twin_example_a_twin_sync": "misc_no_twin_example_a"}} #![allow(clippy::needless_lifetimes)] diff --git a/frb_example/pure_dart_pde/rust/src/api/pseudo_manual/lifetimeable_twin_sync.rs b/frb_example/pure_dart_pde/rust/src/api/pseudo_manual/lifetimeable_twin_sync.rs index fc825aa72f..3b9675b3f0 100644 --- a/frb_example/pure_dart_pde/rust/src/api/pseudo_manual/lifetimeable_twin_sync.rs +++ b/frb_example/pure_dart_pde/rust/src/api/pseudo_manual/lifetimeable_twin_sync.rs @@ -8,7 +8,7 @@ #![allow(clippy::needless_lifetimes)] -use crate::api::pseudo_manual::misc_no_twin_example_a::SimpleLogger; +use crate::api::misc_no_twin_example_a::SimpleLogger; use flutter_rust_bridge::frb; // --------------------------- struct definitions --------------------------- diff --git a/frb_example/pure_dart_pde/test/api/lifetimeable_test.dart b/frb_example/pure_dart_pde/test/api/lifetimeable_test.dart index 5421eba4b6..740c45f271 100644 --- a/frb_example/pure_dart_pde/test/api/lifetimeable_test.dart +++ b/frb_example/pure_dart_pde/test/api/lifetimeable_test.dart @@ -1,6 +1,6 @@ // AUTO-GENERATED FROM frb_example/pure_dart, DO NOT EDIT -// FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "sse", "sync sse", "rustAsync sse"], "replaceCode": {"misc_no_twin_example_a_twin_sync": "misc_no_twin_example_a"}} +// FRB_INTERNAL_GENERATOR: {"forbiddenDuplicatorModes": ["rustAsync", "sse", "sync sse", "rustAsync sse"], "replaceCode": {"pseudo_manual/misc_no_twin_example_a_twin_sync": "misc_no_twin_example_a"}} import 'dart:async'; diff --git a/frb_example/pure_dart_pde/test/api/pseudo_manual/lifetimeable_twin_sync_test.dart b/frb_example/pure_dart_pde/test/api/pseudo_manual/lifetimeable_twin_sync_test.dart index 1c6cacd475..9a55872fe1 100644 --- a/frb_example/pure_dart_pde/test/api/pseudo_manual/lifetimeable_twin_sync_test.dart +++ b/frb_example/pure_dart_pde/test/api/pseudo_manual/lifetimeable_twin_sync_test.dart @@ -9,7 +9,7 @@ import 'dart:async'; import 'package:frb_example_pure_dart_pde/src/rust/api/pseudo_manual/lifetimeable_twin_sync.dart'; -import 'package:frb_example_pure_dart_pde/src/rust/api/pseudo_manual/misc_no_twin_example_a.dart'; +import 'package:frb_example_pure_dart_pde/src/rust/api/misc_no_twin_example_a.dart'; import 'package:frb_example_pure_dart_pde/src/rust/frb_generated.dart'; import 'package:test/test.dart'; From 9b3b650f0cc3f66d39a694451c42f1e17ce3448c Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 20:24:44 +0800 Subject: [PATCH 094/117] feat: more --- .../pure_dart/rust/src/api/lifetimeable.rs | 4 +- .../pure_dart/test/api/lifetimeable_test.dart | 56 ++++++++++++------- 2 files changed, 37 insertions(+), 23 deletions(-) diff --git a/frb_example/pure_dart/rust/src/api/lifetimeable.rs b/frb_example/pure_dart/rust/src/api/lifetimeable.rs index f42b767c2c..13225fb4fe 100644 --- a/frb_example/pure_dart/rust/src/api/lifetimeable.rs +++ b/frb_example/pure_dart/rust/src/api/lifetimeable.rs @@ -69,7 +69,7 @@ impl Drop for LtNestedTypeWithLifetimeTwinNormal<'_> { impl LtOwnedStructTwinNormal { #[frb(serialize)] - pub fn create(value: String) -> Self { + pub fn create_twin_normal(value: String) -> Self { Self { sub: LtSubStructTwinNormal { value, @@ -79,7 +79,7 @@ impl LtOwnedStructTwinNormal { } #[frb(serialize)] - pub fn create_with_logger(value: String, logger: &SimpleLogger) -> Self { + pub fn create_with_logger_twin_normal(value: String, logger: &SimpleLogger) -> Self { Self { sub: LtSubStructTwinNormal { value, diff --git a/frb_example/pure_dart/test/api/lifetimeable_test.dart b/frb_example/pure_dart/test/api/lifetimeable_test.dart index 261d81e6f5..437cd7effa 100644 --- a/frb_example/pure_dart/test/api/lifetimeable_test.dart +++ b/frb_example/pure_dart/test/api/lifetimeable_test.dart @@ -13,8 +13,9 @@ Future main({bool skipRustLibInit = false}) async { group('when to dispose and the dispose order', () { test('dispose ownedStruct', () async { final simpleLogger = SimpleLogger(); - final ownedStruct = await LtOwnedStructTwinNormal.createWithLogger( - value: 'a', logger: simpleLogger); + final ownedStruct = + await LtOwnedStructTwinNormal.createWithLoggerTwinNormal( + value: 'a', logger: simpleLogger); expect(simpleLogger.getAndReset(), []); ownedStruct.dispose(); @@ -26,8 +27,9 @@ Future main({bool skipRustLibInit = false}) async { test('dispose ownedStruct - dispose typeWithLifetime', () async { final simpleLogger = SimpleLogger(); - final ownedStruct = await LtOwnedStructTwinNormal.createWithLogger( - value: 'a', logger: simpleLogger); + final ownedStruct = + await LtOwnedStructTwinNormal.createWithLoggerTwinNormal( + value: 'a', logger: simpleLogger); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinNormal(); @@ -47,8 +49,9 @@ Future main({bool skipRustLibInit = false}) async { test('dispose typeWithLifetime - dispose ownedStruct', () async { final simpleLogger = SimpleLogger(); - final ownedStruct = await LtOwnedStructTwinNormal.createWithLogger( - value: 'a', logger: simpleLogger); + final ownedStruct = + await LtOwnedStructTwinNormal.createWithLoggerTwinNormal( + value: 'a', logger: simpleLogger); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinNormal(); @@ -66,8 +69,9 @@ Future main({bool skipRustLibInit = false}) async { test('dispose ownedStruct - dispose typeWithLifetime', () async { final simpleLogger = SimpleLogger(); - final ownedStruct = await LtOwnedStructTwinNormal.createWithLogger( - value: 'a', logger: simpleLogger); + final ownedStruct = + await LtOwnedStructTwinNormal.createWithLoggerTwinNormal( + value: 'a', logger: simpleLogger); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinNormal(); @@ -89,8 +93,9 @@ Future main({bool skipRustLibInit = false}) async { 'dispose ownedStruct - dispose typeWithLifetime - dispose nestedTypeWithLifetime', () async { final simpleLogger = SimpleLogger(); - final ownedStruct = await LtOwnedStructTwinNormal.createWithLogger( - value: 'a', logger: simpleLogger); + final ownedStruct = + await LtOwnedStructTwinNormal.createWithLoggerTwinNormal( + value: 'a', logger: simpleLogger); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinNormal(); final nestedTypeWithLifetime = @@ -119,31 +124,37 @@ Future main({bool skipRustLibInit = false}) async { group('features', () { test('computeTypeWithLifetimeTwinNormal', () async { - final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); + final ownedStruct = + await LtOwnedStructTwinNormal.createTwinNormal(value: 'a'); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinNormal(); await _testTypeWithLifetime(ownedStruct, typeWithLifetime); }); test('computeWithUnrelatedBorrowedArgTwinNormal', () async { - final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); + final ownedStruct = + await LtOwnedStructTwinNormal.createTwinNormal(value: 'a'); final typeWithLifetime = await ownedStruct.computeWithUnrelatedBorrowedArgTwinNormal( - unrelatedBorrowed: await LtOwnedStructTwinNormal.create(value: 'hi'), - unrelatedOwned: await LtOwnedStructTwinNormal.create(value: 'hi'), + unrelatedBorrowed: + await LtOwnedStructTwinNormal.createTwinNormal(value: 'hi'), + unrelatedOwned: + await LtOwnedStructTwinNormal.createTwinNormal(value: 'hi'), ); await _testTypeWithLifetime(ownedStruct, typeWithLifetime); }); test('ltComputeWithLifetimeFunctionTwinNormal', () async { - final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); + final ownedStruct = + await LtOwnedStructTwinNormal.createTwinNormal(value: 'a'); final typeWithLifetime = await ltComputeWithLifetimeFunctionTwinNormal(arg: ownedStruct); await _testTypeWithLifetime(ownedStruct, typeWithLifetime); }); test('computeNestedTypeWithLifetimeTwinNormal', () async { - final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); + final ownedStruct = + await LtOwnedStructTwinNormal.createTwinNormal(value: 'a'); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinNormal(); final nestedTypeWithLifetime = @@ -153,7 +164,8 @@ Future main({bool skipRustLibInit = false}) async { }); test('computeArgGenericLifetimeTwinNormal', () async { - final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); + final ownedStruct = + await LtOwnedStructTwinNormal.createTwinNormal(value: 'a'); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinNormal(); final anotherTypeWithLifetime = await LtTypeWithLifetimeTwinNormal @@ -172,10 +184,12 @@ Future main({bool skipRustLibInit = false}) async { test('computeWithMultiArgHavingLifetimeTwinNormal', () async { final typeWithMultiDep = await LtTypeWithMultiDepTwinNormal .computeWithMultiArgHavingLifetimeTwinNormal( - a: await LtOwnedStructTwinNormal.create(value: 'a'), - b: await LtOwnedStructTwinNormal.create(value: 'b'), - unrelatedBorrowed: await LtOwnedStructTwinNormal.create(value: 'hi'), - unrelatedOwned: await LtOwnedStructTwinNormal.create(value: 'hi'), + a: await LtOwnedStructTwinNormal.createTwinNormal(value: 'a'), + b: await LtOwnedStructTwinNormal.createTwinNormal(value: 'b'), + unrelatedBorrowed: + await LtOwnedStructTwinNormal.createTwinNormal(value: 'hi'), + unrelatedOwned: + await LtOwnedStructTwinNormal.createTwinNormal(value: 'hi'), ); expect(await typeWithMultiDep.greetBorrowSelfTwinNormal(), ['a', 'b']); expect(await typeWithMultiDep.greetBorrowMutSelfTwinNormal(), ['a', 'b']); From 9f9484e669847c9c36b5a7a7f42f41c00df0e5bd Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 20:26:28 +0800 Subject: [PATCH 095/117] chore: codegen --- .../lifetimeable_twin_sync_test.dart | 39 +++++++------ .../rust/src/api/lifetimeable.rs | 4 +- .../test/api/lifetimeable_test.dart | 56 ++++++++++++------- .../lifetimeable_twin_sync_test.dart | 39 +++++++------ 4 files changed, 83 insertions(+), 55 deletions(-) diff --git a/frb_example/pure_dart/test/api/pseudo_manual/lifetimeable_twin_sync_test.dart b/frb_example/pure_dart/test/api/pseudo_manual/lifetimeable_twin_sync_test.dart index 38c1bcd675..5d29d4e3be 100644 --- a/frb_example/pure_dart/test/api/pseudo_manual/lifetimeable_twin_sync_test.dart +++ b/frb_example/pure_dart/test/api/pseudo_manual/lifetimeable_twin_sync_test.dart @@ -17,7 +17,7 @@ Future main({bool skipRustLibInit = false}) async { group('when to dispose and the dispose order', () { test('dispose ownedStruct', () async { final simpleLogger = SimpleLogger(); - final ownedStruct = await LtOwnedStructTwinSync.createWithLogger( + final ownedStruct = await LtOwnedStructTwinSync.createWithLoggerTwinSync( value: 'a', logger: simpleLogger); expect(simpleLogger.getAndReset(), []); @@ -30,7 +30,7 @@ Future main({bool skipRustLibInit = false}) async { test('dispose ownedStruct - dispose typeWithLifetime', () async { final simpleLogger = SimpleLogger(); - final ownedStruct = await LtOwnedStructTwinSync.createWithLogger( + final ownedStruct = await LtOwnedStructTwinSync.createWithLoggerTwinSync( value: 'a', logger: simpleLogger); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinSync(); @@ -51,7 +51,7 @@ Future main({bool skipRustLibInit = false}) async { test('dispose typeWithLifetime - dispose ownedStruct', () async { final simpleLogger = SimpleLogger(); - final ownedStruct = await LtOwnedStructTwinSync.createWithLogger( + final ownedStruct = await LtOwnedStructTwinSync.createWithLoggerTwinSync( value: 'a', logger: simpleLogger); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinSync(); @@ -70,7 +70,7 @@ Future main({bool skipRustLibInit = false}) async { test('dispose ownedStruct - dispose typeWithLifetime', () async { final simpleLogger = SimpleLogger(); - final ownedStruct = await LtOwnedStructTwinSync.createWithLogger( + final ownedStruct = await LtOwnedStructTwinSync.createWithLoggerTwinSync( value: 'a', logger: simpleLogger); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinSync(); @@ -93,7 +93,7 @@ Future main({bool skipRustLibInit = false}) async { 'dispose ownedStruct - dispose typeWithLifetime - dispose nestedTypeWithLifetime', () async { final simpleLogger = SimpleLogger(); - final ownedStruct = await LtOwnedStructTwinSync.createWithLogger( + final ownedStruct = await LtOwnedStructTwinSync.createWithLoggerTwinSync( value: 'a', logger: simpleLogger); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinSync(); @@ -123,31 +123,36 @@ Future main({bool skipRustLibInit = false}) async { group('features', () { test('computeTypeWithLifetimeTwinSync', () async { - final ownedStruct = await LtOwnedStructTwinSync.create(value: 'a'); + final ownedStruct = + await LtOwnedStructTwinSync.createTwinSync(value: 'a'); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinSync(); await _testTypeWithLifetime(ownedStruct, typeWithLifetime); }); test('computeWithUnrelatedBorrowedArgTwinSync', () async { - final ownedStruct = await LtOwnedStructTwinSync.create(value: 'a'); + final ownedStruct = + await LtOwnedStructTwinSync.createTwinSync(value: 'a'); final typeWithLifetime = await ownedStruct.computeWithUnrelatedBorrowedArgTwinSync( - unrelatedBorrowed: await LtOwnedStructTwinSync.create(value: 'hi'), - unrelatedOwned: await LtOwnedStructTwinSync.create(value: 'hi'), + unrelatedBorrowed: + await LtOwnedStructTwinSync.createTwinSync(value: 'hi'), + unrelatedOwned: await LtOwnedStructTwinSync.createTwinSync(value: 'hi'), ); await _testTypeWithLifetime(ownedStruct, typeWithLifetime); }); test('ltComputeWithLifetimeFunctionTwinSync', () async { - final ownedStruct = await LtOwnedStructTwinSync.create(value: 'a'); + final ownedStruct = + await LtOwnedStructTwinSync.createTwinSync(value: 'a'); final typeWithLifetime = await ltComputeWithLifetimeFunctionTwinSync(arg: ownedStruct); await _testTypeWithLifetime(ownedStruct, typeWithLifetime); }); test('computeNestedTypeWithLifetimeTwinSync', () async { - final ownedStruct = await LtOwnedStructTwinSync.create(value: 'a'); + final ownedStruct = + await LtOwnedStructTwinSync.createTwinSync(value: 'a'); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinSync(); final nestedTypeWithLifetime = @@ -157,7 +162,8 @@ Future main({bool skipRustLibInit = false}) async { }); test('computeArgGenericLifetimeTwinSync', () async { - final ownedStruct = await LtOwnedStructTwinSync.create(value: 'a'); + final ownedStruct = + await LtOwnedStructTwinSync.createTwinSync(value: 'a'); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinSync(); final anotherTypeWithLifetime = @@ -177,10 +183,11 @@ Future main({bool skipRustLibInit = false}) async { test('computeWithMultiArgHavingLifetimeTwinSync', () async { final typeWithMultiDep = await LtTypeWithMultiDepTwinSync .computeWithMultiArgHavingLifetimeTwinSync( - a: await LtOwnedStructTwinSync.create(value: 'a'), - b: await LtOwnedStructTwinSync.create(value: 'b'), - unrelatedBorrowed: await LtOwnedStructTwinSync.create(value: 'hi'), - unrelatedOwned: await LtOwnedStructTwinSync.create(value: 'hi'), + a: await LtOwnedStructTwinSync.createTwinSync(value: 'a'), + b: await LtOwnedStructTwinSync.createTwinSync(value: 'b'), + unrelatedBorrowed: + await LtOwnedStructTwinSync.createTwinSync(value: 'hi'), + unrelatedOwned: await LtOwnedStructTwinSync.createTwinSync(value: 'hi'), ); expect(await typeWithMultiDep.greetBorrowSelfTwinSync(), ['a', 'b']); expect(await typeWithMultiDep.greetBorrowMutSelfTwinSync(), ['a', 'b']); diff --git a/frb_example/pure_dart_pde/rust/src/api/lifetimeable.rs b/frb_example/pure_dart_pde/rust/src/api/lifetimeable.rs index f9cab06546..fe9256e779 100644 --- a/frb_example/pure_dart_pde/rust/src/api/lifetimeable.rs +++ b/frb_example/pure_dart_pde/rust/src/api/lifetimeable.rs @@ -71,7 +71,7 @@ impl Drop for LtNestedTypeWithLifetimeTwinNormal<'_> { impl LtOwnedStructTwinNormal { #[frb(serialize)] - pub fn create(value: String) -> Self { + pub fn create_twin_normal(value: String) -> Self { Self { sub: LtSubStructTwinNormal { value, @@ -81,7 +81,7 @@ impl LtOwnedStructTwinNormal { } #[frb(serialize)] - pub fn create_with_logger(value: String, logger: &SimpleLogger) -> Self { + pub fn create_with_logger_twin_normal(value: String, logger: &SimpleLogger) -> Self { Self { sub: LtSubStructTwinNormal { value, diff --git a/frb_example/pure_dart_pde/test/api/lifetimeable_test.dart b/frb_example/pure_dart_pde/test/api/lifetimeable_test.dart index 740c45f271..82d3598029 100644 --- a/frb_example/pure_dart_pde/test/api/lifetimeable_test.dart +++ b/frb_example/pure_dart_pde/test/api/lifetimeable_test.dart @@ -15,8 +15,9 @@ Future main({bool skipRustLibInit = false}) async { group('when to dispose and the dispose order', () { test('dispose ownedStruct', () async { final simpleLogger = SimpleLogger(); - final ownedStruct = await LtOwnedStructTwinNormal.createWithLogger( - value: 'a', logger: simpleLogger); + final ownedStruct = + await LtOwnedStructTwinNormal.createWithLoggerTwinNormal( + value: 'a', logger: simpleLogger); expect(simpleLogger.getAndReset(), []); ownedStruct.dispose(); @@ -28,8 +29,9 @@ Future main({bool skipRustLibInit = false}) async { test('dispose ownedStruct - dispose typeWithLifetime', () async { final simpleLogger = SimpleLogger(); - final ownedStruct = await LtOwnedStructTwinNormal.createWithLogger( - value: 'a', logger: simpleLogger); + final ownedStruct = + await LtOwnedStructTwinNormal.createWithLoggerTwinNormal( + value: 'a', logger: simpleLogger); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinNormal(); @@ -49,8 +51,9 @@ Future main({bool skipRustLibInit = false}) async { test('dispose typeWithLifetime - dispose ownedStruct', () async { final simpleLogger = SimpleLogger(); - final ownedStruct = await LtOwnedStructTwinNormal.createWithLogger( - value: 'a', logger: simpleLogger); + final ownedStruct = + await LtOwnedStructTwinNormal.createWithLoggerTwinNormal( + value: 'a', logger: simpleLogger); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinNormal(); @@ -68,8 +71,9 @@ Future main({bool skipRustLibInit = false}) async { test('dispose ownedStruct - dispose typeWithLifetime', () async { final simpleLogger = SimpleLogger(); - final ownedStruct = await LtOwnedStructTwinNormal.createWithLogger( - value: 'a', logger: simpleLogger); + final ownedStruct = + await LtOwnedStructTwinNormal.createWithLoggerTwinNormal( + value: 'a', logger: simpleLogger); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinNormal(); @@ -91,8 +95,9 @@ Future main({bool skipRustLibInit = false}) async { 'dispose ownedStruct - dispose typeWithLifetime - dispose nestedTypeWithLifetime', () async { final simpleLogger = SimpleLogger(); - final ownedStruct = await LtOwnedStructTwinNormal.createWithLogger( - value: 'a', logger: simpleLogger); + final ownedStruct = + await LtOwnedStructTwinNormal.createWithLoggerTwinNormal( + value: 'a', logger: simpleLogger); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinNormal(); final nestedTypeWithLifetime = @@ -121,31 +126,37 @@ Future main({bool skipRustLibInit = false}) async { group('features', () { test('computeTypeWithLifetimeTwinNormal', () async { - final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); + final ownedStruct = + await LtOwnedStructTwinNormal.createTwinNormal(value: 'a'); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinNormal(); await _testTypeWithLifetime(ownedStruct, typeWithLifetime); }); test('computeWithUnrelatedBorrowedArgTwinNormal', () async { - final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); + final ownedStruct = + await LtOwnedStructTwinNormal.createTwinNormal(value: 'a'); final typeWithLifetime = await ownedStruct.computeWithUnrelatedBorrowedArgTwinNormal( - unrelatedBorrowed: await LtOwnedStructTwinNormal.create(value: 'hi'), - unrelatedOwned: await LtOwnedStructTwinNormal.create(value: 'hi'), + unrelatedBorrowed: + await LtOwnedStructTwinNormal.createTwinNormal(value: 'hi'), + unrelatedOwned: + await LtOwnedStructTwinNormal.createTwinNormal(value: 'hi'), ); await _testTypeWithLifetime(ownedStruct, typeWithLifetime); }); test('ltComputeWithLifetimeFunctionTwinNormal', () async { - final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); + final ownedStruct = + await LtOwnedStructTwinNormal.createTwinNormal(value: 'a'); final typeWithLifetime = await ltComputeWithLifetimeFunctionTwinNormal(arg: ownedStruct); await _testTypeWithLifetime(ownedStruct, typeWithLifetime); }); test('computeNestedTypeWithLifetimeTwinNormal', () async { - final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); + final ownedStruct = + await LtOwnedStructTwinNormal.createTwinNormal(value: 'a'); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinNormal(); final nestedTypeWithLifetime = @@ -155,7 +166,8 @@ Future main({bool skipRustLibInit = false}) async { }); test('computeArgGenericLifetimeTwinNormal', () async { - final ownedStruct = await LtOwnedStructTwinNormal.create(value: 'a'); + final ownedStruct = + await LtOwnedStructTwinNormal.createTwinNormal(value: 'a'); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinNormal(); final anotherTypeWithLifetime = await LtTypeWithLifetimeTwinNormal @@ -174,10 +186,12 @@ Future main({bool skipRustLibInit = false}) async { test('computeWithMultiArgHavingLifetimeTwinNormal', () async { final typeWithMultiDep = await LtTypeWithMultiDepTwinNormal .computeWithMultiArgHavingLifetimeTwinNormal( - a: await LtOwnedStructTwinNormal.create(value: 'a'), - b: await LtOwnedStructTwinNormal.create(value: 'b'), - unrelatedBorrowed: await LtOwnedStructTwinNormal.create(value: 'hi'), - unrelatedOwned: await LtOwnedStructTwinNormal.create(value: 'hi'), + a: await LtOwnedStructTwinNormal.createTwinNormal(value: 'a'), + b: await LtOwnedStructTwinNormal.createTwinNormal(value: 'b'), + unrelatedBorrowed: + await LtOwnedStructTwinNormal.createTwinNormal(value: 'hi'), + unrelatedOwned: + await LtOwnedStructTwinNormal.createTwinNormal(value: 'hi'), ); expect(await typeWithMultiDep.greetBorrowSelfTwinNormal(), ['a', 'b']); expect(await typeWithMultiDep.greetBorrowMutSelfTwinNormal(), ['a', 'b']); diff --git a/frb_example/pure_dart_pde/test/api/pseudo_manual/lifetimeable_twin_sync_test.dart b/frb_example/pure_dart_pde/test/api/pseudo_manual/lifetimeable_twin_sync_test.dart index 9a55872fe1..6c0a412f55 100644 --- a/frb_example/pure_dart_pde/test/api/pseudo_manual/lifetimeable_twin_sync_test.dart +++ b/frb_example/pure_dart_pde/test/api/pseudo_manual/lifetimeable_twin_sync_test.dart @@ -19,7 +19,7 @@ Future main({bool skipRustLibInit = false}) async { group('when to dispose and the dispose order', () { test('dispose ownedStruct', () async { final simpleLogger = SimpleLogger(); - final ownedStruct = await LtOwnedStructTwinSync.createWithLogger( + final ownedStruct = await LtOwnedStructTwinSync.createWithLoggerTwinSync( value: 'a', logger: simpleLogger); expect(simpleLogger.getAndReset(), []); @@ -32,7 +32,7 @@ Future main({bool skipRustLibInit = false}) async { test('dispose ownedStruct - dispose typeWithLifetime', () async { final simpleLogger = SimpleLogger(); - final ownedStruct = await LtOwnedStructTwinSync.createWithLogger( + final ownedStruct = await LtOwnedStructTwinSync.createWithLoggerTwinSync( value: 'a', logger: simpleLogger); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinSync(); @@ -53,7 +53,7 @@ Future main({bool skipRustLibInit = false}) async { test('dispose typeWithLifetime - dispose ownedStruct', () async { final simpleLogger = SimpleLogger(); - final ownedStruct = await LtOwnedStructTwinSync.createWithLogger( + final ownedStruct = await LtOwnedStructTwinSync.createWithLoggerTwinSync( value: 'a', logger: simpleLogger); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinSync(); @@ -72,7 +72,7 @@ Future main({bool skipRustLibInit = false}) async { test('dispose ownedStruct - dispose typeWithLifetime', () async { final simpleLogger = SimpleLogger(); - final ownedStruct = await LtOwnedStructTwinSync.createWithLogger( + final ownedStruct = await LtOwnedStructTwinSync.createWithLoggerTwinSync( value: 'a', logger: simpleLogger); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinSync(); @@ -95,7 +95,7 @@ Future main({bool skipRustLibInit = false}) async { 'dispose ownedStruct - dispose typeWithLifetime - dispose nestedTypeWithLifetime', () async { final simpleLogger = SimpleLogger(); - final ownedStruct = await LtOwnedStructTwinSync.createWithLogger( + final ownedStruct = await LtOwnedStructTwinSync.createWithLoggerTwinSync( value: 'a', logger: simpleLogger); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinSync(); @@ -125,31 +125,36 @@ Future main({bool skipRustLibInit = false}) async { group('features', () { test('computeTypeWithLifetimeTwinSync', () async { - final ownedStruct = await LtOwnedStructTwinSync.create(value: 'a'); + final ownedStruct = + await LtOwnedStructTwinSync.createTwinSync(value: 'a'); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinSync(); await _testTypeWithLifetime(ownedStruct, typeWithLifetime); }); test('computeWithUnrelatedBorrowedArgTwinSync', () async { - final ownedStruct = await LtOwnedStructTwinSync.create(value: 'a'); + final ownedStruct = + await LtOwnedStructTwinSync.createTwinSync(value: 'a'); final typeWithLifetime = await ownedStruct.computeWithUnrelatedBorrowedArgTwinSync( - unrelatedBorrowed: await LtOwnedStructTwinSync.create(value: 'hi'), - unrelatedOwned: await LtOwnedStructTwinSync.create(value: 'hi'), + unrelatedBorrowed: + await LtOwnedStructTwinSync.createTwinSync(value: 'hi'), + unrelatedOwned: await LtOwnedStructTwinSync.createTwinSync(value: 'hi'), ); await _testTypeWithLifetime(ownedStruct, typeWithLifetime); }); test('ltComputeWithLifetimeFunctionTwinSync', () async { - final ownedStruct = await LtOwnedStructTwinSync.create(value: 'a'); + final ownedStruct = + await LtOwnedStructTwinSync.createTwinSync(value: 'a'); final typeWithLifetime = await ltComputeWithLifetimeFunctionTwinSync(arg: ownedStruct); await _testTypeWithLifetime(ownedStruct, typeWithLifetime); }); test('computeNestedTypeWithLifetimeTwinSync', () async { - final ownedStruct = await LtOwnedStructTwinSync.create(value: 'a'); + final ownedStruct = + await LtOwnedStructTwinSync.createTwinSync(value: 'a'); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinSync(); final nestedTypeWithLifetime = @@ -159,7 +164,8 @@ Future main({bool skipRustLibInit = false}) async { }); test('computeArgGenericLifetimeTwinSync', () async { - final ownedStruct = await LtOwnedStructTwinSync.create(value: 'a'); + final ownedStruct = + await LtOwnedStructTwinSync.createTwinSync(value: 'a'); final typeWithLifetime = await ownedStruct.computeTypeWithLifetimeTwinSync(); final anotherTypeWithLifetime = @@ -179,10 +185,11 @@ Future main({bool skipRustLibInit = false}) async { test('computeWithMultiArgHavingLifetimeTwinSync', () async { final typeWithMultiDep = await LtTypeWithMultiDepTwinSync .computeWithMultiArgHavingLifetimeTwinSync( - a: await LtOwnedStructTwinSync.create(value: 'a'), - b: await LtOwnedStructTwinSync.create(value: 'b'), - unrelatedBorrowed: await LtOwnedStructTwinSync.create(value: 'hi'), - unrelatedOwned: await LtOwnedStructTwinSync.create(value: 'hi'), + a: await LtOwnedStructTwinSync.createTwinSync(value: 'a'), + b: await LtOwnedStructTwinSync.createTwinSync(value: 'b'), + unrelatedBorrowed: + await LtOwnedStructTwinSync.createTwinSync(value: 'hi'), + unrelatedOwned: await LtOwnedStructTwinSync.createTwinSync(value: 'hi'), ); expect(await typeWithMultiDep.greetBorrowSelfTwinSync(), ['a', 'b']); expect(await typeWithMultiDep.greetBorrowMutSelfTwinSync(), ['a', 'b']); From cbb2f152d63cc03a994613f3f2f9164f91a398b0 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 20:28:44 +0800 Subject: [PATCH 096/117] chore: lint --- .../wire/rust/spec_generator/misc/function/lifetime.rs | 4 +++- frb_codegen/src/library/codegen/ir/mir/func.rs | 4 +++- frb_codegen/src/library/codegen/ir/mir/ty/delegate.rs | 4 +++- website/docs/generated/_frb-codegen-command-generate.mdx | 3 +++ 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/frb_codegen/src/library/codegen/generator/wire/rust/spec_generator/misc/function/lifetime.rs b/frb_codegen/src/library/codegen/generator/wire/rust/spec_generator/misc/function/lifetime.rs index 33f27b42a0..c090ba4f1b 100644 --- a/frb_codegen/src/library/codegen/generator/wire/rust/spec_generator/misc/function/lifetime.rs +++ b/frb_codegen/src/library/codegen/generator/wire/rust/spec_generator/misc/function/lifetime.rs @@ -77,5 +77,7 @@ pub(super) fn generate_code_postprocess_inner_output(func: &MirFunc) -> String { }) .map(|var_name| format!("Box::new({var_name}.clone())")) .join(", "); - format!("let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![{dependencies}]));") + format!( + "let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![{dependencies}]));" + ) } diff --git a/frb_codegen/src/library/codegen/ir/mir/func.rs b/frb_codegen/src/library/codegen/ir/mir/func.rs index 662f1afddb..bfe880b936 100644 --- a/frb_codegen/src/library/codegen/ir/mir/func.rs +++ b/frb_codegen/src/library/codegen/ir/mir/func.rs @@ -209,7 +209,9 @@ pub(crate) fn compute_interest_name_of_owner_ty(owner_ty: &MirType) -> Option { - return compute_interest_name_of_owner_ty(&MirType::RustAutoOpaqueImplicit(ty.api_type.clone())) + return compute_interest_name_of_owner_ty(&MirType::RustAutoOpaqueImplicit( + ty.api_type.clone(), + )) } MirType::TraitDef(ty) => ty.name.clone(), _ => return None, diff --git a/frb_codegen/src/library/codegen/ir/mir/ty/delegate.rs b/frb_codegen/src/library/codegen/ir/mir/ty/delegate.rs index e8cdcea0a5..c8b017054e 100644 --- a/frb_codegen/src/library/codegen/ir/mir/ty/delegate.rs +++ b/frb_codegen/src/library/codegen/ir/mir/ty/delegate.rs @@ -5,7 +5,9 @@ use crate::codegen::ir::mir::ty::general_list::{mir_list, MirTypeGeneralList}; use crate::codegen::ir::mir::ty::primitive::MirTypePrimitive; use crate::codegen::ir::mir::ty::primitive_list::MirTypePrimitiveList; use crate::codegen::ir::mir::ty::record::MirTypeRecord; -use crate::codegen::ir::mir::ty::rust_auto_opaque_implicit::{MirRustAutoOpaqueRaw, MirTypeRustAutoOpaqueImplicit}; +use crate::codegen::ir::mir::ty::rust_auto_opaque_implicit::{ + MirRustAutoOpaqueRaw, MirTypeRustAutoOpaqueImplicit, +}; use crate::codegen::ir::mir::ty::rust_opaque::MirTypeRustOpaque; use crate::codegen::ir::mir::ty::{MirContext, MirType, MirTypeTrait}; use crate::utils::namespace::{Namespace, NamespacedName}; diff --git a/website/docs/generated/_frb-codegen-command-generate.mdx b/website/docs/generated/_frb-codegen-command-generate.mdx index a0f37ef596..c9b4c437d7 100644 --- a/website/docs/generated/_frb-codegen-command-generate.mdx +++ b/website/docs/generated/_frb-codegen-command-generate.mdx @@ -78,6 +78,9 @@ Options: --full-dep Enable full dependencies + --enable-lifetime + Enable parsing types with lifetimes (e.g. references and borrows) + --stop-on-error If having error when, for example, parsing a function, directly stop instead of continue and skip it From 530960977fdad865f97cad7cd31c41d26f6b35b6 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 20:31:40 +0800 Subject: [PATCH 097/117] chore: mv and codegen --- .../lib/src/rust/api/lifetimeable.dart | 10 ++- .../lib/src/rust/frb_generated.dart | 23 +++--- .../pure_dart_pde/rust/src/frb_generated.rs | 80 ++++++------------- website/docs/guides/lifetimes/index.md | 7 ++ website/docs/guides/lifetimes/overview.md | 0 .../arbitrary/rust-auto-opaque/lifetime.md | 3 - website/sidebars.js | 13 ++- 7 files changed, 62 insertions(+), 74 deletions(-) create mode 100644 website/docs/guides/lifetimes/index.md create mode 100644 website/docs/guides/lifetimes/overview.md delete mode 100644 website/docs/guides/types/arbitrary/rust-auto-opaque/lifetime.md diff --git a/frb_example/pure_dart_pde/lib/src/rust/api/lifetimeable.dart b/frb_example/pure_dart_pde/lib/src/rust/api/lifetimeable.dart index 0e0f0dad45..1075075077 100644 --- a/frb_example/pure_dart_pde/lib/src/rust/api/lifetimeable.dart +++ b/frb_example/pure_dart_pde/lib/src/rust/api/lifetimeable.dart @@ -74,14 +74,16 @@ abstract class LtOwnedStructTwinNormal implements RustOpaqueInterface { {required LtOwnedStructTwinNormal unrelatedBorrowed, required LtOwnedStructTwinNormal unrelatedOwned}); - static Future create({required String value}) => + static Future createTwinNormal( + {required String value}) => RustLib.instance.api - .crateApiLifetimeableLtOwnedStructTwinNormalCreate(value: value); + .crateApiLifetimeableLtOwnedStructTwinNormalCreateTwinNormal( + value: value); - static Future createWithLogger( + static Future createWithLoggerTwinNormal( {required String value, required SimpleLogger logger}) => RustLib.instance.api - .crateApiLifetimeableLtOwnedStructTwinNormalCreateWithLogger( + .crateApiLifetimeableLtOwnedStructTwinNormalCreateWithLoggerTwinNormal( value: value, logger: logger); } diff --git a/frb_example/pure_dart_pde/lib/src/rust/frb_generated.dart b/frb_example/pure_dart_pde/lib/src/rust/frb_generated.dart index bc124f6ce3..6abae929bb 100644 --- a/frb_example/pure_dart_pde/lib/src/rust/frb_generated.dart +++ b/frb_example/pure_dart_pde/lib/src/rust/frb_generated.dart @@ -198,7 +198,7 @@ class RustLib extends BaseEntrypoint { String get codegenVersion => '2.0.0-dev.39'; @override - int get rustContentHash => 1410295838; + int get rustContentHash => 997343848; static const kDefaultExternalLibraryLoaderConfig = ExternalLibraryLoaderConfig( @@ -754,11 +754,11 @@ abstract class RustLibApi extends BaseApi { required LtOwnedStructTwinNormal unrelatedOwned}); Future - crateApiLifetimeableLtOwnedStructTwinNormalCreate( + crateApiLifetimeableLtOwnedStructTwinNormalCreateTwinNormal( {required String value}); Future - crateApiLifetimeableLtOwnedStructTwinNormalCreateWithLogger( + crateApiLifetimeableLtOwnedStructTwinNormalCreateWithLoggerTwinNormal( {required String value, required SimpleLogger logger}); Future @@ -10136,7 +10136,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { @override Future - crateApiLifetimeableLtOwnedStructTwinNormalCreate( + crateApiLifetimeableLtOwnedStructTwinNormalCreateTwinNormal( {required String value}) { return handler.executeNormal(NormalTask( callFfi: (port_) { @@ -10150,22 +10150,23 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal, decodeErrorData: null, ), - constMeta: kCrateApiLifetimeableLtOwnedStructTwinNormalCreateConstMeta, + constMeta: + kCrateApiLifetimeableLtOwnedStructTwinNormalCreateTwinNormalConstMeta, argValues: [value], apiImpl: this, )); } TaskConstMeta - get kCrateApiLifetimeableLtOwnedStructTwinNormalCreateConstMeta => + get kCrateApiLifetimeableLtOwnedStructTwinNormalCreateTwinNormalConstMeta => const TaskConstMeta( - debugName: "LtOwnedStructTwinNormal_create", + debugName: "LtOwnedStructTwinNormal_create_twin_normal", argNames: ["value"], ); @override Future - crateApiLifetimeableLtOwnedStructTwinNormalCreateWithLogger( + crateApiLifetimeableLtOwnedStructTwinNormalCreateWithLoggerTwinNormal( {required String value, required SimpleLogger logger}) { return handler.executeNormal(NormalTask( callFfi: (port_) { @@ -10182,16 +10183,16 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { decodeErrorData: null, ), constMeta: - kCrateApiLifetimeableLtOwnedStructTwinNormalCreateWithLoggerConstMeta, + kCrateApiLifetimeableLtOwnedStructTwinNormalCreateWithLoggerTwinNormalConstMeta, argValues: [value, logger], apiImpl: this, )); } TaskConstMeta - get kCrateApiLifetimeableLtOwnedStructTwinNormalCreateWithLoggerConstMeta => + get kCrateApiLifetimeableLtOwnedStructTwinNormalCreateWithLoggerTwinNormalConstMeta => const TaskConstMeta( - debugName: "LtOwnedStructTwinNormal_create_with_logger", + debugName: "LtOwnedStructTwinNormal_create_with_logger_twin_normal", argNames: ["value", "logger"], ); diff --git a/frb_example/pure_dart_pde/rust/src/frb_generated.rs b/frb_example/pure_dart_pde/rust/src/frb_generated.rs index a860bb6ba4..3fa7cae4b1 100644 --- a/frb_example/pure_dart_pde/rust/src/frb_generated.rs +++ b/frb_example/pure_dart_pde/rust/src/frb_generated.rs @@ -63,7 +63,7 @@ flutter_rust_bridge::frb_generated_boilerplate!( default_rust_auto_opaque = RustAutoOpaqueMoi, ); pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.0.0-dev.39"; -pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = 1410295838; +pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = 997343848; // Section: executor @@ -5920,7 +5920,7 @@ let api_that_guard = Arc::new(api_that_guard); })()) } }) } -fn wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_impl( +fn wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_twin_normal_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, rust_vec_len_: i32, @@ -5928,7 +5928,7 @@ fn wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_impl( ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "LtOwnedStructTwinNormal_create", + debug_name: "LtOwnedStructTwinNormal_create_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -5947,7 +5947,9 @@ fn wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_impl( move |context| { transform_result_sse::<_, ()>((move || { let output_ok = Result::<_, ()>::Ok( - crate::api::lifetimeable::LtOwnedStructTwinNormal::create(api_value), + crate::api::lifetimeable::LtOwnedStructTwinNormal::create_twin_normal( + api_value, + ), )?; Ok(output_ok) })()) @@ -5955,62 +5957,30 @@ fn wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_impl( }, ) } -fn wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger_impl( +fn wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger_twin_normal_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, rust_vec_len_: i32, data_len_: i32, ) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( - flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "LtOwnedStructTwinNormal_create_with_logger", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, - }, - move || { - let message = unsafe { - flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire( - ptr_, - rust_vec_len_, - data_len_, - ) - }; - let mut deserializer = - flutter_rust_bridge::for_generated::SseDeserializer::new(message); + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtOwnedStructTwinNormal_create_with_logger_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); let api_value = ::sse_decode(&mut deserializer); - let api_logger = , - >>::sse_decode(&mut deserializer); - deserializer.end(); - move |context| { - transform_result_sse::<_, ()>((move || { - let mut api_logger_guard = None; - let decode_indices_ = - flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ - flutter_rust_bridge::for_generated::LockableOrderInfo::new( - &api_logger, - 0, - false, - ), - ]); - for i in decode_indices_ { - match i { - 0 => api_logger_guard = Some(api_logger.lockable_decode_sync_ref()), - _ => unreachable!(), - } - } - let api_logger_guard = api_logger_guard.unwrap(); - let output_ok = Result::<_, ()>::Ok( - crate::api::lifetimeable::LtOwnedStructTwinNormal::create_with_logger( - api_value, - &*api_logger_guard, - ), - )?; - Ok(output_ok) - })()) +let api_logger = >>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_logger_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_logger, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_logger_guard = Some(api_logger.lockable_decode_sync_ref()), + _ => unreachable!(), } - }, - ) + } + let api_logger_guard = api_logger_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtOwnedStructTwinNormal::create_with_logger_twin_normal(api_value, &*api_logger_guard))?; Ok(output_ok) + })()) + } }) } fn wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal_impl( port_: flutter_rust_bridge::for_generated::MessagePort, @@ -40807,8 +40777,8 @@ fn pde_ffi_dispatcher_primary_impl( 178 => wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), 179 => wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal_impl(port, ptr, rust_vec_len, data_len), 180 => wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal_impl(port, ptr, rust_vec_len, data_len), -181 => wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_impl(port, ptr, rust_vec_len, data_len), -182 => wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger_impl(port, ptr, rust_vec_len, data_len), +181 => wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_twin_normal_impl(port, ptr, rust_vec_len, data_len), +182 => wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger_twin_normal_impl(port, ptr, rust_vec_len, data_len), 183 => wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), 184 => wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_self_twin_normal_impl(port, ptr, rust_vec_len, data_len), 185 => wire__crate__api__lifetimeable__lt_compute_with_lifetime_function_twin_normal_impl(port, ptr, rust_vec_len, data_len), diff --git a/website/docs/guides/lifetimes/index.md b/website/docs/guides/lifetimes/index.md new file mode 100644 index 0000000000..00fc26dba8 --- /dev/null +++ b/website/docs/guides/lifetimes/index.md @@ -0,0 +1,7 @@ +# Lifetimes / Reference types + +```mdx-code-block +import DocCardList from '@theme/DocCardList'; + + +``` diff --git a/website/docs/guides/lifetimes/overview.md b/website/docs/guides/lifetimes/overview.md new file mode 100644 index 0000000000..e69de29bb2 diff --git a/website/docs/guides/types/arbitrary/rust-auto-opaque/lifetime.md b/website/docs/guides/types/arbitrary/rust-auto-opaque/lifetime.md deleted file mode 100644 index 1fc2602522..0000000000 --- a/website/docs/guides/types/arbitrary/rust-auto-opaque/lifetime.md +++ /dev/null @@ -1,3 +0,0 @@ -# Type with lifetimes / Reference types - -TODO diff --git a/website/sidebars.js b/website/sidebars.js index b72920bc9e..720bb117a3 100644 --- a/website/sidebars.js +++ b/website/sidebars.js @@ -114,7 +114,6 @@ const sidebars = { }, items: [ 'guides/types/arbitrary/rust-auto-opaque/overview', - 'guides/types/arbitrary/rust-auto-opaque/lifetime', 'guides/types/arbitrary/rust-auto-opaque/using-data', 'guides/types/arbitrary/rust-auto-opaque/override-defaults', 'guides/types/arbitrary/rust-auto-opaque/properties', @@ -218,6 +217,18 @@ const sidebars = { }, ], }, + { + type: 'category', + label: 'Lifetimes / Reference types', + collapsed: true, + link: { + type: 'doc', + id: 'guides/lifetimes/index', + }, + items: [ + 'guides/lifetimes/overview', + ], + }, { type: 'category', label: 'Concurrency and async', From 195622fc28e645b5fe01f2e300737dda0ae5355c Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 20:32:26 +0800 Subject: [PATCH 098/117] chore: mv --- .../guides/{how-to/borrowed.md => lifetimes/alternatives.md} | 2 +- website/docs/guides/lifetimes/overview.md | 3 +++ website/sidebars.js | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) rename website/docs/guides/{how-to/borrowed.md => lifetimes/alternatives.md} (98%) diff --git a/website/docs/guides/how-to/borrowed.md b/website/docs/guides/lifetimes/alternatives.md similarity index 98% rename from website/docs/guides/how-to/borrowed.md rename to website/docs/guides/lifetimes/alternatives.md index 8c1d911b1c..b53dca54c4 100644 --- a/website/docs/guides/how-to/borrowed.md +++ b/website/docs/guides/lifetimes/alternatives.md @@ -1,4 +1,4 @@ -# Borrowed types +# Alternatives ## Direct approach diff --git a/website/docs/guides/lifetimes/overview.md b/website/docs/guides/lifetimes/overview.md index e69de29bb2..4c7d803a79 100644 --- a/website/docs/guides/lifetimes/overview.md +++ b/website/docs/guides/lifetimes/overview.md @@ -0,0 +1,3 @@ +# Overview + +TODO diff --git a/website/sidebars.js b/website/sidebars.js index 720bb117a3..b867234992 100644 --- a/website/sidebars.js +++ b/website/sidebars.js @@ -227,6 +227,7 @@ const sidebars = { }, items: [ 'guides/lifetimes/overview', + 'guides/lifetimes/alternatives', ], }, { @@ -340,7 +341,6 @@ const sidebars = { 'guides/how-to/regression', 'guides/how-to/object-pool', 'guides/how-to/gitignore', - 'guides/how-to/borrowed', 'guides/how-to/rust-compilation', 'guides/how-to/cargo-workspaces', ], From 7bd7e1f69acaea4a8d9494f5d771895b18c6af4b Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 20:33:40 +0800 Subject: [PATCH 099/117] chore: doc --- website/docs/guides/lifetimes/alternatives.md | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/website/docs/guides/lifetimes/alternatives.md b/website/docs/guides/lifetimes/alternatives.md index b53dca54c4..da995529ee 100644 --- a/website/docs/guides/lifetimes/alternatives.md +++ b/website/docs/guides/lifetimes/alternatives.md @@ -1,13 +1,6 @@ # Alternatives -## Direct approach - -`flutter_rust_bridge` does support types with borrowing and lifetime like `struct MyStruct<'a> { ... }`, -or functions that return types with lifetimes such as references. -Please refer to [this page](../types/arbitrary/rust-auto-opaque/lifetime) for details. - -For completeness, below we discuss alternative approaches, which are useful in some scenarios. -(They are originally documented because at that time the lifetime had not been supported.) +In addition to directly using the feature, sometimes the following alternative approaches are also helpful. ## Proxy From 5f1c97ff55f65bb6627f026f18b247c4dfff46b2 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 20:37:10 +0800 Subject: [PATCH 100/117] chore: doc --- website/docs/guides/lifetimes/alternatives.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/guides/lifetimes/alternatives.md b/website/docs/guides/lifetimes/alternatives.md index da995529ee..a043cfa269 100644 --- a/website/docs/guides/lifetimes/alternatives.md +++ b/website/docs/guides/lifetimes/alternatives.md @@ -10,7 +10,7 @@ Please refer to [this page](../miscellaneous/proxy) for more details. ## Shared ownership One alternative approach is to use shared ownership. -For example, for the example above, we can rewrite as: +For example, we can write something like: ```rust struct MyStruct { From 0415eb771680ddd4c29ea7dc0e54b0d07b6f9aa6 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 20:37:15 +0800 Subject: [PATCH 101/117] chore: codegen --- frb_example/pure_dart/frb_generated.h | 16 ++-- .../lib/src/rust/api/lifetimeable.dart | 10 ++- .../pure_dart/lib/src/rust/frb_generated.dart | 27 +++---- .../lib/src/rust/frb_generated.io.dart | 25 +++--- .../lib/src/rust/frb_generated.web.dart | 24 +++--- .../pure_dart/rust/src/frb_generated.io.rs | 8 +- .../pure_dart/rust/src/frb_generated.rs | 76 ++++++------------- .../pure_dart/rust/src/frb_generated.web.rs | 8 +- 8 files changed, 85 insertions(+), 109 deletions(-) diff --git a/frb_example/pure_dart/frb_generated.h b/frb_example/pure_dart/frb_generated.h index 9d1ffcb16d..2a61397742 100644 --- a/frb_example/pure_dart/frb_generated.h +++ b/frb_example/pure_dart/frb_generated.h @@ -3890,16 +3890,16 @@ void frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtOwnedStructT int32_t rust_vec_len_, int32_t data_len_); -void frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create(int64_t port_, - uint8_t *ptr_, - int32_t rust_vec_len_, - int32_t data_len_); - -void frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger(int64_t port_, +void frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_twin_normal(int64_t port_, uint8_t *ptr_, int32_t rust_vec_len_, int32_t data_len_); +void frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger_twin_normal(int64_t port_, + uint8_t *ptr_, + int32_t rust_vec_len_, + int32_t data_len_); + void frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal(int64_t port_, uint8_t *ptr_, int32_t rust_vec_len_, @@ -16082,8 +16082,8 @@ static int64_t dummy_method_to_enforce_bundling(void) { dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtTypeWithMultiDepTwinNormalstatic_greet_borrow_self_twin_normal); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_type_with_lifetime_twin_normal); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal); - dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create); - dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_twin_normal); + dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger_twin_normal); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_self_twin_normal); dummy_var ^= ((int64_t) (void*) frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__lt_compute_with_lifetime_function_twin_normal); diff --git a/frb_example/pure_dart/lib/src/rust/api/lifetimeable.dart b/frb_example/pure_dart/lib/src/rust/api/lifetimeable.dart index 67293272af..94ee4f8b8c 100644 --- a/frb_example/pure_dart/lib/src/rust/api/lifetimeable.dart +++ b/frb_example/pure_dart/lib/src/rust/api/lifetimeable.dart @@ -74,14 +74,16 @@ abstract class LtOwnedStructTwinNormal implements RustOpaqueInterface { {required LtOwnedStructTwinNormal unrelatedBorrowed, required LtOwnedStructTwinNormal unrelatedOwned}); - static Future create({required String value}) => + static Future createTwinNormal( + {required String value}) => RustLib.instance.api - .crateApiLifetimeableLtOwnedStructTwinNormalCreate(value: value); + .crateApiLifetimeableLtOwnedStructTwinNormalCreateTwinNormal( + value: value); - static Future createWithLogger( + static Future createWithLoggerTwinNormal( {required String value, required SimpleLogger logger}) => RustLib.instance.api - .crateApiLifetimeableLtOwnedStructTwinNormalCreateWithLogger( + .crateApiLifetimeableLtOwnedStructTwinNormalCreateWithLoggerTwinNormal( value: value, logger: logger); } diff --git a/frb_example/pure_dart/lib/src/rust/frb_generated.dart b/frb_example/pure_dart/lib/src/rust/frb_generated.dart index b8ce01658b..1f2730f259 100644 --- a/frb_example/pure_dart/lib/src/rust/frb_generated.dart +++ b/frb_example/pure_dart/lib/src/rust/frb_generated.dart @@ -326,7 +326,7 @@ class RustLib extends BaseEntrypoint { String get codegenVersion => '2.0.0-dev.39'; @override - int get rustContentHash => 345629269; + int get rustContentHash => 755895783; static const kDefaultExternalLibraryLoaderConfig = ExternalLibraryLoaderConfig( @@ -884,11 +884,11 @@ abstract class RustLibApi extends BaseApi { required LtOwnedStructTwinNormal unrelatedOwned}); Future - crateApiLifetimeableLtOwnedStructTwinNormalCreate( + crateApiLifetimeableLtOwnedStructTwinNormalCreateTwinNormal( {required String value}); Future - crateApiLifetimeableLtOwnedStructTwinNormalCreateWithLogger( + crateApiLifetimeableLtOwnedStructTwinNormalCreateWithLoggerTwinNormal( {required String value, required SimpleLogger logger}); Future @@ -17025,7 +17025,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { @override Future - crateApiLifetimeableLtOwnedStructTwinNormalCreate( + crateApiLifetimeableLtOwnedStructTwinNormalCreateTwinNormal( {required String value}) { return handler.executeNormal(NormalTask( callFfi: (port_) { @@ -17033,7 +17033,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_String(value, serializer); final raw_ = serializer.intoRaw(); return wire - .wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create( + .wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_twin_normal( port_, raw_.ptr, raw_.rustVecLen, raw_.dataLen); }, codec: SseCodec( @@ -17041,22 +17041,23 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLtOwnedStructTwinNormal, decodeErrorData: null, ), - constMeta: kCrateApiLifetimeableLtOwnedStructTwinNormalCreateConstMeta, + constMeta: + kCrateApiLifetimeableLtOwnedStructTwinNormalCreateTwinNormalConstMeta, argValues: [value], apiImpl: this, )); } TaskConstMeta - get kCrateApiLifetimeableLtOwnedStructTwinNormalCreateConstMeta => + get kCrateApiLifetimeableLtOwnedStructTwinNormalCreateTwinNormalConstMeta => const TaskConstMeta( - debugName: "LtOwnedStructTwinNormal_create", + debugName: "LtOwnedStructTwinNormal_create_twin_normal", argNames: ["value"], ); @override Future - crateApiLifetimeableLtOwnedStructTwinNormalCreateWithLogger( + crateApiLifetimeableLtOwnedStructTwinNormalCreateWithLoggerTwinNormal( {required String value, required SimpleLogger logger}) { return handler.executeNormal(NormalTask( callFfi: (port_) { @@ -17066,7 +17067,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { logger, serializer); final raw_ = serializer.intoRaw(); return wire - .wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger( + .wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger_twin_normal( port_, raw_.ptr, raw_.rustVecLen, raw_.dataLen); }, codec: SseCodec( @@ -17075,16 +17076,16 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { decodeErrorData: null, ), constMeta: - kCrateApiLifetimeableLtOwnedStructTwinNormalCreateWithLoggerConstMeta, + kCrateApiLifetimeableLtOwnedStructTwinNormalCreateWithLoggerTwinNormalConstMeta, argValues: [value, logger], apiImpl: this, )); } TaskConstMeta - get kCrateApiLifetimeableLtOwnedStructTwinNormalCreateWithLoggerConstMeta => + get kCrateApiLifetimeableLtOwnedStructTwinNormalCreateWithLoggerTwinNormalConstMeta => const TaskConstMeta( - debugName: "LtOwnedStructTwinNormal_create_with_logger", + debugName: "LtOwnedStructTwinNormal_create_with_logger_twin_normal", argNames: ["value", "logger"], ); diff --git a/frb_example/pure_dart/lib/src/rust/frb_generated.io.dart b/frb_example/pure_dart/lib/src/rust/frb_generated.io.dart index b090803bc2..5035f98e7f 100644 --- a/frb_example/pure_dart/lib/src/rust/frb_generated.io.dart +++ b/frb_example/pure_dart/lib/src/rust/frb_generated.io.dart @@ -45293,13 +45293,14 @@ class RustLibWire implements BaseWire { _wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normalPtr .asFunction, int, int)>(); - void wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create( + void + wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_twin_normal( int port_, ffi.Pointer ptr_, int rust_vec_len_, int data_len_, ) { - return _wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create( + return _wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_twin_normal( port_, ptr_, rust_vec_len_, @@ -45307,24 +45308,24 @@ class RustLibWire implements BaseWire { ); } - late final _wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_createPtr = + late final _wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_twin_normalPtr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Int64, ffi.Pointer, ffi.Int32, ffi.Int32)>>( - 'frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create'); - late final _wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create = - _wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_createPtr + 'frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_twin_normal'); + late final _wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_twin_normal = + _wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_twin_normalPtr .asFunction, int, int)>(); void - wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger( + wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger_twin_normal( int port_, ffi.Pointer ptr_, int rust_vec_len_, int data_len_, ) { - return _wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger( + return _wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger_twin_normal( port_, ptr_, rust_vec_len_, @@ -45332,14 +45333,14 @@ class RustLibWire implements BaseWire { ); } - late final _wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_loggerPtr = + late final _wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger_twin_normalPtr = _lookup< ffi.NativeFunction< ffi.Void Function(ffi.Int64, ffi.Pointer, ffi.Int32, ffi.Int32)>>( - 'frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger'); - late final _wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger = - _wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_loggerPtr + 'frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger_twin_normal'); + late final _wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger_twin_normal = + _wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger_twin_normalPtr .asFunction, int, int)>(); void diff --git a/frb_example/pure_dart/lib/src/rust/frb_generated.web.dart b/frb_example/pure_dart/lib/src/rust/frb_generated.web.dart index d77ce18dab..d3f84c4793 100644 --- a/frb_example/pure_dart/lib/src/rust/frb_generated.web.dart +++ b/frb_example/pure_dart/lib/src/rust/frb_generated.web.dart @@ -39328,21 +39328,22 @@ class RustLibWire implements BaseWire { .wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_with_unrelated_borrowed_arg_twin_normal( port_, ptr_, rust_vec_len_, data_len_); - void wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create( + void wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_twin_normal( NativePortType port_, PlatformGeneralizedUint8ListPtr ptr_, int rust_vec_len_, int data_len_) => - wasmModule.wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create( - port_, ptr_, rust_vec_len_, data_len_); + wasmModule + .wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_twin_normal( + port_, ptr_, rust_vec_len_, data_len_); - void wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger( + void wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger_twin_normal( NativePortType port_, PlatformGeneralizedUint8ListPtr ptr_, int rust_vec_len_, int data_len_) => wasmModule - .wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger( + .wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger_twin_normal( port_, ptr_, rust_vec_len_, data_len_); void wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal( @@ -62078,14 +62079,15 @@ extension type RustLibWasmModule._(JSObject _) implements JSObject { int rust_vec_len_, int data_len_); - external void wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create( - NativePortType port_, - PlatformGeneralizedUint8ListPtr ptr_, - int rust_vec_len_, - int data_len_); + external void + wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_twin_normal( + NativePortType port_, + PlatformGeneralizedUint8ListPtr ptr_, + int rust_vec_len_, + int data_len_); external void - wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger( + wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger_twin_normal( NativePortType port_, PlatformGeneralizedUint8ListPtr ptr_, int rust_vec_len_, diff --git a/frb_example/pure_dart/rust/src/frb_generated.io.rs b/frb_example/pure_dart/rust/src/frb_generated.io.rs index 30ccc959ec..91b8622384 100644 --- a/frb_example/pure_dart/rust/src/frb_generated.io.rs +++ b/frb_example/pure_dart/rust/src/frb_generated.io.rs @@ -18618,13 +18618,13 @@ pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__L } #[no_mangle] -pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create( +pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_twin_normal( port_: i64, ptr_: *mut u8, rust_vec_len_: i32, data_len_: i32, ) { - wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_impl( + wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_twin_normal_impl( port_, ptr_, rust_vec_len_, @@ -18633,13 +18633,13 @@ pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__L } #[no_mangle] -pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger( +pub extern "C" fn frbgen_frb_example_pure_dart_wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger_twin_normal( port_: i64, ptr_: *mut u8, rust_vec_len_: i32, data_len_: i32, ) { - wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger_impl( + wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger_twin_normal_impl( port_, ptr_, rust_vec_len_, diff --git a/frb_example/pure_dart/rust/src/frb_generated.rs b/frb_example/pure_dart/rust/src/frb_generated.rs index 8dc2fcbcab..c58b52b1c3 100644 --- a/frb_example/pure_dart/rust/src/frb_generated.rs +++ b/frb_example/pure_dart/rust/src/frb_generated.rs @@ -94,7 +94,7 @@ flutter_rust_bridge::frb_generated_boilerplate!( default_rust_auto_opaque = RustAutoOpaqueNom, ); pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.0.0-dev.39"; -pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = 345629269; +pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = 755895783; // Section: executor @@ -4317,7 +4317,7 @@ let api_that_guard = Arc::new(api_that_guard); })()) } }) } -fn wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_impl( +fn wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_twin_normal_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, rust_vec_len_: i32, @@ -4325,7 +4325,7 @@ fn wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_impl( ) { FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "LtOwnedStructTwinNormal_create", + debug_name: "LtOwnedStructTwinNormal_create_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, }, @@ -4344,7 +4344,9 @@ fn wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_impl( move |context| { transform_result_sse::<_, ()>((move || { let output_ok = Result::<_, ()>::Ok( - crate::api::lifetimeable::LtOwnedStructTwinNormal::create(api_value), + crate::api::lifetimeable::LtOwnedStructTwinNormal::create_twin_normal( + api_value, + ), )?; Ok(output_ok) })()) @@ -4352,62 +4354,30 @@ fn wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_impl( }, ) } -fn wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger_impl( +fn wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger_twin_normal_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, rust_vec_len_: i32, data_len_: i32, ) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( - flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "LtOwnedStructTwinNormal_create_with_logger", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, - }, - move || { - let message = unsafe { - flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire( - ptr_, - rust_vec_len_, - data_len_, - ) - }; - let mut deserializer = - flutter_rust_bridge::for_generated::SseDeserializer::new(message); + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "LtOwnedStructTwinNormal_create_with_logger_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); let api_value = ::sse_decode(&mut deserializer); - let api_logger = , - >>::sse_decode(&mut deserializer); - deserializer.end(); - move |context| { - transform_result_sse::<_, ()>((move || { - let mut api_logger_guard = None; - let decode_indices_ = - flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ - flutter_rust_bridge::for_generated::LockableOrderInfo::new( - &api_logger, - 0, - false, - ), - ]); - for i in decode_indices_ { - match i { - 0 => api_logger_guard = Some(api_logger.lockable_decode_sync_ref()), - _ => unreachable!(), - } - } - let api_logger_guard = api_logger_guard.unwrap(); - let output_ok = Result::<_, ()>::Ok( - crate::api::lifetimeable::LtOwnedStructTwinNormal::create_with_logger( - api_value, - &*api_logger_guard, - ), - )?; - Ok(output_ok) - })()) +let api_logger = >>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let mut api_logger_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_logger, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_logger_guard = Some(api_logger.lockable_decode_sync_ref()), + _ => unreachable!(), } - }, - ) + } + let api_logger_guard = api_logger_guard.unwrap(); + let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtOwnedStructTwinNormal::create_with_logger_twin_normal(api_value, &*api_logger_guard))?; Ok(output_ok) + })()) + } }) } fn wire__crate__api__lifetimeable__LtSubStructTwinNormal_greet_borrow_mut_self_twin_normal_impl( port_: flutter_rust_bridge::for_generated::MessagePort, diff --git a/frb_example/pure_dart/rust/src/frb_generated.web.rs b/frb_example/pure_dart/rust/src/frb_generated.web.rs index 328ed38f57..310a5049ab 100644 --- a/frb_example/pure_dart/rust/src/frb_generated.web.rs +++ b/frb_example/pure_dart/rust/src/frb_generated.web.rs @@ -15541,13 +15541,13 @@ pub fn wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_compute_with_unre } #[wasm_bindgen] -pub fn wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create( +pub fn wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_twin_normal( port_: flutter_rust_bridge::for_generated::MessagePort, ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, rust_vec_len_: i32, data_len_: i32, ) { - wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_impl( + wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_twin_normal_impl( port_, ptr_, rust_vec_len_, @@ -15556,13 +15556,13 @@ pub fn wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create( } #[wasm_bindgen] -pub fn wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger( +pub fn wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger_twin_normal( port_: flutter_rust_bridge::for_generated::MessagePort, ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, rust_vec_len_: i32, data_len_: i32, ) { - wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger_impl( + wire__crate__api__lifetimeable__LtOwnedStructTwinNormal_create_with_logger_twin_normal_impl( port_, ptr_, rust_vec_len_, From 42de2ca9b6c426c01bfa5d119b95e332b2ecd5f0 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 20:41:43 +0800 Subject: [PATCH 102/117] chore: doc --- website/docs/guides/lifetimes/index.md | 2 +- website/docs/guides/lifetimes/overview.md | 21 ++++++++++++++++++++- website/sidebars.js | 2 +- 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/website/docs/guides/lifetimes/index.md b/website/docs/guides/lifetimes/index.md index 00fc26dba8..80cbd77ce8 100644 --- a/website/docs/guides/lifetimes/index.md +++ b/website/docs/guides/lifetimes/index.md @@ -1,4 +1,4 @@ -# Lifetimes / Reference types +# Return lifetimes / references ```mdx-code-block import DocCardList from '@theme/DocCardList'; diff --git a/website/docs/guides/lifetimes/overview.md b/website/docs/guides/lifetimes/overview.md index 4c7d803a79..ac7299dbe6 100644 --- a/website/docs/guides/lifetimes/overview.md +++ b/website/docs/guides/lifetimes/overview.md @@ -1,3 +1,22 @@ # Overview -TODO +:::info +This page *only* discusses a type with lifetimes that appears as a *return value*. +Having references in arguments (such as `fn f(a: &Sth)`) is already supported long ago, +and is not the feature discussed here. +::: + +:::info +Use `enable_lifetime: true` to enable this feature. +It is quite young and thus experimental, +therefore it may not follow the semver that the rest of this package follows, +and this part may contain bugs or missing features. +If you want to discuss anything, feel free to open an issue on GitHub. +::: + +Returning types with lifetimes are supported in `flutter_rust_bridge`. +This includes the common scenario to return a reference type. + +Currently, I have only implemented a subset of the features that I hope to implement, +but the rest should be usually workaround-able. +Please visit the "limitations and workarounds" page for more details. diff --git a/website/sidebars.js b/website/sidebars.js index b867234992..a47978323c 100644 --- a/website/sidebars.js +++ b/website/sidebars.js @@ -219,7 +219,7 @@ const sidebars = { }, { type: 'category', - label: 'Lifetimes / Reference types', + label: 'Return lifetimes / references', collapsed: true, link: { type: 'doc', From 1d6c4a02d7e7e8223e4f335a1fde7c286d630a18 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 20:50:18 +0800 Subject: [PATCH 103/117] chore: lint --- frb_rust/src/generalized_arc/moi_arc.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frb_rust/src/generalized_arc/moi_arc.rs b/frb_rust/src/generalized_arc/moi_arc.rs index 54d12f6bca..f4b7f40b32 100644 --- a/frb_rust/src/generalized_arc/moi_arc.rs +++ b/frb_rust/src/generalized_arc/moi_arc.rs @@ -123,7 +123,10 @@ macro_rules! frb_generated_moi_arc_def { drop(object); } - fn decrement_strong_count_raw(raw: usize, pool: &mut MoiArcPoolInner) -> Option> { + fn decrement_strong_count_raw( + raw: usize, + pool: &mut MoiArcPoolInner, + ) -> Option> { let value = pool.map.get_mut(&raw).unwrap(); value.ref_count -= 1; if value.ref_count == 0 { From 10f68ff64d534c2735e634bdbfbe3257a13b33ed Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 20:51:25 +0800 Subject: [PATCH 104/117] chore: template --- .../src/frb_generated.io.rs | 2 +- .../REPLACE_ME_RUST_CRATE_DIR/src/frb_generated.rs | 14 ++++++++------ .../src/frb_generated.web.rs | 2 +- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/frb_codegen/assets/integration_template/REPLACE_ME_RUST_CRATE_DIR/src/frb_generated.io.rs b/frb_codegen/assets/integration_template/REPLACE_ME_RUST_CRATE_DIR/src/frb_generated.io.rs index 1784fece63..ae9a0b18ac 100644 --- a/frb_codegen/assets/integration_template/REPLACE_ME_RUST_CRATE_DIR/src/frb_generated.io.rs +++ b/frb_codegen/assets/integration_template/REPLACE_ME_RUST_CRATE_DIR/src/frb_generated.io.rs @@ -5,7 +5,7 @@ use super::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; -use flutter_rust_bridge::for_generated::{transform_result_dco, Lockable}; +use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; // Section: boilerplate diff --git a/frb_codegen/assets/integration_template/REPLACE_ME_RUST_CRATE_DIR/src/frb_generated.rs b/frb_codegen/assets/integration_template/REPLACE_ME_RUST_CRATE_DIR/src/frb_generated.rs index 97e5ad087a..f2607c783a 100644 --- a/frb_codegen/assets/integration_template/REPLACE_ME_RUST_CRATE_DIR/src/frb_generated.rs +++ b/frb_codegen/assets/integration_template/REPLACE_ME_RUST_CRATE_DIR/src/frb_generated.rs @@ -22,7 +22,7 @@ // Section: imports use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; -use flutter_rust_bridge::for_generated::{transform_result_dco, Lockable}; +use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; // Section: boilerplate @@ -64,8 +64,9 @@ fn wire__crate__api__simple__greet_impl( flutter_rust_bridge::for_generated::SseDeserializer::new(message); let api_name = ::sse_decode(&mut deserializer); deserializer.end(); - transform_result_sse((move || { - Result::<_, ()>::Ok(crate::api::simple::greet(api_name)) + transform_result_sse::<_, ()>((move || { + let output_ok = Result::<_, ()>::Ok(crate::api::simple::greet(api_name))?; + Ok(output_ok) })()) }, ) @@ -94,10 +95,11 @@ fn wire__crate__api__simple__init_app_impl( flutter_rust_bridge::for_generated::SseDeserializer::new(message); deserializer.end(); move |context| { - transform_result_sse((move || { - Result::<_, ()>::Ok({ + transform_result_sse::<_, ()>((move || { + let output_ok = Result::<_, ()>::Ok({ crate::api::simple::init_app(); - }) + })?; + Ok(output_ok) })()) } }, diff --git a/frb_codegen/assets/integration_template/REPLACE_ME_RUST_CRATE_DIR/src/frb_generated.web.rs b/frb_codegen/assets/integration_template/REPLACE_ME_RUST_CRATE_DIR/src/frb_generated.web.rs index bc660479e8..9b5319b77a 100644 --- a/frb_codegen/assets/integration_template/REPLACE_ME_RUST_CRATE_DIR/src/frb_generated.web.rs +++ b/frb_codegen/assets/integration_template/REPLACE_ME_RUST_CRATE_DIR/src/frb_generated.web.rs @@ -7,7 +7,7 @@ use super::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; use flutter_rust_bridge::for_generated::wasm_bindgen; use flutter_rust_bridge::for_generated::wasm_bindgen::prelude::*; -use flutter_rust_bridge::for_generated::{transform_result_dco, Lockable}; +use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; // Section: boilerplate From c63ae8955457421a94a963f59eb4f3476fd9db48 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 20:52:57 +0800 Subject: [PATCH 105/117] chore: more --- .../guides/lifetimes/concurrent-borrows.md | 27 +++++++++++ website/docs/guides/lifetimes/index.md | 2 +- website/docs/guides/lifetimes/overview.md | 8 +--- .../guides/lifetimes/return-references.md | 18 ++++++++ .../guides/lifetimes/type-with-lifetimes.md | 45 +++++++++++++++++++ website/sidebars.js | 5 ++- 6 files changed, 97 insertions(+), 8 deletions(-) create mode 100644 website/docs/guides/lifetimes/concurrent-borrows.md create mode 100644 website/docs/guides/lifetimes/return-references.md create mode 100644 website/docs/guides/lifetimes/type-with-lifetimes.md diff --git a/website/docs/guides/lifetimes/concurrent-borrows.md b/website/docs/guides/lifetimes/concurrent-borrows.md new file mode 100644 index 0000000000..32981497e2 --- /dev/null +++ b/website/docs/guides/lifetimes/concurrent-borrows.md @@ -0,0 +1,27 @@ +# Concurrent borrows + +Suppose we have `fn f(foo: &Foo) -> &Bar { .. }`. +Then, before the `Bar` object is disposed (or is garbage collected), +the `foo` can only be used immutably and not mutably. +More specifically, + +```dart +var foo = Foo(); +var bar = f(foo); +// functionThatMutablyBorrowFoo(foo); // <-- cannot do it here +bar.dispose(); +functionThatMutablyBorrowFoo(foo); // <-- can do it here +``` + +This is a limitation somehow caused by the combination of Rust and Dart: +In Rust, we have the strict limitation that, if a type is borrowed immutably, +then we can never borrow it mutably, *unless* the former borrow is removed. +Therefore, in the example above, when `bar` object is alive, `foo` is borrowed, +and we cannot have another mutable borrow. + +If this makes your scenario much more complicated, +feel free to open an issue to discuss your scenario, +and we can discuss how to improve it. +For example, we may introduce something like a "scope" where references out of scope will be disposed. + +In some scenarios, due to this limitation, the alternatives introduced in the next page may be appealing. diff --git a/website/docs/guides/lifetimes/index.md b/website/docs/guides/lifetimes/index.md index 80cbd77ce8..3e0c032b1f 100644 --- a/website/docs/guides/lifetimes/index.md +++ b/website/docs/guides/lifetimes/index.md @@ -1,4 +1,4 @@ -# Return lifetimes / references +# Lifetimes / Return references ```mdx-code-block import DocCardList from '@theme/DocCardList'; diff --git a/website/docs/guides/lifetimes/overview.md b/website/docs/guides/lifetimes/overview.md index ac7299dbe6..a448d124ca 100644 --- a/website/docs/guides/lifetimes/overview.md +++ b/website/docs/guides/lifetimes/overview.md @@ -1,8 +1,7 @@ # Overview :::info -This page *only* discusses a type with lifetimes that appears as a *return value*. -Having references in arguments (such as `fn f(a: &Sth)`) is already supported long ago, +References in arguments (such as `fn f(a: &Foo, b: &mut Bar)`) is already supported long ago, and is not the feature discussed here. ::: @@ -15,8 +14,5 @@ If you want to discuss anything, feel free to open an issue on GitHub. ::: Returning types with lifetimes are supported in `flutter_rust_bridge`. -This includes the common scenario to return a reference type. - Currently, I have only implemented a subset of the features that I hope to implement, -but the rest should be usually workaround-able. -Please visit the "limitations and workarounds" page for more details. +but the rest should be usually workaround-able, and is discussed in later pages. diff --git a/website/docs/guides/lifetimes/return-references.md b/website/docs/guides/lifetimes/return-references.md new file mode 100644 index 0000000000..e420ff6638 --- /dev/null +++ b/website/docs/guides/lifetimes/return-references.md @@ -0,0 +1,18 @@ +# Return references + +Suppose we have the following function: + +```rust +fn f<'a>(foo: &'a Foo) -> &'a Bar { .. } +``` + +The return type `&Bar` is not *yet* supported (but should be there in the future). +However, we can workaround it as follows, by creating a very simple wrapper struct: + +```rust +pub struct BarReference<'a>(&'a Bar); + +fn f<'a>(foo: &'a Foo) -> BarReference<'a> { .. } +``` + +Then, the scenario becomes what has been discussed in the last page, and flutter_rust_bridge can handle it. diff --git a/website/docs/guides/lifetimes/type-with-lifetimes.md b/website/docs/guides/lifetimes/type-with-lifetimes.md new file mode 100644 index 0000000000..ba08b698f3 --- /dev/null +++ b/website/docs/guides/lifetimes/type-with-lifetimes.md @@ -0,0 +1,45 @@ +# Types with lifetimes + +We can have function like `fn f<'a>(foo: &'a Foo) -> Bar<'a>`, +i.e. returning a type with lifetime on it. + +There are some syntax rules to follow because we have not implemented logic about lifetime elision or fancy lifetime parsing. +If some rules make your scenario very complicated, feel free to create an issue to discuss. + +* Specify lifetimes explicitly. For example, change `fn f(foo: &Foo) -> Bar` to `fn f<'a>(foo: &'a Foo) -> Bar<'a>`. This will not affect code correctness. +* Only one lifetime specifier name (can have other unnamed specifiers). For example, `fn f<'a>(a: &A, b: &'a B, c: &C<'a>, d: &D<'_>) -> E<'a>` is acceptable. + +(Optional) If you are worried whether you need to manually keep the Dart `Foo` object live longer than `Bar`, +the answer is - no need. +You can safely call Dart `Foo.dispose` or let Dart `Foo` be garbage collected, and the `Bar` will still be valid. +Indeed, `Bar` internally ensures that the Rust `Foo` object lives longer. + +## Example + +Suppose we have the following Rust code: + +```rust +#[frb(opaque)] +pub struct Foo(String); + +// For simplicity and demonstration, we use a field pointing to Foo here; but this struct indeed can be anything +#[frb(opaque)] +pub struct Bar<'a> { foo: &'a Foo } + +impl Foo { + pub fn compute_bar<'a>(&'a self) -> Bar<'a> { .. } +} + +impl Bar<'_> { + pub fn greet(&self) { .. } +} +``` + +Then, we can use it like: + +```dart +var foo = Foo(..); +var bar = foo.computeBar(); +bar.greet(); +``` + diff --git a/website/sidebars.js b/website/sidebars.js index a47978323c..6645e9d3f9 100644 --- a/website/sidebars.js +++ b/website/sidebars.js @@ -219,7 +219,7 @@ const sidebars = { }, { type: 'category', - label: 'Return lifetimes / references', + label: 'Lifetimes / Return references', collapsed: true, link: { type: 'doc', @@ -227,6 +227,9 @@ const sidebars = { }, items: [ 'guides/lifetimes/overview', + 'guides/lifetimes/type-with-lifetimes', + 'guides/lifetimes/return-references', + 'guides/lifetimes/concurrent-borrows', 'guides/lifetimes/alternatives', ], }, From 706e50e68e5042bb8c52a30d0587a8d5526ab56a Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 21:15:49 +0800 Subject: [PATCH 106/117] fix: err --- website/docs/guides/miscellaneous/proxy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/guides/miscellaneous/proxy.md b/website/docs/guides/miscellaneous/proxy.md index cd3bba8d59..28198296b1 100644 --- a/website/docs/guides/miscellaneous/proxy.md +++ b/website/docs/guides/miscellaneous/proxy.md @@ -38,7 +38,7 @@ However, if we add `#[frb(proxy)]` to the `fn`, then it will work well. ### Remark: Alternative solutions -As is mentioned in [this page](../how-to/borrowed), one alternative solution is to use `clone`: +As is mentioned in [this page](../lifetimes/alternatives), one alternative solution is to use `clone`: ```rust pub fn get_my_sub_struct(&self) -> MySubStruct { From 61a0f56d724a1e9a58faa6a0ec1c2c54a2d80476 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 21:16:46 +0800 Subject: [PATCH 107/117] chore: goldens --- .../single_rust_input/expect_output.json | 1 + .../wildcard_rust_input/expect_output.json | 1 + .../parser/mod/generics/expect_mir.json | 106 +++++++++++++----- .../parser/mod/methods/expect_mir.json | 6 + .../mod/non_qualified_names/expect_mir.json | 2 + .../mod/qualified_names/expect_mir.json | 2 + .../use_type_in_another_file/expect_mir.json | 2 + 7 files changed, 92 insertions(+), 28 deletions(-) diff --git a/frb_codegen/test_fixtures/library/codegen/config/internal_config_parser/single_rust_input/expect_output.json b/frb_codegen/test_fixtures/library/codegen/config/internal_config_parser/single_rust_input/expect_output.json index 0fc6aa7408..28803a6674 100644 --- a/frb_codegen/test_fixtures/library/codegen/config/internal_config_parser/single_rust_input/expect_output.json +++ b/frb_codegen/test_fixtures/library/codegen/config/internal_config_parser/single_rust_input/expect_output.json @@ -111,6 +111,7 @@ "mir": { "default_rust_opaque_codec": "Moi", "default_stream_sink_codec": "Sse", + "enable_lifetime": false, "force_codec_mode_pack": { "dart2rust": "Pde", "rust2dart": "Pde" diff --git a/frb_codegen/test_fixtures/library/codegen/config/internal_config_parser/wildcard_rust_input/expect_output.json b/frb_codegen/test_fixtures/library/codegen/config/internal_config_parser/wildcard_rust_input/expect_output.json index 0fc6aa7408..28803a6674 100644 --- a/frb_codegen/test_fixtures/library/codegen/config/internal_config_parser/wildcard_rust_input/expect_output.json +++ b/frb_codegen/test_fixtures/library/codegen/config/internal_config_parser/wildcard_rust_input/expect_output.json @@ -111,6 +111,7 @@ "mir": { "default_rust_opaque_codec": "Moi", "default_stream_sink_codec": "Sse", + "enable_lifetime": false, "force_codec_mode_pack": { "dart2rust": "Pde", "rust2dart": "Pde" diff --git a/frb_codegen/test_fixtures/library/codegen/parser/mod/generics/expect_mir.json b/frb_codegen/test_fixtures/library/codegen/parser/mod/generics/expect_mir.json index 998a2b442b..03b155ac58 100644 --- a/frb_codegen/test_fixtures/library/codegen/parser/mod/generics/expect_mir.json +++ b/frb_codegen/test_fixtures/library/codegen/parser/mod/generics/expect_mir.json @@ -32,7 +32,10 @@ "inner": { "brief_name": true, "codec": "Nom", - "inner": "flutter_rust_bridge::for_generated::RustAutoOpaqueInner", + "dart_api_type": null, + "inner": { + "raw": "flutter_rust_bridge::for_generated::RustAutoOpaqueInner" + }, "namespace": "crate::api" }, "ownership_mode": "Owned", @@ -43,7 +46,9 @@ "ident": "A" } ], - "string": "A" + "string": { + "raw": "A" + } }, "reason": null }, @@ -94,7 +99,10 @@ "inner": { "brief_name": true, "codec": "Nom", - "inner": "flutter_rust_bridge::for_generated::RustAutoOpaqueInner", + "dart_api_type": null, + "inner": { + "raw": "flutter_rust_bridge::for_generated::RustAutoOpaqueInner" + }, "namespace": "crate::api" }, "ownership_mode": "Owned", @@ -105,7 +113,9 @@ "ident": "B" } ], - "string": "B" + "string": { + "raw": "B" + } }, "reason": null }, @@ -170,25 +180,31 @@ "inner": { "brief_name": true, "codec": "Nom", - "inner": "flutter_rust_bridge::for_generated::RustAutoOpaqueInner", + "dart_api_type": null, + "inner": { + "raw": "flutter_rust_bridge::for_generated::RustAutoOpaqueInner>" + }, "namespace": "crate::api" }, "ownership_mode": "Owned", "raw": { "segments": [ { - "args": "", + "args": "bool", "ident": "MyGenericEnum" } ], - "string": "MyGenericEnum" + "string": { + "raw": "MyGenericEnum < bool >" + } }, "reason": null }, - "safe_ident": "Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyGenericEnum", + "safe_ident": "Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyGenericEnumbool", "type": "RustAutoOpaque" } }, + "needs_extend_lifetime": false, "ownership_mode": null } ], @@ -239,25 +255,31 @@ "inner": { "brief_name": true, "codec": "Nom", - "inner": "flutter_rust_bridge::for_generated::RustAutoOpaqueInner", + "dart_api_type": null, + "inner": { + "raw": "flutter_rust_bridge::for_generated::RustAutoOpaqueInner>" + }, "namespace": "crate::api" }, "ownership_mode": "Owned", "raw": { "segments": [ { - "args": "", + "args": "String", "ident": "MyGenericEnum" } ], - "string": "MyGenericEnum" + "string": { + "raw": "MyGenericEnum < String >" + } }, "reason": null }, - "safe_ident": "Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyGenericEnum", + "safe_ident": "Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyGenericEnumString", "type": "RustAutoOpaque" } }, + "needs_extend_lifetime": false, "ownership_mode": null } ], @@ -308,25 +330,31 @@ "inner": { "brief_name": true, "codec": "Nom", - "inner": "flutter_rust_bridge::for_generated::RustAutoOpaqueInner", + "dart_api_type": null, + "inner": { + "raw": "flutter_rust_bridge::for_generated::RustAutoOpaqueInner>" + }, "namespace": "crate::api" }, "ownership_mode": "Owned", "raw": { "segments": [ { - "args": "", + "args": "bool", "ident": "MyGenericStruct" } ], - "string": "MyGenericStruct" + "string": { + "raw": "MyGenericStruct < bool >" + } }, "reason": null }, - "safe_ident": "Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyGenericStruct", + "safe_ident": "Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyGenericStructbool", "type": "RustAutoOpaque" } }, + "needs_extend_lifetime": false, "ownership_mode": null } ], @@ -377,25 +405,31 @@ "inner": { "brief_name": true, "codec": "Nom", - "inner": "flutter_rust_bridge::for_generated::RustAutoOpaqueInner", + "dart_api_type": null, + "inner": { + "raw": "flutter_rust_bridge::for_generated::RustAutoOpaqueInner>" + }, "namespace": "crate::api" }, "ownership_mode": "Owned", "raw": { "segments": [ { - "args": "", + "args": "String", "ident": "MyGenericStruct" } ], - "string": "MyGenericStruct" + "string": { + "raw": "MyGenericStruct < String >" + } }, "reason": null }, - "safe_ident": "Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyGenericStruct", + "safe_ident": "Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyGenericStructString", "type": "RustAutoOpaque" } }, + "needs_extend_lifetime": false, "ownership_mode": null } ], @@ -446,25 +480,31 @@ "inner": { "brief_name": true, "codec": "Nom", - "inner": "flutter_rust_bridge::for_generated::RustAutoOpaqueInner", + "dart_api_type": null, + "inner": { + "raw": "flutter_rust_bridge::for_generated::RustAutoOpaqueInner>" + }, "namespace": "crate::api" }, "ownership_mode": "Owned", "raw": { "segments": [ { - "args": "", + "args": "String", "ident": "MyGenericStruct" } ], - "string": "MyGenericStruct" + "string": { + "raw": "MyGenericStruct < String >" + } }, "reason": null }, - "safe_ident": "Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyGenericStruct", + "safe_ident": "Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerMyGenericStructString", "type": "RustAutoOpaque" } }, + "needs_extend_lifetime": false, "ownership_mode": null } ], @@ -508,7 +548,10 @@ "inner": { "brief_name": true, "codec": "Nom", - "inner": "flutter_rust_bridge::for_generated::RustAutoOpaqueInner", + "dart_api_type": null, + "inner": { + "raw": "flutter_rust_bridge::for_generated::RustAutoOpaqueInner" + }, "namespace": "crate::api" }, "ownership_mode": "Owned", @@ -519,7 +562,9 @@ "ident": "T" } ], - "string": "T" + "string": { + "raw": "T" + } }, "reason": null }, @@ -545,7 +590,10 @@ "inner": { "brief_name": true, "codec": "Nom", - "inner": "flutter_rust_bridge::for_generated::RustAutoOpaqueInner>", + "dart_api_type": null, + "inner": { + "raw": "flutter_rust_bridge::for_generated::RustAutoOpaqueInner>" + }, "namespace": "crate::api" }, "ownership_mode": "Owned", @@ -556,7 +604,9 @@ "ident": "Box" } ], - "string": "Box < T >" + "string": { + "raw": "Box < T >" + } }, "reason": null }, diff --git a/frb_codegen/test_fixtures/library/codegen/parser/mod/methods/expect_mir.json b/frb_codegen/test_fixtures/library/codegen/parser/mod/methods/expect_mir.json index 4e04b6e3e3..2183bf2d02 100644 --- a/frb_codegen/test_fixtures/library/codegen/parser/mod/methods/expect_mir.json +++ b/frb_codegen/test_fixtures/library/codegen/parser/mod/methods/expect_mir.json @@ -78,6 +78,7 @@ "type": "Delegate" } }, + "needs_extend_lifetime": false, "ownership_mode": "Ref" } ], @@ -109,6 +110,7 @@ "safe_ident": "my_enum", "type": "Delegate" }, + "owner_ty_raw": "MyEnum", "trait_def": null } }, @@ -157,6 +159,7 @@ "safe_ident": "my_enum", "type": "Delegate" }, + "owner_ty_raw": "MyEnum", "trait_def": null } }, @@ -206,6 +209,7 @@ "type": "Boxed" } }, + "needs_extend_lifetime": false, "ownership_mode": "Ref" } ], @@ -232,6 +236,7 @@ "safe_ident": "my_struct", "type": "StructRef" }, + "owner_ty_raw": "MyStruct", "trait_def": null } }, @@ -275,6 +280,7 @@ "safe_ident": "my_struct", "type": "StructRef" }, + "owner_ty_raw": "MyStruct", "trait_def": null } }, diff --git a/frb_codegen/test_fixtures/library/codegen/parser/mod/non_qualified_names/expect_mir.json b/frb_codegen/test_fixtures/library/codegen/parser/mod/non_qualified_names/expect_mir.json index 91fe3d0b6d..87c1930e1e 100644 --- a/frb_codegen/test_fixtures/library/codegen/parser/mod/non_qualified_names/expect_mir.json +++ b/frb_codegen/test_fixtures/library/codegen/parser/mod/non_qualified_names/expect_mir.json @@ -38,6 +38,7 @@ "type": "Delegate" } }, + "needs_extend_lifetime": false, "ownership_mode": "Owned" }, { @@ -59,6 +60,7 @@ "type": "Delegate" } }, + "needs_extend_lifetime": false, "ownership_mode": "Owned" } ], diff --git a/frb_codegen/test_fixtures/library/codegen/parser/mod/qualified_names/expect_mir.json b/frb_codegen/test_fixtures/library/codegen/parser/mod/qualified_names/expect_mir.json index 1693d13170..86d2ed977e 100644 --- a/frb_codegen/test_fixtures/library/codegen/parser/mod/qualified_names/expect_mir.json +++ b/frb_codegen/test_fixtures/library/codegen/parser/mod/qualified_names/expect_mir.json @@ -38,6 +38,7 @@ "type": "Delegate" } }, + "needs_extend_lifetime": false, "ownership_mode": "Owned" }, { @@ -59,6 +60,7 @@ "type": "Delegate" } }, + "needs_extend_lifetime": false, "ownership_mode": "Owned" } ], diff --git a/frb_codegen/test_fixtures/library/codegen/parser/mod/use_type_in_another_file/expect_mir.json b/frb_codegen/test_fixtures/library/codegen/parser/mod/use_type_in_another_file/expect_mir.json index 1bbf7f9c44..c9b624b448 100644 --- a/frb_codegen/test_fixtures/library/codegen/parser/mod/use_type_in_another_file/expect_mir.json +++ b/frb_codegen/test_fixtures/library/codegen/parser/mod/use_type_in_another_file/expect_mir.json @@ -68,6 +68,7 @@ "type": "Boxed" } }, + "needs_extend_lifetime": false, "ownership_mode": "Owned" }, { @@ -97,6 +98,7 @@ "type": "Delegate" } }, + "needs_extend_lifetime": false, "ownership_mode": "Owned" } ], From 92d7164c294ede20d76090d56c67da151c1068f4 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 21:19:00 +0800 Subject: [PATCH 108/117] chore: more --- README.md | 2 +- .../codegen/generator/wire/rust/spec_generator/misc/mod.rs | 6 +++++- website/docs/index.md | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e4eef9fbbc..e09910ac01 100644 --- a/README.md +++ b/README.md @@ -327,7 +327,7 @@ More specifically, thanks for all these contributions: * [sagudev](https://github.com/sagudev): Make code generator a `lib`. Add error types. Depend on `cbindgen`. Fix LLVM paths. Update deps. Fix CI errors. * [surban](https://github.com/surban): Support unit return type. Skip unresolvable modules. Ignore prefer_const_constructors. Non-final Dart fields. * [Roms1383](https://github.com/Roms1383): Fix build_runner calling bug. Remove global `ffigen` dependency. Improve version check. Fix enum name-variant conflicts. Support Chrono date time and UUID types. Migrate to Rust 1.64 workspace. Update and refactor CI. Update header comments. Code cleanup. -* [dbsxdbsx](https://github.com/dbsxdbsx): Allow generating multiple Rust and Dart files. Fix lint. Update doc. Add logging. +* [dbsxdbsx](https://github.com/dbsxdbsx): Allow generating multiple Rust and Dart files. Fix lint. Update doc. Add logging. Loosen config. Prefix methods. * [GregoryConrad](https://github.com/GregoryConrad): Add doc to setup frb inside a Dart/Flutter library. * [huang12zheng](https://github.com/huang12zheng): Support type aliases and nested ones. Tweak code generation. Fix rust_build_and_test on Mac. Improve CI logic and cache. Remove bridge field in model. * [trobanga](https://github.com/trobanga): Add support for `[T;N]` structs. Add `usize` support. Add a cmd argument. Separate dart tests. Fix fallible list case. Fix test compile. Fix Result + RustAutoOpaque. diff --git a/frb_codegen/src/library/codegen/generator/wire/rust/spec_generator/misc/mod.rs b/frb_codegen/src/library/codegen/generator/wire/rust/spec_generator/misc/mod.rs index eb0348f770..ace306c602 100644 --- a/frb_codegen/src/library/codegen/generator/wire/rust/spec_generator/misc/mod.rs +++ b/frb_codegen/src/library/codegen/generator/wire/rust/spec_generator/misc/mod.rs @@ -91,7 +91,11 @@ clippy::let_and_return, clippy::too_many_arguments, clippy::match_single_binding, clippy::clone_on_copy, -clippy::let_unit_value +clippy::let_unit_value, +clippy::deref_addrof, +clippy::explicit_auto_deref, +clippy::borrow_deref_ref, +clippy::needless_borrow )]"#; fn generate_imports( diff --git a/website/docs/index.md b/website/docs/index.md index 5bb556ce94..287a169aca 100644 --- a/website/docs/index.md +++ b/website/docs/index.md @@ -334,7 +334,7 @@ More specifically, thanks for all these contributions: * [sagudev](https://github.com/sagudev): Make code generator a `lib`. Add error types. Depend on `cbindgen`. Fix LLVM paths. Update deps. Fix CI errors. * [surban](https://github.com/surban): Support unit return type. Skip unresolvable modules. Ignore prefer_const_constructors. Non-final Dart fields. * [Roms1383](https://github.com/Roms1383): Fix build_runner calling bug. Remove global `ffigen` dependency. Improve version check. Fix enum name-variant conflicts. Support Chrono date time and UUID types. Migrate to Rust 1.64 workspace. Update and refactor CI. Update header comments. Code cleanup. -* [dbsxdbsx](https://github.com/dbsxdbsx): Allow generating multiple Rust and Dart files. Fix lint. Update doc. Add logging. +* [dbsxdbsx](https://github.com/dbsxdbsx): Allow generating multiple Rust and Dart files. Fix lint. Update doc. Add logging. Loosen config. Prefix methods. * [GregoryConrad](https://github.com/GregoryConrad): Add doc to setup frb inside a Dart/Flutter library. * [huang12zheng](https://github.com/huang12zheng): Support type aliases and nested ones. Tweak code generation. Fix rust_build_and_test on Mac. Improve CI logic and cache. Remove bridge field in model. * [trobanga](https://github.com/trobanga): Add support for `[T;N]` structs. Add `usize` support. Add a cmd argument. Separate dart tests. Fix fallible list case. Fix test compile. Fix Result + RustAutoOpaque. From 19cdd22d35fe1eed8e31014de110cd645e7707f9 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 21:30:08 +0800 Subject: [PATCH 109/117] chore: codegen --- .../REPLACE_ME_RUST_CRATE_DIR/src/frb_generated.rs | 6 +++++- frb_example/dart_build_rs/rust/src/frb_generated.rs | 6 +++++- frb_example/dart_minimal/rust/src/frb_generated.rs | 6 +++++- frb_example/deliberate_bad/rust/src/frb_generated.rs | 6 +++++- frb_example/flutter_via_create/rust/src/frb_generated.rs | 6 +++++- frb_example/flutter_via_integrate/rust/src/frb_generated.rs | 6 +++++- frb_example/gallery/rust/src/frb_generated.rs | 6 +++++- frb_example/integrate_third_party/rust/src/frb_generated.rs | 6 +++++- frb_example/pure_dart/rust/src/frb_generated.rs | 6 +++++- frb_example/pure_dart_pde/rust/src/frb_generated.rs | 6 +++++- 10 files changed, 50 insertions(+), 10 deletions(-) diff --git a/frb_codegen/assets/integration_template/REPLACE_ME_RUST_CRATE_DIR/src/frb_generated.rs b/frb_codegen/assets/integration_template/REPLACE_ME_RUST_CRATE_DIR/src/frb_generated.rs index f2607c783a..cc31ee53a4 100644 --- a/frb_codegen/assets/integration_template/REPLACE_ME_RUST_CRATE_DIR/src/frb_generated.rs +++ b/frb_codegen/assets/integration_template/REPLACE_ME_RUST_CRATE_DIR/src/frb_generated.rs @@ -16,7 +16,11 @@ clippy::too_many_arguments, clippy::match_single_binding, clippy::clone_on_copy, - clippy::let_unit_value + clippy::let_unit_value, + clippy::deref_addrof, + clippy::explicit_auto_deref, + clippy::borrow_deref_ref, + clippy::needless_borrow )] // Section: imports diff --git a/frb_example/dart_build_rs/rust/src/frb_generated.rs b/frb_example/dart_build_rs/rust/src/frb_generated.rs index c7b3aefb31..fbb19e1e61 100644 --- a/frb_example/dart_build_rs/rust/src/frb_generated.rs +++ b/frb_example/dart_build_rs/rust/src/frb_generated.rs @@ -16,7 +16,11 @@ clippy::too_many_arguments, clippy::match_single_binding, clippy::clone_on_copy, - clippy::let_unit_value + clippy::let_unit_value, + clippy::deref_addrof, + clippy::explicit_auto_deref, + clippy::borrow_deref_ref, + clippy::needless_borrow )] // Section: imports diff --git a/frb_example/dart_minimal/rust/src/frb_generated.rs b/frb_example/dart_minimal/rust/src/frb_generated.rs index c7b3aefb31..fbb19e1e61 100644 --- a/frb_example/dart_minimal/rust/src/frb_generated.rs +++ b/frb_example/dart_minimal/rust/src/frb_generated.rs @@ -16,7 +16,11 @@ clippy::too_many_arguments, clippy::match_single_binding, clippy::clone_on_copy, - clippy::let_unit_value + clippy::let_unit_value, + clippy::deref_addrof, + clippy::explicit_auto_deref, + clippy::borrow_deref_ref, + clippy::needless_borrow )] // Section: imports diff --git a/frb_example/deliberate_bad/rust/src/frb_generated.rs b/frb_example/deliberate_bad/rust/src/frb_generated.rs index f100d59bf2..b4848cebaf 100644 --- a/frb_example/deliberate_bad/rust/src/frb_generated.rs +++ b/frb_example/deliberate_bad/rust/src/frb_generated.rs @@ -16,7 +16,11 @@ clippy::too_many_arguments, clippy::match_single_binding, clippy::clone_on_copy, - clippy::let_unit_value + clippy::let_unit_value, + clippy::deref_addrof, + clippy::explicit_auto_deref, + clippy::borrow_deref_ref, + clippy::needless_borrow )] // Section: imports diff --git a/frb_example/flutter_via_create/rust/src/frb_generated.rs b/frb_example/flutter_via_create/rust/src/frb_generated.rs index 840be6a489..328773ebc3 100644 --- a/frb_example/flutter_via_create/rust/src/frb_generated.rs +++ b/frb_example/flutter_via_create/rust/src/frb_generated.rs @@ -16,7 +16,11 @@ clippy::too_many_arguments, clippy::match_single_binding, clippy::clone_on_copy, - clippy::let_unit_value + clippy::let_unit_value, + clippy::deref_addrof, + clippy::explicit_auto_deref, + clippy::borrow_deref_ref, + clippy::needless_borrow )] // Section: imports diff --git a/frb_example/flutter_via_integrate/rust/src/frb_generated.rs b/frb_example/flutter_via_integrate/rust/src/frb_generated.rs index 840be6a489..328773ebc3 100644 --- a/frb_example/flutter_via_integrate/rust/src/frb_generated.rs +++ b/frb_example/flutter_via_integrate/rust/src/frb_generated.rs @@ -16,7 +16,11 @@ clippy::too_many_arguments, clippy::match_single_binding, clippy::clone_on_copy, - clippy::let_unit_value + clippy::let_unit_value, + clippy::deref_addrof, + clippy::explicit_auto_deref, + clippy::borrow_deref_ref, + clippy::needless_borrow )] // Section: imports diff --git a/frb_example/gallery/rust/src/frb_generated.rs b/frb_example/gallery/rust/src/frb_generated.rs index f3a14ec80d..a40a956348 100644 --- a/frb_example/gallery/rust/src/frb_generated.rs +++ b/frb_example/gallery/rust/src/frb_generated.rs @@ -16,7 +16,11 @@ clippy::too_many_arguments, clippy::match_single_binding, clippy::clone_on_copy, - clippy::let_unit_value + clippy::let_unit_value, + clippy::deref_addrof, + clippy::explicit_auto_deref, + clippy::borrow_deref_ref, + clippy::needless_borrow )] // Section: imports diff --git a/frb_example/integrate_third_party/rust/src/frb_generated.rs b/frb_example/integrate_third_party/rust/src/frb_generated.rs index 55c1505456..57ebaf7d43 100644 --- a/frb_example/integrate_third_party/rust/src/frb_generated.rs +++ b/frb_example/integrate_third_party/rust/src/frb_generated.rs @@ -16,7 +16,11 @@ clippy::too_many_arguments, clippy::match_single_binding, clippy::clone_on_copy, - clippy::let_unit_value + clippy::let_unit_value, + clippy::deref_addrof, + clippy::explicit_auto_deref, + clippy::borrow_deref_ref, + clippy::needless_borrow )] // Section: imports diff --git a/frb_example/pure_dart/rust/src/frb_generated.rs b/frb_example/pure_dart/rust/src/frb_generated.rs index c58b52b1c3..1d6a7cb037 100644 --- a/frb_example/pure_dart/rust/src/frb_generated.rs +++ b/frb_example/pure_dart/rust/src/frb_generated.rs @@ -16,7 +16,11 @@ clippy::too_many_arguments, clippy::match_single_binding, clippy::clone_on_copy, - clippy::let_unit_value + clippy::let_unit_value, + clippy::deref_addrof, + clippy::explicit_auto_deref, + clippy::borrow_deref_ref, + clippy::needless_borrow )] // Section: imports diff --git a/frb_example/pure_dart_pde/rust/src/frb_generated.rs b/frb_example/pure_dart_pde/rust/src/frb_generated.rs index 3fa7cae4b1..3361c3f28c 100644 --- a/frb_example/pure_dart_pde/rust/src/frb_generated.rs +++ b/frb_example/pure_dart_pde/rust/src/frb_generated.rs @@ -16,7 +16,11 @@ clippy::too_many_arguments, clippy::match_single_binding, clippy::clone_on_copy, - clippy::let_unit_value + clippy::let_unit_value, + clippy::deref_addrof, + clippy::explicit_auto_deref, + clippy::borrow_deref_ref, + clippy::needless_borrow )] // Section: imports From 5de8be354746029c904b817c3eae2646c349e8a2 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 22:16:05 +0800 Subject: [PATCH 110/117] chore: demo --- .../dart_minimal/flutter_rust_bridge.yaml | 2 +- .../lib/src/rust/api/minimal.dart | 10 + .../lib/src/rust/frb_generated.dart | 296 +++++++++++++++++- .../lib/src/rust/frb_generated.io.dart | 157 ++++++++++ .../lib/src/rust/frb_generated.web.dart | 135 +++++++- .../dart_minimal/rust/src/api/minimal.rs | 18 ++ .../dart_minimal/rust/src/frb_generated.io.rs | 33 ++ .../dart_minimal/rust/src/frb_generated.rs | 228 +++++++++++++- .../rust/src/frb_generated.web.rs | 33 ++ .../dart_minimal/test/minimal_test.dart | 7 + 10 files changed, 911 insertions(+), 8 deletions(-) diff --git a/frb_example/dart_minimal/flutter_rust_bridge.yaml b/frb_example/dart_minimal/flutter_rust_bridge.yaml index f98e28e477..3a8994a230 100644 --- a/frb_example/dart_minimal/flutter_rust_bridge.yaml +++ b/frb_example/dart_minimal/flutter_rust_bridge.yaml @@ -7,5 +7,5 @@ local: true # TODO temp #full_dep: true -#enable_lifetime: true +enable_lifetime: true #stop_on_error: true diff --git a/frb_example/dart_minimal/lib/src/rust/api/minimal.dart b/frb_example/dart_minimal/lib/src/rust/api/minimal.dart index 6aa0ea1da5..d13e8c2dfb 100644 --- a/frb_example/dart_minimal/lib/src/rust/api/minimal.dart +++ b/frb_example/dart_minimal/lib/src/rust/api/minimal.dart @@ -8,3 +8,13 @@ import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; Future minimalAdder({required int a, required int b}) => RustLib.instance.api.crateApiMinimalMinimalAdder(a: a, b: b); + +// Rust type: RustOpaqueMoi> +abstract class Foo implements RustOpaqueInterface { + Future computeBar(); + + factory Foo() => RustLib.instance.api.crateApiMinimalFooNew(); +} + +// Rust type: RustOpaqueMoi >>> +abstract class Bar implements RustOpaqueInterface {} diff --git a/frb_example/dart_minimal/lib/src/rust/frb_generated.dart b/frb_example/dart_minimal/lib/src/rust/frb_generated.dart index 2efde2003e..287c35848c 100644 --- a/frb_example/dart_minimal/lib/src/rust/frb_generated.dart +++ b/frb_example/dart_minimal/lib/src/rust/frb_generated.dart @@ -57,7 +57,7 @@ class RustLib extends BaseEntrypoint { String get codegenVersion => '2.0.0-dev.39'; @override - int get rustContentHash => -2119384465; + int get rustContentHash => -1862032358; static const kDefaultExternalLibraryLoaderConfig = ExternalLibraryLoaderConfig( @@ -68,9 +68,25 @@ class RustLib extends BaseEntrypoint { } abstract class RustLibApi extends BaseApi { + Future crateApiMinimalFooComputeBar({required Foo that}); + + Foo crateApiMinimalFooNew(); + Future crateApiMinimalInitApp(); Future crateApiMinimalMinimalAdder({required int a, required int b}); + + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_Foo; + + RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_Foo; + + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_FooPtr; + + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_Bar; + + RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_Bar; + + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_BarPtr; } class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { @@ -82,13 +98,63 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { }); @override - Future crateApiMinimalInitApp() { + Future crateApiMinimalFooComputeBar({required Foo that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + that, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1, port: port_); }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBarstatic, + decodeErrorData: null, + ), + constMeta: kCrateApiMinimalFooComputeBarConstMeta, + argValues: [that], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiMinimalFooComputeBarConstMeta => + const TaskConstMeta( + debugName: "Foo_compute_bar", + argNames: ["that"], + ); + + @override + Foo crateApiMinimalFooNew() { + return handler.executeSync(SyncTask( + callFfi: () { + final serializer = SseSerializer(generalizedFrbRustBinding); + return pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 2)!; + }, + codec: SseCodec( + decodeSuccessData: + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo, + decodeErrorData: null, + ), + constMeta: kCrateApiMinimalFooNewConstMeta, + argValues: [], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiMinimalFooNewConstMeta => const TaskConstMeta( + debugName: "Foo_new", + argNames: [], + ); + + @override + Future crateApiMinimalInitApp() { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 3, port: port_); + }, codec: SseCodec( decodeSuccessData: sse_decode_unit, decodeErrorData: null, @@ -112,7 +178,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_i_32(a, serializer); sse_encode_i_32(b, serializer); pdeCallFfi(generalizedFrbRustBinding, serializer, - funcId: 2, port: port_); + funcId: 4, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_i_32, @@ -130,6 +196,62 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { argNames: ["a", "b"], ); + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_Foo => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo; + + RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_Foo => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo; + + RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_Bar => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic; + + RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_Bar => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic; + + @protected + Bar dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic( + raw); + } + + @protected + Foo dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return FooImpl.frbInternalDcoDecode(raw as List); + } + + @protected + Foo dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return FooImpl.frbInternalDcoDecode(raw as List); + } + + @protected + Bar dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBarstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + throw UnimplementedError( + 'Not implemented in this codec, please use the other one'); + } + + @protected + Foo dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return FooImpl.frbInternalDcoDecode(raw as List); + } + + @protected + Bar dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return BarImpl.frbInternalDcoDecode(raw as List); + } + @protected int dco_decode_i_32(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs @@ -142,6 +264,64 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return; } + @protected + BigInt dco_decode_usize(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dcoDecodeU64(raw); + } + + @protected + Bar sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic( + deserializer); + return inner; + } + + @protected + Foo sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return FooImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + Foo sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return FooImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + Bar sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBarstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var inner = + sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic( + deserializer); + return inner; + } + + @protected + Foo sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return FooImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + + @protected + Bar sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return BarImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + } + @protected int sse_decode_i_32(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -153,12 +333,72 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { // Codec=Sse (Serialization based), see doc to use other codecs } + @protected + BigInt sse_decode_usize(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return deserializer.buffer.getBigUint64(); + } + @protected bool sse_decode_bool(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs return deserializer.buffer.getUint8() != 0; } + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic( + Bar self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic( + self, serializer); + } + + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + Foo self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as FooImpl).frbInternalSseEncode(move: true), serializer); + } + + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + Foo self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as FooImpl).frbInternalSseEncode(move: false), serializer); + } + + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBarstatic( + Bar self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic( + self, serializer); + } + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + Foo self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as FooImpl).frbInternalSseEncode(move: null), serializer); + } + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic( + Bar self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_usize( + (self as BarImpl).frbInternalSseEncode(move: null), serializer); + } + @protected void sse_encode_i_32(int self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -170,9 +410,59 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { // Codec=Sse (Serialization based), see doc to use other codecs } + @protected + void sse_encode_usize(BigInt self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + serializer.buffer.putBigUint64(self); + } + @protected void sse_encode_bool(bool self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs serializer.buffer.putUint8(self ? 1 : 0); } } + +@sealed +class BarImpl extends RustOpaque implements Bar { + // Not to be used by end users + BarImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + BarImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + RustLib.instance.api.rust_arc_increment_strong_count_Bar, + rustArcDecrementStrongCount: + RustLib.instance.api.rust_arc_decrement_strong_count_Bar, + rustArcDecrementStrongCountPtr: + RustLib.instance.api.rust_arc_decrement_strong_count_BarPtr, + ); +} + +@sealed +class FooImpl extends RustOpaque implements Foo { + // Not to be used by end users + FooImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + FooImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: + RustLib.instance.api.rust_arc_increment_strong_count_Foo, + rustArcDecrementStrongCount: + RustLib.instance.api.rust_arc_decrement_strong_count_Foo, + rustArcDecrementStrongCountPtr: + RustLib.instance.api.rust_arc_decrement_strong_count_FooPtr, + ); + + Future computeBar() => RustLib.instance.api.crateApiMinimalFooComputeBar( + that: this, + ); +} diff --git a/frb_example/dart_minimal/lib/src/rust/frb_generated.io.dart b/frb_example/dart_minimal/lib/src/rust/frb_generated.io.dart index 068e5b3ab3..66dcd02d4a 100644 --- a/frb_example/dart_minimal/lib/src/rust/frb_generated.io.dart +++ b/frb_example/dart_minimal/lib/src/rust/frb_generated.io.dart @@ -18,27 +18,120 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { required super.portManager, }); + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_FooPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFooPtr; + + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_BarPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstaticPtr; + + @protected + Bar dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic( + dynamic raw); + + @protected + Foo dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + dynamic raw); + + @protected + Foo dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + dynamic raw); + + @protected + Bar dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBarstatic( + dynamic raw); + + @protected + Foo dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + dynamic raw); + + @protected + Bar dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic( + dynamic raw); + @protected int dco_decode_i_32(dynamic raw); @protected void dco_decode_unit(dynamic raw); + @protected + BigInt dco_decode_usize(dynamic raw); + + @protected + Bar sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic( + SseDeserializer deserializer); + + @protected + Foo sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + SseDeserializer deserializer); + + @protected + Foo sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + SseDeserializer deserializer); + + @protected + Bar sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBarstatic( + SseDeserializer deserializer); + + @protected + Foo sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + SseDeserializer deserializer); + + @protected + Bar sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic( + SseDeserializer deserializer); + @protected int sse_decode_i_32(SseDeserializer deserializer); @protected void sse_decode_unit(SseDeserializer deserializer); + @protected + BigInt sse_decode_usize(SseDeserializer deserializer); + @protected bool sse_decode_bool(SseDeserializer deserializer); + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic( + Bar self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + Foo self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + Foo self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBarstatic( + Bar self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + Foo self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic( + Bar self, SseSerializer serializer); + @protected void sse_encode_i_32(int self, SseSerializer serializer); @protected void sse_encode_unit(void self, SseSerializer serializer); + @protected + void sse_encode_usize(BigInt self, SseSerializer serializer); + @protected void sse_encode_bool(bool self, SseSerializer serializer); } @@ -56,4 +149,68 @@ class RustLibWire implements BaseWire { /// The symbols are looked up in [dynamicLibrary]. RustLibWire(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; + + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFooPtr = + _lookup)>>( + 'frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFooPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFooPtr = + _lookup)>>( + 'frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFooPtr + .asFunction)>(); + + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic( + ffi.Pointer ptr, + ) { + return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic( + ptr, + ); + } + + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstaticPtr = + _lookup)>>( + 'frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic'); + late final _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic = + _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstaticPtr + .asFunction)>(); + + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic( + ffi.Pointer ptr, + ) { + return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic( + ptr, + ); + } + + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstaticPtr = + _lookup)>>( + 'frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic'); + late final _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic = + _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstaticPtr + .asFunction)>(); } diff --git a/frb_example/dart_minimal/lib/src/rust/frb_generated.web.dart b/frb_example/dart_minimal/lib/src/rust/frb_generated.web.dart index 11c1f0b387..1c084d6a10 100644 --- a/frb_example/dart_minimal/lib/src/rust/frb_generated.web.dart +++ b/frb_example/dart_minimal/lib/src/rust/frb_generated.web.dart @@ -20,27 +20,120 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { required super.portManager, }); + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_FooPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo; + + CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_BarPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic; + + @protected + Bar dco_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic( + dynamic raw); + + @protected + Foo dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + dynamic raw); + + @protected + Foo dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + dynamic raw); + + @protected + Bar dco_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBarstatic( + dynamic raw); + + @protected + Foo dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + dynamic raw); + + @protected + Bar dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic( + dynamic raw); + @protected int dco_decode_i_32(dynamic raw); @protected void dco_decode_unit(dynamic raw); + @protected + BigInt dco_decode_usize(dynamic raw); + + @protected + Bar sse_decode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic( + SseDeserializer deserializer); + + @protected + Foo sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + SseDeserializer deserializer); + + @protected + Foo sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + SseDeserializer deserializer); + + @protected + Bar sse_decode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBarstatic( + SseDeserializer deserializer); + + @protected + Foo sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + SseDeserializer deserializer); + + @protected + Bar sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic( + SseDeserializer deserializer); + @protected int sse_decode_i_32(SseDeserializer deserializer); @protected void sse_decode_unit(SseDeserializer deserializer); + @protected + BigInt sse_decode_usize(SseDeserializer deserializer); + @protected bool sse_decode_bool(SseDeserializer deserializer); + @protected + void + sse_encode_AutoExplicit_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic( + Bar self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + Foo self, SseSerializer serializer); + + @protected + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + Foo self, SseSerializer serializer); + + @protected + void + sse_encode_Lifetimeable_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerBarstatic( + Bar self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + Foo self, SseSerializer serializer); + + @protected + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic( + Bar self, SseSerializer serializer); + @protected void sse_encode_i_32(int self, SseSerializer serializer); @protected void sse_encode_unit(void self, SseSerializer serializer); + @protected + void sse_encode_usize(BigInt self, SseSerializer serializer); + @protected void sse_encode_bool(bool self, SseSerializer serializer); } @@ -49,6 +142,30 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { class RustLibWire implements BaseWire { RustLibWire.fromExternalLibrary(ExternalLibrary lib); + + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + ptr); + + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic( + ptr); + + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic( + ptr); } @JS('wasm_bindgen') @@ -56,4 +173,20 @@ external RustLibWasmModule get wasmModule; @JS() @anonymous -extension type RustLibWasmModule._(JSObject _) implements JSObject {} +extension type RustLibWasmModule._(JSObject _) implements JSObject { + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + int ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + int ptr); + + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic( + int ptr); + + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic( + int ptr); +} diff --git a/frb_example/dart_minimal/rust/src/api/minimal.rs b/frb_example/dart_minimal/rust/src/api/minimal.rs index 517e29973f..82d76e8896 100644 --- a/frb_example/dart_minimal/rust/src/api/minimal.rs +++ b/frb_example/dart_minimal/rust/src/api/minimal.rs @@ -8,3 +8,21 @@ pub fn init_app() { pub fn minimal_adder(a: i32, b: i32) -> i32 { a + b } + +#[frb(opaque)] +pub struct Foo(String); + +#[frb(opaque)] +pub struct Bar<'a>(&'a Foo); + +#[allow(clippy::needless_lifetimes)] +impl Foo { + #[frb(sync)] + pub fn new() -> Self { + Self("hello".to_owned()) + } + + pub fn compute_bar<'a>(&'a self) -> Bar<'a> { + Bar(self) + } +} diff --git a/frb_example/dart_minimal/rust/src/frb_generated.io.rs b/frb_example/dart_minimal/rust/src/frb_generated.io.rs index ae9a0b18ac..5ff074da89 100644 --- a/frb_example/dart_minimal/rust/src/frb_generated.io.rs +++ b/frb_example/dart_minimal/rust/src/frb_generated.io.rs @@ -4,6 +4,7 @@ // Section: imports use super::*; +use crate::api::minimal::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; @@ -11,3 +12,35 @@ use flutter_rust_bridge::{Handler, IntoIntoDart}; // Section: boilerplate flutter_rust_bridge::frb_generated_boilerplate_io!(); + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + ptr: *const std::ffi::c_void, +) { + MoiArc::>::increment_strong_count( + ptr as _, + ); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + ptr: *const std::ffi::c_void, +) { + MoiArc::>::decrement_strong_count( + ptr as _, + ); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc:: >>>::increment_strong_count(ptr as _); +} + +#[no_mangle] +pub extern "C" fn frbgen_frb_example_dart_minimal_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc:: >>>::decrement_strong_count(ptr as _); +} diff --git a/frb_example/dart_minimal/rust/src/frb_generated.rs b/frb_example/dart_minimal/rust/src/frb_generated.rs index fbb19e1e61..cd405e6f72 100644 --- a/frb_example/dart_minimal/rust/src/frb_generated.rs +++ b/frb_example/dart_minimal/rust/src/frb_generated.rs @@ -25,6 +25,7 @@ // Section: imports +use crate::api::minimal::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; use flutter_rust_bridge::for_generated::{transform_result_dco, Lifetimeable, Lockable}; use flutter_rust_bridge::{Handler, IntoIntoDart}; @@ -37,7 +38,7 @@ flutter_rust_bridge::frb_generated_boilerplate!( default_rust_auto_opaque = RustAutoOpaqueMoi, ); pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.0.0-dev.39"; -pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = -2119384465; +pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = -1862032358; // Section: executor @@ -45,6 +46,102 @@ flutter_rust_bridge::frb_generated_default_handler!(); // Section: wire_funcs +fn wire__crate__api__minimal__Foo_compute_bar_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "Foo_compute_bar", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let message = unsafe { + flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire( + ptr_, + rust_vec_len_, + data_len_, + ) + }; + let mut deserializer = + flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = , + >>::sse_decode(&mut deserializer); + deserializer.end(); + move |context| { + transform_result_sse::<_, ()>((move || { + let api_that_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that) + }; + let mut api_that_guard = None; + let decode_indices_ = + flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ + flutter_rust_bridge::for_generated::LockableOrderInfo::new( + &api_that, 0, false, + ), + ]); + for i in decode_indices_ { + match i { + 0 => { + api_that_guard = + Some(api_that_illegal_static_ref.lockable_decode_sync_ref()) + } + _ => unreachable!(), + } + } + let api_that_guard = api_that_guard.unwrap(); + let api_that_guard = Arc::new(api_that_guard); + let api_that_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime( + &api_that_guard, + ) + }; + let output_ok = Result::<_, ()>::Ok(crate::api::minimal::Foo::compute_bar( + &*api_that_guard_illegal_static_ref, + ))?; + let output_ok = RustAutoOpaque::new(Lifetimeable::new( + output_ok, + vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())], + )); + Ok(output_ok) + })()) + } + }, + ) +} +fn wire__crate__api__minimal__Foo_new_impl( + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_sync::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "Foo_new", + port: None, + mode: flutter_rust_bridge::for_generated::FfiCallMode::Sync, + }, + move || { + let message = unsafe { + flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire( + ptr_, + rust_vec_len_, + data_len_, + ) + }; + let mut deserializer = + flutter_rust_bridge::for_generated::SseDeserializer::new(message); + deserializer.end(); + transform_result_sse::<_, ()>((move || { + let output_ok = Result::<_, ()>::Ok(crate::api::minimal::Foo::new())?; + Ok(output_ok) + })()) + }, + ) +} fn wire__crate__api__minimal__init_app_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, @@ -115,8 +212,55 @@ fn wire__crate__api__minimal__minimal_adder_impl( ) } +// Section: related_funcs + +flutter_rust_bridge::frb_generated_moi_arc_impl_value!( + flutter_rust_bridge::for_generated::RustAutoOpaqueInner +); +flutter_rust_bridge::frb_generated_moi_arc_impl_value!( + flutter_rust_bridge::for_generated::RustAutoOpaqueInner>> +); + // Section: dart2rust +impl SseDecode for RustAutoOpaqueMoi>> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = >>, + >>::sse_decode(deserializer); + return flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_decode(inner); + } +} + +impl SseDecode for Foo { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = >>::sse_decode(deserializer); + return flutter_rust_bridge::for_generated::rust_auto_opaque_decode_owned(inner); + } +} + +impl SseDecode for RustOpaqueMoi> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return decode_rust_opaque_moi(inner); + } +} + +impl SseDecode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner>>, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut inner = ::sse_decode(deserializer); + return decode_rust_opaque_moi(inner); + } +} + impl SseDecode for i32 { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -129,6 +273,13 @@ impl SseDecode for () { fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self {} } +impl SseDecode for usize { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + deserializer.cursor.read_u64::().unwrap() as _ + } +} + impl SseDecode for bool { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -145,8 +296,9 @@ fn pde_ffi_dispatcher_primary_impl( ) { // Codec=Pde (Serialization + dispatch), see doc to use other codecs match func_id { - 1 => wire__crate__api__minimal__init_app_impl(port, ptr, rust_vec_len, data_len), - 2 => wire__crate__api__minimal__minimal_adder_impl(port, ptr, rust_vec_len, data_len), + 1 => wire__crate__api__minimal__Foo_compute_bar_impl(port, ptr, rust_vec_len, data_len), + 3 => wire__crate__api__minimal__init_app_impl(port, ptr, rust_vec_len, data_len), + 4 => wire__crate__api__minimal__minimal_adder_impl(port, ptr, rust_vec_len, data_len), _ => unreachable!(), } } @@ -159,12 +311,72 @@ fn pde_ffi_dispatcher_sync_impl( ) -> flutter_rust_bridge::for_generated::WireSyncRust2DartSse { // Codec=Pde (Serialization + dispatch), see doc to use other codecs match func_id { + 2 => wire__crate__api__minimal__Foo_new_impl(ptr, rust_vec_len, data_len), _ => unreachable!(), } } // Section: rust2dart +// Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for FrbWrapper { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self.0) + .into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper {} + +impl flutter_rust_bridge::IntoIntoDart> for Foo { + fn into_into_dart(self) -> FrbWrapper { + self.into() + } +} + +impl SseEncode for RustAutoOpaqueMoi>> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >>, + >>::sse_encode( + flutter_rust_bridge::for_generated::rust_auto_opaque_explicit_encode(self), + serializer, + ); + } +} + +impl SseEncode for Foo { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + >>::sse_encode( + flutter_rust_bridge::for_generated::rust_auto_opaque_encode::<_, MoiArc<_>>(self), + serializer, + ); + } +} + +impl SseEncode for RustOpaqueMoi> { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + +impl SseEncode + for RustOpaqueMoi< + flutter_rust_bridge::for_generated::RustAutoOpaqueInner>>, + > +{ + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + let (ptr, size) = self.sse_encode_raw(); + ::sse_encode(ptr, serializer); + ::sse_encode(size, serializer); + } +} + impl SseEncode for i32 { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -177,6 +389,16 @@ impl SseEncode for () { fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) {} } +impl SseEncode for usize { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + serializer + .cursor + .write_u64::(self as _) + .unwrap(); + } +} + impl SseEncode for bool { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { diff --git a/frb_example/dart_minimal/rust/src/frb_generated.web.rs b/frb_example/dart_minimal/rust/src/frb_generated.web.rs index 9b5319b77a..86c328d989 100644 --- a/frb_example/dart_minimal/rust/src/frb_generated.web.rs +++ b/frb_example/dart_minimal/rust/src/frb_generated.web.rs @@ -4,6 +4,7 @@ // Section: imports use super::*; +use crate::api::minimal::*; use flutter_rust_bridge::for_generated::byteorder::{NativeEndian, ReadBytesExt, WriteBytesExt}; use flutter_rust_bridge::for_generated::wasm_bindgen; use flutter_rust_bridge::for_generated::wasm_bindgen::prelude::*; @@ -13,3 +14,35 @@ use flutter_rust_bridge::{Handler, IntoIntoDart}; // Section: boilerplate flutter_rust_bridge::frb_generated_boilerplate_web!(); + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + ptr: *const std::ffi::c_void, +) { + MoiArc::>::increment_strong_count( + ptr as _, + ); +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerFoo( + ptr: *const std::ffi::c_void, +) { + MoiArc::>::decrement_strong_count( + ptr as _, + ); +} + +#[wasm_bindgen] +pub fn rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc:: >>>::increment_strong_count(ptr as _); +} + +#[wasm_bindgen] +pub fn rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLifetimeableBarstatic( + ptr: *const std::ffi::c_void, +) { + MoiArc:: >>>::decrement_strong_count(ptr as _); +} diff --git a/frb_example/dart_minimal/test/minimal_test.dart b/frb_example/dart_minimal/test/minimal_test.dart index 9592272552..97f7a2a14f 100644 --- a/frb_example/dart_minimal/test/minimal_test.dart +++ b/frb_example/dart_minimal/test/minimal_test.dart @@ -16,4 +16,11 @@ Future main() async { print('Action: Call rust (after)'); }); print('Action: Configure tests (end)'); + + test('temp', () async { + final foo = Foo(); + final bar = await foo.computeBar(); + foo.dispose(); + bar.dispose(); + }); } From 9c20f880f71b5e48feef5537757f74b408333b49 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 22:19:02 +0800 Subject: [PATCH 111/117] feat: more --- frb_rust/src/lifetimeable/dependency.rs | 18 ++++++++++++++++++ frb_rust/src/lifetimeable/mod.rs | 6 ++++-- 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 frb_rust/src/lifetimeable/dependency.rs diff --git a/frb_rust/src/lifetimeable/dependency.rs b/frb_rust/src/lifetimeable/dependency.rs new file mode 100644 index 0000000000..f1a2ffc37e --- /dev/null +++ b/frb_rust/src/lifetimeable/dependency.rs @@ -0,0 +1,18 @@ +use std::any::Any; + +pub struct LifetimeableDependency { + // NOTE again the ordering - firstly drop guard, secondly drop lockable + #[allow(dead_code)] + guard: Box, + #[allow(dead_code)] + lockable: Box, +} + +impl LifetimeableDependency { + pub fn new_guard_lockable( + guard: Box, + lockable: Box, + ) -> Self { + Self { guard, lockable } + } +} diff --git a/frb_rust/src/lifetimeable/mod.rs b/frb_rust/src/lifetimeable/mod.rs index 8fc211029a..cd71a632c6 100644 --- a/frb_rust/src/lifetimeable/mod.rs +++ b/frb_rust/src/lifetimeable/mod.rs @@ -1,5 +1,7 @@ +mod dependency; pub(crate) mod lifetime_changer; +use crate::lifetimeable::dependency::LifetimeableDependency; use std::any::Any; use std::ops; @@ -7,11 +9,11 @@ pub struct Lifetimeable { // NOTE: The borrowed value must be *before* the dependency values to have correct *drop order* value: T, #[allow(dead_code)] - dependencies: Vec>, + dependencies: Vec, } impl Lifetimeable { - pub fn new(value: T, dependencies: Vec>) -> Self { + pub fn new(value: T, dependencies: Vec) -> Self { Self { value, dependencies, From 25a4884d18ab2c601c28e8907e726480089cbcba Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 22:20:08 +0800 Subject: [PATCH 112/117] feat: more --- .../rust/spec_generator/misc/function/lifetime.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/frb_codegen/src/library/codegen/generator/wire/rust/spec_generator/misc/function/lifetime.rs b/frb_codegen/src/library/codegen/generator/wire/rust/spec_generator/misc/function/lifetime.rs index c090ba4f1b..a697e0c0d5 100644 --- a/frb_codegen/src/library/codegen/generator/wire/rust/spec_generator/misc/function/lifetime.rs +++ b/frb_codegen/src/library/codegen/generator/wire/rust/spec_generator/misc/function/lifetime.rs @@ -69,13 +69,14 @@ pub(super) fn generate_code_postprocess_inner_output(func: &MirFunc) -> String { let dependencies = (func.inputs.iter()) .filter(|field| is_interest_field(field)) .map(get_variable_name) - .flat_map(|field_name| { - vec![ - format!("api_{field_name}"), - format!("api_{field_name}_guard"), - ] + .map(|field_name| { + format!( + "flutter_rust_bridge::for_generated::LifetimeableDependency::new_guard_lockable( + Box::new(api_{field_name}_guard.clone()), + Box::new(api_{field_name}.clone()), + )" + ) }) - .map(|var_name| format!("Box::new({var_name}.clone())")) .join(", "); format!( "let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![{dependencies}]));" From 77d4a370c4cbc51417eb14318b524a9074da42c8 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 22:20:26 +0800 Subject: [PATCH 113/117] chore: codegen --- .../dart_minimal/rust/src/frb_generated.rs | 83 ++++++------------- 1 file changed, 24 insertions(+), 59 deletions(-) diff --git a/frb_example/dart_minimal/rust/src/frb_generated.rs b/frb_example/dart_minimal/rust/src/frb_generated.rs index cd405e6f72..c8df9856d5 100644 --- a/frb_example/dart_minimal/rust/src/frb_generated.rs +++ b/frb_example/dart_minimal/rust/src/frb_generated.rs @@ -52,66 +52,31 @@ fn wire__crate__api__minimal__Foo_compute_bar_impl( rust_vec_len_: i32, data_len_: i32, ) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( - flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "Foo_compute_bar", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, - }, - move || { - let message = unsafe { - flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire( - ptr_, - rust_vec_len_, - data_len_, - ) - }; - let mut deserializer = - flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_that = , - >>::sse_decode(&mut deserializer); - deserializer.end(); - move |context| { - transform_result_sse::<_, ()>((move || { - let api_that_illegal_static_ref = unsafe { - flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that) - }; - let mut api_that_guard = None; - let decode_indices_ = - flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ - flutter_rust_bridge::for_generated::LockableOrderInfo::new( - &api_that, 0, false, - ), - ]); - for i in decode_indices_ { - match i { - 0 => { - api_that_guard = - Some(api_that_illegal_static_ref.lockable_decode_sync_ref()) - } - _ => unreachable!(), - } - } - let api_that_guard = api_that_guard.unwrap(); - let api_that_guard = Arc::new(api_that_guard); - let api_that_guard_illegal_static_ref = unsafe { - flutter_rust_bridge::for_generated::ouroboros_change_lifetime( - &api_that_guard, - ) - }; - let output_ok = Result::<_, ()>::Ok(crate::api::minimal::Foo::compute_bar( - &*api_that_guard_illegal_static_ref, - ))?; - let output_ok = RustAutoOpaque::new(Lifetimeable::new( - output_ok, - vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())], - )); - Ok(output_ok) - })()) + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "Foo_compute_bar", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_that = >>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let api_that_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that) + };let mut api_that_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_that, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_that_guard = Some(api_that_illegal_static_ref.lockable_decode_sync_ref()), + _ => unreachable!(), } - }, - ) + } + let api_that_guard = api_that_guard.unwrap(); +let api_that_guard = Arc::new(api_that_guard); + let api_that_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that_guard) + }; let output_ok = Result::<_,()>::Ok(crate::api::minimal::Foo::compute_bar(&*api_that_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![flutter_rust_bridge::for_generated::LifetimeableDependency::new_guard_lockable( + Box::new(api_that_guard.clone()), + Box::new(api_that.clone()), + )])); Ok(output_ok) + })()) + } }) } fn wire__crate__api__minimal__Foo_new_impl( ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, From e455ce2b7e2aceaaa76ee3c996feb3ec9f72cbbe Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 22:21:04 +0800 Subject: [PATCH 114/117] chore: export --- frb_rust/src/for_generated/mod.rs | 2 +- frb_rust/src/lifetimeable/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frb_rust/src/for_generated/mod.rs b/frb_rust/src/for_generated/mod.rs index a258f893b3..4417ca2944 100644 --- a/frb_rust/src/for_generated/mod.rs +++ b/frb_rust/src/for_generated/mod.rs @@ -32,7 +32,7 @@ pub use crate::handler::implementation::handler::SimpleHandler; pub use crate::lifetimeable::lifetime_changer::{ ouroboros_change_lifetime, ouroboros_change_lifetime_mut, }; -pub use crate::lifetimeable::Lifetimeable; +pub use crate::lifetimeable::{dependency::LifetimeableDependency, Lifetimeable}; #[cfg(feature = "rust-async")] pub use crate::lockable::{ base::Lockable, order::LockableOrder, order_computer::lockable_compute_decode_order, diff --git a/frb_rust/src/lifetimeable/mod.rs b/frb_rust/src/lifetimeable/mod.rs index cd71a632c6..070ba3f98d 100644 --- a/frb_rust/src/lifetimeable/mod.rs +++ b/frb_rust/src/lifetimeable/mod.rs @@ -1,4 +1,4 @@ -mod dependency; +pub(crate) mod dependency; pub(crate) mod lifetime_changer; use crate::lifetimeable::dependency::LifetimeableDependency; From ba72b973f74015df69ca2033ebd2934774cf0ad2 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 22:30:58 +0800 Subject: [PATCH 115/117] chore: codegen --- .../pure_dart/rust/src/frb_generated.rs | 146 +++++++++--------- .../pure_dart_pde/rust/src/frb_generated.rs | 146 +++++++++--------- 2 files changed, 148 insertions(+), 144 deletions(-) diff --git a/frb_example/pure_dart/rust/src/frb_generated.rs b/frb_example/pure_dart/rust/src/frb_generated.rs index 1d6a7cb037..55e9b534c7 100644 --- a/frb_example/pure_dart/rust/src/frb_generated.rs +++ b/frb_example/pure_dart/rust/src/frb_generated.rs @@ -4086,7 +4086,10 @@ let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decod let api_arg_guard = Arc::new(api_arg_guard); let api_arg_guard_illegal_static_ref = unsafe { flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtTypeWithLifetimeTwinNormal ::compute_arg_generic_lifetime_twin_normal(&*&api_arg_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_arg.clone()), Box::new(api_arg_guard.clone())])); Ok(output_ok) + }; let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtTypeWithLifetimeTwinNormal ::compute_arg_generic_lifetime_twin_normal(&*&api_arg_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![flutter_rust_bridge::for_generated::LifetimeableDependency::new_guard_lockable( + Box::new(api_arg_guard.clone()), + Box::new(api_arg.clone()), + )])); Ok(output_ok) })()) } }) } @@ -4115,7 +4118,10 @@ let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decod let api_that_guard = Arc::new(api_that_guard); let api_that_guard_illegal_static_ref = unsafe { flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtTypeWithLifetimeTwinNormal ::compute_nested_type_with_lifetime_twin_normal(&*&api_that_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) + }; let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtTypeWithLifetimeTwinNormal ::compute_nested_type_with_lifetime_twin_normal(&*&api_that_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![flutter_rust_bridge::for_generated::LifetimeableDependency::new_guard_lockable( + Box::new(api_that_guard.clone()), + Box::new(api_that.clone()), + )])); Ok(output_ok) })()) } }) } @@ -4206,7 +4212,13 @@ let api_a_guard = Arc::new(api_a_guard); };let api_b_guard = Arc::new(api_b_guard); let api_b_guard_illegal_static_ref = unsafe { flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_b_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtTypeWithMultiDepTwinNormal ::compute_with_multi_arg_having_lifetime_twin_normal(&*api_a_guard_illegal_static_ref, &*api_b_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_a.clone()), Box::new(api_a_guard.clone()), Box::new(api_b.clone()), Box::new(api_b_guard.clone())])); Ok(output_ok) + }; let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtTypeWithMultiDepTwinNormal ::compute_with_multi_arg_having_lifetime_twin_normal(&*api_a_guard_illegal_static_ref, &*api_b_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![flutter_rust_bridge::for_generated::LifetimeableDependency::new_guard_lockable( + Box::new(api_a_guard.clone()), + Box::new(api_a.clone()), + ), flutter_rust_bridge::for_generated::LifetimeableDependency::new_guard_lockable( + Box::new(api_b_guard.clone()), + Box::new(api_b.clone()), + )])); Ok(output_ok) })()) } }) } @@ -4283,7 +4295,10 @@ let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decod let api_that_guard = Arc::new(api_that_guard); let api_that_guard_illegal_static_ref = unsafe { flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtOwnedStructTwinNormal::compute_type_with_lifetime_twin_normal(&*api_that_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) + }; let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtOwnedStructTwinNormal::compute_type_with_lifetime_twin_normal(&*api_that_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![flutter_rust_bridge::for_generated::LifetimeableDependency::new_guard_lockable( + Box::new(api_that_guard.clone()), + Box::new(api_that.clone()), + )])); Ok(output_ok) })()) } }) } @@ -4317,7 +4332,10 @@ let api_unrelated_borrowed_guard = api_unrelated_borrowed_guard.unwrap(); let api_that_guard = Arc::new(api_that_guard); let api_that_guard_illegal_static_ref = unsafe { flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtOwnedStructTwinNormal::compute_with_unrelated_borrowed_arg_twin_normal(&*api_that_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) + }; let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtOwnedStructTwinNormal::compute_with_unrelated_borrowed_arg_twin_normal(&*api_that_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![flutter_rust_bridge::for_generated::LifetimeableDependency::new_guard_lockable( + Box::new(api_that_guard.clone()), + Box::new(api_that.clone()), + )])); Ok(output_ok) })()) } }) } @@ -4437,68 +4455,31 @@ fn wire__crate__api__lifetimeable__lt_compute_with_lifetime_function_twin_normal rust_vec_len_: i32, data_len_: i32, ) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( - flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "lt_compute_with_lifetime_function_twin_normal", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, - }, - move || { - let message = unsafe { - flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire( - ptr_, - rust_vec_len_, - data_len_, - ) - }; - let mut deserializer = - flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_arg = , - >>::sse_decode(&mut deserializer); - deserializer.end(); - move |context| { - transform_result_sse::<_, ()>((move || { - let api_arg_illegal_static_ref = unsafe { - flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg) - }; - let mut api_arg_guard = None; - let decode_indices_ = - flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ - flutter_rust_bridge::for_generated::LockableOrderInfo::new( - &api_arg, 0, false, - ), - ]); - for i in decode_indices_ { - match i { - 0 => { - api_arg_guard = - Some(api_arg_illegal_static_ref.lockable_decode_sync_ref()) - } - _ => unreachable!(), - } - } - let api_arg_guard = api_arg_guard.unwrap(); - let api_arg_guard = Arc::new(api_arg_guard); - let api_arg_guard_illegal_static_ref = unsafe { - flutter_rust_bridge::for_generated::ouroboros_change_lifetime( - &api_arg_guard, - ) - }; - let output_ok = Result::<_, ()>::Ok( - crate::api::lifetimeable::lt_compute_with_lifetime_function_twin_normal( - &*api_arg_guard_illegal_static_ref, - ), - )?; - let output_ok = RustAutoOpaque::new(Lifetimeable::new( - output_ok, - vec![Box::new(api_arg.clone()), Box::new(api_arg_guard.clone())], - )); - Ok(output_ok) - })()) + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "lt_compute_with_lifetime_function_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_arg = >>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let api_arg_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg) + };let mut api_arg_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_arg, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_arg_guard = Some(api_arg_illegal_static_ref.lockable_decode_sync_ref()), + _ => unreachable!(), } - }, - ) + } + let api_arg_guard = api_arg_guard.unwrap(); +let api_arg_guard = Arc::new(api_arg_guard); + let api_arg_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg_guard) + }; let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::lt_compute_with_lifetime_function_twin_normal(&*api_arg_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![flutter_rust_bridge::for_generated::LifetimeableDependency::new_guard_lockable( + Box::new(api_arg_guard.clone()), + Box::new(api_arg.clone()), + )])); Ok(output_ok) + })()) + } }) } fn wire__crate__api__map_and_set__func_hash_map_i32_i32_twin_normal_impl( port_: flutter_rust_bridge::for_generated::MessagePort, @@ -23713,7 +23694,10 @@ let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decod let api_arg_guard = Arc::new(api_arg_guard); let api_arg_guard_illegal_static_ref = unsafe { flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtTypeWithLifetimeTwinSync ::compute_arg_generic_lifetime_twin_sync(&*&api_arg_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_arg.clone()), Box::new(api_arg_guard.clone())])); Ok(output_ok) + }; let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtTypeWithLifetimeTwinSync ::compute_arg_generic_lifetime_twin_sync(&*&api_arg_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![flutter_rust_bridge::for_generated::LifetimeableDependency::new_guard_lockable( + Box::new(api_arg_guard.clone()), + Box::new(api_arg.clone()), + )])); Ok(output_ok) })()) } }) } @@ -23742,7 +23726,10 @@ let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decod let api_that_guard = Arc::new(api_that_guard); let api_that_guard_illegal_static_ref = unsafe { flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtTypeWithLifetimeTwinSync ::compute_nested_type_with_lifetime_twin_sync(&*&api_that_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) + }; let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtTypeWithLifetimeTwinSync ::compute_nested_type_with_lifetime_twin_sync(&*&api_that_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![flutter_rust_bridge::for_generated::LifetimeableDependency::new_guard_lockable( + Box::new(api_that_guard.clone()), + Box::new(api_that.clone()), + )])); Ok(output_ok) })()) } }) } @@ -23829,7 +23816,13 @@ let api_a_guard = Arc::new(api_a_guard); };let api_b_guard = Arc::new(api_b_guard); let api_b_guard_illegal_static_ref = unsafe { flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_b_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtTypeWithMultiDepTwinSync ::compute_with_multi_arg_having_lifetime_twin_sync(&*api_a_guard_illegal_static_ref, &*api_b_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_a.clone()), Box::new(api_a_guard.clone()), Box::new(api_b.clone()), Box::new(api_b_guard.clone())])); Ok(output_ok) + }; let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtTypeWithMultiDepTwinSync ::compute_with_multi_arg_having_lifetime_twin_sync(&*api_a_guard_illegal_static_ref, &*api_b_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![flutter_rust_bridge::for_generated::LifetimeableDependency::new_guard_lockable( + Box::new(api_a_guard.clone()), + Box::new(api_a.clone()), + ), flutter_rust_bridge::for_generated::LifetimeableDependency::new_guard_lockable( + Box::new(api_b_guard.clone()), + Box::new(api_b.clone()), + )])); Ok(output_ok) })()) } }) } @@ -23902,7 +23895,10 @@ let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decod let api_that_guard = Arc::new(api_that_guard); let api_that_guard_illegal_static_ref = unsafe { flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtOwnedStructTwinSync::compute_type_with_lifetime_twin_sync(&*api_that_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) + }; let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtOwnedStructTwinSync::compute_type_with_lifetime_twin_sync(&*api_that_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![flutter_rust_bridge::for_generated::LifetimeableDependency::new_guard_lockable( + Box::new(api_that_guard.clone()), + Box::new(api_that.clone()), + )])); Ok(output_ok) })()) } }) } @@ -23936,7 +23932,10 @@ let api_unrelated_borrowed_guard = api_unrelated_borrowed_guard.unwrap(); let api_that_guard = Arc::new(api_that_guard); let api_that_guard_illegal_static_ref = unsafe { flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtOwnedStructTwinSync::compute_with_unrelated_borrowed_arg_twin_sync(&*api_that_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) + }; let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtOwnedStructTwinSync::compute_with_unrelated_borrowed_arg_twin_sync(&*api_that_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![flutter_rust_bridge::for_generated::LifetimeableDependency::new_guard_lockable( + Box::new(api_that_guard.clone()), + Box::new(api_that.clone()), + )])); Ok(output_ok) })()) } }) } @@ -24045,7 +24044,10 @@ let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decod let api_arg_guard = Arc::new(api_arg_guard); let api_arg_guard_illegal_static_ref = unsafe { flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::lt_compute_with_lifetime_function_twin_sync(&*api_arg_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_arg.clone()), Box::new(api_arg_guard.clone())])); Ok(output_ok) + }; let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::lt_compute_with_lifetime_function_twin_sync(&*api_arg_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![flutter_rust_bridge::for_generated::LifetimeableDependency::new_guard_lockable( + Box::new(api_arg_guard.clone()), + Box::new(api_arg.clone()), + )])); Ok(output_ok) })()) } }) } diff --git a/frb_example/pure_dart_pde/rust/src/frb_generated.rs b/frb_example/pure_dart_pde/rust/src/frb_generated.rs index 3361c3f28c..6a88ed146d 100644 --- a/frb_example/pure_dart_pde/rust/src/frb_generated.rs +++ b/frb_example/pure_dart_pde/rust/src/frb_generated.rs @@ -5689,7 +5689,10 @@ let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decod let api_arg_guard = Arc::new(api_arg_guard); let api_arg_guard_illegal_static_ref = unsafe { flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtTypeWithLifetimeTwinNormal ::compute_arg_generic_lifetime_twin_normal(&*&api_arg_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_arg.clone()), Box::new(api_arg_guard.clone())])); Ok(output_ok) + }; let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtTypeWithLifetimeTwinNormal ::compute_arg_generic_lifetime_twin_normal(&*&api_arg_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![flutter_rust_bridge::for_generated::LifetimeableDependency::new_guard_lockable( + Box::new(api_arg_guard.clone()), + Box::new(api_arg.clone()), + )])); Ok(output_ok) })()) } }) } @@ -5718,7 +5721,10 @@ let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decod let api_that_guard = Arc::new(api_that_guard); let api_that_guard_illegal_static_ref = unsafe { flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtTypeWithLifetimeTwinNormal ::compute_nested_type_with_lifetime_twin_normal(&*&api_that_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) + }; let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtTypeWithLifetimeTwinNormal ::compute_nested_type_with_lifetime_twin_normal(&*&api_that_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![flutter_rust_bridge::for_generated::LifetimeableDependency::new_guard_lockable( + Box::new(api_that_guard.clone()), + Box::new(api_that.clone()), + )])); Ok(output_ok) })()) } }) } @@ -5809,7 +5815,13 @@ let api_a_guard = Arc::new(api_a_guard); };let api_b_guard = Arc::new(api_b_guard); let api_b_guard_illegal_static_ref = unsafe { flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_b_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtTypeWithMultiDepTwinNormal ::compute_with_multi_arg_having_lifetime_twin_normal(&*api_a_guard_illegal_static_ref, &*api_b_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_a.clone()), Box::new(api_a_guard.clone()), Box::new(api_b.clone()), Box::new(api_b_guard.clone())])); Ok(output_ok) + }; let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtTypeWithMultiDepTwinNormal ::compute_with_multi_arg_having_lifetime_twin_normal(&*api_a_guard_illegal_static_ref, &*api_b_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![flutter_rust_bridge::for_generated::LifetimeableDependency::new_guard_lockable( + Box::new(api_a_guard.clone()), + Box::new(api_a.clone()), + ), flutter_rust_bridge::for_generated::LifetimeableDependency::new_guard_lockable( + Box::new(api_b_guard.clone()), + Box::new(api_b.clone()), + )])); Ok(output_ok) })()) } }) } @@ -5886,7 +5898,10 @@ let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decod let api_that_guard = Arc::new(api_that_guard); let api_that_guard_illegal_static_ref = unsafe { flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtOwnedStructTwinNormal::compute_type_with_lifetime_twin_normal(&*api_that_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) + }; let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtOwnedStructTwinNormal::compute_type_with_lifetime_twin_normal(&*api_that_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![flutter_rust_bridge::for_generated::LifetimeableDependency::new_guard_lockable( + Box::new(api_that_guard.clone()), + Box::new(api_that.clone()), + )])); Ok(output_ok) })()) } }) } @@ -5920,7 +5935,10 @@ let api_unrelated_borrowed_guard = api_unrelated_borrowed_guard.unwrap(); let api_that_guard = Arc::new(api_that_guard); let api_that_guard_illegal_static_ref = unsafe { flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtOwnedStructTwinNormal::compute_with_unrelated_borrowed_arg_twin_normal(&*api_that_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) + }; let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::LtOwnedStructTwinNormal::compute_with_unrelated_borrowed_arg_twin_normal(&*api_that_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![flutter_rust_bridge::for_generated::LifetimeableDependency::new_guard_lockable( + Box::new(api_that_guard.clone()), + Box::new(api_that.clone()), + )])); Ok(output_ok) })()) } }) } @@ -6040,68 +6058,31 @@ fn wire__crate__api__lifetimeable__lt_compute_with_lifetime_function_twin_normal rust_vec_len_: i32, data_len_: i32, ) { - FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( - flutter_rust_bridge::for_generated::TaskInfo { - debug_name: "lt_compute_with_lifetime_function_twin_normal", - port: Some(port_), - mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, - }, - move || { - let message = unsafe { - flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire( - ptr_, - rust_vec_len_, - data_len_, - ) - }; - let mut deserializer = - flutter_rust_bridge::for_generated::SseDeserializer::new(message); - let api_arg = , - >>::sse_decode(&mut deserializer); - deserializer.end(); - move |context| { - transform_result_sse::<_, ()>((move || { - let api_arg_illegal_static_ref = unsafe { - flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg) - }; - let mut api_arg_guard = None; - let decode_indices_ = - flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![ - flutter_rust_bridge::for_generated::LockableOrderInfo::new( - &api_arg, 0, false, - ), - ]); - for i in decode_indices_ { - match i { - 0 => { - api_arg_guard = - Some(api_arg_illegal_static_ref.lockable_decode_sync_ref()) - } - _ => unreachable!(), - } - } - let api_arg_guard = api_arg_guard.unwrap(); - let api_arg_guard = Arc::new(api_arg_guard); - let api_arg_guard_illegal_static_ref = unsafe { - flutter_rust_bridge::for_generated::ouroboros_change_lifetime( - &api_arg_guard, - ) - }; - let output_ok = Result::<_, ()>::Ok( - crate::api::lifetimeable::lt_compute_with_lifetime_function_twin_normal( - &*api_arg_guard_illegal_static_ref, - ), - )?; - let output_ok = RustAutoOpaque::new(Lifetimeable::new( - output_ok, - vec![Box::new(api_arg.clone()), Box::new(api_arg_guard.clone())], - )); - Ok(output_ok) - })()) + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::(flutter_rust_bridge::for_generated::TaskInfo{ debug_name: "lt_compute_with_lifetime_function_twin_normal", port: Some(port_), mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal }, move || { + let message = unsafe { flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire(ptr_, rust_vec_len_, data_len_) }; + let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); + let api_arg = >>::sse_decode(&mut deserializer);deserializer.end(); move |context| { + transform_result_sse::<_, ()>((move || { + let api_arg_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg) + };let mut api_arg_guard = None; +let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decode_order(vec![flutter_rust_bridge::for_generated::LockableOrderInfo::new(&api_arg, 0, false)]); + for i in decode_indices_ { + match i { + 0 => api_arg_guard = Some(api_arg_illegal_static_ref.lockable_decode_sync_ref()), + _ => unreachable!(), } - }, - ) + } + let api_arg_guard = api_arg_guard.unwrap(); +let api_arg_guard = Arc::new(api_arg_guard); + let api_arg_guard_illegal_static_ref = unsafe { + flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg_guard) + }; let output_ok = Result::<_,()>::Ok(crate::api::lifetimeable::lt_compute_with_lifetime_function_twin_normal(&*api_arg_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![flutter_rust_bridge::for_generated::LifetimeableDependency::new_guard_lockable( + Box::new(api_arg_guard.clone()), + Box::new(api_arg.clone()), + )])); Ok(output_ok) + })()) + } }) } fn wire__crate__api__map_and_set__func_hash_map_i32_i32_twin_normal_impl( port_: flutter_rust_bridge::for_generated::MessagePort, @@ -19270,7 +19251,10 @@ let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decod let api_arg_guard = Arc::new(api_arg_guard); let api_arg_guard_illegal_static_ref = unsafe { flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtTypeWithLifetimeTwinSync ::compute_arg_generic_lifetime_twin_sync(&*&api_arg_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_arg.clone()), Box::new(api_arg_guard.clone())])); Ok(output_ok) + }; let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtTypeWithLifetimeTwinSync ::compute_arg_generic_lifetime_twin_sync(&*&api_arg_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![flutter_rust_bridge::for_generated::LifetimeableDependency::new_guard_lockable( + Box::new(api_arg_guard.clone()), + Box::new(api_arg.clone()), + )])); Ok(output_ok) })()) } }) } @@ -19299,7 +19283,10 @@ let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decod let api_that_guard = Arc::new(api_that_guard); let api_that_guard_illegal_static_ref = unsafe { flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtTypeWithLifetimeTwinSync ::compute_nested_type_with_lifetime_twin_sync(&*&api_that_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) + }; let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtTypeWithLifetimeTwinSync ::compute_nested_type_with_lifetime_twin_sync(&*&api_that_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![flutter_rust_bridge::for_generated::LifetimeableDependency::new_guard_lockable( + Box::new(api_that_guard.clone()), + Box::new(api_that.clone()), + )])); Ok(output_ok) })()) } }) } @@ -19386,7 +19373,13 @@ let api_a_guard = Arc::new(api_a_guard); };let api_b_guard = Arc::new(api_b_guard); let api_b_guard_illegal_static_ref = unsafe { flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_b_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtTypeWithMultiDepTwinSync ::compute_with_multi_arg_having_lifetime_twin_sync(&*api_a_guard_illegal_static_ref, &*api_b_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_a.clone()), Box::new(api_a_guard.clone()), Box::new(api_b.clone()), Box::new(api_b_guard.clone())])); Ok(output_ok) + }; let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtTypeWithMultiDepTwinSync ::compute_with_multi_arg_having_lifetime_twin_sync(&*api_a_guard_illegal_static_ref, &*api_b_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![flutter_rust_bridge::for_generated::LifetimeableDependency::new_guard_lockable( + Box::new(api_a_guard.clone()), + Box::new(api_a.clone()), + ), flutter_rust_bridge::for_generated::LifetimeableDependency::new_guard_lockable( + Box::new(api_b_guard.clone()), + Box::new(api_b.clone()), + )])); Ok(output_ok) })()) } }) } @@ -19459,7 +19452,10 @@ let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decod let api_that_guard = Arc::new(api_that_guard); let api_that_guard_illegal_static_ref = unsafe { flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtOwnedStructTwinSync::compute_type_with_lifetime_twin_sync(&*api_that_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) + }; let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtOwnedStructTwinSync::compute_type_with_lifetime_twin_sync(&*api_that_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![flutter_rust_bridge::for_generated::LifetimeableDependency::new_guard_lockable( + Box::new(api_that_guard.clone()), + Box::new(api_that.clone()), + )])); Ok(output_ok) })()) } }) } @@ -19493,7 +19489,10 @@ let api_unrelated_borrowed_guard = api_unrelated_borrowed_guard.unwrap(); let api_that_guard = Arc::new(api_that_guard); let api_that_guard_illegal_static_ref = unsafe { flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_that_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtOwnedStructTwinSync::compute_with_unrelated_borrowed_arg_twin_sync(&*api_that_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_that.clone()), Box::new(api_that_guard.clone())])); Ok(output_ok) + }; let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::LtOwnedStructTwinSync::compute_with_unrelated_borrowed_arg_twin_sync(&*api_that_guard_illegal_static_ref, &*api_unrelated_borrowed_guard, api_unrelated_owned))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![flutter_rust_bridge::for_generated::LifetimeableDependency::new_guard_lockable( + Box::new(api_that_guard.clone()), + Box::new(api_that.clone()), + )])); Ok(output_ok) })()) } }) } @@ -19602,7 +19601,10 @@ let decode_indices_ = flutter_rust_bridge::for_generated::lockable_compute_decod let api_arg_guard = Arc::new(api_arg_guard); let api_arg_guard_illegal_static_ref = unsafe { flutter_rust_bridge::for_generated::ouroboros_change_lifetime(&api_arg_guard) - }; let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::lt_compute_with_lifetime_function_twin_sync(&*api_arg_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![Box::new(api_arg.clone()), Box::new(api_arg_guard.clone())])); Ok(output_ok) + }; let output_ok = Result::<_,()>::Ok(crate::api::pseudo_manual::lifetimeable_twin_sync::lt_compute_with_lifetime_function_twin_sync(&*api_arg_guard_illegal_static_ref))?; let output_ok = RustAutoOpaque::new(Lifetimeable::new(output_ok, vec![flutter_rust_bridge::for_generated::LifetimeableDependency::new_guard_lockable( + Box::new(api_arg_guard.clone()), + Box::new(api_arg.clone()), + )])); Ok(output_ok) })()) } }) } From 6ca87eedff773be0dd6a074b2f9dbd47e1335257 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 22:33:38 +0800 Subject: [PATCH 116/117] chore: lint --- frb_rust/src/lifetimeable/mod.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/frb_rust/src/lifetimeable/mod.rs b/frb_rust/src/lifetimeable/mod.rs index 070ba3f98d..1a11fc3a9e 100644 --- a/frb_rust/src/lifetimeable/mod.rs +++ b/frb_rust/src/lifetimeable/mod.rs @@ -2,7 +2,6 @@ pub(crate) mod dependency; pub(crate) mod lifetime_changer; use crate::lifetimeable::dependency::LifetimeableDependency; -use std::any::Any; use std::ops; pub struct Lifetimeable { From 32c47969a9874e4af777521cf3cb568cd00a84b2 Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Sun, 16 Jun 2024 22:37:31 +0800 Subject: [PATCH 117/117] feat: hint --- .../library/codegen/parser/mir/parser/ty/lifetimeable.rs | 9 +++++++++ .../src/library/codegen/parser/mir/parser/ty/mod.rs | 2 ++ 2 files changed, 11 insertions(+) diff --git a/frb_codegen/src/library/codegen/parser/mir/parser/ty/lifetimeable.rs b/frb_codegen/src/library/codegen/parser/mir/parser/ty/lifetimeable.rs index caeb02312a..9111eda292 100644 --- a/frb_codegen/src/library/codegen/parser/mir/parser/ty/lifetimeable.rs +++ b/frb_codegen/src/library/codegen/parser/mir/parser/ty/lifetimeable.rs @@ -14,6 +14,7 @@ impl<'a, 'b, 'c> TypeParserWithContext<'a, 'b, 'c> { namespace: Option, ) -> anyhow::Result { if !self.context.enable_lifetime { + self.maybe_log_not_enable_lifetime(); return Ok(MirType::RustAutoOpaqueImplicit(original)); } @@ -44,4 +45,12 @@ impl<'a, 'b, 'c> TypeParserWithContext<'a, 'b, 'c> { }, ))) } + + fn maybe_log_not_enable_lifetime(&mut self) { + if !self.inner.has_logged_lifetimeable { + log::info!("To handle some types, `enable_lifetime: true` may need to be set. \ + Please visit https://fzyzcjy.github.io/flutter_rust_bridge/guides/lifetimes for more details"); + } + self.inner.has_logged_lifetimeable = true; + } } diff --git a/frb_codegen/src/library/codegen/parser/mir/parser/ty/mod.rs b/frb_codegen/src/library/codegen/parser/mir/parser/ty/mod.rs index c3c7692edc..def1144cfa 100644 --- a/frb_codegen/src/library/codegen/parser/mir/parser/ty/mod.rs +++ b/frb_codegen/src/library/codegen/parser/mir/parser/ty/mod.rs @@ -66,6 +66,7 @@ pub(crate) struct TypeParser<'a> { rust_opaque_parser_info: RustOpaqueParserInfo, rust_auto_opaque_parser_info: RustAutoOpaqueParserInfo, array_parser_info: ArrayParserInfo, + has_logged_lifetimeable: bool, } impl<'a> TypeParser<'a> { @@ -102,6 +103,7 @@ impl<'a> TypeParser<'a> { rust_opaque_parser_info: RustOpaqueParserInfo::default(), rust_auto_opaque_parser_info: RustAutoOpaqueParserInfo::default(), array_parser_info: Default::default(), + has_logged_lifetimeable: false, } }