From 8346ec3df3f8a60085382d9da5f83f15309d9fe2 Mon Sep 17 00:00:00 2001 From: makspll Date: Thu, 28 Mar 2024 14:23:26 +0000 Subject: [PATCH] add filter for os string temporarily --- crates/bevy_api_gen/src/args.rs | 1 + .../bevy_script_api/src/providers/bevy_ecs.rs | 24 +- .../src/providers/bevy_hierarchy.rs | 82 +- .../src/providers/bevy_input.rs | 196 +-- .../src/providers/bevy_reflect.rs | 1516 +++++++---------- .../src/providers/bevy_time.rs | 24 +- .../src/providers/bevy_transform.rs | 8 +- .../src/providers/bevy_window.rs | 264 +-- 8 files changed, 850 insertions(+), 1265 deletions(-) diff --git a/crates/bevy_api_gen/src/args.rs b/crates/bevy_api_gen/src/args.rs index c24c01bb..2ab701cf 100644 --- a/crates/bevy_api_gen/src/args.rs +++ b/crates/bevy_api_gen/src/args.rs @@ -111,6 +111,7 @@ fn default_ignored_types() -> String { "bevy_reflect::DynamicTuple", "bevy_reflect::DynamicTupleStruct", "bevy_reflect::DynamicEnum", + "bevy_reflect::OsString", // TODO: once macros allow Vecs for primitives as args remove this from ignored types ] .join(",") } diff --git a/crates/bevy_script_api/src/providers/bevy_ecs.rs b/crates/bevy_script_api/src/providers/bevy_ecs.rs index e836962d..0c49299b 100644 --- a/crates/bevy_script_api/src/providers/bevy_ecs.rs +++ b/crates/bevy_script_api/src/providers/bevy_ecs.rs @@ -73,8 +73,8 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &component::ComponentId) -> bool; + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); "#, r#" @@ -85,8 +85,8 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &component::ComponentId) -> bool; "#] )] @@ -148,8 +148,8 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &component::Tick) -> bool; + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); "#, r#" @@ -160,8 +160,8 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &component::Tick) -> bool; "#] )] @@ -442,14 +442,14 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &entity::Entity) -> bool; + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::ecs::entity::Entity; "#, r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::ecs::entity::Entity; + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &entity::Entity) -> bool; "#] )] diff --git a/crates/bevy_script_api/src/providers/bevy_hierarchy.rs b/crates/bevy_script_api/src/providers/bevy_hierarchy.rs index 73d517ea..1052a4a9 100644 --- a/crates/bevy_script_api/src/providers/bevy_hierarchy.rs +++ b/crates/bevy_script_api/src/providers/bevy_hierarchy.rs @@ -1,29 +1,15 @@ #![allow(clippy::all, unused_imports, deprecated, dead_code)] // @generated by cargo bevy-api-gen generate, modify the templates not this file - - use super::bevy_ecs::*; - - use super::bevy_reflect::*; - - use super::bevy_core::*; - - - extern crate self as bevy_script_api; use crate::lua::RegisterForeignLuaType; - - - - - /// Contains references to the child entities of this entity. /// Each child must contain a [`Parent`] component that points back to this entity. @@ -44,7 +30,6 @@ use crate::lua::RegisterForeignLuaType; /// [`BuildChildren::with_children`]: crate::child_builder::BuildChildren::with_children - #[derive(bevy_mod_scripting_lua_derive::LuaProxy)] #[proxy( derive(debug,), @@ -58,17 +43,8 @@ functions[r#" "#] )] +pub struct Children(); - -pub struct Children( - - - - - -); - - /// Holds a reference to the parent entity of this entity. /// This component should only be present on entities that actually have a parent entity. @@ -89,7 +65,6 @@ pub struct Children( /// [`BuildChildren::with_children`]: crate::child_builder::BuildChildren::with_children - #[derive(bevy_mod_scripting_lua_derive::LuaProxy)] #[proxy( derive(debug,), @@ -115,22 +90,10 @@ functions[r#" "#] )] - - -pub struct Parent( - - - - - -); - - - +pub struct Parent(); crate::impl_tealr_generic!(pub(crate) struct T); - #[derive(Default)] pub(crate) struct Globals; @@ -139,11 +102,6 @@ impl bevy_mod_scripting_lua::tealr::mlu::ExportInstances for Globals { self, instances: &mut T, ) -> bevy_mod_scripting_lua::tealr::mlu::mlua::Result<()> { - - - - - Ok(()) } } @@ -151,11 +109,14 @@ impl bevy_mod_scripting_lua::tealr::mlu::ExportInstances for Globals { pub struct BevyHierarchyAPIProvider; impl bevy_mod_scripting_core::hosts::APIProvider for BevyHierarchyAPIProvider { - type APITarget = std::sync::Mutex; - type ScriptContext = std::sync::Mutex; - type DocTarget = bevy_mod_scripting_lua::docs::LuaDocFragment; + type APITarget = std::sync::Mutex; + type ScriptContext = std::sync::Mutex; + type DocTarget = bevy_mod_scripting_lua::docs::LuaDocFragment; - fn attach_api(&mut self, ctx: &mut Self::APITarget) -> Result<(), bevy_mod_scripting_core::error::ScriptError> { + fn attach_api( + &mut self, + ctx: &mut Self::APITarget, + ) -> Result<(), bevy_mod_scripting_core::error::ScriptError> { let ctx = ctx .get_mut() .expect("Unable to acquire lock on Lua context"); @@ -164,17 +125,14 @@ impl bevy_mod_scripting_core::hosts::APIProvider for BevyHierarchyAPIProvider { } fn get_doc_fragment(&self) -> Option { - Some(bevy_mod_scripting_lua::docs::LuaDocFragment::new("BevyHierarchyAPI", |tw| { - tw - .document_global_instance::().expect("Something went wrong documenting globals") - - .process_type::() - - - .process_type::() - - - } + Some(bevy_mod_scripting_lua::docs::LuaDocFragment::new( + "BevyHierarchyAPI", + |tw| { + tw.document_global_instance::() + .expect("Something went wrong documenting globals") + .process_type::() + .process_type::() + }, )) } @@ -196,10 +154,8 @@ impl bevy_mod_scripting_core::hosts::APIProvider for BevyHierarchyAPIProvider { } fn register_with_app(&self, app: &mut bevy::app::App) { - app.register_foreign_lua_type::(); - + app.register_foreign_lua_type::(); - } -} \ No newline at end of file +} diff --git a/crates/bevy_script_api/src/providers/bevy_input.rs b/crates/bevy_script_api/src/providers/bevy_input.rs index ae9d77c7..71c20c57 100644 --- a/crates/bevy_script_api/src/providers/bevy_input.rs +++ b/crates/bevy_script_api/src/providers/bevy_input.rs @@ -45,12 +45,6 @@ functions[r#" #[lua(kind = "Function", output(proxy))] fn new(id: usize) -> bevy::input::gamepad::Gamepad; -"#, - r#" - - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &gamepad::Gamepad) -> bool; - "#, r#" @@ -63,6 +57,12 @@ functions[r#" #[lua(as_trait = "std::cmp::Eq", kind = "Method")] fn assert_receiver_is_total_eq(&self) -> (); +"#, + r#" + + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &gamepad::Gamepad) -> bool; + "#] )] @@ -132,12 +132,6 @@ derive(clone,debug,), remote="bevy::input::gamepad::GamepadButtonType", functions[r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); - -"#, - r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] fn clone(&self) -> bevy::input::gamepad::GamepadButtonType; @@ -147,6 +141,12 @@ functions[r#" #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] fn eq(&self, #[proxy] other: &gamepad::GamepadButtonType) -> bool; +"#, + r#" + + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); + "#] )] @@ -195,12 +195,6 @@ functions[r#" button_type: bevy::input::gamepad::GamepadButtonType, ) -> bevy::input::gamepad::GamepadButton; -"#, - r#" - - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::input::gamepad::GamepadButton; - "#, r#" @@ -213,6 +207,12 @@ functions[r#" #[lua(as_trait = "std::cmp::Eq", kind = "Method")] fn assert_receiver_is_total_eq(&self) -> (); +"#, + r#" + + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::input::gamepad::GamepadButton; + "#] )] @@ -280,20 +280,20 @@ derive(clone,debug,), remote="bevy::input::gamepad::GamepadAxisType", functions[r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::input::gamepad::GamepadAxisType; + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &gamepad::GamepadAxisType) -> bool; + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::input::gamepad::GamepadAxisType; "#, r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &gamepad::GamepadAxisType) -> bool; "#] )] @@ -624,14 +624,14 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::input::gamepad::AxisSettings; + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &gamepad::AxisSettings) -> bool; "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &gamepad::AxisSettings) -> bool; + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::input::gamepad::AxisSettings; "#] )] @@ -824,14 +824,14 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::input::gamepad::GamepadAxisChangedEvent; + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &gamepad::GamepadAxisChangedEvent) -> bool; "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &gamepad::GamepadAxisChangedEvent) -> bool; + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::input::gamepad::GamepadAxisChangedEvent; "#] )] @@ -946,8 +946,8 @@ derive(clone,debug,), remote="bevy::input::keyboard::KeyboardInput", functions[r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &keyboard::KeyboardInput) -> bool; + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::input::keyboard::KeyboardInput; "#, r#" @@ -958,8 +958,8 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::input::keyboard::KeyboardInput; + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &keyboard::KeyboardInput) -> bool; "#] )] @@ -997,20 +997,20 @@ derive(clone,debug,), remote="bevy::input::keyboard::NativeKeyCode", functions[r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &keyboard::NativeKeyCode) -> bool; + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); "#, r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::input::keyboard::NativeKeyCode; + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &keyboard::NativeKeyCode) -> bool; "#, r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::input::keyboard::NativeKeyCode; "#] )] @@ -1060,14 +1060,14 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &keyboard::KeyCode) -> bool; "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &keyboard::KeyCode) -> bool; + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); "#] )] @@ -1103,14 +1103,14 @@ derive(clone,debug,), remote="bevy::input::keyboard::NativeKey", functions[r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &keyboard::NativeKey) -> bool; + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::input::keyboard::NativeKey; "#, r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::input::keyboard::NativeKey; + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &keyboard::NativeKey) -> bool; "#, r#" @@ -1142,12 +1142,6 @@ derive(clone,debug,), remote="bevy::input::keyboard::Key", functions[r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::input::keyboard::Key; - -"#, - r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] fn eq(&self, #[proxy] other: &keyboard::Key) -> bool; @@ -1157,6 +1151,12 @@ functions[r#" #[lua(as_trait = "std::cmp::Eq", kind = "Method")] fn assert_receiver_is_total_eq(&self) -> (); +"#, + r#" + + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::input::keyboard::Key; + "#] )] @@ -1185,20 +1185,20 @@ derive(clone,debug,), remote="bevy::input::mouse::MouseButtonInput", functions[r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::input::mouse::MouseButtonInput; + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &mouse::MouseButtonInput) -> bool; "#, r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::input::mouse::MouseButtonInput; "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &mouse::MouseButtonInput) -> bool; + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); "#] )] @@ -1232,12 +1232,6 @@ derive(clone,debug,), remote="bevy::input::mouse::MouseButton", functions[r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &mouse::MouseButton) -> bool; - -"#, - r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] fn clone(&self) -> bevy::input::mouse::MouseButton; @@ -1247,6 +1241,12 @@ functions[r#" #[lua(as_trait = "std::cmp::Eq", kind = "Method")] fn assert_receiver_is_total_eq(&self) -> (); +"#, + r#" + + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &mouse::MouseButton) -> bool; + "#] )] @@ -1277,14 +1277,14 @@ derive(clone,debug,), remote="bevy::input::mouse::MouseMotion", functions[r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::input::mouse::MouseMotion; + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &mouse::MouseMotion) -> bool; "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &mouse::MouseMotion) -> bool; + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::input::mouse::MouseMotion; "#] )] @@ -1314,14 +1314,14 @@ derive(clone,debug,), remote="bevy::input::mouse::MouseScrollUnit", functions[r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &mouse::MouseScrollUnit) -> bool; + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::input::mouse::MouseScrollUnit; "#, r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::input::mouse::MouseScrollUnit; + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &mouse::MouseScrollUnit) -> bool; "#, r#" @@ -1351,14 +1351,14 @@ derive(clone,debug,), remote="bevy::input::mouse::MouseWheel", functions[r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::input::mouse::MouseWheel; + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &mouse::MouseWheel) -> bool; "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &mouse::MouseWheel) -> bool; + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::input::mouse::MouseWheel; "#] )] @@ -1412,14 +1412,14 @@ derive(clone,debug,), remote="bevy::input::touch::TouchInput", functions[r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::input::touch::TouchInput; + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &touch::TouchInput) -> bool; "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &touch::TouchInput) -> bool; + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::input::touch::TouchInput; "#] )] @@ -1443,14 +1443,14 @@ derive(clone,debug,), remote="bevy::input::touch::ForceTouch", functions[r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &touch::ForceTouch) -> bool; + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::input::touch::ForceTouch; "#, r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::input::touch::ForceTouch; + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &touch::ForceTouch) -> bool; "#] )] @@ -1488,14 +1488,14 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::input::touch::TouchPhase; + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &touch::TouchPhase) -> bool; "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &touch::TouchPhase) -> bool; + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::input::touch::TouchPhase; "#] )] @@ -1600,20 +1600,20 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::input::ButtonState; + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &ButtonState) -> bool; + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::input::ButtonState; "#, r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &ButtonState) -> bool; "#] )] diff --git a/crates/bevy_script_api/src/providers/bevy_reflect.rs b/crates/bevy_script_api/src/providers/bevy_reflect.rs index fe2f201f..ab47effd 100644 --- a/crates/bevy_script_api/src/providers/bevy_reflect.rs +++ b/crates/bevy_script_api/src/providers/bevy_reflect.rs @@ -600,8 +600,8 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &bevy_utils::Uuid) -> bool; "#, r#" @@ -616,8 +616,8 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &bevy_utils::Uuid) -> bool; + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); "#] )] @@ -736,6 +736,12 @@ functions[r#" #[lua(kind = "Method", output(proxy))] fn closest_point(&self, #[proxy] point: bevy::math::Vec2) -> bevy::math::Vec2; +"#, + r#" + + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &bevy_math::primitives::Circle) -> bool; + "#, r#" @@ -746,12 +752,6 @@ functions[r#" )] fn clone(&self) -> bevy::math::primitives::Circle; -"#, - r#" - - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &bevy_math::primitives::Circle) -> bool; - "#] )] @@ -808,6 +808,12 @@ functions[r#" #[lua(kind = "Method")] fn area(&self) -> f32; +"#, + r#" + + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &bevy_math::primitives::Ellipse) -> bool; + "#, r#" @@ -818,12 +824,6 @@ functions[r#" )] fn clone(&self) -> bevy::math::primitives::Ellipse; -"#, - r#" - - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &bevy_math::primitives::Ellipse) -> bool; - "#] )] @@ -854,12 +854,6 @@ functions[r#" #[lua(kind = "Function", output(proxy))] fn new(#[proxy] normal: bevy::math::Vec2) -> bevy::math::primitives::Plane2d; -"#, - r#" - - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &bevy_math::primitives::Plane2d) -> bool; - "#, r#" @@ -870,6 +864,12 @@ functions[r#" )] fn clone(&self) -> bevy::math::primitives::Plane2d; +"#, + r#" + + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &bevy_math::primitives::Plane2d) -> bool; + "#] )] @@ -894,6 +894,12 @@ derive(clone,debug,), remote="bevy::math::primitives::Line2d", functions[r#" + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &bevy_math::primitives::Line2d) -> bool; + +"#, + r#" + #[lua( as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", kind = "Method", @@ -901,12 +907,6 @@ functions[r#" )] fn clone(&self) -> bevy::math::primitives::Line2d; -"#, - r#" - - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &bevy_math::primitives::Line2d) -> bool; - "#] )] @@ -1113,6 +1113,12 @@ functions[r#" #[lua(kind = "Method", output(proxy))] fn closest_point(&self, #[proxy] point: bevy::math::Vec2) -> bevy::math::Vec2; +"#, + r#" + + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &bevy_math::primitives::Rectangle) -> bool; + "#, r#" @@ -1123,12 +1129,6 @@ functions[r#" )] fn clone(&self) -> bevy::math::primitives::Rectangle; -"#, - r#" - - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &bevy_math::primitives::Rectangle) -> bool; - "#] )] @@ -1233,12 +1233,6 @@ functions[r#" #[lua(kind = "Method")] fn external_angle_radians(&self) -> f32; -"#, - r#" - - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &bevy_math::primitives::RegularPolygon) -> bool; - "#, r#" @@ -1249,6 +1243,12 @@ functions[r#" )] fn clone(&self) -> bevy::math::primitives::RegularPolygon; +"#, + r#" + + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &bevy_math::primitives::RegularPolygon) -> bool; + "#] )] @@ -1324,23 +1324,17 @@ functions[r#" value: bevy::math::Vec3, ) -> bevy::math::primitives::Direction3d; -"#, - r#" - - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &bevy_math::primitives::Direction3d) -> bool; - "#, r#" #[lua( - as_trait = "std::ops::Mul", + as_trait = "std::ops::Neg", kind = "Function", output(proxy), - composite = "mul", - metamethod = "Mul", + composite = "neg", + metamethod = "Unm", )] - fn mul(self, rhs: f32) -> bevy::math::Vec3; + fn neg(self) -> bevy::math::primitives::Direction3d; "#, r#" @@ -1356,13 +1350,19 @@ functions[r#" r#" #[lua( - as_trait = "std::ops::Neg", + as_trait = "std::ops::Mul", kind = "Function", output(proxy), - composite = "neg", - metamethod = "Unm", + composite = "mul", + metamethod = "Mul", )] - fn neg(self) -> bevy::math::primitives::Direction3d; + fn mul(self, rhs: f32) -> bevy::math::Vec3; + +"#, + r#" + + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &bevy_math::primitives::Direction3d) -> bool; "#] )] @@ -1447,353 +1447,6 @@ pub struct Sphere{ -} - - -/// A type that can represent owned, mutable platform-native strings, but is - -/// cheaply inter-convertible with Rust strings. - -/// The need for this type arises from the fact that: - -/// * On Unix systems, strings are often arbitrary sequences of non-zero - -/// bytes, in many cases interpreted as UTF-8. - -/// * On Windows, strings are often arbitrary sequences of non-zero 16-bit - -/// values, interpreted as UTF-16 when it is valid to do so. - -/// * In Rust, strings are always valid UTF-8, which may contain zeros. - -/// `OsString` and [`OsStr`] bridge this gap by simultaneously representing Rust - -/// and platform-native string values, and in particular allowing a Rust string - -/// to be converted into an "OS" string with no cost if possible. A consequence - -/// of this is that `OsString` instances are *not* `NUL` terminated; in order - -/// to pass to e.g., Unix system call, you should create a [`CStr`]. - -/// `OsString` is to &[OsStr] as [`String`] is to &[str]: the former - -/// in each pair are owned strings; the latter are borrowed - -/// references. - -/// Note, `OsString` and [`OsStr`] internally do not necessarily hold strings in - -/// the form native to the platform; While on Unix, strings are stored as a - -/// sequence of 8-bit values, on Windows, where strings are 16-bit value based - -/// as just discussed, strings are also actually stored as a sequence of 8-bit - -/// values, encoded in a less-strict variant of UTF-8. This is useful to - -/// understand when handling capacity and length values. - -/// # Capacity of `OsString` - -/// Capacity uses units of UTF-8 bytes for OS strings which were created from valid unicode, and - -/// uses units of bytes in an unspecified encoding for other contents. On a given target, all - -/// `OsString` and `OsStr` values use the same units for capacity, so the following will work: - -/// ``` - -/// use std::ffi::{OsStr, OsString}; - -/// fn concat_os_strings(a: &OsStr, b: &OsStr) -> OsString { - -/// let mut ret = OsString::with_capacity(a.len() + b.len()); // This will allocate - -/// ret.push(a); // This will not allocate further - -/// ret.push(b); // This will not allocate further - -/// ret - -/// } - -/// ``` - -/// # Creating an `OsString` - -/// **From a Rust string**: `OsString` implements - -/// [From]<[String]>, so you can use my_string.[into]\() to - -/// create an `OsString` from a normal Rust string. - -/// **From slices:** Just like you can start with an empty Rust - -/// [`String`] and then [`String::push_str`] some &[str] - -/// sub-string slices into it, you can create an empty `OsString` with - -/// the [`OsString::new`] method and then push string slices into it with the - -/// [`OsString::push`] method. - -/// # Extracting a borrowed reference to the whole OS string - -/// You can use the [`OsString::as_os_str`] method to get an &[OsStr] from - -/// an `OsString`; this is effectively a borrowed reference to the - -/// whole string. - -/// # Conversions - -/// See the [module's toplevel documentation about conversions][conversions] for a discussion on - -/// the traits which `OsString` implements for [conversions] from/to native representations. - -/// [`CStr`]: crate::ffi::CStr - -/// [conversions]: super#conversions - -/// [into]: Into::into - - -#[derive(bevy_mod_scripting_lua_derive::LuaProxy)] -#[proxy( -derive(clone,debug,), -remote="std::ffi::OsString", -functions[r#" -/// Constructs a new empty `OsString`. -/// # Examples -/// ``` -/// use std::ffi::OsString; -/// let os_string = OsString::new(); -/// ``` - - #[lua(kind = "Function", output(proxy))] - fn new() -> std::ffi::OsString; - -"#, - r#" -/// Converts bytes to an `OsString` without checking that the bytes contains -/// valid [`OsStr`]-encoded data. -/// The byte encoding is an unspecified, platform-specific, self-synchronizing superset of UTF-8. -/// By being a self-synchronizing superset of UTF-8, this encoding is also a superset of 7-bit -/// ASCII. -/// See the [module's toplevel documentation about conversions][conversions] for safe, -/// cross-platform [conversions] from/to native representations. -/// # Safety -/// As the encoding is unspecified, callers must pass in bytes that originated as a mixture of -/// validated UTF-8 and bytes from [`OsStr::as_encoded_bytes`] from within the same rust version -/// built for the same target platform. For example, reconstructing an `OsString` from bytes sent -/// over the network or stored in a file will likely violate these safety rules. -/// Due to the encoding being self-synchronizing, the bytes from [`OsStr::as_encoded_bytes`] can be -/// split either immediately before or immediately after any valid non-empty UTF-8 substring. -/// # Example -/// ``` -/// use std::ffi::OsStr; -/// let os_str = OsStr::new("Mary had a little lamb"); -/// let bytes = os_str.as_encoded_bytes(); -/// let words = bytes.split(|b| *b == b' '); -/// let words: Vec<&OsStr> = words.map(|word| { -/// // SAFETY: -/// // - Each `word` only contains content that originated from `OsStr::as_encoded_bytes` -/// // - Only split with ASCII whitespace which is a non-empty UTF-8 substring -/// unsafe { OsStr::from_encoded_bytes_unchecked(word) } -/// }).collect(); -/// ``` -/// [conversions]: super#conversions - - #[lua(kind = "Function", output(proxy))] - unsafe fn from_encoded_bytes_unchecked( - bytes: bevy::reflect::erased_serde::__private::serde::__private::Vec< - u8, - std::alloc::Global, - >, - ) -> std::ffi::OsString; - -"#, - r#" -/// Converts the `OsString` into a byte slice. To convert the byte slice back into an -/// `OsString`, use the [`OsStr::from_encoded_bytes_unchecked`] function. -/// The byte encoding is an unspecified, platform-specific, self-synchronizing superset of UTF-8. -/// By being a self-synchronizing superset of UTF-8, this encoding is also a superset of 7-bit -/// ASCII. -/// Note: As the encoding is unspecified, any sub-slice of bytes that is not valid UTF-8 should -/// be treated as opaque and only comparable within the same rust version built for the same -/// target platform. For example, sending the bytes over the network or storing it in a file -/// will likely result in incompatible data. See [`OsString`] for more encoding details -/// and [`std::ffi`] for platform-specific, specified conversions. -/// [`std::ffi`]: crate::ffi - - #[lua(kind = "Method")] - fn into_encoded_bytes( - self, - ) -> bevy::reflect::erased_serde::__private::serde::__private::Vec< - u8, - std::alloc::Global, - >; - -"#, - r#" -/// Creates a new `OsString` with at least the given capacity. -/// The string will be able to hold at least `capacity` length units of other -/// OS strings without reallocating. This method is allowed to allocate for -/// more units than `capacity`. If `capacity` is 0, the string will not -/// allocate. -/// See the main `OsString` documentation information about encoding and capacity units. -/// # Examples -/// ``` -/// use std::ffi::OsString; -/// let mut os_string = OsString::with_capacity(10); -/// let capacity = os_string.capacity(); -/// // This push is done without reallocating -/// os_string.push("foo"); -/// assert_eq!(capacity, os_string.capacity()); -/// ``` - - #[lua(kind = "Function", output(proxy))] - fn with_capacity(capacity: usize) -> std::ffi::OsString; - -"#, - r#" -/// Truncates the `OsString` to zero length. -/// # Examples -/// ``` -/// use std::ffi::OsString; -/// let mut os_string = OsString::from("foo"); -/// assert_eq!(&os_string, "foo"); -/// os_string.clear(); -/// assert_eq!(&os_string, ""); -/// ``` - - #[lua(kind = "MutatingMethod")] - fn clear(&mut self) -> (); - -"#, - r#" -/// Returns the capacity this `OsString` can hold without reallocating. -/// See the main `OsString` documentation information about encoding and capacity units. -/// # Examples -/// ``` -/// use std::ffi::OsString; -/// let os_string = OsString::with_capacity(10); -/// assert!(os_string.capacity() >= 10); -/// ``` - - #[lua(kind = "Method")] - fn capacity(&self) -> usize; - -"#, - r#" -/// Reserves capacity for at least `additional` more capacity to be inserted -/// in the given `OsString`. Does nothing if the capacity is -/// already sufficient. -/// The collection may reserve more space to speculatively avoid frequent reallocations. -/// See the main `OsString` documentation information about encoding and capacity units. -/// # Examples -/// ``` -/// use std::ffi::OsString; -/// let mut s = OsString::new(); -/// s.reserve(10); -/// assert!(s.capacity() >= 10); -/// ``` - - #[lua(kind = "MutatingMethod")] - fn reserve(&mut self, additional: usize) -> (); - -"#, - r#" -/// Reserves the minimum capacity for at least `additional` more capacity to -/// be inserted in the given `OsString`. Does nothing if the capacity is -/// already sufficient. -/// Note that the allocator may give the collection more space than it -/// requests. Therefore, capacity can not be relied upon to be precisely -/// minimal. Prefer [`reserve`] if future insertions are expected. -/// [`reserve`]: OsString::reserve -/// See the main `OsString` documentation information about encoding and capacity units. -/// # Examples -/// ``` -/// use std::ffi::OsString; -/// let mut s = OsString::new(); -/// s.reserve_exact(10); -/// assert!(s.capacity() >= 10); -/// ``` - - #[lua(kind = "MutatingMethod")] - fn reserve_exact(&mut self, additional: usize) -> (); - -"#, - r#" -/// Shrinks the capacity of the `OsString` to match its length. -/// See the main `OsString` documentation information about encoding and capacity units. -/// # Examples -/// ``` -/// use std::ffi::OsString; -/// let mut s = OsString::from("foo"); -/// s.reserve(100); -/// assert!(s.capacity() >= 100); -/// s.shrink_to_fit(); -/// assert_eq!(3, s.capacity()); -/// ``` - - #[lua(kind = "MutatingMethod")] - fn shrink_to_fit(&mut self) -> (); - -"#, - r#" -/// Shrinks the capacity of the `OsString` with a lower bound. -/// The capacity will remain at least as large as both the length -/// and the supplied value. -/// If the current capacity is less than the lower limit, this is a no-op. -/// See the main `OsString` documentation information about encoding and capacity units. -/// # Examples -/// ``` -/// use std::ffi::OsString; -/// let mut s = OsString::from("foo"); -/// s.reserve(100); -/// assert!(s.capacity() >= 100); -/// s.shrink_to(10); -/// assert!(s.capacity() >= 10); -/// s.shrink_to(0); -/// assert!(s.capacity() >= 3); -/// ``` - - #[lua(kind = "MutatingMethod")] - fn shrink_to(&mut self, min_capacity: usize) -> (); - -"#, - r#" - - #[lua( - as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", - kind = "Method", - output(proxy), - )] - fn clone(&self) -> std::ffi::OsString; - -"#, - r#" - - #[lua( - as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", - kind = "MutatingMethod", - )] - fn clone_from(&mut self, #[proxy] source: &std::ffi::OsString) -> (); - -"#] -)] - - - - -pub struct OsString{ - - - - - } @@ -1814,12 +1467,6 @@ functions[r#" #[lua(kind = "Function", output(proxy))] fn new(#[proxy] normal: bevy::math::Vec3) -> bevy::math::primitives::Plane3d; -"#, - r#" - - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &bevy_math::primitives::Plane3d) -> bool; - "#, r#" @@ -1830,6 +1477,12 @@ functions[r#" )] fn clone(&self) -> bevy::math::primitives::Plane3d; +"#, + r#" + + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &bevy_math::primitives::Plane3d) -> bool; + "#] )] @@ -1854,6 +1507,12 @@ derive(clone,debug,), remote="bevy::math::primitives::Line3d", functions[r#" + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &bevy_math::primitives::Line3d) -> bool; + +"#, + r#" + #[lua( as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", kind = "Method", @@ -1861,12 +1520,6 @@ functions[r#" )] fn clone(&self) -> bevy::math::primitives::Line3d; -"#, - r#" - - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &bevy_math::primitives::Line3d) -> bool; - "#] )] @@ -2006,6 +1659,12 @@ functions[r#" #[lua(kind = "Method", output(proxy))] fn closest_point(&self, #[proxy] point: bevy::math::Vec3) -> bevy::math::Vec3; +"#, + r#" + + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &bevy_math::primitives::Cuboid) -> bool; + "#, r#" @@ -2016,12 +1675,6 @@ functions[r#" )] fn clone(&self) -> bevy::math::primitives::Cuboid; -"#, - r#" - - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &bevy_math::primitives::Cuboid) -> bool; - "#] )] @@ -2150,6 +1803,12 @@ functions[r#" #[lua(kind = "Method")] fn volume(&self) -> f32; +"#, + r#" + + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &bevy_math::primitives::Capsule3d) -> bool; + "#, r#" @@ -2160,12 +1819,6 @@ functions[r#" )] fn clone(&self) -> bevy::math::primitives::Capsule3d; -"#, - r#" - - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &bevy_math::primitives::Capsule3d) -> bool; - "#] )] @@ -3310,8 +2963,8 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &bevy_math::URect) -> bool; + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); "#, r#" @@ -3326,8 +2979,8 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &bevy_math::URect) -> bool; "#] )] @@ -3459,19 +3112,6 @@ functions[r#" #[lua(kind = "MutatingMethod")] fn pop(&mut self) -> bool; -"#, - r#" -/// Consumes the `PathBuf`, yielding its internal [`OsString`] storage. -/// # Examples -/// ``` -/// use std::path::PathBuf; -/// let p = PathBuf::from("/the/head"); -/// let os_str = p.into_os_string(); -/// ``` - - #[lua(kind = "Method", output(proxy))] - fn into_os_string(self) -> std::ffi::OsString; - "#, r#" /// Invokes [`capacity`] on the underlying instance of [`OsString`]. @@ -3801,12 +3441,14 @@ functions[r#" "#, r#" - #[lua( - as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", - kind = "Method", - output(proxy), - )] - fn clone(&self) -> bevy::utils::Instant; + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); + +"#, + r#" + + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &bevy_utils::Instant) -> bool; "#, r#" @@ -3826,14 +3468,12 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &bevy_utils::Instant) -> bool; - -"#, - r#" - - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); + #[lua( + as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", + kind = "Method", + output(proxy), + )] + fn clone(&self) -> bevy::utils::Instant; "#] )] @@ -3864,6 +3504,12 @@ derive(clone,debug,), remote="bevy::math::EulerRot", functions[r#" + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); + +"#, + r#" + #[lua( as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", kind = "Method", @@ -3877,12 +3523,6 @@ functions[r#" #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] fn eq(&self, #[proxy] other: &glam::EulerRot) -> bool; -"#, - r#" - - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); - "#] )] @@ -3959,6 +3599,12 @@ functions[r#" #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] fn eq(&self, #[proxy] other: &glam::BVec2) -> bool; +"#, + r#" + + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); + "#, r#" @@ -3969,12 +3615,6 @@ functions[r#" )] fn clone(&self) -> bevy::math::BVec2; -"#, - r#" - - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); - "#] )] @@ -4047,12 +3687,6 @@ functions[r#" #[lua(kind = "MutatingMethod")] fn set(&mut self, index: usize, value: bool) -> (); -"#, - r#" - - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); - "#, r#" @@ -4069,6 +3703,12 @@ functions[r#" )] fn clone(&self) -> bevy::math::BVec3; +"#, + r#" + + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); + "#] )] @@ -4144,14 +3784,14 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &glam::BVec4) -> bool; + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); "#, r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &glam::BVec4) -> bool; "#, r#" @@ -4328,6 +3968,12 @@ functions[r#" #[lua(kind = "MutatingMethod")] fn set(&mut self, index: usize, value: bool) -> (); +"#, + r#" + + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] rhs: &glam::BVec4A) -> bool; + "#, r#" @@ -4338,12 +3984,6 @@ functions[r#" )] fn clone(&self) -> bevy::math::BVec4A; -"#, - r#" - - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] rhs: &glam::BVec4A) -> bool; - "#] )] @@ -4858,6 +4498,12 @@ functions[r#" #[lua(kind = "Method", output(proxy))] fn inverse(&self) -> bevy::math::Affine3A; +"#, + r#" + + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] rhs: &glam::Affine3A) -> bool; + "#, r#" @@ -4868,12 +4514,6 @@ functions[r#" )] fn clone(&self) -> bevy::math::Affine3A; -"#, - r#" - - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] rhs: &glam::Affine3A) -> bool; - "#] )] @@ -5222,6 +4862,18 @@ functions[r#" #[lua(kind = "Method", output(proxy))] fn as_dmat3(&self) -> bevy::math::DMat3; +"#, + r#" + + #[lua( + as_trait = "std::ops::Sub", + kind = "Function", + output(proxy), + composite = "sub", + metamethod = "Sub", + )] + fn sub(self, #[proxy] rhs: bevy::math::Mat3) -> bevy::math::Mat3; + "#, r#" @@ -5238,13 +4890,13 @@ functions[r#" r#" #[lua( - as_trait = "std::ops::Sub", + as_trait = "std::ops::Add", kind = "Function", output(proxy), - composite = "sub", - metamethod = "Sub", + composite = "add", + metamethod = "Add", )] - fn sub(self, #[proxy] rhs: bevy::math::Mat3) -> bevy::math::Mat3; + fn add(self, #[proxy] rhs: bevy::math::Mat3) -> bevy::math::Mat3; "#, r#" @@ -5262,18 +4914,6 @@ functions[r#" #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] fn eq(&self, #[proxy] rhs: &glam::Mat3) -> bool; -"#, - r#" - - #[lua( - as_trait = "std::ops::Add", - kind = "Function", - output(proxy), - composite = "add", - metamethod = "Add", - )] - fn add(self, #[proxy] rhs: bevy::math::Mat3) -> bevy::math::Mat3; - "#] )] @@ -5860,6 +5500,12 @@ functions[r#" #[lua(kind = "Method", output(proxy))] fn as_u64vec2(&self) -> bevy::math::U64Vec2; +"#, + r#" + + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &glam::Vec2) -> bool; + "#, r#" @@ -5882,12 +5528,6 @@ functions[r#" )] fn clone(&self) -> bevy::math::Vec2; -"#, - r#" - - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &glam::Vec2) -> bool; - "#] )] @@ -6471,13 +6111,11 @@ functions[r#" r#" #[lua( - as_trait = "std::ops::Neg", - kind = "Function", + as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", + kind = "Method", output(proxy), - composite = "neg", - metamethod = "Unm", )] - fn neg(self) -> bevy::math::Vec3; + fn clone(&self) -> bevy::math::Vec3; "#, r#" @@ -6489,11 +6127,13 @@ functions[r#" r#" #[lua( - as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", - kind = "Method", + as_trait = "std::ops::Neg", + kind = "Function", output(proxy), + composite = "neg", + metamethod = "Unm", )] - fn clone(&self) -> bevy::math::Vec3; + fn neg(self) -> bevy::math::Vec3; "#] )] @@ -6711,25 +6351,31 @@ functions[r#" r#" #[lua( - as_trait = "std::ops::Neg", + as_trait = "std::ops::Sub", kind = "Function", output(proxy), - composite = "neg", - metamethod = "Unm", + composite = "sub", + metamethod = "Sub", )] - fn neg(self) -> bevy::math::Mat2; + fn sub(self, #[proxy] rhs: bevy::math::Mat2) -> bevy::math::Mat2; + +"#, + r#" + + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] rhs: &glam::Mat2) -> bool; "#, r#" #[lua( - as_trait = "std::ops::Sub", + as_trait = "std::ops::Neg", kind = "Function", output(proxy), - composite = "sub", - metamethod = "Sub", + composite = "neg", + metamethod = "Unm", )] - fn sub(self, #[proxy] rhs: bevy::math::Mat2) -> bevy::math::Mat2; + fn neg(self) -> bevy::math::Mat2; "#, r#" @@ -6743,12 +6389,6 @@ functions[r#" )] fn add(self, #[proxy] rhs: bevy::math::Mat2) -> bevy::math::Mat2; -"#, - r#" - - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] rhs: &glam::Mat2) -> bool; - "#] )] @@ -7098,17 +6738,23 @@ functions[r#" #[lua(kind = "Method", output(proxy))] fn as_dmat3(&self) -> bevy::math::DMat3; +"#, + r#" + + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] rhs: &glam::Mat3A) -> bool; + "#, r#" #[lua( - as_trait = "std::ops::Sub", + as_trait = "std::ops::Neg", kind = "Function", output(proxy), - composite = "sub", - metamethod = "Sub", + composite = "neg", + metamethod = "Unm", )] - fn sub(self, #[proxy] rhs: bevy::math::Mat3A) -> bevy::math::Mat3A; + fn neg(self) -> bevy::math::Mat3A; "#, r#" @@ -7124,31 +6770,25 @@ functions[r#" r#" #[lua( - as_trait = "std::ops::Neg", + as_trait = "std::ops::Add", kind = "Function", output(proxy), - composite = "neg", - metamethod = "Unm", + composite = "add", + metamethod = "Add", )] - fn neg(self) -> bevy::math::Mat3A; - -"#, - r#" - - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] rhs: &glam::Mat3A) -> bool; + fn add(self, #[proxy] rhs: bevy::math::Mat3A) -> bevy::math::Mat3A; "#, r#" #[lua( - as_trait = "std::ops::Add", + as_trait = "std::ops::Sub", kind = "Function", output(proxy), - composite = "add", - metamethod = "Add", + composite = "sub", + metamethod = "Sub", )] - fn add(self, #[proxy] rhs: bevy::math::Mat3A) -> bevy::math::Mat3A; + fn sub(self, #[proxy] rhs: bevy::math::Mat3A) -> bevy::math::Mat3A; "#] )] @@ -7770,13 +7410,13 @@ functions[r#" r#" #[lua( - as_trait = "std::ops::Neg", + as_trait = "std::ops::Add", kind = "Function", output(proxy), - composite = "neg", - metamethod = "Unm", + composite = "add", + metamethod = "Add", )] - fn neg(self) -> bevy::math::Mat4; + fn add(self, #[proxy] rhs: bevy::math::Mat4) -> bevy::math::Mat4; "#, r#" @@ -7793,30 +7433,30 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] rhs: &glam::Mat4) -> bool; + #[lua( + as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", + kind = "Method", + output(proxy), + )] + fn clone(&self) -> bevy::math::Mat4; "#, r#" - #[lua( - as_trait = "std::ops::Add", - kind = "Function", - output(proxy), - composite = "add", - metamethod = "Add", - )] - fn add(self, #[proxy] rhs: bevy::math::Mat4) -> bevy::math::Mat4; + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] rhs: &glam::Mat4) -> bool; "#, r#" #[lua( - as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", - kind = "Method", + as_trait = "std::ops::Neg", + kind = "Function", output(proxy), + composite = "neg", + metamethod = "Unm", )] - fn clone(&self) -> bevy::math::Mat4; + fn neg(self) -> bevy::math::Mat4; "#] )] @@ -8222,6 +7862,34 @@ functions[r#" #[lua(kind = "Method", output(proxy))] fn as_f64(self) -> bevy::math::DQuat; +"#, + r#" +/// Divides a quaternion by a scalar value. +/// The quotient is not guaranteed to be normalized. + + #[lua( + as_trait = "std::ops::Div", + kind = "Function", + output(proxy), + composite = "div", + metamethod = "Div", + )] + fn div(self, rhs: f32) -> bevy::math::Quat; + +"#, + r#" +/// Subtracts the `rhs` quaternion from `self`. +/// The difference is not guaranteed to be normalized. + + #[lua( + as_trait = "std::ops::Sub", + kind = "Function", + output(proxy), + composite = "sub", + metamethod = "Sub", + )] + fn sub(self, #[proxy] rhs: bevy::math::Quat) -> bevy::math::Quat; + "#, r#" @@ -8256,34 +7924,6 @@ functions[r#" )] fn add(self, #[proxy] rhs: bevy::math::Quat) -> bevy::math::Quat; -"#, - r#" -/// Divides a quaternion by a scalar value. -/// The quotient is not guaranteed to be normalized. - - #[lua( - as_trait = "std::ops::Div", - kind = "Function", - output(proxy), - composite = "div", - metamethod = "Div", - )] - fn div(self, rhs: f32) -> bevy::math::Quat; - -"#, - r#" -/// Subtracts the `rhs` quaternion from `self`. -/// The difference is not guaranteed to be normalized. - - #[lua( - as_trait = "std::ops::Sub", - kind = "Function", - output(proxy), - composite = "sub", - metamethod = "Sub", - )] - fn sub(self, #[proxy] rhs: bevy::math::Quat) -> bevy::math::Quat; - "#, r#" @@ -8892,6 +8532,18 @@ functions[r#" #[lua(kind = "Method", output(proxy))] fn as_u64vec3(&self) -> bevy::math::U64Vec3; +"#, + r#" + + #[lua( + as_trait = "std::ops::Neg", + kind = "Function", + output(proxy), + composite = "neg", + metamethod = "Unm", + )] + fn neg(self) -> bevy::math::Vec3A; + "#, r#" @@ -8908,18 +8560,6 @@ functions[r#" )] fn clone(&self) -> bevy::math::Vec3A; -"#, - r#" - - #[lua( - as_trait = "std::ops::Neg", - kind = "Function", - output(proxy), - composite = "neg", - metamethod = "Unm", - )] - fn neg(self) -> bevy::math::Vec3A; - "#] )] @@ -9463,12 +9103,6 @@ functions[r#" #[lua(kind = "Method", output(proxy))] fn as_u64vec4(&self) -> bevy::math::U64Vec4; -"#, - r#" - - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] rhs: &glam::Vec4) -> bool; - "#, r#" @@ -9479,6 +9113,12 @@ functions[r#" )] fn clone(&self) -> bevy::math::Vec4; +"#, + r#" + + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] rhs: &glam::Vec4) -> bool; + "#, r#" @@ -10191,13 +9831,23 @@ functions[r#" r#" #[lua( - as_trait = "std::ops::Add", + as_trait = "std::ops::Neg", kind = "Function", output(proxy), - composite = "add", - metamethod = "Add", + composite = "neg", + metamethod = "Unm", )] - fn add(self, #[proxy] rhs: bevy::math::DMat2) -> bevy::math::DMat2; + fn neg(self) -> bevy::math::DMat2; + +"#, + r#" + + #[lua( + as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", + kind = "Method", + output(proxy), + )] + fn clone(&self) -> bevy::math::DMat2; "#, r#" @@ -10215,13 +9865,13 @@ functions[r#" r#" #[lua( - as_trait = "std::ops::Neg", + as_trait = "std::ops::Add", kind = "Function", output(proxy), - composite = "neg", - metamethod = "Unm", + composite = "add", + metamethod = "Add", )] - fn neg(self) -> bevy::math::DMat2; + fn add(self, #[proxy] rhs: bevy::math::DMat2) -> bevy::math::DMat2; "#, r#" @@ -10229,16 +9879,6 @@ functions[r#" #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] fn eq(&self, #[proxy] rhs: &glam::DMat2) -> bool; -"#, - r#" - - #[lua( - as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", - kind = "Method", - output(proxy), - )] - fn clone(&self) -> bevy::math::DMat2; - "#] )] @@ -10588,17 +10228,25 @@ functions[r#" r#" #[lua( - as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", - kind = "Method", + as_trait = "std::ops::Neg", + kind = "Function", output(proxy), + composite = "neg", + metamethod = "Unm", )] - fn clone(&self) -> bevy::math::DMat3; + fn neg(self) -> bevy::math::DMat3; "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] rhs: &glam::DMat3) -> bool; + #[lua( + as_trait = "std::ops::Add", + kind = "Function", + output(proxy), + composite = "add", + metamethod = "Add", + )] + fn add(self, #[proxy] rhs: bevy::math::DMat3) -> bevy::math::DMat3; "#, r#" @@ -10616,25 +10264,17 @@ functions[r#" r#" #[lua( - as_trait = "std::ops::Neg", - kind = "Function", + as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", + kind = "Method", output(proxy), - composite = "neg", - metamethod = "Unm", )] - fn neg(self) -> bevy::math::DMat3; + fn clone(&self) -> bevy::math::DMat3; "#, r#" - #[lua( - as_trait = "std::ops::Add", - kind = "Function", - output(proxy), - composite = "add", - metamethod = "Add", - )] - fn add(self, #[proxy] rhs: bevy::math::DMat3) -> bevy::math::DMat3; + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] rhs: &glam::DMat3) -> bool; "#] )] @@ -11233,8 +10873,14 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] rhs: &glam::DMat4) -> bool; + #[lua( + as_trait = "std::ops::Add", + kind = "Function", + output(proxy), + composite = "add", + metamethod = "Add", + )] + fn add(self, #[proxy] rhs: bevy::math::DMat4) -> bevy::math::DMat4; "#, r#" @@ -11251,36 +10897,30 @@ functions[r#" "#, r#" - #[lua( - as_trait = "std::ops::Add", - kind = "Function", - output(proxy), - composite = "add", - metamethod = "Add", - )] - fn add(self, #[proxy] rhs: bevy::math::DMat4) -> bevy::math::DMat4; + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] rhs: &glam::DMat4) -> bool; "#, r#" #[lua( - as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", - kind = "Method", + as_trait = "std::ops::Neg", + kind = "Function", output(proxy), + composite = "neg", + metamethod = "Unm", )] - fn clone(&self) -> bevy::math::DMat4; + fn neg(self) -> bevy::math::DMat4; "#, r#" #[lua( - as_trait = "std::ops::Neg", - kind = "Function", + as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", + kind = "Method", output(proxy), - composite = "neg", - metamethod = "Unm", )] - fn neg(self) -> bevy::math::DMat4; + fn clone(&self) -> bevy::math::DMat4; "#] )] @@ -11674,27 +11314,9 @@ functions[r#" "#, r#" -/// Subtracts the `rhs` quaternion from `self`. -/// The difference is not guaranteed to be normalized. - - #[lua( - as_trait = "std::ops::Sub", - kind = "Function", - output(proxy), - composite = "sub", - metamethod = "Sub", - )] - fn sub(self, #[proxy] rhs: bevy::math::DQuat) -> bevy::math::DQuat; - -"#, - r#" - - #[lua( - as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", - kind = "Method", - output(proxy), - )] - fn clone(&self) -> bevy::math::DQuat; + + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] rhs: &glam::DQuat) -> bool; "#, r#" @@ -11724,6 +11346,16 @@ functions[r#" )] fn add(self, #[proxy] rhs: bevy::math::DQuat) -> bevy::math::DQuat; +"#, + r#" + + #[lua( + as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", + kind = "Method", + output(proxy), + )] + fn clone(&self) -> bevy::math::DQuat; + "#, r#" /// Divides a quaternion by a scalar value. @@ -11740,9 +11372,17 @@ functions[r#" "#, r#" +/// Subtracts the `rhs` quaternion from `self`. +/// The difference is not guaranteed to be normalized. - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] rhs: &glam::DQuat) -> bool; + #[lua( + as_trait = "std::ops::Sub", + kind = "Function", + output(proxy), + composite = "sub", + metamethod = "Sub", + )] + fn sub(self, #[proxy] rhs: bevy::math::DQuat) -> bevy::math::DQuat; "#] )] @@ -12338,16 +11978,6 @@ functions[r#" #[lua(kind = "Method", output(proxy))] fn as_u64vec2(&self) -> bevy::math::U64Vec2; -"#, - r#" - - #[lua( - as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", - kind = "Method", - output(proxy), - )] - fn clone(&self) -> bevy::math::DVec2; - "#, r#" @@ -12366,6 +11996,16 @@ functions[r#" #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] fn eq(&self, #[proxy] other: &glam::DVec2) -> bool; +"#, + r#" + + #[lua( + as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", + kind = "Method", + output(proxy), + )] + fn clone(&self) -> bevy::math::DVec2; + "#] )] @@ -12960,12 +12600,6 @@ functions[r#" #[lua(kind = "Method", output(proxy))] fn as_u64vec3(&self) -> bevy::math::U64Vec3; -"#, - r#" - - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &glam::DVec3) -> bool; - "#, r#" @@ -12988,6 +12622,12 @@ functions[r#" )] fn clone(&self) -> bevy::math::DVec3; +"#, + r#" + + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &glam::DVec3) -> bool; + "#] )] @@ -13537,11 +13177,13 @@ functions[r#" r#" #[lua( - as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", - kind = "Method", + as_trait = "std::ops::Neg", + kind = "Function", output(proxy), + composite = "neg", + metamethod = "Unm", )] - fn clone(&self) -> bevy::math::DVec4; + fn neg(self) -> bevy::math::DVec4; "#, r#" @@ -13553,13 +13195,11 @@ functions[r#" r#" #[lua( - as_trait = "std::ops::Neg", - kind = "Function", + as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", + kind = "Method", output(proxy), - composite = "neg", - metamethod = "Unm", )] - fn neg(self) -> bevy::math::DVec4; + fn clone(&self) -> bevy::math::DVec4; "#] )] @@ -13936,18 +13576,6 @@ functions[r#" #[lua(kind = "Method", output(proxy))] fn saturating_div(self, #[proxy] rhs: bevy::math::IVec2) -> bevy::math::IVec2; -"#, - r#" - - #[lua( - as_trait = "std::ops::Neg", - kind = "Function", - output(proxy), - composite = "neg", - metamethod = "Unm", - )] - fn neg(self) -> bevy::math::IVec2; - "#, r#" @@ -13960,6 +13588,18 @@ functions[r#" #[lua(as_trait = "std::cmp::Eq", kind = "Method")] fn assert_receiver_is_total_eq(&self) -> (); +"#, + r#" + + #[lua( + as_trait = "std::ops::Neg", + kind = "Function", + output(proxy), + composite = "neg", + metamethod = "Unm", + )] + fn neg(self) -> bevy::math::IVec2; + "#, r#" @@ -14343,12 +13983,6 @@ functions[r#" #[lua(kind = "Method", output(proxy))] fn saturating_div(self, #[proxy] rhs: bevy::math::IVec3) -> bevy::math::IVec3; -"#, - r#" - - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &glam::IVec3) -> bool; - "#, r#" @@ -14364,8 +13998,8 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &glam::IVec3) -> bool; "#, r#" @@ -14377,6 +14011,12 @@ functions[r#" )] fn clone(&self) -> bevy::math::IVec3; +"#, + r#" + + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); + "#] )] @@ -14729,12 +14369,6 @@ functions[r#" #[lua(kind = "Method", output(proxy))] fn saturating_div(self, #[proxy] rhs: bevy::math::IVec4) -> bevy::math::IVec4; -"#, - r#" - - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &glam::IVec4) -> bool; - "#, r#" @@ -14763,6 +14397,12 @@ functions[r#" )] fn neg(self) -> bevy::math::IVec4; +"#, + r#" + + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &glam::IVec4) -> bool; + "#] )] @@ -15062,6 +14702,12 @@ functions[r#" #[lua(kind = "Method", output(proxy))] fn saturating_div(self, #[proxy] rhs: bevy::math::UVec2) -> bevy::math::UVec2; +"#, + r#" + + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); + "#, r#" @@ -15078,12 +14724,6 @@ functions[r#" )] fn clone(&self) -> bevy::math::UVec2; -"#, - r#" - - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); - "#] )] @@ -15408,8 +15048,12 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &glam::UVec3) -> bool; + #[lua( + as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", + kind = "Method", + output(proxy), + )] + fn clone(&self) -> bevy::math::UVec3; "#, r#" @@ -15420,12 +15064,8 @@ functions[r#" "#, r#" - #[lua( - as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", - kind = "Method", - output(proxy), - )] - fn clone(&self) -> bevy::math::UVec3; + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &glam::UVec3) -> bool; "#] )] @@ -15730,12 +15370,8 @@ functions[r#" "#, r#" - #[lua( - as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", - kind = "Method", - output(proxy), - )] - fn clone(&self) -> bevy::math::UVec4; + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &glam::UVec4) -> bool; "#, r#" @@ -15746,8 +15382,12 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &glam::UVec4) -> bool; + #[lua( + as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", + kind = "Method", + output(proxy), + )] + fn clone(&self) -> bevy::math::UVec4; "#] )] @@ -16124,21 +15764,17 @@ functions[r#" #[lua(kind = "Method", output(proxy))] fn saturating_div(self, #[proxy] rhs: bevy::math::I64Vec2) -> bevy::math::I64Vec2; -"#, - r#" - - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); - "#, r#" #[lua( - as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", - kind = "Method", + as_trait = "std::ops::Neg", + kind = "Function", output(proxy), + composite = "neg", + metamethod = "Unm", )] - fn clone(&self) -> bevy::math::I64Vec2; + fn neg(self) -> bevy::math::I64Vec2; "#, r#" @@ -16146,17 +15782,21 @@ functions[r#" #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] fn eq(&self, #[proxy] other: &glam::I64Vec2) -> bool; +"#, + r#" + + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); + "#, r#" #[lua( - as_trait = "std::ops::Neg", - kind = "Function", + as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", + kind = "Method", output(proxy), - composite = "neg", - metamethod = "Unm", )] - fn neg(self) -> bevy::math::I64Vec2; + fn clone(&self) -> bevy::math::I64Vec2; "#] )] @@ -16534,18 +16174,14 @@ functions[r#" "#, r#" - #[lua( - as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", - kind = "Method", - output(proxy), - )] - fn clone(&self) -> bevy::math::I64Vec3; + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &glam::I64Vec3) -> bool; "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &glam::I64Vec3) -> bool; + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); "#, r#" @@ -16562,8 +16198,12 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); + #[lua( + as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", + kind = "Method", + output(proxy), + )] + fn clone(&self) -> bevy::math::I64Vec3; "#] )] @@ -16917,12 +16557,6 @@ functions[r#" #[lua(kind = "Method", output(proxy))] fn saturating_div(self, #[proxy] rhs: bevy::math::I64Vec4) -> bevy::math::I64Vec4; -"#, - r#" - - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &glam::I64Vec4) -> bool; - "#, r#" @@ -16933,12 +16567,6 @@ functions[r#" )] fn clone(&self) -> bevy::math::I64Vec4; -"#, - r#" - - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); - "#, r#" @@ -16951,6 +16579,18 @@ functions[r#" )] fn neg(self) -> bevy::math::I64Vec4; +"#, + r#" + + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &glam::I64Vec4) -> bool; + +"#, + r#" + + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); + "#] )] @@ -17250,6 +16890,12 @@ functions[r#" #[lua(kind = "Method", output(proxy))] fn saturating_div(self, #[proxy] rhs: bevy::math::U64Vec2) -> bevy::math::U64Vec2; +"#, + r#" + + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); + "#, r#" @@ -17266,12 +16912,6 @@ functions[r#" #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] fn eq(&self, #[proxy] other: &glam::U64Vec2) -> bool; -"#, - r#" - - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); - "#] )] @@ -17606,14 +17246,14 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &glam::U64Vec3) -> bool; "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &glam::U64Vec3) -> bool; + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); "#] )] @@ -17915,6 +17555,12 @@ functions[r#" #[lua(kind = "Method", output(proxy))] fn saturating_div(self, #[proxy] rhs: bevy::math::U64Vec4) -> bevy::math::U64Vec4; +"#, + r#" + + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &glam::U64Vec4) -> bool; + "#, r#" @@ -17931,12 +17577,6 @@ functions[r#" #[lua(as_trait = "std::cmp::Eq", kind = "Method")] fn assert_receiver_is_total_eq(&self) -> (); -"#, - r#" - - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &glam::U64Vec4) -> bool; - "#] )] @@ -18163,12 +17803,8 @@ functions[r#" "#, r#" - #[lua( - as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", - kind = "Method", - output(proxy), - )] - fn clone(&self) -> std::num::NonZeroU8; + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); "#, r#" @@ -18179,8 +17815,12 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); + #[lua( + as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", + kind = "Method", + output(proxy), + )] + fn clone(&self) -> std::num::NonZeroU8; "#] )] @@ -18413,8 +18053,8 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &std::num::NonZeroU16) -> bool; "#, r#" @@ -18429,8 +18069,8 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &std::num::NonZeroU16) -> bool; + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); "#] )] @@ -18666,12 +18306,6 @@ functions[r#" #[lua(as_trait = "std::cmp::Eq", kind = "Method")] fn assert_receiver_is_total_eq(&self) -> (); -"#, - r#" - - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &std::num::NonZeroU32) -> bool; - "#, r#" @@ -18682,6 +18316,12 @@ functions[r#" )] fn clone(&self) -> std::num::NonZeroU32; +"#, + r#" + + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &std::num::NonZeroU32) -> bool; + "#] )] @@ -19163,12 +18803,8 @@ functions[r#" "#, r#" - #[lua( - as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", - kind = "Method", - output(proxy), - )] - fn clone(&self) -> std::num::NonZeroU128; + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &std::num::NonZeroU128) -> bool; "#, r#" @@ -19179,8 +18815,12 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &std::num::NonZeroU128) -> bool; + #[lua( + as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", + kind = "Method", + output(proxy), + )] + fn clone(&self) -> std::num::NonZeroU128; "#] )] @@ -19410,6 +19050,12 @@ functions[r#" #[lua(kind = "Method", output(proxy))] fn saturating_pow(self, other: u32) -> std::num::NonZeroUsize; +"#, + r#" + + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); + "#, r#" @@ -19426,12 +19072,6 @@ functions[r#" #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] fn eq(&self, #[proxy] other: &std::num::NonZeroUsize) -> bool; -"#, - r#" - - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); - "#] )] @@ -19766,16 +19406,6 @@ functions[r#" #[lua(kind = "Method", output(proxy))] fn saturating_pow(self, other: u32) -> std::num::NonZeroI8; -"#, - r#" - - #[lua( - as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", - kind = "Method", - output(proxy), - )] - fn clone(&self) -> std::num::NonZeroI8; - "#, r#" @@ -19800,6 +19430,16 @@ functions[r#" )] fn neg(self) -> std::num::NonZeroI8; +"#, + r#" + + #[lua( + as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", + kind = "Method", + output(proxy), + )] + fn clone(&self) -> std::num::NonZeroI8; + "#] )] @@ -20138,6 +19778,12 @@ functions[r#" #[lua(kind = "Method", output(proxy))] fn saturating_pow(self, other: u32) -> std::num::NonZeroI16; +"#, + r#" + + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); + "#, r#" @@ -20148,29 +19794,23 @@ functions[r#" r#" #[lua( - as_trait = "std::ops::Neg", - kind = "Function", + as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", + kind = "Method", output(proxy), - composite = "neg", - metamethod = "Unm", )] - fn neg(self) -> std::num::NonZeroI16; - -"#, - r#" - - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); + fn clone(&self) -> std::num::NonZeroI16; "#, r#" #[lua( - as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", - kind = "Method", + as_trait = "std::ops::Neg", + kind = "Function", output(proxy), + composite = "neg", + metamethod = "Unm", )] - fn clone(&self) -> std::num::NonZeroI16; + fn neg(self) -> std::num::NonZeroI16; "#] )] @@ -20525,8 +20165,8 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &std::num::NonZeroI32) -> bool; + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); "#, r#" @@ -20541,8 +20181,8 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &std::num::NonZeroI32) -> bool; "#] )] @@ -20885,14 +20525,8 @@ functions[r#" "#, r#" - #[lua( - as_trait = "std::ops::Neg", - kind = "Function", - output(proxy), - composite = "neg", - metamethod = "Unm", - )] - fn neg(self) -> std::num::NonZeroI64; + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); "#, r#" @@ -20907,14 +20541,20 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &std::num::NonZeroI64) -> bool; + #[lua( + as_trait = "std::ops::Neg", + kind = "Function", + output(proxy), + composite = "neg", + metamethod = "Unm", + )] + fn neg(self) -> std::num::NonZeroI64; "#, r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &std::num::NonZeroI64) -> bool; "#] )] @@ -21257,8 +20897,12 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &std::num::NonZeroI128) -> bool; + #[lua( + as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", + kind = "Method", + output(proxy), + )] + fn clone(&self) -> std::num::NonZeroI128; "#, r#" @@ -21275,18 +20919,14 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &std::num::NonZeroI128) -> bool; "#, r#" - #[lua( - as_trait = "bevy::reflect::erased_serde::__private::serde::__private::Clone", - kind = "Method", - output(proxy), - )] - fn clone(&self) -> std::num::NonZeroI128; + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); "#] )] @@ -21626,6 +21266,12 @@ functions[r#" #[lua(kind = "Method", output(proxy))] fn saturating_pow(self, other: u32) -> std::num::NonZeroIsize; +"#, + r#" + + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &std::num::NonZeroIsize) -> bool; + "#, r#" @@ -21654,12 +21300,6 @@ functions[r#" )] fn clone(&self) -> std::num::NonZeroIsize; -"#, - r#" - - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &std::num::NonZeroIsize) -> bool; - "#] )] @@ -21733,14 +21373,14 @@ derive(clone,debug,), remote="std::ops::RangeFull", functions[r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &std::ops::RangeFull) -> bool; "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &std::ops::RangeFull) -> bool; + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); "#, r#" @@ -22229,29 +21869,23 @@ functions[r#" #[lua(kind = "Method", output(proxy))] fn div_f32(self, rhs: f32) -> bevy::utils::Duration; -"#, - r#" - - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); - "#, r#" #[lua( - as_trait = "std::ops::Add", + as_trait = "std::ops::Sub", kind = "Function", output(proxy), - composite = "add", - metamethod = "Add", + composite = "sub", + metamethod = "Sub", )] - fn add(self, #[proxy] rhs: bevy::utils::Duration) -> bevy::utils::Duration; + fn sub(self, #[proxy] rhs: bevy::utils::Duration) -> bevy::utils::Duration; "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &bevy_utils::Duration) -> bool; + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); "#, r#" @@ -22269,25 +21903,19 @@ functions[r#" r#" #[lua( - as_trait = "std::ops::Mul", + as_trait = "std::ops::Add", kind = "Function", output(proxy), - composite = "mul", - metamethod = "Mul", + composite = "add", + metamethod = "Add", )] - fn mul(self, rhs: u32) -> bevy::utils::Duration; + fn add(self, #[proxy] rhs: bevy::utils::Duration) -> bevy::utils::Duration; "#, r#" - #[lua( - as_trait = "std::ops::Sub", - kind = "Function", - output(proxy), - composite = "sub", - metamethod = "Sub", - )] - fn sub(self, #[proxy] rhs: bevy::utils::Duration) -> bevy::utils::Duration; + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &bevy_utils::Duration) -> bool; "#, r#" @@ -22299,6 +21927,18 @@ functions[r#" )] fn clone(&self) -> bevy::utils::Duration; +"#, + r#" + + #[lua( + as_trait = "std::ops::Mul", + kind = "Function", + output(proxy), + composite = "mul", + metamethod = "Mul", + )] + fn mul(self, rhs: u32) -> bevy::utils::Duration; + "#] )] @@ -22395,11 +22035,6 @@ impl bevy_mod_scripting_lua::tealr::mlu::ExportInstances for Globals { - instances.add_instance("LuaOsString", - bevy_mod_scripting_lua::tealr::mlu::UserDataProxy::::new)?; - - - instances.add_instance("LuaPlane3d", bevy_mod_scripting_lua::tealr::mlu::UserDataProxy::::new)?; @@ -22804,11 +22439,6 @@ impl bevy_mod_scripting_core::hosts::APIProvider for BevyReflectAPIProvider { .process_type::>() - .process_type::() - - .process_type::>() - - .process_type::() .process_type::>() @@ -23180,8 +22810,6 @@ impl bevy_mod_scripting_core::hosts::APIProvider for BevyReflectAPIProvider { app.register_foreign_lua_type::(); - app.register_foreign_lua_type::(); - app.register_foreign_lua_type::(); app.register_foreign_lua_type::(); diff --git a/crates/bevy_script_api/src/providers/bevy_time.rs b/crates/bevy_script_api/src/providers/bevy_time.rs index 95d44a7c..43c08b88 100644 --- a/crates/bevy_script_api/src/providers/bevy_time.rs +++ b/crates/bevy_script_api/src/providers/bevy_time.rs @@ -403,14 +403,14 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &stopwatch::Stopwatch) -> bool; + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::time::Stopwatch; "#, r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::time::Stopwatch; + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &stopwatch::Stopwatch) -> bool; "#, r#" @@ -779,8 +779,8 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::time::prelude::Timer; "#, r#" @@ -791,8 +791,8 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::time::prelude::Timer; + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); "#] )] @@ -826,8 +826,8 @@ derive(clone,debug,), remote="bevy::time::prelude::TimerMode", functions[r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &timer::TimerMode) -> bool; + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); "#, r#" @@ -838,8 +838,8 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &timer::TimerMode) -> bool; "#] )] diff --git a/crates/bevy_script_api/src/providers/bevy_transform.rs b/crates/bevy_script_api/src/providers/bevy_transform.rs index 472afec6..4835f276 100644 --- a/crates/bevy_script_api/src/providers/bevy_transform.rs +++ b/crates/bevy_script_api/src/providers/bevy_transform.rs @@ -252,14 +252,14 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &components::global_transform::GlobalTransform) -> bool; + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::transform::components::GlobalTransform; "#, r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::transform::components::GlobalTransform; + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &components::global_transform::GlobalTransform) -> bool; "#] )] diff --git a/crates/bevy_script_api/src/providers/bevy_window.rs b/crates/bevy_script_api/src/providers/bevy_window.rs index 3c298c7f..eb36a969 100644 --- a/crates/bevy_script_api/src/providers/bevy_window.rs +++ b/crates/bevy_script_api/src/providers/bevy_window.rs @@ -78,14 +78,14 @@ derive(clone,debug,), remote="bevy::window::WindowResized", functions[r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::window::WindowResized; + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &event::WindowResized) -> bool; "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &event::WindowResized) -> bool; + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::window::WindowResized; "#] )] @@ -111,12 +111,6 @@ derive(clone,debug,), remote="bevy::window::RequestRedraw", functions[r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &event::RequestRedraw) -> bool; - -"#, - r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] fn clone(&self) -> bevy::window::RequestRedraw; @@ -126,6 +120,12 @@ functions[r#" #[lua(as_trait = "std::cmp::Eq", kind = "Method")] fn assert_receiver_is_total_eq(&self) -> (); +"#, + r#" + + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &event::RequestRedraw) -> bool; + "#] )] @@ -150,8 +150,8 @@ derive(clone,debug,), remote="bevy::window::WindowCreated", functions[r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::window::WindowCreated; + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); "#, r#" @@ -162,8 +162,8 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::window::WindowCreated; "#] )] @@ -201,8 +201,8 @@ derive(clone,debug,), remote="bevy::window::WindowCloseRequested", functions[r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::window::WindowCloseRequested; + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &event::WindowCloseRequested) -> bool; "#, r#" @@ -213,8 +213,8 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &event::WindowCloseRequested) -> bool; + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::window::WindowCloseRequested; "#] )] @@ -240,20 +240,20 @@ derive(clone,debug,), remote="bevy::window::WindowClosed", functions[r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::window::WindowClosed; "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &event::WindowClosed) -> bool; + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); "#, r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::window::WindowClosed; + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &event::WindowClosed) -> bool; "#] )] @@ -281,12 +281,6 @@ derive(clone,debug,), remote="bevy::window::WindowDestroyed", functions[r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &event::WindowDestroyed) -> bool; - -"#, - r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] fn assert_receiver_is_total_eq(&self) -> (); @@ -296,6 +290,12 @@ functions[r#" #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] fn clone(&self) -> bevy::window::WindowDestroyed; +"#, + r#" + + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &event::WindowDestroyed) -> bool; + "#] )] @@ -369,14 +369,14 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::window::prelude::CursorEntered; + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); "#, r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::window::prelude::CursorEntered; "#] )] @@ -400,20 +400,20 @@ derive(clone,debug,), remote="bevy::window::prelude::CursorLeft", functions[r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &event::CursorLeft) -> bool; "#, r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::window::prelude::CursorLeft; + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &event::CursorLeft) -> bool; + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::window::prelude::CursorLeft; "#] )] @@ -478,12 +478,6 @@ derive(clone,debug,), remote="bevy::window::prelude::Ime", functions[r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); - -"#, - r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] fn eq(&self, #[proxy] other: &event::Ime) -> bool; @@ -493,6 +487,12 @@ functions[r#" #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] fn clone(&self) -> bevy::window::prelude::Ime; +"#, + r#" + + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); + "#] )] @@ -513,8 +513,8 @@ derive(clone,debug,), remote="bevy::window::WindowFocused", functions[r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &event::WindowFocused) -> bool; + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); "#, r#" @@ -525,8 +525,8 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &event::WindowFocused) -> bool; "#] )] @@ -560,20 +560,20 @@ derive(clone,debug,), remote="bevy::window::WindowOccluded", functions[r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::window::WindowOccluded; + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &event::WindowOccluded) -> bool; "#, r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::window::WindowOccluded; "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &event::WindowOccluded) -> bool; + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); "#] )] @@ -628,14 +628,14 @@ derive(clone,debug,), remote="bevy::window::WindowBackendScaleFactorChanged", functions[r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &event::WindowBackendScaleFactorChanged) -> bool; + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::window::WindowBackendScaleFactorChanged; "#, r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::window::WindowBackendScaleFactorChanged; + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &event::WindowBackendScaleFactorChanged) -> bool; "#] )] @@ -659,8 +659,8 @@ derive(clone,debug,), remote="bevy::window::prelude::FileDragAndDrop", functions[r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &event::FileDragAndDrop) -> bool; "#, r#" @@ -671,8 +671,8 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &event::FileDragAndDrop) -> bool; + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); "#] )] @@ -694,14 +694,14 @@ derive(clone,debug,), remote="bevy::window::prelude::WindowMoved", functions[r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::window::prelude::WindowMoved; "#, r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::window::prelude::WindowMoved; + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); "#, r#" @@ -735,20 +735,20 @@ derive(clone,debug,), remote="bevy::window::WindowThemeChanged", functions[r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::window::WindowThemeChanged; + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &event::WindowThemeChanged) -> bool; "#, r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::window::WindowThemeChanged; "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &event::WindowThemeChanged) -> bool; + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); "#] )] @@ -772,14 +772,14 @@ derive(clone,debug,), remote="bevy::window::ApplicationLifetime", functions[r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::window::ApplicationLifetime; + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); "#, r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::window::ApplicationLifetime; "#, r#" @@ -821,14 +821,14 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &window::PrimaryWindow) -> bool; + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::window::PrimaryWindow; "#, r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::window::PrimaryWindow; + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &window::PrimaryWindow) -> bool; "#] )] @@ -883,12 +883,6 @@ functions[r#" #[lua(kind = "Method", output(proxy))] fn entity(&self) -> bevy::ecs::entity::Entity; -"#, - r#" - - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &window::NormalizedWindowRef) -> bool; - "#, r#" @@ -901,6 +895,12 @@ functions[r#" #[lua(as_trait = "std::cmp::Eq", kind = "Method")] fn assert_receiver_is_total_eq(&self) -> (); +"#, + r#" + + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &window::NormalizedWindowRef) -> bool; + "#] )] @@ -1069,14 +1069,14 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &window::WindowResizeConstraints) -> bool; + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::window::prelude::WindowResizeConstraints; "#, r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::window::prelude::WindowResizeConstraints; + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &window::WindowResizeConstraints) -> bool; "#] )] @@ -1153,14 +1153,14 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::window::prelude::WindowPosition; + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &window::WindowPosition) -> bool; "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &window::WindowPosition) -> bool; + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::window::prelude::WindowPosition; "#] )] @@ -1403,12 +1403,6 @@ derive(clone,debug,), remote="bevy::window::CursorGrabMode", functions[r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::window::CursorGrabMode; - -"#, - r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] fn assert_receiver_is_total_eq(&self) -> (); @@ -1418,6 +1412,12 @@ functions[r#" #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] fn eq(&self, #[proxy] other: &window::CursorGrabMode) -> bool; +"#, + r#" + + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::window::CursorGrabMode; + "#] )] @@ -1491,12 +1491,6 @@ derive(clone,debug,), remote="bevy::window::prelude::MonitorSelection", functions[r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::window::prelude::MonitorSelection; - -"#, - r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] fn eq(&self, #[proxy] other: &window::MonitorSelection) -> bool; @@ -1506,6 +1500,12 @@ functions[r#" #[lua(as_trait = "std::cmp::Eq", kind = "Method")] fn assert_receiver_is_total_eq(&self) -> (); +"#, + r#" + + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::window::prelude::MonitorSelection; + "#] )] @@ -1554,12 +1554,6 @@ derive(clone,debug,), remote="bevy::window::PresentMode", functions[r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &window::PresentMode) -> bool; - -"#, - r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] fn assert_receiver_is_total_eq(&self) -> (); @@ -1569,6 +1563,12 @@ functions[r#" #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] fn clone(&self) -> bevy::window::PresentMode; +"#, + r#" + + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &window::PresentMode) -> bool; + "#] )] @@ -1595,14 +1595,14 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &window::CompositeAlphaMode) -> bool; + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::window::CompositeAlphaMode; "#, r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::window::CompositeAlphaMode; + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &window::CompositeAlphaMode) -> bool; "#] )] @@ -1669,20 +1669,20 @@ derive(clone,debug,), remote="bevy::window::WindowLevel", functions[r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::window::WindowLevel; + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &window::WindowLevel) -> bool; "#, r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::window::WindowLevel; "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &window::WindowLevel) -> bool; + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); "#] )] @@ -1704,8 +1704,8 @@ derive(clone,debug,), remote="bevy::window::WindowTheme", functions[r#" - #[lua(as_trait = "std::cmp::Eq", kind = "Method")] - fn assert_receiver_is_total_eq(&self) -> (); + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::window::WindowTheme; "#, r#" @@ -1716,8 +1716,8 @@ functions[r#" "#, r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::window::WindowTheme; + #[lua(as_trait = "std::cmp::Eq", kind = "Method")] + fn assert_receiver_is_total_eq(&self) -> (); "#] )] @@ -1745,14 +1745,14 @@ derive(clone,debug,), remote="bevy::window::EnabledButtons", functions[r#" - #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] - fn clone(&self) -> bevy::window::EnabledButtons; + #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] + fn eq(&self, #[proxy] other: &window::EnabledButtons) -> bool; "#, r#" - #[lua(as_trait = "std::cmp::PartialEq", kind = "Function", composite = "eq")] - fn eq(&self, #[proxy] other: &window::EnabledButtons) -> bool; + #[lua(as_trait = "std::clone::Clone", kind = "Method", output(proxy))] + fn clone(&self) -> bevy::window::EnabledButtons; "#] )]