diff --git a/wasm/example-unavi-layout/src/bindings.rs b/wasm/example-unavi-layout/src/bindings.rs index 9178adae7..0267c8460 100644 --- a/wasm/example-unavi-layout/src/bindings.rs +++ b/wasm/example-unavi-layout/src/bindings.rs @@ -6,7 +6,8 @@ pub mod unavi { pub mod container { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Vec3 = super::super::super::wired::math::types::Vec3; pub type Node = super::super::super::wired::scene::node::Node; @@ -18,10 +19,7 @@ pub mod unavi { Start, } impl ::core::fmt::Debug for Alignment { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { Alignment::Center => f.debug_tuple("Alignment::Center").finish(), Alignment::End => f.debug_tuple("Alignment::End").finish(), @@ -100,11 +98,7 @@ pub mod unavi { fn wit_import(_: f32, _: f32, _: f32) -> i32 { unreachable!() } - let ret = wit_import( - _rt::as_f32(x0), - _rt::as_f32(y0), - _rt::as_f32(z0), - ); + let ret = wit_import(_rt::as_f32(x0), _rt::as_f32(y0), _rt::as_f32(z0)); Container::from_handle(ret as u32) } } @@ -146,9 +140,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -169,9 +161,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -181,9 +171,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:layout/container")] @@ -256,9 +244,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:layout/container")] @@ -426,7 +412,8 @@ pub mod unavi { pub mod grid { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Container = super::super::super::unavi::layout::container::Container; pub type Vec3 = super::super::super::wired::math::types::Vec3; @@ -486,24 +473,10 @@ pub mod unavi { #[link(wasm_import_module = "unavi:layout/grid")] extern "C" { #[link_name = "[constructor]grid"] - fn wit_import( - _: f32, - _: f32, - _: f32, - _: f32, - _: f32, - _: f32, - ) -> i32; + fn wit_import(_: f32, _: f32, _: f32, _: f32, _: f32, _: f32) -> i32; } #[cfg(not(target_arch = "wasm32"))] - fn wit_import( - _: f32, - _: f32, - _: f32, - _: f32, - _: f32, - _: f32, - ) -> i32 { + fn wit_import(_: f32, _: f32, _: f32, _: f32, _: f32, _: f32) -> i32 { unreachable!() } let ret = wit_import( @@ -547,9 +520,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:layout/grid")] @@ -590,9 +561,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:layout/grid")] @@ -634,9 +603,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:layout/grid")] @@ -696,7 +663,8 @@ pub mod unavi { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Transform = super::super::super::wired::math::types::Transform; pub type Node = super::super::super::wired::scene::node::Node; @@ -782,9 +750,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:scene/api")] @@ -878,9 +844,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:scene/api")] @@ -929,9 +893,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -977,9 +939,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:scene/api")] @@ -1149,7 +1109,8 @@ pub mod unavi { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Vec2 = super::super::super::wired::math::types::Vec2; pub type Vec3 = super::super::super::wired::math::types::Vec3; @@ -1346,10 +1307,7 @@ pub mod unavi { pub subdivisions: u8, } impl ::core::fmt::Debug for SphereIco { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("SphereIco") .field("subdivisions", &self.subdivisions) .finish() @@ -1362,10 +1320,7 @@ pub mod unavi { pub stacks: u8, } impl ::core::fmt::Debug for SphereUv { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("SphereUv") .field("sectors", &self.sectors) .field("stacks", &self.stacks) @@ -1380,17 +1335,10 @@ pub mod unavi { Uv(SphereUv), } impl ::core::fmt::Debug for SphereKind { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - SphereKind::Ico(e) => { - f.debug_tuple("SphereKind::Ico").field(e).finish() - } - SphereKind::Uv(e) => { - f.debug_tuple("SphereKind::Uv").field(e).finish() - } + SphereKind::Ico(e) => f.debug_tuple("SphereKind::Ico").field(e).finish(), + SphereKind::Uv(e) => f.debug_tuple("SphereKind::Uv").field(e).finish(), } } } @@ -1472,10 +1420,7 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn new(size: Vec2) -> Self { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = size; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = size; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -1497,9 +1442,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -1514,10 +1457,7 @@ pub mod unavi { wit_import((self).handle() as i32, ptr0); let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); - super::super::super::wired::math::types::Vec2 { - x: l1, - y: l2, - } + super::super::super::wired::math::types::Vec2 { x: l1, y: l2 } } } } @@ -1525,10 +1465,7 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn set_size(&self, value: Vec2) { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = value; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -1539,11 +1476,7 @@ pub mod unavi { fn wit_import(_: i32, _: f32, _: f32) { unreachable!() } - wit_import( - (self).handle() as i32, - _rt::as_f32(x0), - _rt::as_f32(y0), - ); + wit_import((self).handle() as i32, _rt::as_f32(x0), _rt::as_f32(y0)); } } } @@ -1563,9 +1496,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1585,9 +1516,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1607,9 +1536,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1723,9 +1650,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1745,9 +1670,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1767,9 +1690,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1777,10 +1698,8 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn new(half_size: Vec2) -> Self { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = half_size; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = + half_size; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -1802,9 +1721,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -1819,10 +1736,7 @@ pub mod unavi { wit_import((self).handle() as i32, ptr0); let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); - super::super::super::wired::math::types::Vec2 { - x: l1, - y: l2, - } + super::super::super::wired::math::types::Vec2 { x: l1, y: l2 } } } } @@ -1830,10 +1744,7 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn set_half_size(&self, value: Vec2) { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = value; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -1844,11 +1755,7 @@ pub mod unavi { fn wit_import(_: i32, _: f32, _: f32) { unreachable!() } - wit_import( - (self).handle() as i32, - _rt::as_f32(x0), - _rt::as_f32(y0), - ); + wit_import((self).handle() as i32, _rt::as_f32(x0), _rt::as_f32(y0)); } } } @@ -1906,9 +1813,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1928,9 +1833,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1950,9 +1853,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -2185,9 +2086,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -2207,9 +2106,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -2229,9 +2126,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -2254,11 +2149,7 @@ pub mod unavi { fn wit_import(_: f32, _: f32, _: f32) -> i32 { unreachable!() } - let ret = wit_import( - _rt::as_f32(x0), - _rt::as_f32(y0), - _rt::as_f32(z0), - ); + let ret = wit_import(_rt::as_f32(x0), _rt::as_f32(y0), _rt::as_f32(z0)); Cuboid::from_handle(ret as u32) } } @@ -2269,9 +2160,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -2339,9 +2228,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -2361,9 +2248,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -2383,9 +2268,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -2470,9 +2353,7 @@ pub mod unavi { unsafe { #[repr(align(1))] struct RetArea([::core::mem::MaybeUninit; 3]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 3], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 3]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -2519,11 +2400,16 @@ pub mod unavi { unsafe { let (result2_0, result2_1, result2_2) = match value { SphereKind::Ico(e) => { - let SphereIco { subdivisions: subdivisions0 } = e; + let SphereIco { + subdivisions: subdivisions0, + } = e; (0i32, _rt::as_i32(subdivisions0), 0i32) } SphereKind::Uv(e) => { - let SphereUv { sectors: sectors1, stacks: stacks1 } = e; + let SphereUv { + sectors: sectors1, + stacks: stacks1, + } = e; (1i32, _rt::as_i32(sectors1), _rt::as_i32(stacks1)) } }; @@ -2537,12 +2423,7 @@ pub mod unavi { fn wit_import(_: i32, _: i32, _: i32, _: i32) { unreachable!() } - wit_import( - (self).handle() as i32, - result2_0, - result2_1, - result2_2, - ); + wit_import((self).handle() as i32, result2_0, result2_1, result2_2); } } } @@ -2562,9 +2443,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -2584,9 +2463,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -2606,9 +2483,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -2684,9 +2559,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -2701,7 +2574,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; pub type Vec3 = super::super::super::wired::math::types::Vec3; pub type Quat = super::super::super::wired::math::types::Quat; #[repr(u8)] @@ -2711,10 +2585,7 @@ pub mod wired { Right, } impl ::core::fmt::Debug for HandSide { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { HandSide::Left => f.debug_tuple("HandSide::Left").finish(), HandSide::Right => f.debug_tuple("HandSide::Right").finish(), @@ -2742,10 +2613,7 @@ pub mod wired { pub radius: f32, } impl ::core::fmt::Debug for Joint { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Joint") .field("translation", &self.translation) .field("rotation", &self.rotation) @@ -2762,10 +2630,7 @@ pub mod wired { pub metacarpal: Joint, } impl ::core::fmt::Debug for Finger { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Finger") .field("tip", &self.tip) .field("distal", &self.distal) @@ -2789,10 +2654,7 @@ pub mod wired { pub elbow: Option, } impl ::core::fmt::Debug for Hand { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Hand") .field("side", &self.side) .field("thumb", &self.thumb) @@ -2814,10 +2676,7 @@ pub mod wired { pub origin: Vec3, } impl ::core::fmt::Debug for Ray { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Ray") .field("orientation", &self.orientation) .field("origin", &self.origin) @@ -2830,17 +2689,10 @@ pub mod wired { Ray(Ray), } impl ::core::fmt::Debug for InputData { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputData::Hand(e) => { - f.debug_tuple("InputData::Hand").field(e).finish() - } - InputData::Ray(e) => { - f.debug_tuple("InputData::Ray").field(e).finish() - } + InputData::Hand(e) => f.debug_tuple("InputData::Hand").field(e).finish(), + InputData::Ray(e) => f.debug_tuple("InputData::Ray").field(e).finish(), } } } @@ -2850,17 +2702,10 @@ pub mod wired { Hover, } impl ::core::fmt::Debug for InputAction { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputAction::Collision => { - f.debug_tuple("InputAction::Collision").finish() - } - InputAction::Hover => { - f.debug_tuple("InputAction::Hover").finish() - } + InputAction::Collision => f.debug_tuple("InputAction::Collision").finish(), + InputAction::Hover => f.debug_tuple("InputAction::Hover").finish(), } } } @@ -2875,10 +2720,7 @@ pub mod wired { pub data: InputData, } impl ::core::fmt::Debug for InputEvent { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("InputEvent") .field("id", &self.id) .field("action", &self.action) @@ -2891,7 +2733,8 @@ pub mod wired { pub mod handler { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type InputEvent = super::super::super::wired::input::types::InputEvent; #[derive(Debug)] @@ -2958,9 +2801,7 @@ pub mod wired { unsafe { #[repr(align(8))] struct RetArea([::core::mem::MaybeUninit; 768]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 768], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 768]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:input/handler")] @@ -3576,7 +3417,8 @@ pub mod wired { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; #[repr(u8)] #[derive(Clone, Copy, Eq, PartialEq)] pub enum LogLevel { @@ -3586,10 +3428,7 @@ pub mod wired { Error, } impl ::core::fmt::Debug for LogLevel { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { LogLevel::Debug => f.debug_tuple("LogLevel::Debug").finish(), LogLevel::Info => f.debug_tuple("LogLevel::Info").finish(), @@ -3640,7 +3479,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; #[repr(C)] #[derive(Clone, Copy)] pub struct Vec2 { @@ -3648,10 +3488,7 @@ pub mod wired { pub y: f32, } impl ::core::fmt::Debug for Vec2 { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Vec2") .field("x", &self.x) .field("y", &self.y) @@ -3666,10 +3503,7 @@ pub mod wired { pub z: f32, } impl ::core::fmt::Debug for Vec3 { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Vec3") .field("x", &self.x) .field("y", &self.y) @@ -3686,10 +3520,7 @@ pub mod wired { pub w: f32, } impl ::core::fmt::Debug for Quat { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Quat") .field("x", &self.x) .field("y", &self.y) @@ -3706,10 +3537,7 @@ pub mod wired { pub translation: Vec3, } impl ::core::fmt::Debug for Transform { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Transform") .field("rotation", &self.rotation) .field("scale", &self.scale) @@ -3762,7 +3590,11 @@ pub mod wired { let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); let l3 = *ptr0.add(8).cast::(); - Vec3 { x: l1, y: l2, z: l3 } + Vec3 { + x: l1, + y: l2, + z: l3, + } } } #[allow(unused_unsafe, clippy::all)] @@ -3787,7 +3619,12 @@ pub mod wired { let l2 = *ptr0.add(4).cast::(); let l3 = *ptr0.add(8).cast::(); let l4 = *ptr0.add(12).cast::(); - Quat { x: l1, y: l2, z: l3, w: l4 } + Quat { + x: l1, + y: l2, + z: l3, + w: l4, + } } } #[allow(unused_unsafe, clippy::all)] @@ -3819,9 +3656,22 @@ pub mod wired { let l9 = *ptr0.add(32).cast::(); let l10 = *ptr0.add(36).cast::(); Transform { - rotation: Quat { x: l1, y: l2, z: l3, w: l4 }, - scale: Vec3 { x: l5, y: l6, z: l7 }, - translation: Vec3 { x: l8, y: l9, z: l10 }, + rotation: Quat { + x: l1, + y: l2, + z: l3, + w: l4, + }, + scale: Vec3 { + x: l5, + y: l6, + z: l7, + }, + translation: Vec3 { + x: l8, + y: l9, + z: l10, + }, } } } @@ -3833,7 +3683,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Vec3 = super::super::super::wired::math::types::Vec3; #[derive(Debug)] @@ -3880,10 +3731,7 @@ pub mod wired { pub radius: f32, } impl ::core::fmt::Debug for ShapeCylinder { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("ShapeCylinder") .field("height", &self.height) .field("radius", &self.radius) @@ -3897,20 +3745,11 @@ pub mod wired { Sphere(f32), } impl ::core::fmt::Debug for Shape { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Shape::Cuboid(e) => { - f.debug_tuple("Shape::Cuboid").field(e).finish() - } - Shape::Cylinder(e) => { - f.debug_tuple("Shape::Cylinder").field(e).finish() - } - Shape::Sphere(e) => { - f.debug_tuple("Shape::Sphere").field(e).finish() - } + Shape::Cuboid(e) => f.debug_tuple("Shape::Cuboid").field(e).finish(), + Shape::Cylinder(e) => f.debug_tuple("Shape::Cylinder").field(e).finish(), + Shape::Sphere(e) => f.debug_tuple("Shape::Sphere").field(e).finish(), } } } @@ -3959,17 +3798,10 @@ pub mod wired { Kinematic, } impl ::core::fmt::Debug for RigidBodyType { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - RigidBodyType::Dynamic => { - f.debug_tuple("RigidBodyType::Dynamic").finish() - } - RigidBodyType::Fixed => { - f.debug_tuple("RigidBodyType::Fixed").finish() - } + RigidBodyType::Dynamic => f.debug_tuple("RigidBodyType::Dynamic").finish(), + RigidBodyType::Fixed => f.debug_tuple("RigidBodyType::Fixed").finish(), RigidBodyType::Kinematic => { f.debug_tuple("RigidBodyType::Kinematic").finish() } @@ -4004,7 +3836,10 @@ pub mod wired { (0i32, _rt::as_f32(x0), _rt::as_f32(y0), _rt::as_f32(z0)) } Shape::Cylinder(e) => { - let ShapeCylinder { height: height1, radius: radius1 } = e; + let ShapeCylinder { + height: height1, + radius: radius1, + } = e; (1i32, _rt::as_f32(height1), _rt::as_f32(radius1), 0.0f32) } Shape::Sphere(e) => (2i32, _rt::as_f32(e), 0.0f32, 0.0f32), @@ -4086,9 +3921,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:physics/types")] @@ -4146,9 +3979,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:physics/types")] @@ -4208,7 +4039,8 @@ pub mod wired { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Node = super::super::super::wired::scene::node::Node; pub struct Skeleton { @@ -4234,10 +4066,7 @@ pub mod wired { pub right_foot: Node, } impl ::core::fmt::Debug for Skeleton { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Skeleton") .field("hips", &self.hips) .field("spine", &self.spine) @@ -4314,9 +4143,7 @@ pub mod wired { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -4326,9 +4153,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 80]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 80], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 80]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:player/api")] @@ -4380,45 +4205,55 @@ pub mod wired { head: super::super::super::wired::scene::node::Node::from_handle( l6 as u32, ), - left_shoulder: super::super::super::wired::scene::node::Node::from_handle( - l7 as u32, - ), - left_upper_arm: super::super::super::wired::scene::node::Node::from_handle( - l8 as u32, - ), - left_lower_arm: super::super::super::wired::scene::node::Node::from_handle( - l9 as u32, - ), + left_shoulder: + super::super::super::wired::scene::node::Node::from_handle( + l7 as u32, + ), + left_upper_arm: + super::super::super::wired::scene::node::Node::from_handle( + l8 as u32, + ), + left_lower_arm: + super::super::super::wired::scene::node::Node::from_handle( + l9 as u32, + ), left_hand: super::super::super::wired::scene::node::Node::from_handle( l10 as u32, ), - right_shoulder: super::super::super::wired::scene::node::Node::from_handle( - l11 as u32, - ), - right_upper_arm: super::super::super::wired::scene::node::Node::from_handle( - l12 as u32, - ), - right_lower_arm: super::super::super::wired::scene::node::Node::from_handle( - l13 as u32, - ), + right_shoulder: + super::super::super::wired::scene::node::Node::from_handle( + l11 as u32, + ), + right_upper_arm: + super::super::super::wired::scene::node::Node::from_handle( + l12 as u32, + ), + right_lower_arm: + super::super::super::wired::scene::node::Node::from_handle( + l13 as u32, + ), right_hand: super::super::super::wired::scene::node::Node::from_handle( l14 as u32, ), - left_upper_leg: super::super::super::wired::scene::node::Node::from_handle( - l15 as u32, - ), - left_lower_leg: super::super::super::wired::scene::node::Node::from_handle( - l16 as u32, - ), + left_upper_leg: + super::super::super::wired::scene::node::Node::from_handle( + l15 as u32, + ), + left_lower_leg: + super::super::super::wired::scene::node::Node::from_handle( + l16 as u32, + ), left_foot: super::super::super::wired::scene::node::Node::from_handle( l17 as u32, ), - right_upper_leg: super::super::super::wired::scene::node::Node::from_handle( - l18 as u32, - ), - right_lower_leg: super::super::super::wired::scene::node::Node::from_handle( - l19 as u32, - ), + right_upper_leg: + super::super::super::wired::scene::node::Node::from_handle( + l18 as u32, + ), + right_lower_leg: + super::super::super::wired::scene::node::Node::from_handle( + l19 as u32, + ), right_foot: super::super::super::wired::scene::node::Node::from_handle( l20 as u32, ), @@ -4486,7 +4321,8 @@ pub mod wired { pub mod material { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; #[repr(C)] #[derive(Clone, Copy)] @@ -4497,10 +4333,7 @@ pub mod wired { pub a: f32, } impl ::core::fmt::Debug for Color { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Color") .field("r", &self.r) .field("g", &self.g) @@ -4610,9 +4443,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] @@ -4660,9 +4491,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 16]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 16], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 16]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] @@ -4692,7 +4521,12 @@ pub mod wired { #[allow(unused_unsafe, clippy::all)] pub fn set_color(&self, value: Color) { unsafe { - let Color { r: r0, g: g0, b: b0, a: a0 } = value; + let Color { + r: r0, + g: g0, + b: b0, + a: a0, + } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] extern "C" { @@ -4718,7 +4552,8 @@ pub mod wired { pub mod mesh { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Material = super::super::super::wired::scene::material::Material; #[derive(Debug)] @@ -4820,9 +4655,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -5022,9 +4855,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -5072,9 +4903,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -5138,10 +4967,7 @@ pub mod wired { fn wit_import(_: i32, _: i32) { unreachable!() } - wit_import( - (self).handle() as i32, - (&value).take_handle() as i32, - ); + wit_import((self).handle() as i32, (&value).take_handle() as i32); } } } @@ -5150,7 +4976,8 @@ pub mod wired { pub mod node { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Mesh = super::super::super::wired::scene::mesh::Mesh; pub type InputHandler = super::super::super::wired::input::handler::InputHandler; @@ -5258,9 +5085,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5308,9 +5133,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5383,9 +5206,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5419,9 +5240,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5471,9 +5290,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5598,9 +5415,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5658,9 +5473,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5718,9 +5531,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5778,9 +5589,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5837,7 +5646,8 @@ pub mod wired { pub mod scene { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Node = super::super::super::wired::scene::node::Node; #[derive(Debug)] @@ -5921,9 +5731,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/scene")] @@ -5971,9 +5779,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/scene")] @@ -6047,7 +5853,8 @@ pub mod wired { pub mod gltf { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Material = super::super::super::wired::scene::material::Material; pub type Mesh = super::super::super::wired::scene::mesh::Mesh; @@ -6117,9 +5924,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -6194,9 +5999,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -6271,9 +6074,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -6348,9 +6149,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -6426,9 +6225,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -6488,9 +6285,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -6543,7 +6338,8 @@ pub mod wired { pub mod glxf { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Gltf = super::super::super::wired::scene::gltf::Gltf; pub type Node = super::super::super::wired::scene::node::Node; @@ -6666,10 +6462,7 @@ pub mod wired { Glxf(AssetGlxf), } impl ::core::fmt::Debug for Asset { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { Asset::Gltf(e) => f.debug_tuple("Asset::Gltf").field(e).finish(), Asset::Glxf(e) => f.debug_tuple("Asset::Glxf").field(e).finish(), @@ -6681,10 +6474,7 @@ pub mod wired { Glxf(&'a AssetGlxf), } impl<'a> ::core::fmt::Debug for AssetBorrow<'a> { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { AssetBorrow::Gltf(e) => { f.debug_tuple("AssetBorrow::Gltf").field(e).finish() @@ -6737,17 +6527,10 @@ pub mod wired { Nodes(_rt::Vec), } impl ::core::fmt::Debug for Children { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Children::Asset(e) => { - f.debug_tuple("Children::Asset").field(e).finish() - } - Children::Nodes(e) => { - f.debug_tuple("Children::Nodes").field(e).finish() - } + Children::Asset(e) => f.debug_tuple("Children::Asset").field(e).finish(), + Children::Nodes(e) => f.debug_tuple("Children::Nodes").field(e).finish(), } } } @@ -6756,10 +6539,7 @@ pub mod wired { Nodes(_rt::Vec<&'a GlxfNode>), } impl<'a> ::core::fmt::Debug for ChildrenBorrow<'a> { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { ChildrenBorrow::Asset(e) => { f.debug_tuple("ChildrenBorrow::Asset").field(e).finish() @@ -6850,9 +6630,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6950,9 +6728,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7025,9 +6801,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7101,9 +6875,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7161,9 +6933,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7243,9 +7013,7 @@ pub mod wired { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::gltf::Gltf::from_handle( - ret as u32, - ) + super::super::super::wired::scene::gltf::Gltf::from_handle(ret as u32) } } } @@ -7257,9 +7025,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7374,9 +7140,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7487,9 +7251,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7537,9 +7299,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7664,9 +7424,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7700,9 +7458,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 16]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 16], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 16]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7734,7 +7490,10 @@ pub mod wired { Asset::Gltf(e6) } n => { - debug_assert_eq!(n, 1, "invalid enum discriminant"); + debug_assert_eq!( + n, 1, + "invalid enum discriminant" + ); let e6 = { let l5 = *ptr0.add(12).cast::(); AssetGlxf::from_handle(l5 as u32) @@ -7806,7 +7565,9 @@ pub mod wired { } ptr } else { - { ::core::ptr::null_mut() } + { + ::core::ptr::null_mut() + } }; for (i, e) in vec1.into_iter().enumerate() { let base = result1.add(i * 4); @@ -7891,9 +7652,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7941,9 +7700,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -8023,7 +7780,8 @@ pub mod exports { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::super::__link_custom_section_describing_imports; use super::super::super::super::_rt; #[derive(Debug)] #[repr(transparent)] @@ -8040,9 +7798,7 @@ pub mod exports { pub fn new(val: T) -> Self { Self::type_guard::(); let val: _ScriptRep = Some(val); - let ptr: *mut _ScriptRep = _rt::Box::into_raw( - _rt::Box::new(val), - ); + let ptr: *mut _ScriptRep = _rt::Box::into_raw(_rt::Box::new(val)); unsafe { Self::from_handle(T::_resource_new(ptr.cast())) } } /// Gets access to the underlying `T` which represents this resource. @@ -8080,12 +7836,13 @@ pub mod exports { use core::any::TypeId; static mut LAST_TYPE: Option = None; unsafe { - assert!(! cfg!(target_feature = "atomics")); + assert!(!cfg!(target_feature = "atomics")); let id = TypeId::of::(); match LAST_TYPE { Some(ty) => { assert!( - ty == id, "cannot use two types with this resource type" + ty == id, + "cannot use two types with this resource type" ) } None => LAST_TYPE = Some(id), @@ -8147,7 +7904,8 @@ pub mod exports { #[doc(hidden)] #[allow(non_snake_case)] pub unsafe fn _export_constructor_script_cabi() -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let result0 = Script::new(T::new()); (result0).take_handle() as i32 } @@ -8157,7 +7915,8 @@ pub mod exports { arg0: *mut u8, arg1: f32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::update(ScriptBorrow::lift(arg0 as u32 as usize).get(), arg1); } pub trait Guest { @@ -8295,7 +8054,9 @@ mod _rt { } impl fmt::Debug for Resource { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("Resource").field("handle", &self.handle).finish() + f.debug_struct("Resource") + .field("handle", &self.handle) + .finish() } } impl Drop for Resource { diff --git a/wasm/example-unavi-scene/src/bindings.rs b/wasm/example-unavi-scene/src/bindings.rs index 6b5dd7350..89b24c9c3 100644 --- a/wasm/example-unavi-scene/src/bindings.rs +++ b/wasm/example-unavi-scene/src/bindings.rs @@ -6,7 +6,8 @@ pub mod unavi { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Transform = super::super::super::wired::math::types::Transform; pub type Node = super::super::super::wired::scene::node::Node; @@ -92,9 +93,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:scene/api")] @@ -188,9 +187,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:scene/api")] @@ -239,9 +236,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -287,9 +282,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:scene/api")] @@ -459,7 +452,8 @@ pub mod unavi { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Vec2 = super::super::super::wired::math::types::Vec2; pub type Vec3 = super::super::super::wired::math::types::Vec3; @@ -656,10 +650,7 @@ pub mod unavi { pub subdivisions: u8, } impl ::core::fmt::Debug for SphereIco { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("SphereIco") .field("subdivisions", &self.subdivisions) .finish() @@ -672,10 +663,7 @@ pub mod unavi { pub stacks: u8, } impl ::core::fmt::Debug for SphereUv { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("SphereUv") .field("sectors", &self.sectors) .field("stacks", &self.stacks) @@ -690,17 +678,10 @@ pub mod unavi { Uv(SphereUv), } impl ::core::fmt::Debug for SphereKind { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - SphereKind::Ico(e) => { - f.debug_tuple("SphereKind::Ico").field(e).finish() - } - SphereKind::Uv(e) => { - f.debug_tuple("SphereKind::Uv").field(e).finish() - } + SphereKind::Ico(e) => f.debug_tuple("SphereKind::Ico").field(e).finish(), + SphereKind::Uv(e) => f.debug_tuple("SphereKind::Uv").field(e).finish(), } } } @@ -782,10 +763,7 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn new(size: Vec2) -> Self { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = size; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = size; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -807,9 +785,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -824,10 +800,7 @@ pub mod unavi { wit_import((self).handle() as i32, ptr0); let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); - super::super::super::wired::math::types::Vec2 { - x: l1, - y: l2, - } + super::super::super::wired::math::types::Vec2 { x: l1, y: l2 } } } } @@ -835,10 +808,7 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn set_size(&self, value: Vec2) { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = value; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -849,11 +819,7 @@ pub mod unavi { fn wit_import(_: i32, _: f32, _: f32) { unreachable!() } - wit_import( - (self).handle() as i32, - _rt::as_f32(x0), - _rt::as_f32(y0), - ); + wit_import((self).handle() as i32, _rt::as_f32(x0), _rt::as_f32(y0)); } } } @@ -873,9 +839,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -895,9 +859,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -917,9 +879,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1033,9 +993,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1055,9 +1013,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1077,9 +1033,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1087,10 +1041,8 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn new(half_size: Vec2) -> Self { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = half_size; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = + half_size; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -1112,9 +1064,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -1129,10 +1079,7 @@ pub mod unavi { wit_import((self).handle() as i32, ptr0); let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); - super::super::super::wired::math::types::Vec2 { - x: l1, - y: l2, - } + super::super::super::wired::math::types::Vec2 { x: l1, y: l2 } } } } @@ -1140,10 +1087,7 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn set_half_size(&self, value: Vec2) { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = value; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -1154,11 +1098,7 @@ pub mod unavi { fn wit_import(_: i32, _: f32, _: f32) { unreachable!() } - wit_import( - (self).handle() as i32, - _rt::as_f32(x0), - _rt::as_f32(y0), - ); + wit_import((self).handle() as i32, _rt::as_f32(x0), _rt::as_f32(y0)); } } } @@ -1216,9 +1156,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1238,9 +1176,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1260,9 +1196,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1495,9 +1429,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1517,9 +1449,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1539,9 +1469,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1564,11 +1492,7 @@ pub mod unavi { fn wit_import(_: f32, _: f32, _: f32) -> i32 { unreachable!() } - let ret = wit_import( - _rt::as_f32(x0), - _rt::as_f32(y0), - _rt::as_f32(z0), - ); + let ret = wit_import(_rt::as_f32(x0), _rt::as_f32(y0), _rt::as_f32(z0)); Cuboid::from_handle(ret as u32) } } @@ -1579,9 +1503,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -1649,9 +1571,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1671,9 +1591,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1693,9 +1611,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1780,9 +1696,7 @@ pub mod unavi { unsafe { #[repr(align(1))] struct RetArea([::core::mem::MaybeUninit; 3]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 3], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 3]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -1829,11 +1743,16 @@ pub mod unavi { unsafe { let (result2_0, result2_1, result2_2) = match value { SphereKind::Ico(e) => { - let SphereIco { subdivisions: subdivisions0 } = e; + let SphereIco { + subdivisions: subdivisions0, + } = e; (0i32, _rt::as_i32(subdivisions0), 0i32) } SphereKind::Uv(e) => { - let SphereUv { sectors: sectors1, stacks: stacks1 } = e; + let SphereUv { + sectors: sectors1, + stacks: stacks1, + } = e; (1i32, _rt::as_i32(sectors1), _rt::as_i32(stacks1)) } }; @@ -1847,12 +1766,7 @@ pub mod unavi { fn wit_import(_: i32, _: i32, _: i32, _: i32) { unreachable!() } - wit_import( - (self).handle() as i32, - result2_0, - result2_1, - result2_2, - ); + wit_import((self).handle() as i32, result2_0, result2_1, result2_2); } } } @@ -1872,9 +1786,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1894,9 +1806,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1916,9 +1826,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1994,9 +1902,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -2011,7 +1917,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; pub type Vec3 = super::super::super::wired::math::types::Vec3; pub type Quat = super::super::super::wired::math::types::Quat; #[repr(u8)] @@ -2021,10 +1928,7 @@ pub mod wired { Right, } impl ::core::fmt::Debug for HandSide { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { HandSide::Left => f.debug_tuple("HandSide::Left").finish(), HandSide::Right => f.debug_tuple("HandSide::Right").finish(), @@ -2052,10 +1956,7 @@ pub mod wired { pub radius: f32, } impl ::core::fmt::Debug for Joint { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Joint") .field("translation", &self.translation) .field("rotation", &self.rotation) @@ -2072,10 +1973,7 @@ pub mod wired { pub metacarpal: Joint, } impl ::core::fmt::Debug for Finger { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Finger") .field("tip", &self.tip) .field("distal", &self.distal) @@ -2099,10 +1997,7 @@ pub mod wired { pub elbow: Option, } impl ::core::fmt::Debug for Hand { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Hand") .field("side", &self.side) .field("thumb", &self.thumb) @@ -2124,10 +2019,7 @@ pub mod wired { pub origin: Vec3, } impl ::core::fmt::Debug for Ray { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Ray") .field("orientation", &self.orientation) .field("origin", &self.origin) @@ -2140,17 +2032,10 @@ pub mod wired { Ray(Ray), } impl ::core::fmt::Debug for InputData { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputData::Hand(e) => { - f.debug_tuple("InputData::Hand").field(e).finish() - } - InputData::Ray(e) => { - f.debug_tuple("InputData::Ray").field(e).finish() - } + InputData::Hand(e) => f.debug_tuple("InputData::Hand").field(e).finish(), + InputData::Ray(e) => f.debug_tuple("InputData::Ray").field(e).finish(), } } } @@ -2160,17 +2045,10 @@ pub mod wired { Hover, } impl ::core::fmt::Debug for InputAction { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputAction::Collision => { - f.debug_tuple("InputAction::Collision").finish() - } - InputAction::Hover => { - f.debug_tuple("InputAction::Hover").finish() - } + InputAction::Collision => f.debug_tuple("InputAction::Collision").finish(), + InputAction::Hover => f.debug_tuple("InputAction::Hover").finish(), } } } @@ -2185,10 +2063,7 @@ pub mod wired { pub data: InputData, } impl ::core::fmt::Debug for InputEvent { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("InputEvent") .field("id", &self.id) .field("action", &self.action) @@ -2201,7 +2076,8 @@ pub mod wired { pub mod handler { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type InputEvent = super::super::super::wired::input::types::InputEvent; #[derive(Debug)] @@ -2268,9 +2144,7 @@ pub mod wired { unsafe { #[repr(align(8))] struct RetArea([::core::mem::MaybeUninit; 768]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 768], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 768]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:input/handler")] @@ -2886,7 +2760,8 @@ pub mod wired { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; #[repr(u8)] #[derive(Clone, Copy, Eq, PartialEq)] pub enum LogLevel { @@ -2896,10 +2771,7 @@ pub mod wired { Error, } impl ::core::fmt::Debug for LogLevel { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { LogLevel::Debug => f.debug_tuple("LogLevel::Debug").finish(), LogLevel::Info => f.debug_tuple("LogLevel::Info").finish(), @@ -2950,7 +2822,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; #[repr(C)] #[derive(Clone, Copy)] pub struct Vec2 { @@ -2958,10 +2831,7 @@ pub mod wired { pub y: f32, } impl ::core::fmt::Debug for Vec2 { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Vec2") .field("x", &self.x) .field("y", &self.y) @@ -2976,10 +2846,7 @@ pub mod wired { pub z: f32, } impl ::core::fmt::Debug for Vec3 { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Vec3") .field("x", &self.x) .field("y", &self.y) @@ -2996,10 +2863,7 @@ pub mod wired { pub w: f32, } impl ::core::fmt::Debug for Quat { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Quat") .field("x", &self.x) .field("y", &self.y) @@ -3016,10 +2880,7 @@ pub mod wired { pub translation: Vec3, } impl ::core::fmt::Debug for Transform { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Transform") .field("rotation", &self.rotation) .field("scale", &self.scale) @@ -3072,7 +2933,11 @@ pub mod wired { let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); let l3 = *ptr0.add(8).cast::(); - Vec3 { x: l1, y: l2, z: l3 } + Vec3 { + x: l1, + y: l2, + z: l3, + } } } #[allow(unused_unsafe, clippy::all)] @@ -3097,7 +2962,12 @@ pub mod wired { let l2 = *ptr0.add(4).cast::(); let l3 = *ptr0.add(8).cast::(); let l4 = *ptr0.add(12).cast::(); - Quat { x: l1, y: l2, z: l3, w: l4 } + Quat { + x: l1, + y: l2, + z: l3, + w: l4, + } } } #[allow(unused_unsafe, clippy::all)] @@ -3129,9 +2999,22 @@ pub mod wired { let l9 = *ptr0.add(32).cast::(); let l10 = *ptr0.add(36).cast::(); Transform { - rotation: Quat { x: l1, y: l2, z: l3, w: l4 }, - scale: Vec3 { x: l5, y: l6, z: l7 }, - translation: Vec3 { x: l8, y: l9, z: l10 }, + rotation: Quat { + x: l1, + y: l2, + z: l3, + w: l4, + }, + scale: Vec3 { + x: l5, + y: l6, + z: l7, + }, + translation: Vec3 { + x: l8, + y: l9, + z: l10, + }, } } } @@ -3143,7 +3026,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Vec3 = super::super::super::wired::math::types::Vec3; #[derive(Debug)] @@ -3190,10 +3074,7 @@ pub mod wired { pub radius: f32, } impl ::core::fmt::Debug for ShapeCylinder { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("ShapeCylinder") .field("height", &self.height) .field("radius", &self.radius) @@ -3207,20 +3088,11 @@ pub mod wired { Sphere(f32), } impl ::core::fmt::Debug for Shape { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Shape::Cuboid(e) => { - f.debug_tuple("Shape::Cuboid").field(e).finish() - } - Shape::Cylinder(e) => { - f.debug_tuple("Shape::Cylinder").field(e).finish() - } - Shape::Sphere(e) => { - f.debug_tuple("Shape::Sphere").field(e).finish() - } + Shape::Cuboid(e) => f.debug_tuple("Shape::Cuboid").field(e).finish(), + Shape::Cylinder(e) => f.debug_tuple("Shape::Cylinder").field(e).finish(), + Shape::Sphere(e) => f.debug_tuple("Shape::Sphere").field(e).finish(), } } } @@ -3269,17 +3141,10 @@ pub mod wired { Kinematic, } impl ::core::fmt::Debug for RigidBodyType { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - RigidBodyType::Dynamic => { - f.debug_tuple("RigidBodyType::Dynamic").finish() - } - RigidBodyType::Fixed => { - f.debug_tuple("RigidBodyType::Fixed").finish() - } + RigidBodyType::Dynamic => f.debug_tuple("RigidBodyType::Dynamic").finish(), + RigidBodyType::Fixed => f.debug_tuple("RigidBodyType::Fixed").finish(), RigidBodyType::Kinematic => { f.debug_tuple("RigidBodyType::Kinematic").finish() } @@ -3314,7 +3179,10 @@ pub mod wired { (0i32, _rt::as_f32(x0), _rt::as_f32(y0), _rt::as_f32(z0)) } Shape::Cylinder(e) => { - let ShapeCylinder { height: height1, radius: radius1 } = e; + let ShapeCylinder { + height: height1, + radius: radius1, + } = e; (1i32, _rt::as_f32(height1), _rt::as_f32(radius1), 0.0f32) } Shape::Sphere(e) => (2i32, _rt::as_f32(e), 0.0f32, 0.0f32), @@ -3396,9 +3264,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:physics/types")] @@ -3456,9 +3322,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:physics/types")] @@ -3518,7 +3382,8 @@ pub mod wired { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Node = super::super::super::wired::scene::node::Node; pub struct Skeleton { @@ -3544,10 +3409,7 @@ pub mod wired { pub right_foot: Node, } impl ::core::fmt::Debug for Skeleton { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Skeleton") .field("hips", &self.hips) .field("spine", &self.spine) @@ -3624,9 +3486,7 @@ pub mod wired { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -3636,9 +3496,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 80]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 80], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 80]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:player/api")] @@ -3690,45 +3548,55 @@ pub mod wired { head: super::super::super::wired::scene::node::Node::from_handle( l6 as u32, ), - left_shoulder: super::super::super::wired::scene::node::Node::from_handle( - l7 as u32, - ), - left_upper_arm: super::super::super::wired::scene::node::Node::from_handle( - l8 as u32, - ), - left_lower_arm: super::super::super::wired::scene::node::Node::from_handle( - l9 as u32, - ), + left_shoulder: + super::super::super::wired::scene::node::Node::from_handle( + l7 as u32, + ), + left_upper_arm: + super::super::super::wired::scene::node::Node::from_handle( + l8 as u32, + ), + left_lower_arm: + super::super::super::wired::scene::node::Node::from_handle( + l9 as u32, + ), left_hand: super::super::super::wired::scene::node::Node::from_handle( l10 as u32, ), - right_shoulder: super::super::super::wired::scene::node::Node::from_handle( - l11 as u32, - ), - right_upper_arm: super::super::super::wired::scene::node::Node::from_handle( - l12 as u32, - ), - right_lower_arm: super::super::super::wired::scene::node::Node::from_handle( - l13 as u32, - ), + right_shoulder: + super::super::super::wired::scene::node::Node::from_handle( + l11 as u32, + ), + right_upper_arm: + super::super::super::wired::scene::node::Node::from_handle( + l12 as u32, + ), + right_lower_arm: + super::super::super::wired::scene::node::Node::from_handle( + l13 as u32, + ), right_hand: super::super::super::wired::scene::node::Node::from_handle( l14 as u32, ), - left_upper_leg: super::super::super::wired::scene::node::Node::from_handle( - l15 as u32, - ), - left_lower_leg: super::super::super::wired::scene::node::Node::from_handle( - l16 as u32, - ), + left_upper_leg: + super::super::super::wired::scene::node::Node::from_handle( + l15 as u32, + ), + left_lower_leg: + super::super::super::wired::scene::node::Node::from_handle( + l16 as u32, + ), left_foot: super::super::super::wired::scene::node::Node::from_handle( l17 as u32, ), - right_upper_leg: super::super::super::wired::scene::node::Node::from_handle( - l18 as u32, - ), - right_lower_leg: super::super::super::wired::scene::node::Node::from_handle( - l19 as u32, - ), + right_upper_leg: + super::super::super::wired::scene::node::Node::from_handle( + l18 as u32, + ), + right_lower_leg: + super::super::super::wired::scene::node::Node::from_handle( + l19 as u32, + ), right_foot: super::super::super::wired::scene::node::Node::from_handle( l20 as u32, ), @@ -3796,7 +3664,8 @@ pub mod wired { pub mod material { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; #[repr(C)] #[derive(Clone, Copy)] @@ -3807,10 +3676,7 @@ pub mod wired { pub a: f32, } impl ::core::fmt::Debug for Color { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Color") .field("r", &self.r) .field("g", &self.g) @@ -3920,9 +3786,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] @@ -3970,9 +3834,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 16]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 16], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 16]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] @@ -4002,7 +3864,12 @@ pub mod wired { #[allow(unused_unsafe, clippy::all)] pub fn set_color(&self, value: Color) { unsafe { - let Color { r: r0, g: g0, b: b0, a: a0 } = value; + let Color { + r: r0, + g: g0, + b: b0, + a: a0, + } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] extern "C" { @@ -4028,7 +3895,8 @@ pub mod wired { pub mod mesh { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Material = super::super::super::wired::scene::material::Material; #[derive(Debug)] @@ -4130,9 +3998,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -4332,9 +4198,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -4382,9 +4246,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -4448,10 +4310,7 @@ pub mod wired { fn wit_import(_: i32, _: i32) { unreachable!() } - wit_import( - (self).handle() as i32, - (&value).take_handle() as i32, - ); + wit_import((self).handle() as i32, (&value).take_handle() as i32); } } } @@ -4460,7 +4319,8 @@ pub mod wired { pub mod node { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Mesh = super::super::super::wired::scene::mesh::Mesh; pub type InputHandler = super::super::super::wired::input::handler::InputHandler; @@ -4568,9 +4428,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4618,9 +4476,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4693,9 +4549,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4729,9 +4583,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4781,9 +4633,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4908,9 +4758,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4968,9 +4816,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5028,9 +4874,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5088,9 +4932,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5147,7 +4989,8 @@ pub mod wired { pub mod scene { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Node = super::super::super::wired::scene::node::Node; #[derive(Debug)] @@ -5231,9 +5074,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/scene")] @@ -5281,9 +5122,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/scene")] @@ -5357,7 +5196,8 @@ pub mod wired { pub mod gltf { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Material = super::super::super::wired::scene::material::Material; pub type Mesh = super::super::super::wired::scene::mesh::Mesh; @@ -5427,9 +5267,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5504,9 +5342,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5581,9 +5417,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5658,9 +5492,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5736,9 +5568,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5798,9 +5628,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5853,7 +5681,8 @@ pub mod wired { pub mod glxf { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Gltf = super::super::super::wired::scene::gltf::Gltf; pub type Node = super::super::super::wired::scene::node::Node; @@ -5976,10 +5805,7 @@ pub mod wired { Glxf(AssetGlxf), } impl ::core::fmt::Debug for Asset { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { Asset::Gltf(e) => f.debug_tuple("Asset::Gltf").field(e).finish(), Asset::Glxf(e) => f.debug_tuple("Asset::Glxf").field(e).finish(), @@ -5991,10 +5817,7 @@ pub mod wired { Glxf(&'a AssetGlxf), } impl<'a> ::core::fmt::Debug for AssetBorrow<'a> { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { AssetBorrow::Gltf(e) => { f.debug_tuple("AssetBorrow::Gltf").field(e).finish() @@ -6047,17 +5870,10 @@ pub mod wired { Nodes(_rt::Vec), } impl ::core::fmt::Debug for Children { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Children::Asset(e) => { - f.debug_tuple("Children::Asset").field(e).finish() - } - Children::Nodes(e) => { - f.debug_tuple("Children::Nodes").field(e).finish() - } + Children::Asset(e) => f.debug_tuple("Children::Asset").field(e).finish(), + Children::Nodes(e) => f.debug_tuple("Children::Nodes").field(e).finish(), } } } @@ -6066,10 +5882,7 @@ pub mod wired { Nodes(_rt::Vec<&'a GlxfNode>), } impl<'a> ::core::fmt::Debug for ChildrenBorrow<'a> { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { ChildrenBorrow::Asset(e) => { f.debug_tuple("ChildrenBorrow::Asset").field(e).finish() @@ -6160,9 +5973,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6260,9 +6071,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6335,9 +6144,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6411,9 +6218,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6471,9 +6276,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6553,9 +6356,7 @@ pub mod wired { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::gltf::Gltf::from_handle( - ret as u32, - ) + super::super::super::wired::scene::gltf::Gltf::from_handle(ret as u32) } } } @@ -6567,9 +6368,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6684,9 +6483,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6797,9 +6594,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6847,9 +6642,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6974,9 +6767,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7010,9 +6801,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 16]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 16], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 16]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7044,7 +6833,10 @@ pub mod wired { Asset::Gltf(e6) } n => { - debug_assert_eq!(n, 1, "invalid enum discriminant"); + debug_assert_eq!( + n, 1, + "invalid enum discriminant" + ); let e6 = { let l5 = *ptr0.add(12).cast::(); AssetGlxf::from_handle(l5 as u32) @@ -7116,7 +6908,9 @@ pub mod wired { } ptr } else { - { ::core::ptr::null_mut() } + { + ::core::ptr::null_mut() + } }; for (i, e) in vec1.into_iter().enumerate() { let base = result1.add(i * 4); @@ -7201,9 +6995,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7251,9 +7043,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7333,7 +7123,8 @@ pub mod exports { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::super::__link_custom_section_describing_imports; use super::super::super::super::_rt; #[derive(Debug)] #[repr(transparent)] @@ -7350,9 +7141,7 @@ pub mod exports { pub fn new(val: T) -> Self { Self::type_guard::(); let val: _ScriptRep = Some(val); - let ptr: *mut _ScriptRep = _rt::Box::into_raw( - _rt::Box::new(val), - ); + let ptr: *mut _ScriptRep = _rt::Box::into_raw(_rt::Box::new(val)); unsafe { Self::from_handle(T::_resource_new(ptr.cast())) } } /// Gets access to the underlying `T` which represents this resource. @@ -7390,12 +7179,13 @@ pub mod exports { use core::any::TypeId; static mut LAST_TYPE: Option = None; unsafe { - assert!(! cfg!(target_feature = "atomics")); + assert!(!cfg!(target_feature = "atomics")); let id = TypeId::of::(); match LAST_TYPE { Some(ty) => { assert!( - ty == id, "cannot use two types with this resource type" + ty == id, + "cannot use two types with this resource type" ) } None => LAST_TYPE = Some(id), @@ -7457,7 +7247,8 @@ pub mod exports { #[doc(hidden)] #[allow(non_snake_case)] pub unsafe fn _export_constructor_script_cabi() -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let result0 = Script::new(T::new()); (result0).take_handle() as i32 } @@ -7467,7 +7258,8 @@ pub mod exports { arg0: *mut u8, arg1: f32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::update(ScriptBorrow::lift(arg0 as u32 as usize).get(), arg1); } pub trait Guest { @@ -7605,7 +7397,9 @@ mod _rt { } impl fmt::Debug for Resource { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("Resource").field("handle", &self.handle).finish() + f.debug_struct("Resource") + .field("handle", &self.handle) + .finish() } } impl Drop for Resource { diff --git a/wasm/example-unavi-shapes/src/bindings.rs b/wasm/example-unavi-shapes/src/bindings.rs index b84bef292..84bfe25a4 100644 --- a/wasm/example-unavi-shapes/src/bindings.rs +++ b/wasm/example-unavi-shapes/src/bindings.rs @@ -6,7 +6,8 @@ pub mod unavi { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Transform = super::super::super::wired::math::types::Transform; pub type Node = super::super::super::wired::scene::node::Node; @@ -92,9 +93,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:scene/api")] @@ -188,9 +187,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:scene/api")] @@ -239,9 +236,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -287,9 +282,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:scene/api")] @@ -459,7 +452,8 @@ pub mod unavi { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Vec2 = super::super::super::wired::math::types::Vec2; pub type Vec3 = super::super::super::wired::math::types::Vec3; @@ -656,10 +650,7 @@ pub mod unavi { pub subdivisions: u8, } impl ::core::fmt::Debug for SphereIco { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("SphereIco") .field("subdivisions", &self.subdivisions) .finish() @@ -672,10 +663,7 @@ pub mod unavi { pub stacks: u8, } impl ::core::fmt::Debug for SphereUv { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("SphereUv") .field("sectors", &self.sectors) .field("stacks", &self.stacks) @@ -690,17 +678,10 @@ pub mod unavi { Uv(SphereUv), } impl ::core::fmt::Debug for SphereKind { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - SphereKind::Ico(e) => { - f.debug_tuple("SphereKind::Ico").field(e).finish() - } - SphereKind::Uv(e) => { - f.debug_tuple("SphereKind::Uv").field(e).finish() - } + SphereKind::Ico(e) => f.debug_tuple("SphereKind::Ico").field(e).finish(), + SphereKind::Uv(e) => f.debug_tuple("SphereKind::Uv").field(e).finish(), } } } @@ -782,10 +763,7 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn new(size: Vec2) -> Self { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = size; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = size; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -807,9 +785,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -824,10 +800,7 @@ pub mod unavi { wit_import((self).handle() as i32, ptr0); let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); - super::super::super::wired::math::types::Vec2 { - x: l1, - y: l2, - } + super::super::super::wired::math::types::Vec2 { x: l1, y: l2 } } } } @@ -835,10 +808,7 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn set_size(&self, value: Vec2) { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = value; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -849,11 +819,7 @@ pub mod unavi { fn wit_import(_: i32, _: f32, _: f32) { unreachable!() } - wit_import( - (self).handle() as i32, - _rt::as_f32(x0), - _rt::as_f32(y0), - ); + wit_import((self).handle() as i32, _rt::as_f32(x0), _rt::as_f32(y0)); } } } @@ -873,9 +839,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -895,9 +859,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -917,9 +879,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1033,9 +993,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1055,9 +1013,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1077,9 +1033,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1087,10 +1041,8 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn new(half_size: Vec2) -> Self { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = half_size; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = + half_size; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -1112,9 +1064,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -1129,10 +1079,7 @@ pub mod unavi { wit_import((self).handle() as i32, ptr0); let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); - super::super::super::wired::math::types::Vec2 { - x: l1, - y: l2, - } + super::super::super::wired::math::types::Vec2 { x: l1, y: l2 } } } } @@ -1140,10 +1087,7 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn set_half_size(&self, value: Vec2) { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = value; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -1154,11 +1098,7 @@ pub mod unavi { fn wit_import(_: i32, _: f32, _: f32) { unreachable!() } - wit_import( - (self).handle() as i32, - _rt::as_f32(x0), - _rt::as_f32(y0), - ); + wit_import((self).handle() as i32, _rt::as_f32(x0), _rt::as_f32(y0)); } } } @@ -1216,9 +1156,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1238,9 +1176,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1260,9 +1196,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1495,9 +1429,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1517,9 +1449,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1539,9 +1469,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1564,11 +1492,7 @@ pub mod unavi { fn wit_import(_: f32, _: f32, _: f32) -> i32 { unreachable!() } - let ret = wit_import( - _rt::as_f32(x0), - _rt::as_f32(y0), - _rt::as_f32(z0), - ); + let ret = wit_import(_rt::as_f32(x0), _rt::as_f32(y0), _rt::as_f32(z0)); Cuboid::from_handle(ret as u32) } } @@ -1579,9 +1503,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -1649,9 +1571,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1671,9 +1591,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1693,9 +1611,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1780,9 +1696,7 @@ pub mod unavi { unsafe { #[repr(align(1))] struct RetArea([::core::mem::MaybeUninit; 3]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 3], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 3]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -1829,11 +1743,16 @@ pub mod unavi { unsafe { let (result2_0, result2_1, result2_2) = match value { SphereKind::Ico(e) => { - let SphereIco { subdivisions: subdivisions0 } = e; + let SphereIco { + subdivisions: subdivisions0, + } = e; (0i32, _rt::as_i32(subdivisions0), 0i32) } SphereKind::Uv(e) => { - let SphereUv { sectors: sectors1, stacks: stacks1 } = e; + let SphereUv { + sectors: sectors1, + stacks: stacks1, + } = e; (1i32, _rt::as_i32(sectors1), _rt::as_i32(stacks1)) } }; @@ -1847,12 +1766,7 @@ pub mod unavi { fn wit_import(_: i32, _: i32, _: i32, _: i32) { unreachable!() } - wit_import( - (self).handle() as i32, - result2_0, - result2_1, - result2_2, - ); + wit_import((self).handle() as i32, result2_0, result2_1, result2_2); } } } @@ -1872,9 +1786,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1894,9 +1806,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1916,9 +1826,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1994,9 +1902,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -2011,7 +1917,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; pub type Vec3 = super::super::super::wired::math::types::Vec3; pub type Quat = super::super::super::wired::math::types::Quat; #[repr(u8)] @@ -2021,10 +1928,7 @@ pub mod wired { Right, } impl ::core::fmt::Debug for HandSide { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { HandSide::Left => f.debug_tuple("HandSide::Left").finish(), HandSide::Right => f.debug_tuple("HandSide::Right").finish(), @@ -2052,10 +1956,7 @@ pub mod wired { pub radius: f32, } impl ::core::fmt::Debug for Joint { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Joint") .field("translation", &self.translation) .field("rotation", &self.rotation) @@ -2072,10 +1973,7 @@ pub mod wired { pub metacarpal: Joint, } impl ::core::fmt::Debug for Finger { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Finger") .field("tip", &self.tip) .field("distal", &self.distal) @@ -2099,10 +1997,7 @@ pub mod wired { pub elbow: Option, } impl ::core::fmt::Debug for Hand { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Hand") .field("side", &self.side) .field("thumb", &self.thumb) @@ -2124,10 +2019,7 @@ pub mod wired { pub origin: Vec3, } impl ::core::fmt::Debug for Ray { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Ray") .field("orientation", &self.orientation) .field("origin", &self.origin) @@ -2140,17 +2032,10 @@ pub mod wired { Ray(Ray), } impl ::core::fmt::Debug for InputData { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputData::Hand(e) => { - f.debug_tuple("InputData::Hand").field(e).finish() - } - InputData::Ray(e) => { - f.debug_tuple("InputData::Ray").field(e).finish() - } + InputData::Hand(e) => f.debug_tuple("InputData::Hand").field(e).finish(), + InputData::Ray(e) => f.debug_tuple("InputData::Ray").field(e).finish(), } } } @@ -2160,17 +2045,10 @@ pub mod wired { Hover, } impl ::core::fmt::Debug for InputAction { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputAction::Collision => { - f.debug_tuple("InputAction::Collision").finish() - } - InputAction::Hover => { - f.debug_tuple("InputAction::Hover").finish() - } + InputAction::Collision => f.debug_tuple("InputAction::Collision").finish(), + InputAction::Hover => f.debug_tuple("InputAction::Hover").finish(), } } } @@ -2185,10 +2063,7 @@ pub mod wired { pub data: InputData, } impl ::core::fmt::Debug for InputEvent { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("InputEvent") .field("id", &self.id) .field("action", &self.action) @@ -2201,7 +2076,8 @@ pub mod wired { pub mod handler { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type InputEvent = super::super::super::wired::input::types::InputEvent; #[derive(Debug)] @@ -2268,9 +2144,7 @@ pub mod wired { unsafe { #[repr(align(8))] struct RetArea([::core::mem::MaybeUninit; 768]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 768], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 768]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:input/handler")] @@ -2886,7 +2760,8 @@ pub mod wired { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; #[repr(u8)] #[derive(Clone, Copy, Eq, PartialEq)] pub enum LogLevel { @@ -2896,10 +2771,7 @@ pub mod wired { Error, } impl ::core::fmt::Debug for LogLevel { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { LogLevel::Debug => f.debug_tuple("LogLevel::Debug").finish(), LogLevel::Info => f.debug_tuple("LogLevel::Info").finish(), @@ -2950,7 +2822,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; #[repr(C)] #[derive(Clone, Copy)] pub struct Vec2 { @@ -2958,10 +2831,7 @@ pub mod wired { pub y: f32, } impl ::core::fmt::Debug for Vec2 { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Vec2") .field("x", &self.x) .field("y", &self.y) @@ -2976,10 +2846,7 @@ pub mod wired { pub z: f32, } impl ::core::fmt::Debug for Vec3 { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Vec3") .field("x", &self.x) .field("y", &self.y) @@ -2996,10 +2863,7 @@ pub mod wired { pub w: f32, } impl ::core::fmt::Debug for Quat { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Quat") .field("x", &self.x) .field("y", &self.y) @@ -3016,10 +2880,7 @@ pub mod wired { pub translation: Vec3, } impl ::core::fmt::Debug for Transform { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Transform") .field("rotation", &self.rotation) .field("scale", &self.scale) @@ -3072,7 +2933,11 @@ pub mod wired { let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); let l3 = *ptr0.add(8).cast::(); - Vec3 { x: l1, y: l2, z: l3 } + Vec3 { + x: l1, + y: l2, + z: l3, + } } } #[allow(unused_unsafe, clippy::all)] @@ -3097,7 +2962,12 @@ pub mod wired { let l2 = *ptr0.add(4).cast::(); let l3 = *ptr0.add(8).cast::(); let l4 = *ptr0.add(12).cast::(); - Quat { x: l1, y: l2, z: l3, w: l4 } + Quat { + x: l1, + y: l2, + z: l3, + w: l4, + } } } #[allow(unused_unsafe, clippy::all)] @@ -3129,9 +2999,22 @@ pub mod wired { let l9 = *ptr0.add(32).cast::(); let l10 = *ptr0.add(36).cast::(); Transform { - rotation: Quat { x: l1, y: l2, z: l3, w: l4 }, - scale: Vec3 { x: l5, y: l6, z: l7 }, - translation: Vec3 { x: l8, y: l9, z: l10 }, + rotation: Quat { + x: l1, + y: l2, + z: l3, + w: l4, + }, + scale: Vec3 { + x: l5, + y: l6, + z: l7, + }, + translation: Vec3 { + x: l8, + y: l9, + z: l10, + }, } } } @@ -3143,7 +3026,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Vec3 = super::super::super::wired::math::types::Vec3; #[derive(Debug)] @@ -3190,10 +3074,7 @@ pub mod wired { pub radius: f32, } impl ::core::fmt::Debug for ShapeCylinder { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("ShapeCylinder") .field("height", &self.height) .field("radius", &self.radius) @@ -3207,20 +3088,11 @@ pub mod wired { Sphere(f32), } impl ::core::fmt::Debug for Shape { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Shape::Cuboid(e) => { - f.debug_tuple("Shape::Cuboid").field(e).finish() - } - Shape::Cylinder(e) => { - f.debug_tuple("Shape::Cylinder").field(e).finish() - } - Shape::Sphere(e) => { - f.debug_tuple("Shape::Sphere").field(e).finish() - } + Shape::Cuboid(e) => f.debug_tuple("Shape::Cuboid").field(e).finish(), + Shape::Cylinder(e) => f.debug_tuple("Shape::Cylinder").field(e).finish(), + Shape::Sphere(e) => f.debug_tuple("Shape::Sphere").field(e).finish(), } } } @@ -3269,17 +3141,10 @@ pub mod wired { Kinematic, } impl ::core::fmt::Debug for RigidBodyType { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - RigidBodyType::Dynamic => { - f.debug_tuple("RigidBodyType::Dynamic").finish() - } - RigidBodyType::Fixed => { - f.debug_tuple("RigidBodyType::Fixed").finish() - } + RigidBodyType::Dynamic => f.debug_tuple("RigidBodyType::Dynamic").finish(), + RigidBodyType::Fixed => f.debug_tuple("RigidBodyType::Fixed").finish(), RigidBodyType::Kinematic => { f.debug_tuple("RigidBodyType::Kinematic").finish() } @@ -3314,7 +3179,10 @@ pub mod wired { (0i32, _rt::as_f32(x0), _rt::as_f32(y0), _rt::as_f32(z0)) } Shape::Cylinder(e) => { - let ShapeCylinder { height: height1, radius: radius1 } = e; + let ShapeCylinder { + height: height1, + radius: radius1, + } = e; (1i32, _rt::as_f32(height1), _rt::as_f32(radius1), 0.0f32) } Shape::Sphere(e) => (2i32, _rt::as_f32(e), 0.0f32, 0.0f32), @@ -3396,9 +3264,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:physics/types")] @@ -3456,9 +3322,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:physics/types")] @@ -3518,7 +3382,8 @@ pub mod wired { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Node = super::super::super::wired::scene::node::Node; pub struct Skeleton { @@ -3544,10 +3409,7 @@ pub mod wired { pub right_foot: Node, } impl ::core::fmt::Debug for Skeleton { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Skeleton") .field("hips", &self.hips) .field("spine", &self.spine) @@ -3624,9 +3486,7 @@ pub mod wired { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -3636,9 +3496,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 80]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 80], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 80]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:player/api")] @@ -3690,45 +3548,55 @@ pub mod wired { head: super::super::super::wired::scene::node::Node::from_handle( l6 as u32, ), - left_shoulder: super::super::super::wired::scene::node::Node::from_handle( - l7 as u32, - ), - left_upper_arm: super::super::super::wired::scene::node::Node::from_handle( - l8 as u32, - ), - left_lower_arm: super::super::super::wired::scene::node::Node::from_handle( - l9 as u32, - ), + left_shoulder: + super::super::super::wired::scene::node::Node::from_handle( + l7 as u32, + ), + left_upper_arm: + super::super::super::wired::scene::node::Node::from_handle( + l8 as u32, + ), + left_lower_arm: + super::super::super::wired::scene::node::Node::from_handle( + l9 as u32, + ), left_hand: super::super::super::wired::scene::node::Node::from_handle( l10 as u32, ), - right_shoulder: super::super::super::wired::scene::node::Node::from_handle( - l11 as u32, - ), - right_upper_arm: super::super::super::wired::scene::node::Node::from_handle( - l12 as u32, - ), - right_lower_arm: super::super::super::wired::scene::node::Node::from_handle( - l13 as u32, - ), + right_shoulder: + super::super::super::wired::scene::node::Node::from_handle( + l11 as u32, + ), + right_upper_arm: + super::super::super::wired::scene::node::Node::from_handle( + l12 as u32, + ), + right_lower_arm: + super::super::super::wired::scene::node::Node::from_handle( + l13 as u32, + ), right_hand: super::super::super::wired::scene::node::Node::from_handle( l14 as u32, ), - left_upper_leg: super::super::super::wired::scene::node::Node::from_handle( - l15 as u32, - ), - left_lower_leg: super::super::super::wired::scene::node::Node::from_handle( - l16 as u32, - ), + left_upper_leg: + super::super::super::wired::scene::node::Node::from_handle( + l15 as u32, + ), + left_lower_leg: + super::super::super::wired::scene::node::Node::from_handle( + l16 as u32, + ), left_foot: super::super::super::wired::scene::node::Node::from_handle( l17 as u32, ), - right_upper_leg: super::super::super::wired::scene::node::Node::from_handle( - l18 as u32, - ), - right_lower_leg: super::super::super::wired::scene::node::Node::from_handle( - l19 as u32, - ), + right_upper_leg: + super::super::super::wired::scene::node::Node::from_handle( + l18 as u32, + ), + right_lower_leg: + super::super::super::wired::scene::node::Node::from_handle( + l19 as u32, + ), right_foot: super::super::super::wired::scene::node::Node::from_handle( l20 as u32, ), @@ -3796,7 +3664,8 @@ pub mod wired { pub mod material { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; #[repr(C)] #[derive(Clone, Copy)] @@ -3807,10 +3676,7 @@ pub mod wired { pub a: f32, } impl ::core::fmt::Debug for Color { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Color") .field("r", &self.r) .field("g", &self.g) @@ -3920,9 +3786,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] @@ -3970,9 +3834,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 16]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 16], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 16]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] @@ -4002,7 +3864,12 @@ pub mod wired { #[allow(unused_unsafe, clippy::all)] pub fn set_color(&self, value: Color) { unsafe { - let Color { r: r0, g: g0, b: b0, a: a0 } = value; + let Color { + r: r0, + g: g0, + b: b0, + a: a0, + } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] extern "C" { @@ -4028,7 +3895,8 @@ pub mod wired { pub mod mesh { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Material = super::super::super::wired::scene::material::Material; #[derive(Debug)] @@ -4130,9 +3998,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -4332,9 +4198,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -4382,9 +4246,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -4448,10 +4310,7 @@ pub mod wired { fn wit_import(_: i32, _: i32) { unreachable!() } - wit_import( - (self).handle() as i32, - (&value).take_handle() as i32, - ); + wit_import((self).handle() as i32, (&value).take_handle() as i32); } } } @@ -4460,7 +4319,8 @@ pub mod wired { pub mod node { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Mesh = super::super::super::wired::scene::mesh::Mesh; pub type InputHandler = super::super::super::wired::input::handler::InputHandler; @@ -4568,9 +4428,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4618,9 +4476,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4693,9 +4549,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4729,9 +4583,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4781,9 +4633,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4908,9 +4758,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4968,9 +4816,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5028,9 +4874,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5088,9 +4932,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5147,7 +4989,8 @@ pub mod wired { pub mod scene { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Node = super::super::super::wired::scene::node::Node; #[derive(Debug)] @@ -5231,9 +5074,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/scene")] @@ -5281,9 +5122,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/scene")] @@ -5357,7 +5196,8 @@ pub mod wired { pub mod gltf { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Material = super::super::super::wired::scene::material::Material; pub type Mesh = super::super::super::wired::scene::mesh::Mesh; @@ -5427,9 +5267,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5504,9 +5342,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5581,9 +5417,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5658,9 +5492,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5736,9 +5568,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5798,9 +5628,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5853,7 +5681,8 @@ pub mod wired { pub mod glxf { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Gltf = super::super::super::wired::scene::gltf::Gltf; pub type Node = super::super::super::wired::scene::node::Node; @@ -5976,10 +5805,7 @@ pub mod wired { Glxf(AssetGlxf), } impl ::core::fmt::Debug for Asset { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { Asset::Gltf(e) => f.debug_tuple("Asset::Gltf").field(e).finish(), Asset::Glxf(e) => f.debug_tuple("Asset::Glxf").field(e).finish(), @@ -5991,10 +5817,7 @@ pub mod wired { Glxf(&'a AssetGlxf), } impl<'a> ::core::fmt::Debug for AssetBorrow<'a> { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { AssetBorrow::Gltf(e) => { f.debug_tuple("AssetBorrow::Gltf").field(e).finish() @@ -6047,17 +5870,10 @@ pub mod wired { Nodes(_rt::Vec), } impl ::core::fmt::Debug for Children { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Children::Asset(e) => { - f.debug_tuple("Children::Asset").field(e).finish() - } - Children::Nodes(e) => { - f.debug_tuple("Children::Nodes").field(e).finish() - } + Children::Asset(e) => f.debug_tuple("Children::Asset").field(e).finish(), + Children::Nodes(e) => f.debug_tuple("Children::Nodes").field(e).finish(), } } } @@ -6066,10 +5882,7 @@ pub mod wired { Nodes(_rt::Vec<&'a GlxfNode>), } impl<'a> ::core::fmt::Debug for ChildrenBorrow<'a> { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { ChildrenBorrow::Asset(e) => { f.debug_tuple("ChildrenBorrow::Asset").field(e).finish() @@ -6160,9 +5973,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6260,9 +6071,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6335,9 +6144,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6411,9 +6218,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6471,9 +6276,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6553,9 +6356,7 @@ pub mod wired { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::gltf::Gltf::from_handle( - ret as u32, - ) + super::super::super::wired::scene::gltf::Gltf::from_handle(ret as u32) } } } @@ -6567,9 +6368,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6684,9 +6483,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6797,9 +6594,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6847,9 +6642,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6974,9 +6767,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7010,9 +6801,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 16]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 16], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 16]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7044,7 +6833,10 @@ pub mod wired { Asset::Gltf(e6) } n => { - debug_assert_eq!(n, 1, "invalid enum discriminant"); + debug_assert_eq!( + n, 1, + "invalid enum discriminant" + ); let e6 = { let l5 = *ptr0.add(12).cast::(); AssetGlxf::from_handle(l5 as u32) @@ -7116,7 +6908,9 @@ pub mod wired { } ptr } else { - { ::core::ptr::null_mut() } + { + ::core::ptr::null_mut() + } }; for (i, e) in vec1.into_iter().enumerate() { let base = result1.add(i * 4); @@ -7201,9 +6995,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7251,9 +7043,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7333,7 +7123,8 @@ pub mod exports { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::super::__link_custom_section_describing_imports; use super::super::super::super::_rt; #[derive(Debug)] #[repr(transparent)] @@ -7350,9 +7141,7 @@ pub mod exports { pub fn new(val: T) -> Self { Self::type_guard::(); let val: _ScriptRep = Some(val); - let ptr: *mut _ScriptRep = _rt::Box::into_raw( - _rt::Box::new(val), - ); + let ptr: *mut _ScriptRep = _rt::Box::into_raw(_rt::Box::new(val)); unsafe { Self::from_handle(T::_resource_new(ptr.cast())) } } /// Gets access to the underlying `T` which represents this resource. @@ -7390,12 +7179,13 @@ pub mod exports { use core::any::TypeId; static mut LAST_TYPE: Option = None; unsafe { - assert!(! cfg!(target_feature = "atomics")); + assert!(!cfg!(target_feature = "atomics")); let id = TypeId::of::(); match LAST_TYPE { Some(ty) => { assert!( - ty == id, "cannot use two types with this resource type" + ty == id, + "cannot use two types with this resource type" ) } None => LAST_TYPE = Some(id), @@ -7457,7 +7247,8 @@ pub mod exports { #[doc(hidden)] #[allow(non_snake_case)] pub unsafe fn _export_constructor_script_cabi() -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let result0 = Script::new(T::new()); (result0).take_handle() as i32 } @@ -7467,7 +7258,8 @@ pub mod exports { arg0: *mut u8, arg1: f32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::update(ScriptBorrow::lift(arg0 as u32 as usize).get(), arg1); } pub trait Guest { @@ -7605,7 +7397,9 @@ mod _rt { } impl fmt::Debug for Resource { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("Resource").field("handle", &self.handle).finish() + f.debug_struct("Resource") + .field("handle", &self.handle) + .finish() } } impl Drop for Resource { diff --git a/wasm/example-unavi-ui/src/bindings.rs b/wasm/example-unavi-ui/src/bindings.rs index 3c953d7fc..0104dae05 100644 --- a/wasm/example-unavi-ui/src/bindings.rs +++ b/wasm/example-unavi-ui/src/bindings.rs @@ -6,7 +6,8 @@ pub mod unavi { pub mod container { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Vec3 = super::super::super::wired::math::types::Vec3; pub type Node = super::super::super::wired::scene::node::Node; @@ -18,10 +19,7 @@ pub mod unavi { Start, } impl ::core::fmt::Debug for Alignment { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { Alignment::Center => f.debug_tuple("Alignment::Center").finish(), Alignment::End => f.debug_tuple("Alignment::End").finish(), @@ -100,11 +98,7 @@ pub mod unavi { fn wit_import(_: f32, _: f32, _: f32) -> i32 { unreachable!() } - let ret = wit_import( - _rt::as_f32(x0), - _rt::as_f32(y0), - _rt::as_f32(z0), - ); + let ret = wit_import(_rt::as_f32(x0), _rt::as_f32(y0), _rt::as_f32(z0)); Container::from_handle(ret as u32) } } @@ -146,9 +140,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -169,9 +161,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -181,9 +171,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:layout/container")] @@ -256,9 +244,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:layout/container")] @@ -429,7 +415,8 @@ pub mod unavi { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Transform = super::super::super::wired::math::types::Transform; pub type Node = super::super::super::wired::scene::node::Node; @@ -515,9 +502,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:scene/api")] @@ -611,9 +596,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:scene/api")] @@ -662,9 +645,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -710,9 +691,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:scene/api")] @@ -882,7 +861,8 @@ pub mod unavi { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Vec2 = super::super::super::wired::math::types::Vec2; pub type Vec3 = super::super::super::wired::math::types::Vec3; @@ -1079,10 +1059,7 @@ pub mod unavi { pub subdivisions: u8, } impl ::core::fmt::Debug for SphereIco { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("SphereIco") .field("subdivisions", &self.subdivisions) .finish() @@ -1095,10 +1072,7 @@ pub mod unavi { pub stacks: u8, } impl ::core::fmt::Debug for SphereUv { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("SphereUv") .field("sectors", &self.sectors) .field("stacks", &self.stacks) @@ -1113,17 +1087,10 @@ pub mod unavi { Uv(SphereUv), } impl ::core::fmt::Debug for SphereKind { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - SphereKind::Ico(e) => { - f.debug_tuple("SphereKind::Ico").field(e).finish() - } - SphereKind::Uv(e) => { - f.debug_tuple("SphereKind::Uv").field(e).finish() - } + SphereKind::Ico(e) => f.debug_tuple("SphereKind::Ico").field(e).finish(), + SphereKind::Uv(e) => f.debug_tuple("SphereKind::Uv").field(e).finish(), } } } @@ -1205,10 +1172,7 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn new(size: Vec2) -> Self { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = size; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = size; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -1230,9 +1194,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -1247,10 +1209,7 @@ pub mod unavi { wit_import((self).handle() as i32, ptr0); let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); - super::super::super::wired::math::types::Vec2 { - x: l1, - y: l2, - } + super::super::super::wired::math::types::Vec2 { x: l1, y: l2 } } } } @@ -1258,10 +1217,7 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn set_size(&self, value: Vec2) { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = value; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -1272,11 +1228,7 @@ pub mod unavi { fn wit_import(_: i32, _: f32, _: f32) { unreachable!() } - wit_import( - (self).handle() as i32, - _rt::as_f32(x0), - _rt::as_f32(y0), - ); + wit_import((self).handle() as i32, _rt::as_f32(x0), _rt::as_f32(y0)); } } } @@ -1296,9 +1248,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1318,9 +1268,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1340,9 +1288,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1456,9 +1402,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1478,9 +1422,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1500,9 +1442,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1510,10 +1450,8 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn new(half_size: Vec2) -> Self { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = half_size; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = + half_size; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -1535,9 +1473,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -1552,10 +1488,7 @@ pub mod unavi { wit_import((self).handle() as i32, ptr0); let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); - super::super::super::wired::math::types::Vec2 { - x: l1, - y: l2, - } + super::super::super::wired::math::types::Vec2 { x: l1, y: l2 } } } } @@ -1563,10 +1496,7 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn set_half_size(&self, value: Vec2) { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = value; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -1577,11 +1507,7 @@ pub mod unavi { fn wit_import(_: i32, _: f32, _: f32) { unreachable!() } - wit_import( - (self).handle() as i32, - _rt::as_f32(x0), - _rt::as_f32(y0), - ); + wit_import((self).handle() as i32, _rt::as_f32(x0), _rt::as_f32(y0)); } } } @@ -1639,9 +1565,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1661,9 +1585,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1683,9 +1605,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1918,9 +1838,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1940,9 +1858,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1962,9 +1878,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1987,11 +1901,7 @@ pub mod unavi { fn wit_import(_: f32, _: f32, _: f32) -> i32 { unreachable!() } - let ret = wit_import( - _rt::as_f32(x0), - _rt::as_f32(y0), - _rt::as_f32(z0), - ); + let ret = wit_import(_rt::as_f32(x0), _rt::as_f32(y0), _rt::as_f32(z0)); Cuboid::from_handle(ret as u32) } } @@ -2002,9 +1912,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -2072,9 +1980,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -2094,9 +2000,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -2116,9 +2020,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -2203,9 +2105,7 @@ pub mod unavi { unsafe { #[repr(align(1))] struct RetArea([::core::mem::MaybeUninit; 3]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 3], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 3]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -2252,11 +2152,16 @@ pub mod unavi { unsafe { let (result2_0, result2_1, result2_2) = match value { SphereKind::Ico(e) => { - let SphereIco { subdivisions: subdivisions0 } = e; + let SphereIco { + subdivisions: subdivisions0, + } = e; (0i32, _rt::as_i32(subdivisions0), 0i32) } SphereKind::Uv(e) => { - let SphereUv { sectors: sectors1, stacks: stacks1 } = e; + let SphereUv { + sectors: sectors1, + stacks: stacks1, + } = e; (1i32, _rt::as_i32(sectors1), _rt::as_i32(stacks1)) } }; @@ -2270,12 +2175,7 @@ pub mod unavi { fn wit_import(_: i32, _: i32, _: i32, _: i32) { unreachable!() } - wit_import( - (self).handle() as i32, - result2_0, - result2_1, - result2_2, - ); + wit_import((self).handle() as i32, result2_0, result2_1, result2_2); } } } @@ -2295,9 +2195,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -2317,9 +2215,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -2339,9 +2235,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -2417,9 +2311,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -2431,7 +2323,8 @@ pub mod unavi { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; #[allow(unused_unsafe, clippy::all)] pub fn update_ui(delta: f32) { @@ -2454,7 +2347,8 @@ pub mod unavi { pub mod button { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Container = super::super::super::unavi::layout::container::Container; /// 3D interactable button. @@ -2581,7 +2475,8 @@ pub mod unavi { pub mod text { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Alignment = super::super::super::unavi::layout::container::Alignment; pub type Container = super::super::super::unavi::layout::container::Container; @@ -2631,14 +2526,9 @@ pub mod unavi { Word, } impl ::core::fmt::Debug for WordWrap { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - WordWrap::Character => { - f.debug_tuple("WordWrap::Character").finish() - } + WordWrap::Character => f.debug_tuple("WordWrap::Character").finish(), WordWrap::Word => f.debug_tuple("WordWrap::Word").finish(), } } @@ -2761,12 +2651,7 @@ pub mod unavi { fn wit_import(_: i32, _: i32, _: *mut u8, _: usize) { unreachable!() } - wit_import( - (self).handle() as i32, - result1_0, - result1_1, - result1_2, - ); + wit_import((self).handle() as i32, result1_0, result1_1, result1_2); } } } @@ -2776,9 +2661,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:ui/text")] @@ -2835,9 +2718,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::unavi::layout::container::Alignment::_lift( - ret as u8, - ) + super::super::super::unavi::layout::container::Alignment::_lift(ret as u8) } } } @@ -2856,9 +2737,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::unavi::layout::container::Alignment::_lift( - ret as u8, - ) + super::super::super::unavi::layout::container::Alignment::_lift(ret as u8) } } } @@ -2978,9 +2857,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:ui/text")] @@ -3047,9 +2924,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -3182,7 +3057,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; pub type Vec3 = super::super::super::wired::math::types::Vec3; pub type Quat = super::super::super::wired::math::types::Quat; #[repr(u8)] @@ -3192,10 +3068,7 @@ pub mod wired { Right, } impl ::core::fmt::Debug for HandSide { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { HandSide::Left => f.debug_tuple("HandSide::Left").finish(), HandSide::Right => f.debug_tuple("HandSide::Right").finish(), @@ -3223,10 +3096,7 @@ pub mod wired { pub radius: f32, } impl ::core::fmt::Debug for Joint { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Joint") .field("translation", &self.translation) .field("rotation", &self.rotation) @@ -3243,10 +3113,7 @@ pub mod wired { pub metacarpal: Joint, } impl ::core::fmt::Debug for Finger { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Finger") .field("tip", &self.tip) .field("distal", &self.distal) @@ -3270,10 +3137,7 @@ pub mod wired { pub elbow: Option, } impl ::core::fmt::Debug for Hand { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Hand") .field("side", &self.side) .field("thumb", &self.thumb) @@ -3295,10 +3159,7 @@ pub mod wired { pub origin: Vec3, } impl ::core::fmt::Debug for Ray { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Ray") .field("orientation", &self.orientation) .field("origin", &self.origin) @@ -3311,17 +3172,10 @@ pub mod wired { Ray(Ray), } impl ::core::fmt::Debug for InputData { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputData::Hand(e) => { - f.debug_tuple("InputData::Hand").field(e).finish() - } - InputData::Ray(e) => { - f.debug_tuple("InputData::Ray").field(e).finish() - } + InputData::Hand(e) => f.debug_tuple("InputData::Hand").field(e).finish(), + InputData::Ray(e) => f.debug_tuple("InputData::Ray").field(e).finish(), } } } @@ -3331,17 +3185,10 @@ pub mod wired { Hover, } impl ::core::fmt::Debug for InputAction { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputAction::Collision => { - f.debug_tuple("InputAction::Collision").finish() - } - InputAction::Hover => { - f.debug_tuple("InputAction::Hover").finish() - } + InputAction::Collision => f.debug_tuple("InputAction::Collision").finish(), + InputAction::Hover => f.debug_tuple("InputAction::Hover").finish(), } } } @@ -3356,10 +3203,7 @@ pub mod wired { pub data: InputData, } impl ::core::fmt::Debug for InputEvent { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("InputEvent") .field("id", &self.id) .field("action", &self.action) @@ -3372,7 +3216,8 @@ pub mod wired { pub mod handler { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type InputEvent = super::super::super::wired::input::types::InputEvent; #[derive(Debug)] @@ -3439,9 +3284,7 @@ pub mod wired { unsafe { #[repr(align(8))] struct RetArea([::core::mem::MaybeUninit; 768]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 768], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 768]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:input/handler")] @@ -4057,7 +3900,8 @@ pub mod wired { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; #[repr(u8)] #[derive(Clone, Copy, Eq, PartialEq)] pub enum LogLevel { @@ -4067,10 +3911,7 @@ pub mod wired { Error, } impl ::core::fmt::Debug for LogLevel { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { LogLevel::Debug => f.debug_tuple("LogLevel::Debug").finish(), LogLevel::Info => f.debug_tuple("LogLevel::Info").finish(), @@ -4121,7 +3962,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; #[repr(C)] #[derive(Clone, Copy)] pub struct Vec2 { @@ -4129,10 +3971,7 @@ pub mod wired { pub y: f32, } impl ::core::fmt::Debug for Vec2 { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Vec2") .field("x", &self.x) .field("y", &self.y) @@ -4147,10 +3986,7 @@ pub mod wired { pub z: f32, } impl ::core::fmt::Debug for Vec3 { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Vec3") .field("x", &self.x) .field("y", &self.y) @@ -4167,10 +4003,7 @@ pub mod wired { pub w: f32, } impl ::core::fmt::Debug for Quat { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Quat") .field("x", &self.x) .field("y", &self.y) @@ -4187,10 +4020,7 @@ pub mod wired { pub translation: Vec3, } impl ::core::fmt::Debug for Transform { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Transform") .field("rotation", &self.rotation) .field("scale", &self.scale) @@ -4243,7 +4073,11 @@ pub mod wired { let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); let l3 = *ptr0.add(8).cast::(); - Vec3 { x: l1, y: l2, z: l3 } + Vec3 { + x: l1, + y: l2, + z: l3, + } } } #[allow(unused_unsafe, clippy::all)] @@ -4268,7 +4102,12 @@ pub mod wired { let l2 = *ptr0.add(4).cast::(); let l3 = *ptr0.add(8).cast::(); let l4 = *ptr0.add(12).cast::(); - Quat { x: l1, y: l2, z: l3, w: l4 } + Quat { + x: l1, + y: l2, + z: l3, + w: l4, + } } } #[allow(unused_unsafe, clippy::all)] @@ -4300,9 +4139,22 @@ pub mod wired { let l9 = *ptr0.add(32).cast::(); let l10 = *ptr0.add(36).cast::(); Transform { - rotation: Quat { x: l1, y: l2, z: l3, w: l4 }, - scale: Vec3 { x: l5, y: l6, z: l7 }, - translation: Vec3 { x: l8, y: l9, z: l10 }, + rotation: Quat { + x: l1, + y: l2, + z: l3, + w: l4, + }, + scale: Vec3 { + x: l5, + y: l6, + z: l7, + }, + translation: Vec3 { + x: l8, + y: l9, + z: l10, + }, } } } @@ -4314,7 +4166,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Vec3 = super::super::super::wired::math::types::Vec3; #[derive(Debug)] @@ -4361,10 +4214,7 @@ pub mod wired { pub radius: f32, } impl ::core::fmt::Debug for ShapeCylinder { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("ShapeCylinder") .field("height", &self.height) .field("radius", &self.radius) @@ -4378,20 +4228,11 @@ pub mod wired { Sphere(f32), } impl ::core::fmt::Debug for Shape { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Shape::Cuboid(e) => { - f.debug_tuple("Shape::Cuboid").field(e).finish() - } - Shape::Cylinder(e) => { - f.debug_tuple("Shape::Cylinder").field(e).finish() - } - Shape::Sphere(e) => { - f.debug_tuple("Shape::Sphere").field(e).finish() - } + Shape::Cuboid(e) => f.debug_tuple("Shape::Cuboid").field(e).finish(), + Shape::Cylinder(e) => f.debug_tuple("Shape::Cylinder").field(e).finish(), + Shape::Sphere(e) => f.debug_tuple("Shape::Sphere").field(e).finish(), } } } @@ -4440,17 +4281,10 @@ pub mod wired { Kinematic, } impl ::core::fmt::Debug for RigidBodyType { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - RigidBodyType::Dynamic => { - f.debug_tuple("RigidBodyType::Dynamic").finish() - } - RigidBodyType::Fixed => { - f.debug_tuple("RigidBodyType::Fixed").finish() - } + RigidBodyType::Dynamic => f.debug_tuple("RigidBodyType::Dynamic").finish(), + RigidBodyType::Fixed => f.debug_tuple("RigidBodyType::Fixed").finish(), RigidBodyType::Kinematic => { f.debug_tuple("RigidBodyType::Kinematic").finish() } @@ -4485,7 +4319,10 @@ pub mod wired { (0i32, _rt::as_f32(x0), _rt::as_f32(y0), _rt::as_f32(z0)) } Shape::Cylinder(e) => { - let ShapeCylinder { height: height1, radius: radius1 } = e; + let ShapeCylinder { + height: height1, + radius: radius1, + } = e; (1i32, _rt::as_f32(height1), _rt::as_f32(radius1), 0.0f32) } Shape::Sphere(e) => (2i32, _rt::as_f32(e), 0.0f32, 0.0f32), @@ -4567,9 +4404,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:physics/types")] @@ -4627,9 +4462,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:physics/types")] @@ -4689,7 +4522,8 @@ pub mod wired { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Node = super::super::super::wired::scene::node::Node; pub struct Skeleton { @@ -4715,10 +4549,7 @@ pub mod wired { pub right_foot: Node, } impl ::core::fmt::Debug for Skeleton { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Skeleton") .field("hips", &self.hips) .field("spine", &self.spine) @@ -4795,9 +4626,7 @@ pub mod wired { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -4807,9 +4636,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 80]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 80], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 80]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:player/api")] @@ -4861,45 +4688,55 @@ pub mod wired { head: super::super::super::wired::scene::node::Node::from_handle( l6 as u32, ), - left_shoulder: super::super::super::wired::scene::node::Node::from_handle( - l7 as u32, - ), - left_upper_arm: super::super::super::wired::scene::node::Node::from_handle( - l8 as u32, - ), - left_lower_arm: super::super::super::wired::scene::node::Node::from_handle( - l9 as u32, - ), + left_shoulder: + super::super::super::wired::scene::node::Node::from_handle( + l7 as u32, + ), + left_upper_arm: + super::super::super::wired::scene::node::Node::from_handle( + l8 as u32, + ), + left_lower_arm: + super::super::super::wired::scene::node::Node::from_handle( + l9 as u32, + ), left_hand: super::super::super::wired::scene::node::Node::from_handle( l10 as u32, ), - right_shoulder: super::super::super::wired::scene::node::Node::from_handle( - l11 as u32, - ), - right_upper_arm: super::super::super::wired::scene::node::Node::from_handle( - l12 as u32, - ), - right_lower_arm: super::super::super::wired::scene::node::Node::from_handle( - l13 as u32, - ), + right_shoulder: + super::super::super::wired::scene::node::Node::from_handle( + l11 as u32, + ), + right_upper_arm: + super::super::super::wired::scene::node::Node::from_handle( + l12 as u32, + ), + right_lower_arm: + super::super::super::wired::scene::node::Node::from_handle( + l13 as u32, + ), right_hand: super::super::super::wired::scene::node::Node::from_handle( l14 as u32, ), - left_upper_leg: super::super::super::wired::scene::node::Node::from_handle( - l15 as u32, - ), - left_lower_leg: super::super::super::wired::scene::node::Node::from_handle( - l16 as u32, - ), + left_upper_leg: + super::super::super::wired::scene::node::Node::from_handle( + l15 as u32, + ), + left_lower_leg: + super::super::super::wired::scene::node::Node::from_handle( + l16 as u32, + ), left_foot: super::super::super::wired::scene::node::Node::from_handle( l17 as u32, ), - right_upper_leg: super::super::super::wired::scene::node::Node::from_handle( - l18 as u32, - ), - right_lower_leg: super::super::super::wired::scene::node::Node::from_handle( - l19 as u32, - ), + right_upper_leg: + super::super::super::wired::scene::node::Node::from_handle( + l18 as u32, + ), + right_lower_leg: + super::super::super::wired::scene::node::Node::from_handle( + l19 as u32, + ), right_foot: super::super::super::wired::scene::node::Node::from_handle( l20 as u32, ), @@ -4967,7 +4804,8 @@ pub mod wired { pub mod material { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; #[repr(C)] #[derive(Clone, Copy)] @@ -4978,10 +4816,7 @@ pub mod wired { pub a: f32, } impl ::core::fmt::Debug for Color { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Color") .field("r", &self.r) .field("g", &self.g) @@ -5091,9 +4926,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] @@ -5141,9 +4974,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 16]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 16], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 16]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] @@ -5173,7 +5004,12 @@ pub mod wired { #[allow(unused_unsafe, clippy::all)] pub fn set_color(&self, value: Color) { unsafe { - let Color { r: r0, g: g0, b: b0, a: a0 } = value; + let Color { + r: r0, + g: g0, + b: b0, + a: a0, + } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] extern "C" { @@ -5199,7 +5035,8 @@ pub mod wired { pub mod mesh { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Material = super::super::super::wired::scene::material::Material; #[derive(Debug)] @@ -5301,9 +5138,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -5503,9 +5338,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -5553,9 +5386,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -5619,10 +5450,7 @@ pub mod wired { fn wit_import(_: i32, _: i32) { unreachable!() } - wit_import( - (self).handle() as i32, - (&value).take_handle() as i32, - ); + wit_import((self).handle() as i32, (&value).take_handle() as i32); } } } @@ -5631,7 +5459,8 @@ pub mod wired { pub mod node { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Mesh = super::super::super::wired::scene::mesh::Mesh; pub type InputHandler = super::super::super::wired::input::handler::InputHandler; @@ -5739,9 +5568,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5789,9 +5616,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5864,9 +5689,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5900,9 +5723,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5952,9 +5773,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -6079,9 +5898,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -6139,9 +5956,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -6199,9 +6014,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -6259,9 +6072,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -6318,7 +6129,8 @@ pub mod wired { pub mod scene { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Node = super::super::super::wired::scene::node::Node; #[derive(Debug)] @@ -6402,9 +6214,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/scene")] @@ -6452,9 +6262,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/scene")] @@ -6528,7 +6336,8 @@ pub mod wired { pub mod gltf { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Material = super::super::super::wired::scene::material::Material; pub type Mesh = super::super::super::wired::scene::mesh::Mesh; @@ -6598,9 +6407,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -6675,9 +6482,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -6752,9 +6557,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -6829,9 +6632,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -6907,9 +6708,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -6969,9 +6768,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -7024,7 +6821,8 @@ pub mod wired { pub mod glxf { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Gltf = super::super::super::wired::scene::gltf::Gltf; pub type Node = super::super::super::wired::scene::node::Node; @@ -7147,10 +6945,7 @@ pub mod wired { Glxf(AssetGlxf), } impl ::core::fmt::Debug for Asset { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { Asset::Gltf(e) => f.debug_tuple("Asset::Gltf").field(e).finish(), Asset::Glxf(e) => f.debug_tuple("Asset::Glxf").field(e).finish(), @@ -7162,10 +6957,7 @@ pub mod wired { Glxf(&'a AssetGlxf), } impl<'a> ::core::fmt::Debug for AssetBorrow<'a> { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { AssetBorrow::Gltf(e) => { f.debug_tuple("AssetBorrow::Gltf").field(e).finish() @@ -7218,17 +7010,10 @@ pub mod wired { Nodes(_rt::Vec), } impl ::core::fmt::Debug for Children { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Children::Asset(e) => { - f.debug_tuple("Children::Asset").field(e).finish() - } - Children::Nodes(e) => { - f.debug_tuple("Children::Nodes").field(e).finish() - } + Children::Asset(e) => f.debug_tuple("Children::Asset").field(e).finish(), + Children::Nodes(e) => f.debug_tuple("Children::Nodes").field(e).finish(), } } } @@ -7237,10 +7022,7 @@ pub mod wired { Nodes(_rt::Vec<&'a GlxfNode>), } impl<'a> ::core::fmt::Debug for ChildrenBorrow<'a> { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { ChildrenBorrow::Asset(e) => { f.debug_tuple("ChildrenBorrow::Asset").field(e).finish() @@ -7331,9 +7113,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7431,9 +7211,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7506,9 +7284,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7582,9 +7358,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7642,9 +7416,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7724,9 +7496,7 @@ pub mod wired { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::gltf::Gltf::from_handle( - ret as u32, - ) + super::super::super::wired::scene::gltf::Gltf::from_handle(ret as u32) } } } @@ -7738,9 +7508,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7855,9 +7623,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7968,9 +7734,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -8018,9 +7782,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -8145,9 +7907,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -8181,9 +7941,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 16]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 16], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 16]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -8215,7 +7973,10 @@ pub mod wired { Asset::Gltf(e6) } n => { - debug_assert_eq!(n, 1, "invalid enum discriminant"); + debug_assert_eq!( + n, 1, + "invalid enum discriminant" + ); let e6 = { let l5 = *ptr0.add(12).cast::(); AssetGlxf::from_handle(l5 as u32) @@ -8287,7 +8048,9 @@ pub mod wired { } ptr } else { - { ::core::ptr::null_mut() } + { + ::core::ptr::null_mut() + } }; for (i, e) in vec1.into_iter().enumerate() { let base = result1.add(i * 4); @@ -8372,9 +8135,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -8422,9 +8183,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -8504,7 +8263,8 @@ pub mod exports { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::super::__link_custom_section_describing_imports; use super::super::super::super::_rt; #[derive(Debug)] #[repr(transparent)] @@ -8521,9 +8281,7 @@ pub mod exports { pub fn new(val: T) -> Self { Self::type_guard::(); let val: _ScriptRep = Some(val); - let ptr: *mut _ScriptRep = _rt::Box::into_raw( - _rt::Box::new(val), - ); + let ptr: *mut _ScriptRep = _rt::Box::into_raw(_rt::Box::new(val)); unsafe { Self::from_handle(T::_resource_new(ptr.cast())) } } /// Gets access to the underlying `T` which represents this resource. @@ -8561,12 +8319,13 @@ pub mod exports { use core::any::TypeId; static mut LAST_TYPE: Option = None; unsafe { - assert!(! cfg!(target_feature = "atomics")); + assert!(!cfg!(target_feature = "atomics")); let id = TypeId::of::(); match LAST_TYPE { Some(ty) => { assert!( - ty == id, "cannot use two types with this resource type" + ty == id, + "cannot use two types with this resource type" ) } None => LAST_TYPE = Some(id), @@ -8628,7 +8387,8 @@ pub mod exports { #[doc(hidden)] #[allow(non_snake_case)] pub unsafe fn _export_constructor_script_cabi() -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let result0 = Script::new(T::new()); (result0).take_handle() as i32 } @@ -8638,7 +8398,8 @@ pub mod exports { arg0: *mut u8, arg1: f32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::update(ScriptBorrow::lift(arg0 as u32 as usize).get(), arg1); } pub trait Guest { @@ -8776,7 +8537,9 @@ mod _rt { } impl fmt::Debug for Resource { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("Resource").field("handle", &self.handle).finish() + f.debug_struct("Resource") + .field("handle", &self.handle) + .finish() } } impl Drop for Resource { diff --git a/wasm/example-unavi-vscreen/src/bindings.rs b/wasm/example-unavi-vscreen/src/bindings.rs index f4b9141b6..f6c76e24c 100644 --- a/wasm/example-unavi-vscreen/src/bindings.rs +++ b/wasm/example-unavi-vscreen/src/bindings.rs @@ -6,7 +6,8 @@ pub mod unavi { pub mod container { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Vec3 = super::super::super::wired::math::types::Vec3; pub type Node = super::super::super::wired::scene::node::Node; @@ -18,10 +19,7 @@ pub mod unavi { Start, } impl ::core::fmt::Debug for Alignment { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { Alignment::Center => f.debug_tuple("Alignment::Center").finish(), Alignment::End => f.debug_tuple("Alignment::End").finish(), @@ -100,11 +98,7 @@ pub mod unavi { fn wit_import(_: f32, _: f32, _: f32) -> i32 { unreachable!() } - let ret = wit_import( - _rt::as_f32(x0), - _rt::as_f32(y0), - _rt::as_f32(z0), - ); + let ret = wit_import(_rt::as_f32(x0), _rt::as_f32(y0), _rt::as_f32(z0)); Container::from_handle(ret as u32) } } @@ -146,9 +140,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -169,9 +161,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -181,9 +171,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:layout/container")] @@ -256,9 +244,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:layout/container")] @@ -429,7 +415,8 @@ pub mod unavi { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Vec2 = super::super::super::wired::math::types::Vec2; pub type Vec3 = super::super::super::wired::math::types::Vec3; @@ -626,10 +613,7 @@ pub mod unavi { pub subdivisions: u8, } impl ::core::fmt::Debug for SphereIco { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("SphereIco") .field("subdivisions", &self.subdivisions) .finish() @@ -642,10 +626,7 @@ pub mod unavi { pub stacks: u8, } impl ::core::fmt::Debug for SphereUv { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("SphereUv") .field("sectors", &self.sectors) .field("stacks", &self.stacks) @@ -660,17 +641,10 @@ pub mod unavi { Uv(SphereUv), } impl ::core::fmt::Debug for SphereKind { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - SphereKind::Ico(e) => { - f.debug_tuple("SphereKind::Ico").field(e).finish() - } - SphereKind::Uv(e) => { - f.debug_tuple("SphereKind::Uv").field(e).finish() - } + SphereKind::Ico(e) => f.debug_tuple("SphereKind::Ico").field(e).finish(), + SphereKind::Uv(e) => f.debug_tuple("SphereKind::Uv").field(e).finish(), } } } @@ -752,10 +726,7 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn new(size: Vec2) -> Self { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = size; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = size; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -777,9 +748,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -794,10 +763,7 @@ pub mod unavi { wit_import((self).handle() as i32, ptr0); let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); - super::super::super::wired::math::types::Vec2 { - x: l1, - y: l2, - } + super::super::super::wired::math::types::Vec2 { x: l1, y: l2 } } } } @@ -805,10 +771,7 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn set_size(&self, value: Vec2) { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = value; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -819,11 +782,7 @@ pub mod unavi { fn wit_import(_: i32, _: f32, _: f32) { unreachable!() } - wit_import( - (self).handle() as i32, - _rt::as_f32(x0), - _rt::as_f32(y0), - ); + wit_import((self).handle() as i32, _rt::as_f32(x0), _rt::as_f32(y0)); } } } @@ -843,9 +802,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -865,9 +822,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -887,9 +842,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1003,9 +956,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1025,9 +976,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1047,9 +996,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1057,10 +1004,8 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn new(half_size: Vec2) -> Self { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = half_size; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = + half_size; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -1082,9 +1027,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -1099,10 +1042,7 @@ pub mod unavi { wit_import((self).handle() as i32, ptr0); let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); - super::super::super::wired::math::types::Vec2 { - x: l1, - y: l2, - } + super::super::super::wired::math::types::Vec2 { x: l1, y: l2 } } } } @@ -1110,10 +1050,7 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn set_half_size(&self, value: Vec2) { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = value; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -1124,11 +1061,7 @@ pub mod unavi { fn wit_import(_: i32, _: f32, _: f32) { unreachable!() } - wit_import( - (self).handle() as i32, - _rt::as_f32(x0), - _rt::as_f32(y0), - ); + wit_import((self).handle() as i32, _rt::as_f32(x0), _rt::as_f32(y0)); } } } @@ -1186,9 +1119,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1208,9 +1139,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1230,9 +1159,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1465,9 +1392,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1487,9 +1412,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1509,9 +1432,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1534,11 +1455,7 @@ pub mod unavi { fn wit_import(_: f32, _: f32, _: f32) -> i32 { unreachable!() } - let ret = wit_import( - _rt::as_f32(x0), - _rt::as_f32(y0), - _rt::as_f32(z0), - ); + let ret = wit_import(_rt::as_f32(x0), _rt::as_f32(y0), _rt::as_f32(z0)); Cuboid::from_handle(ret as u32) } } @@ -1549,9 +1466,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -1619,9 +1534,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1641,9 +1554,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1663,9 +1574,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1750,9 +1659,7 @@ pub mod unavi { unsafe { #[repr(align(1))] struct RetArea([::core::mem::MaybeUninit; 3]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 3], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 3]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -1799,11 +1706,16 @@ pub mod unavi { unsafe { let (result2_0, result2_1, result2_2) = match value { SphereKind::Ico(e) => { - let SphereIco { subdivisions: subdivisions0 } = e; + let SphereIco { + subdivisions: subdivisions0, + } = e; (0i32, _rt::as_i32(subdivisions0), 0i32) } SphereKind::Uv(e) => { - let SphereUv { sectors: sectors1, stacks: stacks1 } = e; + let SphereUv { + sectors: sectors1, + stacks: stacks1, + } = e; (1i32, _rt::as_i32(sectors1), _rt::as_i32(stacks1)) } }; @@ -1817,12 +1729,7 @@ pub mod unavi { fn wit_import(_: i32, _: i32, _: i32, _: i32) { unreachable!() } - wit_import( - (self).handle() as i32, - result2_0, - result2_1, - result2_2, - ); + wit_import((self).handle() as i32, result2_0, result2_1, result2_2); } } } @@ -1842,9 +1749,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1864,9 +1769,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1886,9 +1789,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1964,9 +1865,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1978,7 +1877,8 @@ pub mod unavi { pub mod screen { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Container = super::super::super::unavi::layout::container::Container; pub type Vec2 = super::super::super::wired::math::types::Vec2; @@ -1988,10 +1888,7 @@ pub mod unavi { Rectangle(Vec2), } impl ::core::fmt::Debug for ScreenShape { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { ScreenShape::Circle(e) => { f.debug_tuple("ScreenShape::Circle").field(e).finish() @@ -2048,10 +1945,8 @@ pub mod unavi { let (result1_0, result1_1, result1_2) = match shape { ScreenShape::Circle(e) => (0i32, _rt::as_f32(e), 0.0f32), ScreenShape::Rectangle(e) => { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = e; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = + e; (1i32, _rt::as_f32(x0), _rt::as_f32(y0)) } }; @@ -2220,9 +2115,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:vscreen/screen")] @@ -2319,7 +2212,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; pub type Vec3 = super::super::super::wired::math::types::Vec3; pub type Quat = super::super::super::wired::math::types::Quat; #[repr(u8)] @@ -2329,10 +2223,7 @@ pub mod wired { Right, } impl ::core::fmt::Debug for HandSide { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { HandSide::Left => f.debug_tuple("HandSide::Left").finish(), HandSide::Right => f.debug_tuple("HandSide::Right").finish(), @@ -2360,10 +2251,7 @@ pub mod wired { pub radius: f32, } impl ::core::fmt::Debug for Joint { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Joint") .field("translation", &self.translation) .field("rotation", &self.rotation) @@ -2380,10 +2268,7 @@ pub mod wired { pub metacarpal: Joint, } impl ::core::fmt::Debug for Finger { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Finger") .field("tip", &self.tip) .field("distal", &self.distal) @@ -2407,10 +2292,7 @@ pub mod wired { pub elbow: Option, } impl ::core::fmt::Debug for Hand { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Hand") .field("side", &self.side) .field("thumb", &self.thumb) @@ -2432,10 +2314,7 @@ pub mod wired { pub origin: Vec3, } impl ::core::fmt::Debug for Ray { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Ray") .field("orientation", &self.orientation) .field("origin", &self.origin) @@ -2448,17 +2327,10 @@ pub mod wired { Ray(Ray), } impl ::core::fmt::Debug for InputData { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputData::Hand(e) => { - f.debug_tuple("InputData::Hand").field(e).finish() - } - InputData::Ray(e) => { - f.debug_tuple("InputData::Ray").field(e).finish() - } + InputData::Hand(e) => f.debug_tuple("InputData::Hand").field(e).finish(), + InputData::Ray(e) => f.debug_tuple("InputData::Ray").field(e).finish(), } } } @@ -2468,17 +2340,10 @@ pub mod wired { Hover, } impl ::core::fmt::Debug for InputAction { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputAction::Collision => { - f.debug_tuple("InputAction::Collision").finish() - } - InputAction::Hover => { - f.debug_tuple("InputAction::Hover").finish() - } + InputAction::Collision => f.debug_tuple("InputAction::Collision").finish(), + InputAction::Hover => f.debug_tuple("InputAction::Hover").finish(), } } } @@ -2493,10 +2358,7 @@ pub mod wired { pub data: InputData, } impl ::core::fmt::Debug for InputEvent { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("InputEvent") .field("id", &self.id) .field("action", &self.action) @@ -2509,7 +2371,8 @@ pub mod wired { pub mod handler { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type InputEvent = super::super::super::wired::input::types::InputEvent; #[derive(Debug)] @@ -2576,9 +2439,7 @@ pub mod wired { unsafe { #[repr(align(8))] struct RetArea([::core::mem::MaybeUninit; 768]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 768], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 768]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:input/handler")] @@ -3194,7 +3055,8 @@ pub mod wired { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; #[repr(u8)] #[derive(Clone, Copy, Eq, PartialEq)] pub enum LogLevel { @@ -3204,10 +3066,7 @@ pub mod wired { Error, } impl ::core::fmt::Debug for LogLevel { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { LogLevel::Debug => f.debug_tuple("LogLevel::Debug").finish(), LogLevel::Info => f.debug_tuple("LogLevel::Info").finish(), @@ -3258,7 +3117,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; #[repr(C)] #[derive(Clone, Copy)] pub struct Vec2 { @@ -3266,10 +3126,7 @@ pub mod wired { pub y: f32, } impl ::core::fmt::Debug for Vec2 { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Vec2") .field("x", &self.x) .field("y", &self.y) @@ -3284,10 +3141,7 @@ pub mod wired { pub z: f32, } impl ::core::fmt::Debug for Vec3 { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Vec3") .field("x", &self.x) .field("y", &self.y) @@ -3304,10 +3158,7 @@ pub mod wired { pub w: f32, } impl ::core::fmt::Debug for Quat { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Quat") .field("x", &self.x) .field("y", &self.y) @@ -3324,10 +3175,7 @@ pub mod wired { pub translation: Vec3, } impl ::core::fmt::Debug for Transform { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Transform") .field("rotation", &self.rotation) .field("scale", &self.scale) @@ -3380,7 +3228,11 @@ pub mod wired { let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); let l3 = *ptr0.add(8).cast::(); - Vec3 { x: l1, y: l2, z: l3 } + Vec3 { + x: l1, + y: l2, + z: l3, + } } } #[allow(unused_unsafe, clippy::all)] @@ -3405,7 +3257,12 @@ pub mod wired { let l2 = *ptr0.add(4).cast::(); let l3 = *ptr0.add(8).cast::(); let l4 = *ptr0.add(12).cast::(); - Quat { x: l1, y: l2, z: l3, w: l4 } + Quat { + x: l1, + y: l2, + z: l3, + w: l4, + } } } #[allow(unused_unsafe, clippy::all)] @@ -3437,9 +3294,22 @@ pub mod wired { let l9 = *ptr0.add(32).cast::(); let l10 = *ptr0.add(36).cast::(); Transform { - rotation: Quat { x: l1, y: l2, z: l3, w: l4 }, - scale: Vec3 { x: l5, y: l6, z: l7 }, - translation: Vec3 { x: l8, y: l9, z: l10 }, + rotation: Quat { + x: l1, + y: l2, + z: l3, + w: l4, + }, + scale: Vec3 { + x: l5, + y: l6, + z: l7, + }, + translation: Vec3 { + x: l8, + y: l9, + z: l10, + }, } } } @@ -3451,7 +3321,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Vec3 = super::super::super::wired::math::types::Vec3; #[derive(Debug)] @@ -3498,10 +3369,7 @@ pub mod wired { pub radius: f32, } impl ::core::fmt::Debug for ShapeCylinder { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("ShapeCylinder") .field("height", &self.height) .field("radius", &self.radius) @@ -3515,20 +3383,11 @@ pub mod wired { Sphere(f32), } impl ::core::fmt::Debug for Shape { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Shape::Cuboid(e) => { - f.debug_tuple("Shape::Cuboid").field(e).finish() - } - Shape::Cylinder(e) => { - f.debug_tuple("Shape::Cylinder").field(e).finish() - } - Shape::Sphere(e) => { - f.debug_tuple("Shape::Sphere").field(e).finish() - } + Shape::Cuboid(e) => f.debug_tuple("Shape::Cuboid").field(e).finish(), + Shape::Cylinder(e) => f.debug_tuple("Shape::Cylinder").field(e).finish(), + Shape::Sphere(e) => f.debug_tuple("Shape::Sphere").field(e).finish(), } } } @@ -3577,17 +3436,10 @@ pub mod wired { Kinematic, } impl ::core::fmt::Debug for RigidBodyType { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - RigidBodyType::Dynamic => { - f.debug_tuple("RigidBodyType::Dynamic").finish() - } - RigidBodyType::Fixed => { - f.debug_tuple("RigidBodyType::Fixed").finish() - } + RigidBodyType::Dynamic => f.debug_tuple("RigidBodyType::Dynamic").finish(), + RigidBodyType::Fixed => f.debug_tuple("RigidBodyType::Fixed").finish(), RigidBodyType::Kinematic => { f.debug_tuple("RigidBodyType::Kinematic").finish() } @@ -3622,7 +3474,10 @@ pub mod wired { (0i32, _rt::as_f32(x0), _rt::as_f32(y0), _rt::as_f32(z0)) } Shape::Cylinder(e) => { - let ShapeCylinder { height: height1, radius: radius1 } = e; + let ShapeCylinder { + height: height1, + radius: radius1, + } = e; (1i32, _rt::as_f32(height1), _rt::as_f32(radius1), 0.0f32) } Shape::Sphere(e) => (2i32, _rt::as_f32(e), 0.0f32, 0.0f32), @@ -3704,9 +3559,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:physics/types")] @@ -3764,9 +3617,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:physics/types")] @@ -3826,7 +3677,8 @@ pub mod wired { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Node = super::super::super::wired::scene::node::Node; pub struct Skeleton { @@ -3852,10 +3704,7 @@ pub mod wired { pub right_foot: Node, } impl ::core::fmt::Debug for Skeleton { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Skeleton") .field("hips", &self.hips) .field("spine", &self.spine) @@ -3932,9 +3781,7 @@ pub mod wired { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -3944,9 +3791,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 80]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 80], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 80]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:player/api")] @@ -3998,45 +3843,55 @@ pub mod wired { head: super::super::super::wired::scene::node::Node::from_handle( l6 as u32, ), - left_shoulder: super::super::super::wired::scene::node::Node::from_handle( - l7 as u32, - ), - left_upper_arm: super::super::super::wired::scene::node::Node::from_handle( - l8 as u32, - ), - left_lower_arm: super::super::super::wired::scene::node::Node::from_handle( - l9 as u32, - ), + left_shoulder: + super::super::super::wired::scene::node::Node::from_handle( + l7 as u32, + ), + left_upper_arm: + super::super::super::wired::scene::node::Node::from_handle( + l8 as u32, + ), + left_lower_arm: + super::super::super::wired::scene::node::Node::from_handle( + l9 as u32, + ), left_hand: super::super::super::wired::scene::node::Node::from_handle( l10 as u32, ), - right_shoulder: super::super::super::wired::scene::node::Node::from_handle( - l11 as u32, - ), - right_upper_arm: super::super::super::wired::scene::node::Node::from_handle( - l12 as u32, - ), - right_lower_arm: super::super::super::wired::scene::node::Node::from_handle( - l13 as u32, - ), + right_shoulder: + super::super::super::wired::scene::node::Node::from_handle( + l11 as u32, + ), + right_upper_arm: + super::super::super::wired::scene::node::Node::from_handle( + l12 as u32, + ), + right_lower_arm: + super::super::super::wired::scene::node::Node::from_handle( + l13 as u32, + ), right_hand: super::super::super::wired::scene::node::Node::from_handle( l14 as u32, ), - left_upper_leg: super::super::super::wired::scene::node::Node::from_handle( - l15 as u32, - ), - left_lower_leg: super::super::super::wired::scene::node::Node::from_handle( - l16 as u32, - ), + left_upper_leg: + super::super::super::wired::scene::node::Node::from_handle( + l15 as u32, + ), + left_lower_leg: + super::super::super::wired::scene::node::Node::from_handle( + l16 as u32, + ), left_foot: super::super::super::wired::scene::node::Node::from_handle( l17 as u32, ), - right_upper_leg: super::super::super::wired::scene::node::Node::from_handle( - l18 as u32, - ), - right_lower_leg: super::super::super::wired::scene::node::Node::from_handle( - l19 as u32, - ), + right_upper_leg: + super::super::super::wired::scene::node::Node::from_handle( + l18 as u32, + ), + right_lower_leg: + super::super::super::wired::scene::node::Node::from_handle( + l19 as u32, + ), right_foot: super::super::super::wired::scene::node::Node::from_handle( l20 as u32, ), @@ -4104,7 +3959,8 @@ pub mod wired { pub mod material { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; #[repr(C)] #[derive(Clone, Copy)] @@ -4115,10 +3971,7 @@ pub mod wired { pub a: f32, } impl ::core::fmt::Debug for Color { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Color") .field("r", &self.r) .field("g", &self.g) @@ -4228,9 +4081,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] @@ -4278,9 +4129,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 16]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 16], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 16]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] @@ -4310,7 +4159,12 @@ pub mod wired { #[allow(unused_unsafe, clippy::all)] pub fn set_color(&self, value: Color) { unsafe { - let Color { r: r0, g: g0, b: b0, a: a0 } = value; + let Color { + r: r0, + g: g0, + b: b0, + a: a0, + } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] extern "C" { @@ -4336,7 +4190,8 @@ pub mod wired { pub mod mesh { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Material = super::super::super::wired::scene::material::Material; #[derive(Debug)] @@ -4438,9 +4293,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -4640,9 +4493,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -4690,9 +4541,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -4756,10 +4605,7 @@ pub mod wired { fn wit_import(_: i32, _: i32) { unreachable!() } - wit_import( - (self).handle() as i32, - (&value).take_handle() as i32, - ); + wit_import((self).handle() as i32, (&value).take_handle() as i32); } } } @@ -4768,7 +4614,8 @@ pub mod wired { pub mod node { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Mesh = super::super::super::wired::scene::mesh::Mesh; pub type InputHandler = super::super::super::wired::input::handler::InputHandler; @@ -4876,9 +4723,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4926,9 +4771,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5001,9 +4844,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5037,9 +4878,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5089,9 +4928,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5216,9 +5053,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5276,9 +5111,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5336,9 +5169,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5396,9 +5227,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5455,7 +5284,8 @@ pub mod wired { pub mod scene { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Node = super::super::super::wired::scene::node::Node; #[derive(Debug)] @@ -5539,9 +5369,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/scene")] @@ -5589,9 +5417,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/scene")] @@ -5665,7 +5491,8 @@ pub mod wired { pub mod gltf { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Material = super::super::super::wired::scene::material::Material; pub type Mesh = super::super::super::wired::scene::mesh::Mesh; @@ -5735,9 +5562,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5812,9 +5637,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5889,9 +5712,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5966,9 +5787,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -6044,9 +5863,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -6106,9 +5923,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -6161,7 +5976,8 @@ pub mod wired { pub mod glxf { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Gltf = super::super::super::wired::scene::gltf::Gltf; pub type Node = super::super::super::wired::scene::node::Node; @@ -6284,10 +6100,7 @@ pub mod wired { Glxf(AssetGlxf), } impl ::core::fmt::Debug for Asset { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { Asset::Gltf(e) => f.debug_tuple("Asset::Gltf").field(e).finish(), Asset::Glxf(e) => f.debug_tuple("Asset::Glxf").field(e).finish(), @@ -6299,10 +6112,7 @@ pub mod wired { Glxf(&'a AssetGlxf), } impl<'a> ::core::fmt::Debug for AssetBorrow<'a> { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { AssetBorrow::Gltf(e) => { f.debug_tuple("AssetBorrow::Gltf").field(e).finish() @@ -6355,17 +6165,10 @@ pub mod wired { Nodes(_rt::Vec), } impl ::core::fmt::Debug for Children { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Children::Asset(e) => { - f.debug_tuple("Children::Asset").field(e).finish() - } - Children::Nodes(e) => { - f.debug_tuple("Children::Nodes").field(e).finish() - } + Children::Asset(e) => f.debug_tuple("Children::Asset").field(e).finish(), + Children::Nodes(e) => f.debug_tuple("Children::Nodes").field(e).finish(), } } } @@ -6374,10 +6177,7 @@ pub mod wired { Nodes(_rt::Vec<&'a GlxfNode>), } impl<'a> ::core::fmt::Debug for ChildrenBorrow<'a> { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { ChildrenBorrow::Asset(e) => { f.debug_tuple("ChildrenBorrow::Asset").field(e).finish() @@ -6468,9 +6268,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6568,9 +6366,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6643,9 +6439,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6719,9 +6513,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6779,9 +6571,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6861,9 +6651,7 @@ pub mod wired { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::gltf::Gltf::from_handle( - ret as u32, - ) + super::super::super::wired::scene::gltf::Gltf::from_handle(ret as u32) } } } @@ -6875,9 +6663,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6992,9 +6778,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7105,9 +6889,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7155,9 +6937,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7282,9 +7062,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7318,9 +7096,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 16]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 16], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 16]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7352,7 +7128,10 @@ pub mod wired { Asset::Gltf(e6) } n => { - debug_assert_eq!(n, 1, "invalid enum discriminant"); + debug_assert_eq!( + n, 1, + "invalid enum discriminant" + ); let e6 = { let l5 = *ptr0.add(12).cast::(); AssetGlxf::from_handle(l5 as u32) @@ -7424,7 +7203,9 @@ pub mod wired { } ptr } else { - { ::core::ptr::null_mut() } + { + ::core::ptr::null_mut() + } }; for (i, e) in vec1.into_iter().enumerate() { let base = result1.add(i * 4); @@ -7509,9 +7290,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7559,9 +7338,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7641,7 +7418,8 @@ pub mod exports { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::super::__link_custom_section_describing_imports; use super::super::super::super::_rt; #[derive(Debug)] #[repr(transparent)] @@ -7658,9 +7436,7 @@ pub mod exports { pub fn new(val: T) -> Self { Self::type_guard::(); let val: _ScriptRep = Some(val); - let ptr: *mut _ScriptRep = _rt::Box::into_raw( - _rt::Box::new(val), - ); + let ptr: *mut _ScriptRep = _rt::Box::into_raw(_rt::Box::new(val)); unsafe { Self::from_handle(T::_resource_new(ptr.cast())) } } /// Gets access to the underlying `T` which represents this resource. @@ -7698,12 +7474,13 @@ pub mod exports { use core::any::TypeId; static mut LAST_TYPE: Option = None; unsafe { - assert!(! cfg!(target_feature = "atomics")); + assert!(!cfg!(target_feature = "atomics")); let id = TypeId::of::(); match LAST_TYPE { Some(ty) => { assert!( - ty == id, "cannot use two types with this resource type" + ty == id, + "cannot use two types with this resource type" ) } None => LAST_TYPE = Some(id), @@ -7765,7 +7542,8 @@ pub mod exports { #[doc(hidden)] #[allow(non_snake_case)] pub unsafe fn _export_constructor_script_cabi() -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let result0 = Script::new(T::new()); (result0).take_handle() as i32 } @@ -7775,7 +7553,8 @@ pub mod exports { arg0: *mut u8, arg1: f32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::update(ScriptBorrow::lift(arg0 as u32 as usize).get(), arg1); } pub trait Guest { @@ -7913,7 +7692,9 @@ mod _rt { } impl fmt::Debug for Resource { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("Resource").field("handle", &self.handle).finish() + f.debug_struct("Resource") + .field("handle", &self.handle) + .finish() } } impl Drop for Resource { diff --git a/wasm/example-wired-input/src/bindings.rs b/wasm/example-wired-input/src/bindings.rs index 2d713b7bc..d9d8ac237 100644 --- a/wasm/example-wired-input/src/bindings.rs +++ b/wasm/example-wired-input/src/bindings.rs @@ -6,7 +6,8 @@ pub mod unavi { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Transform = super::super::super::wired::math::types::Transform; pub type Node = super::super::super::wired::scene::node::Node; @@ -92,9 +93,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:scene/api")] @@ -188,9 +187,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:scene/api")] @@ -239,9 +236,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -287,9 +282,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:scene/api")] @@ -459,7 +452,8 @@ pub mod unavi { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Vec2 = super::super::super::wired::math::types::Vec2; pub type Vec3 = super::super::super::wired::math::types::Vec3; @@ -656,10 +650,7 @@ pub mod unavi { pub subdivisions: u8, } impl ::core::fmt::Debug for SphereIco { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("SphereIco") .field("subdivisions", &self.subdivisions) .finish() @@ -672,10 +663,7 @@ pub mod unavi { pub stacks: u8, } impl ::core::fmt::Debug for SphereUv { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("SphereUv") .field("sectors", &self.sectors) .field("stacks", &self.stacks) @@ -690,17 +678,10 @@ pub mod unavi { Uv(SphereUv), } impl ::core::fmt::Debug for SphereKind { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - SphereKind::Ico(e) => { - f.debug_tuple("SphereKind::Ico").field(e).finish() - } - SphereKind::Uv(e) => { - f.debug_tuple("SphereKind::Uv").field(e).finish() - } + SphereKind::Ico(e) => f.debug_tuple("SphereKind::Ico").field(e).finish(), + SphereKind::Uv(e) => f.debug_tuple("SphereKind::Uv").field(e).finish(), } } } @@ -782,10 +763,7 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn new(size: Vec2) -> Self { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = size; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = size; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -807,9 +785,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -824,10 +800,7 @@ pub mod unavi { wit_import((self).handle() as i32, ptr0); let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); - super::super::super::wired::math::types::Vec2 { - x: l1, - y: l2, - } + super::super::super::wired::math::types::Vec2 { x: l1, y: l2 } } } } @@ -835,10 +808,7 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn set_size(&self, value: Vec2) { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = value; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -849,11 +819,7 @@ pub mod unavi { fn wit_import(_: i32, _: f32, _: f32) { unreachable!() } - wit_import( - (self).handle() as i32, - _rt::as_f32(x0), - _rt::as_f32(y0), - ); + wit_import((self).handle() as i32, _rt::as_f32(x0), _rt::as_f32(y0)); } } } @@ -873,9 +839,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -895,9 +859,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -917,9 +879,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1033,9 +993,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1055,9 +1013,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1077,9 +1033,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1087,10 +1041,8 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn new(half_size: Vec2) -> Self { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = half_size; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = + half_size; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -1112,9 +1064,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -1129,10 +1079,7 @@ pub mod unavi { wit_import((self).handle() as i32, ptr0); let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); - super::super::super::wired::math::types::Vec2 { - x: l1, - y: l2, - } + super::super::super::wired::math::types::Vec2 { x: l1, y: l2 } } } } @@ -1140,10 +1087,7 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn set_half_size(&self, value: Vec2) { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = value; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -1154,11 +1098,7 @@ pub mod unavi { fn wit_import(_: i32, _: f32, _: f32) { unreachable!() } - wit_import( - (self).handle() as i32, - _rt::as_f32(x0), - _rt::as_f32(y0), - ); + wit_import((self).handle() as i32, _rt::as_f32(x0), _rt::as_f32(y0)); } } } @@ -1216,9 +1156,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1238,9 +1176,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1260,9 +1196,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1495,9 +1429,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1517,9 +1449,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1539,9 +1469,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1564,11 +1492,7 @@ pub mod unavi { fn wit_import(_: f32, _: f32, _: f32) -> i32 { unreachable!() } - let ret = wit_import( - _rt::as_f32(x0), - _rt::as_f32(y0), - _rt::as_f32(z0), - ); + let ret = wit_import(_rt::as_f32(x0), _rt::as_f32(y0), _rt::as_f32(z0)); Cuboid::from_handle(ret as u32) } } @@ -1579,9 +1503,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -1649,9 +1571,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1671,9 +1591,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1693,9 +1611,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1780,9 +1696,7 @@ pub mod unavi { unsafe { #[repr(align(1))] struct RetArea([::core::mem::MaybeUninit; 3]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 3], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 3]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -1829,11 +1743,16 @@ pub mod unavi { unsafe { let (result2_0, result2_1, result2_2) = match value { SphereKind::Ico(e) => { - let SphereIco { subdivisions: subdivisions0 } = e; + let SphereIco { + subdivisions: subdivisions0, + } = e; (0i32, _rt::as_i32(subdivisions0), 0i32) } SphereKind::Uv(e) => { - let SphereUv { sectors: sectors1, stacks: stacks1 } = e; + let SphereUv { + sectors: sectors1, + stacks: stacks1, + } = e; (1i32, _rt::as_i32(sectors1), _rt::as_i32(stacks1)) } }; @@ -1847,12 +1766,7 @@ pub mod unavi { fn wit_import(_: i32, _: i32, _: i32, _: i32) { unreachable!() } - wit_import( - (self).handle() as i32, - result2_0, - result2_1, - result2_2, - ); + wit_import((self).handle() as i32, result2_0, result2_1, result2_2); } } } @@ -1872,9 +1786,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1894,9 +1806,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1916,9 +1826,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1994,9 +1902,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -2011,7 +1917,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; pub type Vec3 = super::super::super::wired::math::types::Vec3; pub type Quat = super::super::super::wired::math::types::Quat; #[repr(u8)] @@ -2021,10 +1928,7 @@ pub mod wired { Right, } impl ::core::fmt::Debug for HandSide { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { HandSide::Left => f.debug_tuple("HandSide::Left").finish(), HandSide::Right => f.debug_tuple("HandSide::Right").finish(), @@ -2052,10 +1956,7 @@ pub mod wired { pub radius: f32, } impl ::core::fmt::Debug for Joint { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Joint") .field("translation", &self.translation) .field("rotation", &self.rotation) @@ -2072,10 +1973,7 @@ pub mod wired { pub metacarpal: Joint, } impl ::core::fmt::Debug for Finger { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Finger") .field("tip", &self.tip) .field("distal", &self.distal) @@ -2099,10 +1997,7 @@ pub mod wired { pub elbow: Option, } impl ::core::fmt::Debug for Hand { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Hand") .field("side", &self.side) .field("thumb", &self.thumb) @@ -2124,10 +2019,7 @@ pub mod wired { pub origin: Vec3, } impl ::core::fmt::Debug for Ray { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Ray") .field("orientation", &self.orientation) .field("origin", &self.origin) @@ -2140,17 +2032,10 @@ pub mod wired { Ray(Ray), } impl ::core::fmt::Debug for InputData { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputData::Hand(e) => { - f.debug_tuple("InputData::Hand").field(e).finish() - } - InputData::Ray(e) => { - f.debug_tuple("InputData::Ray").field(e).finish() - } + InputData::Hand(e) => f.debug_tuple("InputData::Hand").field(e).finish(), + InputData::Ray(e) => f.debug_tuple("InputData::Ray").field(e).finish(), } } } @@ -2160,17 +2045,10 @@ pub mod wired { Hover, } impl ::core::fmt::Debug for InputAction { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputAction::Collision => { - f.debug_tuple("InputAction::Collision").finish() - } - InputAction::Hover => { - f.debug_tuple("InputAction::Hover").finish() - } + InputAction::Collision => f.debug_tuple("InputAction::Collision").finish(), + InputAction::Hover => f.debug_tuple("InputAction::Hover").finish(), } } } @@ -2185,10 +2063,7 @@ pub mod wired { pub data: InputData, } impl ::core::fmt::Debug for InputEvent { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("InputEvent") .field("id", &self.id) .field("action", &self.action) @@ -2201,7 +2076,8 @@ pub mod wired { pub mod handler { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type InputEvent = super::super::super::wired::input::types::InputEvent; #[derive(Debug)] @@ -2268,9 +2144,7 @@ pub mod wired { unsafe { #[repr(align(8))] struct RetArea([::core::mem::MaybeUninit; 768]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 768], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 768]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:input/handler")] @@ -2886,7 +2760,8 @@ pub mod wired { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; #[repr(u8)] #[derive(Clone, Copy, Eq, PartialEq)] pub enum LogLevel { @@ -2896,10 +2771,7 @@ pub mod wired { Error, } impl ::core::fmt::Debug for LogLevel { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { LogLevel::Debug => f.debug_tuple("LogLevel::Debug").finish(), LogLevel::Info => f.debug_tuple("LogLevel::Info").finish(), @@ -2950,7 +2822,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; #[repr(C)] #[derive(Clone, Copy)] pub struct Vec2 { @@ -2958,10 +2831,7 @@ pub mod wired { pub y: f32, } impl ::core::fmt::Debug for Vec2 { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Vec2") .field("x", &self.x) .field("y", &self.y) @@ -2976,10 +2846,7 @@ pub mod wired { pub z: f32, } impl ::core::fmt::Debug for Vec3 { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Vec3") .field("x", &self.x) .field("y", &self.y) @@ -2996,10 +2863,7 @@ pub mod wired { pub w: f32, } impl ::core::fmt::Debug for Quat { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Quat") .field("x", &self.x) .field("y", &self.y) @@ -3016,10 +2880,7 @@ pub mod wired { pub translation: Vec3, } impl ::core::fmt::Debug for Transform { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Transform") .field("rotation", &self.rotation) .field("scale", &self.scale) @@ -3072,7 +2933,11 @@ pub mod wired { let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); let l3 = *ptr0.add(8).cast::(); - Vec3 { x: l1, y: l2, z: l3 } + Vec3 { + x: l1, + y: l2, + z: l3, + } } } #[allow(unused_unsafe, clippy::all)] @@ -3097,7 +2962,12 @@ pub mod wired { let l2 = *ptr0.add(4).cast::(); let l3 = *ptr0.add(8).cast::(); let l4 = *ptr0.add(12).cast::(); - Quat { x: l1, y: l2, z: l3, w: l4 } + Quat { + x: l1, + y: l2, + z: l3, + w: l4, + } } } #[allow(unused_unsafe, clippy::all)] @@ -3129,9 +2999,22 @@ pub mod wired { let l9 = *ptr0.add(32).cast::(); let l10 = *ptr0.add(36).cast::(); Transform { - rotation: Quat { x: l1, y: l2, z: l3, w: l4 }, - scale: Vec3 { x: l5, y: l6, z: l7 }, - translation: Vec3 { x: l8, y: l9, z: l10 }, + rotation: Quat { + x: l1, + y: l2, + z: l3, + w: l4, + }, + scale: Vec3 { + x: l5, + y: l6, + z: l7, + }, + translation: Vec3 { + x: l8, + y: l9, + z: l10, + }, } } } @@ -3143,7 +3026,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Vec3 = super::super::super::wired::math::types::Vec3; #[derive(Debug)] @@ -3190,10 +3074,7 @@ pub mod wired { pub radius: f32, } impl ::core::fmt::Debug for ShapeCylinder { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("ShapeCylinder") .field("height", &self.height) .field("radius", &self.radius) @@ -3207,20 +3088,11 @@ pub mod wired { Sphere(f32), } impl ::core::fmt::Debug for Shape { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Shape::Cuboid(e) => { - f.debug_tuple("Shape::Cuboid").field(e).finish() - } - Shape::Cylinder(e) => { - f.debug_tuple("Shape::Cylinder").field(e).finish() - } - Shape::Sphere(e) => { - f.debug_tuple("Shape::Sphere").field(e).finish() - } + Shape::Cuboid(e) => f.debug_tuple("Shape::Cuboid").field(e).finish(), + Shape::Cylinder(e) => f.debug_tuple("Shape::Cylinder").field(e).finish(), + Shape::Sphere(e) => f.debug_tuple("Shape::Sphere").field(e).finish(), } } } @@ -3269,17 +3141,10 @@ pub mod wired { Kinematic, } impl ::core::fmt::Debug for RigidBodyType { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - RigidBodyType::Dynamic => { - f.debug_tuple("RigidBodyType::Dynamic").finish() - } - RigidBodyType::Fixed => { - f.debug_tuple("RigidBodyType::Fixed").finish() - } + RigidBodyType::Dynamic => f.debug_tuple("RigidBodyType::Dynamic").finish(), + RigidBodyType::Fixed => f.debug_tuple("RigidBodyType::Fixed").finish(), RigidBodyType::Kinematic => { f.debug_tuple("RigidBodyType::Kinematic").finish() } @@ -3314,7 +3179,10 @@ pub mod wired { (0i32, _rt::as_f32(x0), _rt::as_f32(y0), _rt::as_f32(z0)) } Shape::Cylinder(e) => { - let ShapeCylinder { height: height1, radius: radius1 } = e; + let ShapeCylinder { + height: height1, + radius: radius1, + } = e; (1i32, _rt::as_f32(height1), _rt::as_f32(radius1), 0.0f32) } Shape::Sphere(e) => (2i32, _rt::as_f32(e), 0.0f32, 0.0f32), @@ -3396,9 +3264,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:physics/types")] @@ -3456,9 +3322,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:physics/types")] @@ -3518,7 +3382,8 @@ pub mod wired { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Node = super::super::super::wired::scene::node::Node; pub struct Skeleton { @@ -3544,10 +3409,7 @@ pub mod wired { pub right_foot: Node, } impl ::core::fmt::Debug for Skeleton { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Skeleton") .field("hips", &self.hips) .field("spine", &self.spine) @@ -3624,9 +3486,7 @@ pub mod wired { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -3636,9 +3496,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 80]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 80], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 80]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:player/api")] @@ -3690,45 +3548,55 @@ pub mod wired { head: super::super::super::wired::scene::node::Node::from_handle( l6 as u32, ), - left_shoulder: super::super::super::wired::scene::node::Node::from_handle( - l7 as u32, - ), - left_upper_arm: super::super::super::wired::scene::node::Node::from_handle( - l8 as u32, - ), - left_lower_arm: super::super::super::wired::scene::node::Node::from_handle( - l9 as u32, - ), + left_shoulder: + super::super::super::wired::scene::node::Node::from_handle( + l7 as u32, + ), + left_upper_arm: + super::super::super::wired::scene::node::Node::from_handle( + l8 as u32, + ), + left_lower_arm: + super::super::super::wired::scene::node::Node::from_handle( + l9 as u32, + ), left_hand: super::super::super::wired::scene::node::Node::from_handle( l10 as u32, ), - right_shoulder: super::super::super::wired::scene::node::Node::from_handle( - l11 as u32, - ), - right_upper_arm: super::super::super::wired::scene::node::Node::from_handle( - l12 as u32, - ), - right_lower_arm: super::super::super::wired::scene::node::Node::from_handle( - l13 as u32, - ), + right_shoulder: + super::super::super::wired::scene::node::Node::from_handle( + l11 as u32, + ), + right_upper_arm: + super::super::super::wired::scene::node::Node::from_handle( + l12 as u32, + ), + right_lower_arm: + super::super::super::wired::scene::node::Node::from_handle( + l13 as u32, + ), right_hand: super::super::super::wired::scene::node::Node::from_handle( l14 as u32, ), - left_upper_leg: super::super::super::wired::scene::node::Node::from_handle( - l15 as u32, - ), - left_lower_leg: super::super::super::wired::scene::node::Node::from_handle( - l16 as u32, - ), + left_upper_leg: + super::super::super::wired::scene::node::Node::from_handle( + l15 as u32, + ), + left_lower_leg: + super::super::super::wired::scene::node::Node::from_handle( + l16 as u32, + ), left_foot: super::super::super::wired::scene::node::Node::from_handle( l17 as u32, ), - right_upper_leg: super::super::super::wired::scene::node::Node::from_handle( - l18 as u32, - ), - right_lower_leg: super::super::super::wired::scene::node::Node::from_handle( - l19 as u32, - ), + right_upper_leg: + super::super::super::wired::scene::node::Node::from_handle( + l18 as u32, + ), + right_lower_leg: + super::super::super::wired::scene::node::Node::from_handle( + l19 as u32, + ), right_foot: super::super::super::wired::scene::node::Node::from_handle( l20 as u32, ), @@ -3796,7 +3664,8 @@ pub mod wired { pub mod material { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; #[repr(C)] #[derive(Clone, Copy)] @@ -3807,10 +3676,7 @@ pub mod wired { pub a: f32, } impl ::core::fmt::Debug for Color { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Color") .field("r", &self.r) .field("g", &self.g) @@ -3920,9 +3786,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] @@ -3970,9 +3834,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 16]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 16], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 16]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] @@ -4002,7 +3864,12 @@ pub mod wired { #[allow(unused_unsafe, clippy::all)] pub fn set_color(&self, value: Color) { unsafe { - let Color { r: r0, g: g0, b: b0, a: a0 } = value; + let Color { + r: r0, + g: g0, + b: b0, + a: a0, + } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] extern "C" { @@ -4028,7 +3895,8 @@ pub mod wired { pub mod mesh { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Material = super::super::super::wired::scene::material::Material; #[derive(Debug)] @@ -4130,9 +3998,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -4332,9 +4198,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -4382,9 +4246,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -4448,10 +4310,7 @@ pub mod wired { fn wit_import(_: i32, _: i32) { unreachable!() } - wit_import( - (self).handle() as i32, - (&value).take_handle() as i32, - ); + wit_import((self).handle() as i32, (&value).take_handle() as i32); } } } @@ -4460,7 +4319,8 @@ pub mod wired { pub mod node { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Mesh = super::super::super::wired::scene::mesh::Mesh; pub type InputHandler = super::super::super::wired::input::handler::InputHandler; @@ -4568,9 +4428,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4618,9 +4476,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4693,9 +4549,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4729,9 +4583,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4781,9 +4633,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4908,9 +4758,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4968,9 +4816,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5028,9 +4874,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5088,9 +4932,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5147,7 +4989,8 @@ pub mod wired { pub mod scene { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Node = super::super::super::wired::scene::node::Node; #[derive(Debug)] @@ -5231,9 +5074,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/scene")] @@ -5281,9 +5122,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/scene")] @@ -5357,7 +5196,8 @@ pub mod wired { pub mod gltf { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Material = super::super::super::wired::scene::material::Material; pub type Mesh = super::super::super::wired::scene::mesh::Mesh; @@ -5427,9 +5267,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5504,9 +5342,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5581,9 +5417,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5658,9 +5492,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5736,9 +5568,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5798,9 +5628,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5853,7 +5681,8 @@ pub mod wired { pub mod glxf { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Gltf = super::super::super::wired::scene::gltf::Gltf; pub type Node = super::super::super::wired::scene::node::Node; @@ -5976,10 +5805,7 @@ pub mod wired { Glxf(AssetGlxf), } impl ::core::fmt::Debug for Asset { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { Asset::Gltf(e) => f.debug_tuple("Asset::Gltf").field(e).finish(), Asset::Glxf(e) => f.debug_tuple("Asset::Glxf").field(e).finish(), @@ -5991,10 +5817,7 @@ pub mod wired { Glxf(&'a AssetGlxf), } impl<'a> ::core::fmt::Debug for AssetBorrow<'a> { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { AssetBorrow::Gltf(e) => { f.debug_tuple("AssetBorrow::Gltf").field(e).finish() @@ -6047,17 +5870,10 @@ pub mod wired { Nodes(_rt::Vec), } impl ::core::fmt::Debug for Children { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Children::Asset(e) => { - f.debug_tuple("Children::Asset").field(e).finish() - } - Children::Nodes(e) => { - f.debug_tuple("Children::Nodes").field(e).finish() - } + Children::Asset(e) => f.debug_tuple("Children::Asset").field(e).finish(), + Children::Nodes(e) => f.debug_tuple("Children::Nodes").field(e).finish(), } } } @@ -6066,10 +5882,7 @@ pub mod wired { Nodes(_rt::Vec<&'a GlxfNode>), } impl<'a> ::core::fmt::Debug for ChildrenBorrow<'a> { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { ChildrenBorrow::Asset(e) => { f.debug_tuple("ChildrenBorrow::Asset").field(e).finish() @@ -6160,9 +5973,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6260,9 +6071,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6335,9 +6144,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6411,9 +6218,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6471,9 +6276,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6553,9 +6356,7 @@ pub mod wired { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::gltf::Gltf::from_handle( - ret as u32, - ) + super::super::super::wired::scene::gltf::Gltf::from_handle(ret as u32) } } } @@ -6567,9 +6368,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6684,9 +6483,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6797,9 +6594,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6847,9 +6642,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6974,9 +6767,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7010,9 +6801,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 16]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 16], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 16]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7044,7 +6833,10 @@ pub mod wired { Asset::Gltf(e6) } n => { - debug_assert_eq!(n, 1, "invalid enum discriminant"); + debug_assert_eq!( + n, 1, + "invalid enum discriminant" + ); let e6 = { let l5 = *ptr0.add(12).cast::(); AssetGlxf::from_handle(l5 as u32) @@ -7116,7 +6908,9 @@ pub mod wired { } ptr } else { - { ::core::ptr::null_mut() } + { + ::core::ptr::null_mut() + } }; for (i, e) in vec1.into_iter().enumerate() { let base = result1.add(i * 4); @@ -7201,9 +6995,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7251,9 +7043,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7333,7 +7123,8 @@ pub mod exports { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::super::__link_custom_section_describing_imports; use super::super::super::super::_rt; #[derive(Debug)] #[repr(transparent)] @@ -7350,9 +7141,7 @@ pub mod exports { pub fn new(val: T) -> Self { Self::type_guard::(); let val: _ScriptRep = Some(val); - let ptr: *mut _ScriptRep = _rt::Box::into_raw( - _rt::Box::new(val), - ); + let ptr: *mut _ScriptRep = _rt::Box::into_raw(_rt::Box::new(val)); unsafe { Self::from_handle(T::_resource_new(ptr.cast())) } } /// Gets access to the underlying `T` which represents this resource. @@ -7390,12 +7179,13 @@ pub mod exports { use core::any::TypeId; static mut LAST_TYPE: Option = None; unsafe { - assert!(! cfg!(target_feature = "atomics")); + assert!(!cfg!(target_feature = "atomics")); let id = TypeId::of::(); match LAST_TYPE { Some(ty) => { assert!( - ty == id, "cannot use two types with this resource type" + ty == id, + "cannot use two types with this resource type" ) } None => LAST_TYPE = Some(id), @@ -7457,7 +7247,8 @@ pub mod exports { #[doc(hidden)] #[allow(non_snake_case)] pub unsafe fn _export_constructor_script_cabi() -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let result0 = Script::new(T::new()); (result0).take_handle() as i32 } @@ -7467,7 +7258,8 @@ pub mod exports { arg0: *mut u8, arg1: f32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::update(ScriptBorrow::lift(arg0 as u32 as usize).get(), arg1); } pub trait Guest { @@ -7605,7 +7397,9 @@ mod _rt { } impl fmt::Debug for Resource { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("Resource").field("handle", &self.handle).finish() + f.debug_struct("Resource") + .field("handle", &self.handle) + .finish() } } impl Drop for Resource { diff --git a/wasm/example-wired-physics/src/bindings.rs b/wasm/example-wired-physics/src/bindings.rs index fe69634f8..431324469 100644 --- a/wasm/example-wired-physics/src/bindings.rs +++ b/wasm/example-wired-physics/src/bindings.rs @@ -6,7 +6,8 @@ pub mod unavi { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Transform = super::super::super::wired::math::types::Transform; pub type Node = super::super::super::wired::scene::node::Node; @@ -92,9 +93,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:scene/api")] @@ -188,9 +187,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:scene/api")] @@ -239,9 +236,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -287,9 +282,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:scene/api")] @@ -459,7 +452,8 @@ pub mod unavi { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Vec2 = super::super::super::wired::math::types::Vec2; pub type Vec3 = super::super::super::wired::math::types::Vec3; @@ -656,10 +650,7 @@ pub mod unavi { pub subdivisions: u8, } impl ::core::fmt::Debug for SphereIco { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("SphereIco") .field("subdivisions", &self.subdivisions) .finish() @@ -672,10 +663,7 @@ pub mod unavi { pub stacks: u8, } impl ::core::fmt::Debug for SphereUv { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("SphereUv") .field("sectors", &self.sectors) .field("stacks", &self.stacks) @@ -690,17 +678,10 @@ pub mod unavi { Uv(SphereUv), } impl ::core::fmt::Debug for SphereKind { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - SphereKind::Ico(e) => { - f.debug_tuple("SphereKind::Ico").field(e).finish() - } - SphereKind::Uv(e) => { - f.debug_tuple("SphereKind::Uv").field(e).finish() - } + SphereKind::Ico(e) => f.debug_tuple("SphereKind::Ico").field(e).finish(), + SphereKind::Uv(e) => f.debug_tuple("SphereKind::Uv").field(e).finish(), } } } @@ -782,10 +763,7 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn new(size: Vec2) -> Self { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = size; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = size; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -807,9 +785,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -824,10 +800,7 @@ pub mod unavi { wit_import((self).handle() as i32, ptr0); let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); - super::super::super::wired::math::types::Vec2 { - x: l1, - y: l2, - } + super::super::super::wired::math::types::Vec2 { x: l1, y: l2 } } } } @@ -835,10 +808,7 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn set_size(&self, value: Vec2) { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = value; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -849,11 +819,7 @@ pub mod unavi { fn wit_import(_: i32, _: f32, _: f32) { unreachable!() } - wit_import( - (self).handle() as i32, - _rt::as_f32(x0), - _rt::as_f32(y0), - ); + wit_import((self).handle() as i32, _rt::as_f32(x0), _rt::as_f32(y0)); } } } @@ -873,9 +839,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -895,9 +859,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -917,9 +879,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1033,9 +993,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1055,9 +1013,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1077,9 +1033,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1087,10 +1041,8 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn new(half_size: Vec2) -> Self { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = half_size; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = + half_size; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -1112,9 +1064,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -1129,10 +1079,7 @@ pub mod unavi { wit_import((self).handle() as i32, ptr0); let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); - super::super::super::wired::math::types::Vec2 { - x: l1, - y: l2, - } + super::super::super::wired::math::types::Vec2 { x: l1, y: l2 } } } } @@ -1140,10 +1087,7 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn set_half_size(&self, value: Vec2) { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = value; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -1154,11 +1098,7 @@ pub mod unavi { fn wit_import(_: i32, _: f32, _: f32) { unreachable!() } - wit_import( - (self).handle() as i32, - _rt::as_f32(x0), - _rt::as_f32(y0), - ); + wit_import((self).handle() as i32, _rt::as_f32(x0), _rt::as_f32(y0)); } } } @@ -1216,9 +1156,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1238,9 +1176,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1260,9 +1196,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1495,9 +1429,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1517,9 +1449,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1539,9 +1469,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1564,11 +1492,7 @@ pub mod unavi { fn wit_import(_: f32, _: f32, _: f32) -> i32 { unreachable!() } - let ret = wit_import( - _rt::as_f32(x0), - _rt::as_f32(y0), - _rt::as_f32(z0), - ); + let ret = wit_import(_rt::as_f32(x0), _rt::as_f32(y0), _rt::as_f32(z0)); Cuboid::from_handle(ret as u32) } } @@ -1579,9 +1503,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -1649,9 +1571,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1671,9 +1591,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1693,9 +1611,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1780,9 +1696,7 @@ pub mod unavi { unsafe { #[repr(align(1))] struct RetArea([::core::mem::MaybeUninit; 3]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 3], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 3]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -1829,11 +1743,16 @@ pub mod unavi { unsafe { let (result2_0, result2_1, result2_2) = match value { SphereKind::Ico(e) => { - let SphereIco { subdivisions: subdivisions0 } = e; + let SphereIco { + subdivisions: subdivisions0, + } = e; (0i32, _rt::as_i32(subdivisions0), 0i32) } SphereKind::Uv(e) => { - let SphereUv { sectors: sectors1, stacks: stacks1 } = e; + let SphereUv { + sectors: sectors1, + stacks: stacks1, + } = e; (1i32, _rt::as_i32(sectors1), _rt::as_i32(stacks1)) } }; @@ -1847,12 +1766,7 @@ pub mod unavi { fn wit_import(_: i32, _: i32, _: i32, _: i32) { unreachable!() } - wit_import( - (self).handle() as i32, - result2_0, - result2_1, - result2_2, - ); + wit_import((self).handle() as i32, result2_0, result2_1, result2_2); } } } @@ -1872,9 +1786,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1894,9 +1806,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1916,9 +1826,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1994,9 +1902,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -2011,7 +1917,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; pub type Vec3 = super::super::super::wired::math::types::Vec3; pub type Quat = super::super::super::wired::math::types::Quat; #[repr(u8)] @@ -2021,10 +1928,7 @@ pub mod wired { Right, } impl ::core::fmt::Debug for HandSide { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { HandSide::Left => f.debug_tuple("HandSide::Left").finish(), HandSide::Right => f.debug_tuple("HandSide::Right").finish(), @@ -2052,10 +1956,7 @@ pub mod wired { pub radius: f32, } impl ::core::fmt::Debug for Joint { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Joint") .field("translation", &self.translation) .field("rotation", &self.rotation) @@ -2072,10 +1973,7 @@ pub mod wired { pub metacarpal: Joint, } impl ::core::fmt::Debug for Finger { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Finger") .field("tip", &self.tip) .field("distal", &self.distal) @@ -2099,10 +1997,7 @@ pub mod wired { pub elbow: Option, } impl ::core::fmt::Debug for Hand { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Hand") .field("side", &self.side) .field("thumb", &self.thumb) @@ -2124,10 +2019,7 @@ pub mod wired { pub origin: Vec3, } impl ::core::fmt::Debug for Ray { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Ray") .field("orientation", &self.orientation) .field("origin", &self.origin) @@ -2140,17 +2032,10 @@ pub mod wired { Ray(Ray), } impl ::core::fmt::Debug for InputData { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputData::Hand(e) => { - f.debug_tuple("InputData::Hand").field(e).finish() - } - InputData::Ray(e) => { - f.debug_tuple("InputData::Ray").field(e).finish() - } + InputData::Hand(e) => f.debug_tuple("InputData::Hand").field(e).finish(), + InputData::Ray(e) => f.debug_tuple("InputData::Ray").field(e).finish(), } } } @@ -2160,17 +2045,10 @@ pub mod wired { Hover, } impl ::core::fmt::Debug for InputAction { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputAction::Collision => { - f.debug_tuple("InputAction::Collision").finish() - } - InputAction::Hover => { - f.debug_tuple("InputAction::Hover").finish() - } + InputAction::Collision => f.debug_tuple("InputAction::Collision").finish(), + InputAction::Hover => f.debug_tuple("InputAction::Hover").finish(), } } } @@ -2185,10 +2063,7 @@ pub mod wired { pub data: InputData, } impl ::core::fmt::Debug for InputEvent { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("InputEvent") .field("id", &self.id) .field("action", &self.action) @@ -2201,7 +2076,8 @@ pub mod wired { pub mod handler { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type InputEvent = super::super::super::wired::input::types::InputEvent; #[derive(Debug)] @@ -2268,9 +2144,7 @@ pub mod wired { unsafe { #[repr(align(8))] struct RetArea([::core::mem::MaybeUninit; 768]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 768], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 768]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:input/handler")] @@ -2886,7 +2760,8 @@ pub mod wired { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; #[repr(u8)] #[derive(Clone, Copy, Eq, PartialEq)] pub enum LogLevel { @@ -2896,10 +2771,7 @@ pub mod wired { Error, } impl ::core::fmt::Debug for LogLevel { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { LogLevel::Debug => f.debug_tuple("LogLevel::Debug").finish(), LogLevel::Info => f.debug_tuple("LogLevel::Info").finish(), @@ -2950,7 +2822,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; #[repr(C)] #[derive(Clone, Copy)] pub struct Vec2 { @@ -2958,10 +2831,7 @@ pub mod wired { pub y: f32, } impl ::core::fmt::Debug for Vec2 { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Vec2") .field("x", &self.x) .field("y", &self.y) @@ -2976,10 +2846,7 @@ pub mod wired { pub z: f32, } impl ::core::fmt::Debug for Vec3 { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Vec3") .field("x", &self.x) .field("y", &self.y) @@ -2996,10 +2863,7 @@ pub mod wired { pub w: f32, } impl ::core::fmt::Debug for Quat { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Quat") .field("x", &self.x) .field("y", &self.y) @@ -3016,10 +2880,7 @@ pub mod wired { pub translation: Vec3, } impl ::core::fmt::Debug for Transform { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Transform") .field("rotation", &self.rotation) .field("scale", &self.scale) @@ -3072,7 +2933,11 @@ pub mod wired { let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); let l3 = *ptr0.add(8).cast::(); - Vec3 { x: l1, y: l2, z: l3 } + Vec3 { + x: l1, + y: l2, + z: l3, + } } } #[allow(unused_unsafe, clippy::all)] @@ -3097,7 +2962,12 @@ pub mod wired { let l2 = *ptr0.add(4).cast::(); let l3 = *ptr0.add(8).cast::(); let l4 = *ptr0.add(12).cast::(); - Quat { x: l1, y: l2, z: l3, w: l4 } + Quat { + x: l1, + y: l2, + z: l3, + w: l4, + } } } #[allow(unused_unsafe, clippy::all)] @@ -3129,9 +2999,22 @@ pub mod wired { let l9 = *ptr0.add(32).cast::(); let l10 = *ptr0.add(36).cast::(); Transform { - rotation: Quat { x: l1, y: l2, z: l3, w: l4 }, - scale: Vec3 { x: l5, y: l6, z: l7 }, - translation: Vec3 { x: l8, y: l9, z: l10 }, + rotation: Quat { + x: l1, + y: l2, + z: l3, + w: l4, + }, + scale: Vec3 { + x: l5, + y: l6, + z: l7, + }, + translation: Vec3 { + x: l8, + y: l9, + z: l10, + }, } } } @@ -3143,7 +3026,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Vec3 = super::super::super::wired::math::types::Vec3; #[derive(Debug)] @@ -3190,10 +3074,7 @@ pub mod wired { pub radius: f32, } impl ::core::fmt::Debug for ShapeCylinder { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("ShapeCylinder") .field("height", &self.height) .field("radius", &self.radius) @@ -3207,20 +3088,11 @@ pub mod wired { Sphere(f32), } impl ::core::fmt::Debug for Shape { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Shape::Cuboid(e) => { - f.debug_tuple("Shape::Cuboid").field(e).finish() - } - Shape::Cylinder(e) => { - f.debug_tuple("Shape::Cylinder").field(e).finish() - } - Shape::Sphere(e) => { - f.debug_tuple("Shape::Sphere").field(e).finish() - } + Shape::Cuboid(e) => f.debug_tuple("Shape::Cuboid").field(e).finish(), + Shape::Cylinder(e) => f.debug_tuple("Shape::Cylinder").field(e).finish(), + Shape::Sphere(e) => f.debug_tuple("Shape::Sphere").field(e).finish(), } } } @@ -3269,17 +3141,10 @@ pub mod wired { Kinematic, } impl ::core::fmt::Debug for RigidBodyType { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - RigidBodyType::Dynamic => { - f.debug_tuple("RigidBodyType::Dynamic").finish() - } - RigidBodyType::Fixed => { - f.debug_tuple("RigidBodyType::Fixed").finish() - } + RigidBodyType::Dynamic => f.debug_tuple("RigidBodyType::Dynamic").finish(), + RigidBodyType::Fixed => f.debug_tuple("RigidBodyType::Fixed").finish(), RigidBodyType::Kinematic => { f.debug_tuple("RigidBodyType::Kinematic").finish() } @@ -3314,7 +3179,10 @@ pub mod wired { (0i32, _rt::as_f32(x0), _rt::as_f32(y0), _rt::as_f32(z0)) } Shape::Cylinder(e) => { - let ShapeCylinder { height: height1, radius: radius1 } = e; + let ShapeCylinder { + height: height1, + radius: radius1, + } = e; (1i32, _rt::as_f32(height1), _rt::as_f32(radius1), 0.0f32) } Shape::Sphere(e) => (2i32, _rt::as_f32(e), 0.0f32, 0.0f32), @@ -3396,9 +3264,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:physics/types")] @@ -3456,9 +3322,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:physics/types")] @@ -3518,7 +3382,8 @@ pub mod wired { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Node = super::super::super::wired::scene::node::Node; pub struct Skeleton { @@ -3544,10 +3409,7 @@ pub mod wired { pub right_foot: Node, } impl ::core::fmt::Debug for Skeleton { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Skeleton") .field("hips", &self.hips) .field("spine", &self.spine) @@ -3624,9 +3486,7 @@ pub mod wired { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -3636,9 +3496,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 80]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 80], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 80]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:player/api")] @@ -3690,45 +3548,55 @@ pub mod wired { head: super::super::super::wired::scene::node::Node::from_handle( l6 as u32, ), - left_shoulder: super::super::super::wired::scene::node::Node::from_handle( - l7 as u32, - ), - left_upper_arm: super::super::super::wired::scene::node::Node::from_handle( - l8 as u32, - ), - left_lower_arm: super::super::super::wired::scene::node::Node::from_handle( - l9 as u32, - ), + left_shoulder: + super::super::super::wired::scene::node::Node::from_handle( + l7 as u32, + ), + left_upper_arm: + super::super::super::wired::scene::node::Node::from_handle( + l8 as u32, + ), + left_lower_arm: + super::super::super::wired::scene::node::Node::from_handle( + l9 as u32, + ), left_hand: super::super::super::wired::scene::node::Node::from_handle( l10 as u32, ), - right_shoulder: super::super::super::wired::scene::node::Node::from_handle( - l11 as u32, - ), - right_upper_arm: super::super::super::wired::scene::node::Node::from_handle( - l12 as u32, - ), - right_lower_arm: super::super::super::wired::scene::node::Node::from_handle( - l13 as u32, - ), + right_shoulder: + super::super::super::wired::scene::node::Node::from_handle( + l11 as u32, + ), + right_upper_arm: + super::super::super::wired::scene::node::Node::from_handle( + l12 as u32, + ), + right_lower_arm: + super::super::super::wired::scene::node::Node::from_handle( + l13 as u32, + ), right_hand: super::super::super::wired::scene::node::Node::from_handle( l14 as u32, ), - left_upper_leg: super::super::super::wired::scene::node::Node::from_handle( - l15 as u32, - ), - left_lower_leg: super::super::super::wired::scene::node::Node::from_handle( - l16 as u32, - ), + left_upper_leg: + super::super::super::wired::scene::node::Node::from_handle( + l15 as u32, + ), + left_lower_leg: + super::super::super::wired::scene::node::Node::from_handle( + l16 as u32, + ), left_foot: super::super::super::wired::scene::node::Node::from_handle( l17 as u32, ), - right_upper_leg: super::super::super::wired::scene::node::Node::from_handle( - l18 as u32, - ), - right_lower_leg: super::super::super::wired::scene::node::Node::from_handle( - l19 as u32, - ), + right_upper_leg: + super::super::super::wired::scene::node::Node::from_handle( + l18 as u32, + ), + right_lower_leg: + super::super::super::wired::scene::node::Node::from_handle( + l19 as u32, + ), right_foot: super::super::super::wired::scene::node::Node::from_handle( l20 as u32, ), @@ -3796,7 +3664,8 @@ pub mod wired { pub mod material { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; #[repr(C)] #[derive(Clone, Copy)] @@ -3807,10 +3676,7 @@ pub mod wired { pub a: f32, } impl ::core::fmt::Debug for Color { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Color") .field("r", &self.r) .field("g", &self.g) @@ -3920,9 +3786,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] @@ -3970,9 +3834,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 16]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 16], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 16]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] @@ -4002,7 +3864,12 @@ pub mod wired { #[allow(unused_unsafe, clippy::all)] pub fn set_color(&self, value: Color) { unsafe { - let Color { r: r0, g: g0, b: b0, a: a0 } = value; + let Color { + r: r0, + g: g0, + b: b0, + a: a0, + } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] extern "C" { @@ -4028,7 +3895,8 @@ pub mod wired { pub mod mesh { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Material = super::super::super::wired::scene::material::Material; #[derive(Debug)] @@ -4130,9 +3998,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -4332,9 +4198,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -4382,9 +4246,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -4448,10 +4310,7 @@ pub mod wired { fn wit_import(_: i32, _: i32) { unreachable!() } - wit_import( - (self).handle() as i32, - (&value).take_handle() as i32, - ); + wit_import((self).handle() as i32, (&value).take_handle() as i32); } } } @@ -4460,7 +4319,8 @@ pub mod wired { pub mod node { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Mesh = super::super::super::wired::scene::mesh::Mesh; pub type InputHandler = super::super::super::wired::input::handler::InputHandler; @@ -4568,9 +4428,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4618,9 +4476,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4693,9 +4549,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4729,9 +4583,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4781,9 +4633,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4908,9 +4758,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4968,9 +4816,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5028,9 +4874,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5088,9 +4932,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5147,7 +4989,8 @@ pub mod wired { pub mod scene { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Node = super::super::super::wired::scene::node::Node; #[derive(Debug)] @@ -5231,9 +5074,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/scene")] @@ -5281,9 +5122,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/scene")] @@ -5357,7 +5196,8 @@ pub mod wired { pub mod gltf { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Material = super::super::super::wired::scene::material::Material; pub type Mesh = super::super::super::wired::scene::mesh::Mesh; @@ -5427,9 +5267,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5504,9 +5342,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5581,9 +5417,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5658,9 +5492,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5736,9 +5568,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5798,9 +5628,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5853,7 +5681,8 @@ pub mod wired { pub mod glxf { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Gltf = super::super::super::wired::scene::gltf::Gltf; pub type Node = super::super::super::wired::scene::node::Node; @@ -5976,10 +5805,7 @@ pub mod wired { Glxf(AssetGlxf), } impl ::core::fmt::Debug for Asset { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { Asset::Gltf(e) => f.debug_tuple("Asset::Gltf").field(e).finish(), Asset::Glxf(e) => f.debug_tuple("Asset::Glxf").field(e).finish(), @@ -5991,10 +5817,7 @@ pub mod wired { Glxf(&'a AssetGlxf), } impl<'a> ::core::fmt::Debug for AssetBorrow<'a> { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { AssetBorrow::Gltf(e) => { f.debug_tuple("AssetBorrow::Gltf").field(e).finish() @@ -6047,17 +5870,10 @@ pub mod wired { Nodes(_rt::Vec), } impl ::core::fmt::Debug for Children { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Children::Asset(e) => { - f.debug_tuple("Children::Asset").field(e).finish() - } - Children::Nodes(e) => { - f.debug_tuple("Children::Nodes").field(e).finish() - } + Children::Asset(e) => f.debug_tuple("Children::Asset").field(e).finish(), + Children::Nodes(e) => f.debug_tuple("Children::Nodes").field(e).finish(), } } } @@ -6066,10 +5882,7 @@ pub mod wired { Nodes(_rt::Vec<&'a GlxfNode>), } impl<'a> ::core::fmt::Debug for ChildrenBorrow<'a> { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { ChildrenBorrow::Asset(e) => { f.debug_tuple("ChildrenBorrow::Asset").field(e).finish() @@ -6160,9 +5973,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6260,9 +6071,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6335,9 +6144,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6411,9 +6218,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6471,9 +6276,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6553,9 +6356,7 @@ pub mod wired { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::gltf::Gltf::from_handle( - ret as u32, - ) + super::super::super::wired::scene::gltf::Gltf::from_handle(ret as u32) } } } @@ -6567,9 +6368,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6684,9 +6483,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6797,9 +6594,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6847,9 +6642,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6974,9 +6767,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7010,9 +6801,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 16]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 16], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 16]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7044,7 +6833,10 @@ pub mod wired { Asset::Gltf(e6) } n => { - debug_assert_eq!(n, 1, "invalid enum discriminant"); + debug_assert_eq!( + n, 1, + "invalid enum discriminant" + ); let e6 = { let l5 = *ptr0.add(12).cast::(); AssetGlxf::from_handle(l5 as u32) @@ -7116,7 +6908,9 @@ pub mod wired { } ptr } else { - { ::core::ptr::null_mut() } + { + ::core::ptr::null_mut() + } }; for (i, e) in vec1.into_iter().enumerate() { let base = result1.add(i * 4); @@ -7201,9 +6995,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7251,9 +7043,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7333,7 +7123,8 @@ pub mod exports { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::super::__link_custom_section_describing_imports; use super::super::super::super::_rt; #[derive(Debug)] #[repr(transparent)] @@ -7350,9 +7141,7 @@ pub mod exports { pub fn new(val: T) -> Self { Self::type_guard::(); let val: _ScriptRep = Some(val); - let ptr: *mut _ScriptRep = _rt::Box::into_raw( - _rt::Box::new(val), - ); + let ptr: *mut _ScriptRep = _rt::Box::into_raw(_rt::Box::new(val)); unsafe { Self::from_handle(T::_resource_new(ptr.cast())) } } /// Gets access to the underlying `T` which represents this resource. @@ -7390,12 +7179,13 @@ pub mod exports { use core::any::TypeId; static mut LAST_TYPE: Option = None; unsafe { - assert!(! cfg!(target_feature = "atomics")); + assert!(!cfg!(target_feature = "atomics")); let id = TypeId::of::(); match LAST_TYPE { Some(ty) => { assert!( - ty == id, "cannot use two types with this resource type" + ty == id, + "cannot use two types with this resource type" ) } None => LAST_TYPE = Some(id), @@ -7457,7 +7247,8 @@ pub mod exports { #[doc(hidden)] #[allow(non_snake_case)] pub unsafe fn _export_constructor_script_cabi() -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let result0 = Script::new(T::new()); (result0).take_handle() as i32 } @@ -7467,7 +7258,8 @@ pub mod exports { arg0: *mut u8, arg1: f32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::update(ScriptBorrow::lift(arg0 as u32 as usize).get(), arg1); } pub trait Guest { @@ -7605,7 +7397,9 @@ mod _rt { } impl fmt::Debug for Resource { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("Resource").field("handle", &self.handle).finish() + f.debug_struct("Resource") + .field("handle", &self.handle) + .finish() } } impl Drop for Resource { diff --git a/wasm/example-wired-player/src/bindings.rs b/wasm/example-wired-player/src/bindings.rs index 84d5455a9..b786d995f 100644 --- a/wasm/example-wired-player/src/bindings.rs +++ b/wasm/example-wired-player/src/bindings.rs @@ -6,7 +6,8 @@ pub mod unavi { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Transform = super::super::super::wired::math::types::Transform; pub type Node = super::super::super::wired::scene::node::Node; @@ -92,9 +93,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:scene/api")] @@ -188,9 +187,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:scene/api")] @@ -239,9 +236,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -287,9 +282,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:scene/api")] @@ -459,7 +452,8 @@ pub mod unavi { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Vec2 = super::super::super::wired::math::types::Vec2; pub type Vec3 = super::super::super::wired::math::types::Vec3; @@ -656,10 +650,7 @@ pub mod unavi { pub subdivisions: u8, } impl ::core::fmt::Debug for SphereIco { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("SphereIco") .field("subdivisions", &self.subdivisions) .finish() @@ -672,10 +663,7 @@ pub mod unavi { pub stacks: u8, } impl ::core::fmt::Debug for SphereUv { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("SphereUv") .field("sectors", &self.sectors) .field("stacks", &self.stacks) @@ -690,17 +678,10 @@ pub mod unavi { Uv(SphereUv), } impl ::core::fmt::Debug for SphereKind { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - SphereKind::Ico(e) => { - f.debug_tuple("SphereKind::Ico").field(e).finish() - } - SphereKind::Uv(e) => { - f.debug_tuple("SphereKind::Uv").field(e).finish() - } + SphereKind::Ico(e) => f.debug_tuple("SphereKind::Ico").field(e).finish(), + SphereKind::Uv(e) => f.debug_tuple("SphereKind::Uv").field(e).finish(), } } } @@ -782,10 +763,7 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn new(size: Vec2) -> Self { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = size; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = size; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -807,9 +785,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -824,10 +800,7 @@ pub mod unavi { wit_import((self).handle() as i32, ptr0); let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); - super::super::super::wired::math::types::Vec2 { - x: l1, - y: l2, - } + super::super::super::wired::math::types::Vec2 { x: l1, y: l2 } } } } @@ -835,10 +808,7 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn set_size(&self, value: Vec2) { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = value; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -849,11 +819,7 @@ pub mod unavi { fn wit_import(_: i32, _: f32, _: f32) { unreachable!() } - wit_import( - (self).handle() as i32, - _rt::as_f32(x0), - _rt::as_f32(y0), - ); + wit_import((self).handle() as i32, _rt::as_f32(x0), _rt::as_f32(y0)); } } } @@ -873,9 +839,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -895,9 +859,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -917,9 +879,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1033,9 +993,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1055,9 +1013,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1077,9 +1033,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1087,10 +1041,8 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn new(half_size: Vec2) -> Self { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = half_size; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = + half_size; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -1112,9 +1064,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -1129,10 +1079,7 @@ pub mod unavi { wit_import((self).handle() as i32, ptr0); let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); - super::super::super::wired::math::types::Vec2 { - x: l1, - y: l2, - } + super::super::super::wired::math::types::Vec2 { x: l1, y: l2 } } } } @@ -1140,10 +1087,7 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn set_half_size(&self, value: Vec2) { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = value; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -1154,11 +1098,7 @@ pub mod unavi { fn wit_import(_: i32, _: f32, _: f32) { unreachable!() } - wit_import( - (self).handle() as i32, - _rt::as_f32(x0), - _rt::as_f32(y0), - ); + wit_import((self).handle() as i32, _rt::as_f32(x0), _rt::as_f32(y0)); } } } @@ -1216,9 +1156,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1238,9 +1176,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1260,9 +1196,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1495,9 +1429,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1517,9 +1449,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1539,9 +1469,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1564,11 +1492,7 @@ pub mod unavi { fn wit_import(_: f32, _: f32, _: f32) -> i32 { unreachable!() } - let ret = wit_import( - _rt::as_f32(x0), - _rt::as_f32(y0), - _rt::as_f32(z0), - ); + let ret = wit_import(_rt::as_f32(x0), _rt::as_f32(y0), _rt::as_f32(z0)); Cuboid::from_handle(ret as u32) } } @@ -1579,9 +1503,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -1649,9 +1571,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1671,9 +1591,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1693,9 +1611,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1780,9 +1696,7 @@ pub mod unavi { unsafe { #[repr(align(1))] struct RetArea([::core::mem::MaybeUninit; 3]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 3], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 3]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -1829,11 +1743,16 @@ pub mod unavi { unsafe { let (result2_0, result2_1, result2_2) = match value { SphereKind::Ico(e) => { - let SphereIco { subdivisions: subdivisions0 } = e; + let SphereIco { + subdivisions: subdivisions0, + } = e; (0i32, _rt::as_i32(subdivisions0), 0i32) } SphereKind::Uv(e) => { - let SphereUv { sectors: sectors1, stacks: stacks1 } = e; + let SphereUv { + sectors: sectors1, + stacks: stacks1, + } = e; (1i32, _rt::as_i32(sectors1), _rt::as_i32(stacks1)) } }; @@ -1847,12 +1766,7 @@ pub mod unavi { fn wit_import(_: i32, _: i32, _: i32, _: i32) { unreachable!() } - wit_import( - (self).handle() as i32, - result2_0, - result2_1, - result2_2, - ); + wit_import((self).handle() as i32, result2_0, result2_1, result2_2); } } } @@ -1872,9 +1786,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1894,9 +1806,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1916,9 +1826,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1994,9 +1902,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -2011,7 +1917,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; pub type Vec3 = super::super::super::wired::math::types::Vec3; pub type Quat = super::super::super::wired::math::types::Quat; #[repr(u8)] @@ -2021,10 +1928,7 @@ pub mod wired { Right, } impl ::core::fmt::Debug for HandSide { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { HandSide::Left => f.debug_tuple("HandSide::Left").finish(), HandSide::Right => f.debug_tuple("HandSide::Right").finish(), @@ -2052,10 +1956,7 @@ pub mod wired { pub radius: f32, } impl ::core::fmt::Debug for Joint { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Joint") .field("translation", &self.translation) .field("rotation", &self.rotation) @@ -2072,10 +1973,7 @@ pub mod wired { pub metacarpal: Joint, } impl ::core::fmt::Debug for Finger { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Finger") .field("tip", &self.tip) .field("distal", &self.distal) @@ -2099,10 +1997,7 @@ pub mod wired { pub elbow: Option, } impl ::core::fmt::Debug for Hand { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Hand") .field("side", &self.side) .field("thumb", &self.thumb) @@ -2124,10 +2019,7 @@ pub mod wired { pub origin: Vec3, } impl ::core::fmt::Debug for Ray { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Ray") .field("orientation", &self.orientation) .field("origin", &self.origin) @@ -2140,17 +2032,10 @@ pub mod wired { Ray(Ray), } impl ::core::fmt::Debug for InputData { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputData::Hand(e) => { - f.debug_tuple("InputData::Hand").field(e).finish() - } - InputData::Ray(e) => { - f.debug_tuple("InputData::Ray").field(e).finish() - } + InputData::Hand(e) => f.debug_tuple("InputData::Hand").field(e).finish(), + InputData::Ray(e) => f.debug_tuple("InputData::Ray").field(e).finish(), } } } @@ -2160,17 +2045,10 @@ pub mod wired { Hover, } impl ::core::fmt::Debug for InputAction { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputAction::Collision => { - f.debug_tuple("InputAction::Collision").finish() - } - InputAction::Hover => { - f.debug_tuple("InputAction::Hover").finish() - } + InputAction::Collision => f.debug_tuple("InputAction::Collision").finish(), + InputAction::Hover => f.debug_tuple("InputAction::Hover").finish(), } } } @@ -2185,10 +2063,7 @@ pub mod wired { pub data: InputData, } impl ::core::fmt::Debug for InputEvent { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("InputEvent") .field("id", &self.id) .field("action", &self.action) @@ -2201,7 +2076,8 @@ pub mod wired { pub mod handler { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type InputEvent = super::super::super::wired::input::types::InputEvent; #[derive(Debug)] @@ -2268,9 +2144,7 @@ pub mod wired { unsafe { #[repr(align(8))] struct RetArea([::core::mem::MaybeUninit; 768]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 768], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 768]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:input/handler")] @@ -2886,7 +2760,8 @@ pub mod wired { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; #[repr(u8)] #[derive(Clone, Copy, Eq, PartialEq)] pub enum LogLevel { @@ -2896,10 +2771,7 @@ pub mod wired { Error, } impl ::core::fmt::Debug for LogLevel { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { LogLevel::Debug => f.debug_tuple("LogLevel::Debug").finish(), LogLevel::Info => f.debug_tuple("LogLevel::Info").finish(), @@ -2950,7 +2822,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; #[repr(C)] #[derive(Clone, Copy)] pub struct Vec2 { @@ -2958,10 +2831,7 @@ pub mod wired { pub y: f32, } impl ::core::fmt::Debug for Vec2 { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Vec2") .field("x", &self.x) .field("y", &self.y) @@ -2976,10 +2846,7 @@ pub mod wired { pub z: f32, } impl ::core::fmt::Debug for Vec3 { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Vec3") .field("x", &self.x) .field("y", &self.y) @@ -2996,10 +2863,7 @@ pub mod wired { pub w: f32, } impl ::core::fmt::Debug for Quat { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Quat") .field("x", &self.x) .field("y", &self.y) @@ -3016,10 +2880,7 @@ pub mod wired { pub translation: Vec3, } impl ::core::fmt::Debug for Transform { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Transform") .field("rotation", &self.rotation) .field("scale", &self.scale) @@ -3072,7 +2933,11 @@ pub mod wired { let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); let l3 = *ptr0.add(8).cast::(); - Vec3 { x: l1, y: l2, z: l3 } + Vec3 { + x: l1, + y: l2, + z: l3, + } } } #[allow(unused_unsafe, clippy::all)] @@ -3097,7 +2962,12 @@ pub mod wired { let l2 = *ptr0.add(4).cast::(); let l3 = *ptr0.add(8).cast::(); let l4 = *ptr0.add(12).cast::(); - Quat { x: l1, y: l2, z: l3, w: l4 } + Quat { + x: l1, + y: l2, + z: l3, + w: l4, + } } } #[allow(unused_unsafe, clippy::all)] @@ -3129,9 +2999,22 @@ pub mod wired { let l9 = *ptr0.add(32).cast::(); let l10 = *ptr0.add(36).cast::(); Transform { - rotation: Quat { x: l1, y: l2, z: l3, w: l4 }, - scale: Vec3 { x: l5, y: l6, z: l7 }, - translation: Vec3 { x: l8, y: l9, z: l10 }, + rotation: Quat { + x: l1, + y: l2, + z: l3, + w: l4, + }, + scale: Vec3 { + x: l5, + y: l6, + z: l7, + }, + translation: Vec3 { + x: l8, + y: l9, + z: l10, + }, } } } @@ -3143,7 +3026,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Vec3 = super::super::super::wired::math::types::Vec3; #[derive(Debug)] @@ -3190,10 +3074,7 @@ pub mod wired { pub radius: f32, } impl ::core::fmt::Debug for ShapeCylinder { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("ShapeCylinder") .field("height", &self.height) .field("radius", &self.radius) @@ -3207,20 +3088,11 @@ pub mod wired { Sphere(f32), } impl ::core::fmt::Debug for Shape { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Shape::Cuboid(e) => { - f.debug_tuple("Shape::Cuboid").field(e).finish() - } - Shape::Cylinder(e) => { - f.debug_tuple("Shape::Cylinder").field(e).finish() - } - Shape::Sphere(e) => { - f.debug_tuple("Shape::Sphere").field(e).finish() - } + Shape::Cuboid(e) => f.debug_tuple("Shape::Cuboid").field(e).finish(), + Shape::Cylinder(e) => f.debug_tuple("Shape::Cylinder").field(e).finish(), + Shape::Sphere(e) => f.debug_tuple("Shape::Sphere").field(e).finish(), } } } @@ -3269,17 +3141,10 @@ pub mod wired { Kinematic, } impl ::core::fmt::Debug for RigidBodyType { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - RigidBodyType::Dynamic => { - f.debug_tuple("RigidBodyType::Dynamic").finish() - } - RigidBodyType::Fixed => { - f.debug_tuple("RigidBodyType::Fixed").finish() - } + RigidBodyType::Dynamic => f.debug_tuple("RigidBodyType::Dynamic").finish(), + RigidBodyType::Fixed => f.debug_tuple("RigidBodyType::Fixed").finish(), RigidBodyType::Kinematic => { f.debug_tuple("RigidBodyType::Kinematic").finish() } @@ -3314,7 +3179,10 @@ pub mod wired { (0i32, _rt::as_f32(x0), _rt::as_f32(y0), _rt::as_f32(z0)) } Shape::Cylinder(e) => { - let ShapeCylinder { height: height1, radius: radius1 } = e; + let ShapeCylinder { + height: height1, + radius: radius1, + } = e; (1i32, _rt::as_f32(height1), _rt::as_f32(radius1), 0.0f32) } Shape::Sphere(e) => (2i32, _rt::as_f32(e), 0.0f32, 0.0f32), @@ -3396,9 +3264,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:physics/types")] @@ -3456,9 +3322,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:physics/types")] @@ -3518,7 +3382,8 @@ pub mod wired { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Node = super::super::super::wired::scene::node::Node; pub struct Skeleton { @@ -3544,10 +3409,7 @@ pub mod wired { pub right_foot: Node, } impl ::core::fmt::Debug for Skeleton { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Skeleton") .field("hips", &self.hips) .field("spine", &self.spine) @@ -3624,9 +3486,7 @@ pub mod wired { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -3636,9 +3496,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 80]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 80], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 80]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:player/api")] @@ -3690,45 +3548,55 @@ pub mod wired { head: super::super::super::wired::scene::node::Node::from_handle( l6 as u32, ), - left_shoulder: super::super::super::wired::scene::node::Node::from_handle( - l7 as u32, - ), - left_upper_arm: super::super::super::wired::scene::node::Node::from_handle( - l8 as u32, - ), - left_lower_arm: super::super::super::wired::scene::node::Node::from_handle( - l9 as u32, - ), + left_shoulder: + super::super::super::wired::scene::node::Node::from_handle( + l7 as u32, + ), + left_upper_arm: + super::super::super::wired::scene::node::Node::from_handle( + l8 as u32, + ), + left_lower_arm: + super::super::super::wired::scene::node::Node::from_handle( + l9 as u32, + ), left_hand: super::super::super::wired::scene::node::Node::from_handle( l10 as u32, ), - right_shoulder: super::super::super::wired::scene::node::Node::from_handle( - l11 as u32, - ), - right_upper_arm: super::super::super::wired::scene::node::Node::from_handle( - l12 as u32, - ), - right_lower_arm: super::super::super::wired::scene::node::Node::from_handle( - l13 as u32, - ), + right_shoulder: + super::super::super::wired::scene::node::Node::from_handle( + l11 as u32, + ), + right_upper_arm: + super::super::super::wired::scene::node::Node::from_handle( + l12 as u32, + ), + right_lower_arm: + super::super::super::wired::scene::node::Node::from_handle( + l13 as u32, + ), right_hand: super::super::super::wired::scene::node::Node::from_handle( l14 as u32, ), - left_upper_leg: super::super::super::wired::scene::node::Node::from_handle( - l15 as u32, - ), - left_lower_leg: super::super::super::wired::scene::node::Node::from_handle( - l16 as u32, - ), + left_upper_leg: + super::super::super::wired::scene::node::Node::from_handle( + l15 as u32, + ), + left_lower_leg: + super::super::super::wired::scene::node::Node::from_handle( + l16 as u32, + ), left_foot: super::super::super::wired::scene::node::Node::from_handle( l17 as u32, ), - right_upper_leg: super::super::super::wired::scene::node::Node::from_handle( - l18 as u32, - ), - right_lower_leg: super::super::super::wired::scene::node::Node::from_handle( - l19 as u32, - ), + right_upper_leg: + super::super::super::wired::scene::node::Node::from_handle( + l18 as u32, + ), + right_lower_leg: + super::super::super::wired::scene::node::Node::from_handle( + l19 as u32, + ), right_foot: super::super::super::wired::scene::node::Node::from_handle( l20 as u32, ), @@ -3796,7 +3664,8 @@ pub mod wired { pub mod material { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; #[repr(C)] #[derive(Clone, Copy)] @@ -3807,10 +3676,7 @@ pub mod wired { pub a: f32, } impl ::core::fmt::Debug for Color { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Color") .field("r", &self.r) .field("g", &self.g) @@ -3920,9 +3786,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] @@ -3970,9 +3834,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 16]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 16], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 16]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] @@ -4002,7 +3864,12 @@ pub mod wired { #[allow(unused_unsafe, clippy::all)] pub fn set_color(&self, value: Color) { unsafe { - let Color { r: r0, g: g0, b: b0, a: a0 } = value; + let Color { + r: r0, + g: g0, + b: b0, + a: a0, + } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] extern "C" { @@ -4028,7 +3895,8 @@ pub mod wired { pub mod mesh { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Material = super::super::super::wired::scene::material::Material; #[derive(Debug)] @@ -4130,9 +3998,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -4332,9 +4198,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -4382,9 +4246,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -4448,10 +4310,7 @@ pub mod wired { fn wit_import(_: i32, _: i32) { unreachable!() } - wit_import( - (self).handle() as i32, - (&value).take_handle() as i32, - ); + wit_import((self).handle() as i32, (&value).take_handle() as i32); } } } @@ -4460,7 +4319,8 @@ pub mod wired { pub mod node { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Mesh = super::super::super::wired::scene::mesh::Mesh; pub type InputHandler = super::super::super::wired::input::handler::InputHandler; @@ -4568,9 +4428,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4618,9 +4476,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4693,9 +4549,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4729,9 +4583,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4781,9 +4633,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4908,9 +4758,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4968,9 +4816,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5028,9 +4874,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5088,9 +4932,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5147,7 +4989,8 @@ pub mod wired { pub mod scene { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Node = super::super::super::wired::scene::node::Node; #[derive(Debug)] @@ -5231,9 +5074,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/scene")] @@ -5281,9 +5122,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/scene")] @@ -5357,7 +5196,8 @@ pub mod wired { pub mod gltf { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Material = super::super::super::wired::scene::material::Material; pub type Mesh = super::super::super::wired::scene::mesh::Mesh; @@ -5427,9 +5267,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5504,9 +5342,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5581,9 +5417,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5658,9 +5492,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5736,9 +5568,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5798,9 +5628,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5853,7 +5681,8 @@ pub mod wired { pub mod glxf { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Gltf = super::super::super::wired::scene::gltf::Gltf; pub type Node = super::super::super::wired::scene::node::Node; @@ -5976,10 +5805,7 @@ pub mod wired { Glxf(AssetGlxf), } impl ::core::fmt::Debug for Asset { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { Asset::Gltf(e) => f.debug_tuple("Asset::Gltf").field(e).finish(), Asset::Glxf(e) => f.debug_tuple("Asset::Glxf").field(e).finish(), @@ -5991,10 +5817,7 @@ pub mod wired { Glxf(&'a AssetGlxf), } impl<'a> ::core::fmt::Debug for AssetBorrow<'a> { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { AssetBorrow::Gltf(e) => { f.debug_tuple("AssetBorrow::Gltf").field(e).finish() @@ -6047,17 +5870,10 @@ pub mod wired { Nodes(_rt::Vec), } impl ::core::fmt::Debug for Children { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Children::Asset(e) => { - f.debug_tuple("Children::Asset").field(e).finish() - } - Children::Nodes(e) => { - f.debug_tuple("Children::Nodes").field(e).finish() - } + Children::Asset(e) => f.debug_tuple("Children::Asset").field(e).finish(), + Children::Nodes(e) => f.debug_tuple("Children::Nodes").field(e).finish(), } } } @@ -6066,10 +5882,7 @@ pub mod wired { Nodes(_rt::Vec<&'a GlxfNode>), } impl<'a> ::core::fmt::Debug for ChildrenBorrow<'a> { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { ChildrenBorrow::Asset(e) => { f.debug_tuple("ChildrenBorrow::Asset").field(e).finish() @@ -6160,9 +5973,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6260,9 +6071,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6335,9 +6144,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6411,9 +6218,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6471,9 +6276,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6553,9 +6356,7 @@ pub mod wired { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::gltf::Gltf::from_handle( - ret as u32, - ) + super::super::super::wired::scene::gltf::Gltf::from_handle(ret as u32) } } } @@ -6567,9 +6368,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6684,9 +6483,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6797,9 +6594,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6847,9 +6642,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6974,9 +6767,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7010,9 +6801,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 16]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 16], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 16]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7044,7 +6833,10 @@ pub mod wired { Asset::Gltf(e6) } n => { - debug_assert_eq!(n, 1, "invalid enum discriminant"); + debug_assert_eq!( + n, 1, + "invalid enum discriminant" + ); let e6 = { let l5 = *ptr0.add(12).cast::(); AssetGlxf::from_handle(l5 as u32) @@ -7116,7 +6908,9 @@ pub mod wired { } ptr } else { - { ::core::ptr::null_mut() } + { + ::core::ptr::null_mut() + } }; for (i, e) in vec1.into_iter().enumerate() { let base = result1.add(i * 4); @@ -7201,9 +6995,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7251,9 +7043,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7333,7 +7123,8 @@ pub mod exports { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::super::__link_custom_section_describing_imports; use super::super::super::super::_rt; #[derive(Debug)] #[repr(transparent)] @@ -7350,9 +7141,7 @@ pub mod exports { pub fn new(val: T) -> Self { Self::type_guard::(); let val: _ScriptRep = Some(val); - let ptr: *mut _ScriptRep = _rt::Box::into_raw( - _rt::Box::new(val), - ); + let ptr: *mut _ScriptRep = _rt::Box::into_raw(_rt::Box::new(val)); unsafe { Self::from_handle(T::_resource_new(ptr.cast())) } } /// Gets access to the underlying `T` which represents this resource. @@ -7390,12 +7179,13 @@ pub mod exports { use core::any::TypeId; static mut LAST_TYPE: Option = None; unsafe { - assert!(! cfg!(target_feature = "atomics")); + assert!(!cfg!(target_feature = "atomics")); let id = TypeId::of::(); match LAST_TYPE { Some(ty) => { assert!( - ty == id, "cannot use two types with this resource type" + ty == id, + "cannot use two types with this resource type" ) } None => LAST_TYPE = Some(id), @@ -7457,7 +7247,8 @@ pub mod exports { #[doc(hidden)] #[allow(non_snake_case)] pub unsafe fn _export_constructor_script_cabi() -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let result0 = Script::new(T::new()); (result0).take_handle() as i32 } @@ -7467,7 +7258,8 @@ pub mod exports { arg0: *mut u8, arg1: f32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::update(ScriptBorrow::lift(arg0 as u32 as usize).get(), arg1); } pub trait Guest { @@ -7605,7 +7397,9 @@ mod _rt { } impl fmt::Debug for Resource { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("Resource").field("handle", &self.handle).finish() + f.debug_struct("Resource") + .field("handle", &self.handle) + .finish() } } impl Drop for Resource { diff --git a/wasm/example-wired-scene/src/bindings.rs b/wasm/example-wired-scene/src/bindings.rs index c056b8aef..e908e36a0 100644 --- a/wasm/example-wired-scene/src/bindings.rs +++ b/wasm/example-wired-scene/src/bindings.rs @@ -6,7 +6,8 @@ pub mod unavi { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Vec2 = super::super::super::wired::math::types::Vec2; pub type Vec3 = super::super::super::wired::math::types::Vec3; @@ -203,10 +204,7 @@ pub mod unavi { pub subdivisions: u8, } impl ::core::fmt::Debug for SphereIco { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("SphereIco") .field("subdivisions", &self.subdivisions) .finish() @@ -219,10 +217,7 @@ pub mod unavi { pub stacks: u8, } impl ::core::fmt::Debug for SphereUv { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("SphereUv") .field("sectors", &self.sectors) .field("stacks", &self.stacks) @@ -237,17 +232,10 @@ pub mod unavi { Uv(SphereUv), } impl ::core::fmt::Debug for SphereKind { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - SphereKind::Ico(e) => { - f.debug_tuple("SphereKind::Ico").field(e).finish() - } - SphereKind::Uv(e) => { - f.debug_tuple("SphereKind::Uv").field(e).finish() - } + SphereKind::Ico(e) => f.debug_tuple("SphereKind::Ico").field(e).finish(), + SphereKind::Uv(e) => f.debug_tuple("SphereKind::Uv").field(e).finish(), } } } @@ -329,10 +317,7 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn new(size: Vec2) -> Self { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = size; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = size; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -354,9 +339,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -371,10 +354,7 @@ pub mod unavi { wit_import((self).handle() as i32, ptr0); let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); - super::super::super::wired::math::types::Vec2 { - x: l1, - y: l2, - } + super::super::super::wired::math::types::Vec2 { x: l1, y: l2 } } } } @@ -382,10 +362,7 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn set_size(&self, value: Vec2) { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = value; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -396,11 +373,7 @@ pub mod unavi { fn wit_import(_: i32, _: f32, _: f32) { unreachable!() } - wit_import( - (self).handle() as i32, - _rt::as_f32(x0), - _rt::as_f32(y0), - ); + wit_import((self).handle() as i32, _rt::as_f32(x0), _rt::as_f32(y0)); } } } @@ -420,9 +393,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -442,9 +413,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -464,9 +433,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -580,9 +547,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -602,9 +567,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -624,9 +587,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -634,10 +595,8 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn new(half_size: Vec2) -> Self { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = half_size; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = + half_size; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -659,9 +618,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -676,10 +633,7 @@ pub mod unavi { wit_import((self).handle() as i32, ptr0); let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); - super::super::super::wired::math::types::Vec2 { - x: l1, - y: l2, - } + super::super::super::wired::math::types::Vec2 { x: l1, y: l2 } } } } @@ -687,10 +641,7 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn set_half_size(&self, value: Vec2) { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = value; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -701,11 +652,7 @@ pub mod unavi { fn wit_import(_: i32, _: f32, _: f32) { unreachable!() } - wit_import( - (self).handle() as i32, - _rt::as_f32(x0), - _rt::as_f32(y0), - ); + wit_import((self).handle() as i32, _rt::as_f32(x0), _rt::as_f32(y0)); } } } @@ -763,9 +710,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -785,9 +730,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -807,9 +750,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1042,9 +983,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1064,9 +1003,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1086,9 +1023,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1111,11 +1046,7 @@ pub mod unavi { fn wit_import(_: f32, _: f32, _: f32) -> i32 { unreachable!() } - let ret = wit_import( - _rt::as_f32(x0), - _rt::as_f32(y0), - _rt::as_f32(z0), - ); + let ret = wit_import(_rt::as_f32(x0), _rt::as_f32(y0), _rt::as_f32(z0)); Cuboid::from_handle(ret as u32) } } @@ -1126,9 +1057,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -1196,9 +1125,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1218,9 +1145,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1240,9 +1165,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1327,9 +1250,7 @@ pub mod unavi { unsafe { #[repr(align(1))] struct RetArea([::core::mem::MaybeUninit; 3]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 3], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 3]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -1376,11 +1297,16 @@ pub mod unavi { unsafe { let (result2_0, result2_1, result2_2) = match value { SphereKind::Ico(e) => { - let SphereIco { subdivisions: subdivisions0 } = e; + let SphereIco { + subdivisions: subdivisions0, + } = e; (0i32, _rt::as_i32(subdivisions0), 0i32) } SphereKind::Uv(e) => { - let SphereUv { sectors: sectors1, stacks: stacks1 } = e; + let SphereUv { + sectors: sectors1, + stacks: stacks1, + } = e; (1i32, _rt::as_i32(sectors1), _rt::as_i32(stacks1)) } }; @@ -1394,12 +1320,7 @@ pub mod unavi { fn wit_import(_: i32, _: i32, _: i32, _: i32) { unreachable!() } - wit_import( - (self).handle() as i32, - result2_0, - result2_1, - result2_2, - ); + wit_import((self).handle() as i32, result2_0, result2_1, result2_2); } } } @@ -1419,9 +1340,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1441,9 +1360,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1463,9 +1380,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1541,9 +1456,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1558,7 +1471,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; pub type Vec3 = super::super::super::wired::math::types::Vec3; pub type Quat = super::super::super::wired::math::types::Quat; #[repr(u8)] @@ -1568,10 +1482,7 @@ pub mod wired { Right, } impl ::core::fmt::Debug for HandSide { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { HandSide::Left => f.debug_tuple("HandSide::Left").finish(), HandSide::Right => f.debug_tuple("HandSide::Right").finish(), @@ -1599,10 +1510,7 @@ pub mod wired { pub radius: f32, } impl ::core::fmt::Debug for Joint { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Joint") .field("translation", &self.translation) .field("rotation", &self.rotation) @@ -1619,10 +1527,7 @@ pub mod wired { pub metacarpal: Joint, } impl ::core::fmt::Debug for Finger { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Finger") .field("tip", &self.tip) .field("distal", &self.distal) @@ -1646,10 +1551,7 @@ pub mod wired { pub elbow: Option, } impl ::core::fmt::Debug for Hand { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Hand") .field("side", &self.side) .field("thumb", &self.thumb) @@ -1671,10 +1573,7 @@ pub mod wired { pub origin: Vec3, } impl ::core::fmt::Debug for Ray { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Ray") .field("orientation", &self.orientation) .field("origin", &self.origin) @@ -1687,17 +1586,10 @@ pub mod wired { Ray(Ray), } impl ::core::fmt::Debug for InputData { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputData::Hand(e) => { - f.debug_tuple("InputData::Hand").field(e).finish() - } - InputData::Ray(e) => { - f.debug_tuple("InputData::Ray").field(e).finish() - } + InputData::Hand(e) => f.debug_tuple("InputData::Hand").field(e).finish(), + InputData::Ray(e) => f.debug_tuple("InputData::Ray").field(e).finish(), } } } @@ -1707,17 +1599,10 @@ pub mod wired { Hover, } impl ::core::fmt::Debug for InputAction { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputAction::Collision => { - f.debug_tuple("InputAction::Collision").finish() - } - InputAction::Hover => { - f.debug_tuple("InputAction::Hover").finish() - } + InputAction::Collision => f.debug_tuple("InputAction::Collision").finish(), + InputAction::Hover => f.debug_tuple("InputAction::Hover").finish(), } } } @@ -1732,10 +1617,7 @@ pub mod wired { pub data: InputData, } impl ::core::fmt::Debug for InputEvent { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("InputEvent") .field("id", &self.id) .field("action", &self.action) @@ -1748,7 +1630,8 @@ pub mod wired { pub mod handler { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type InputEvent = super::super::super::wired::input::types::InputEvent; #[derive(Debug)] @@ -1815,9 +1698,7 @@ pub mod wired { unsafe { #[repr(align(8))] struct RetArea([::core::mem::MaybeUninit; 768]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 768], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 768]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:input/handler")] @@ -2433,7 +2314,8 @@ pub mod wired { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; #[repr(u8)] #[derive(Clone, Copy, Eq, PartialEq)] pub enum LogLevel { @@ -2443,10 +2325,7 @@ pub mod wired { Error, } impl ::core::fmt::Debug for LogLevel { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { LogLevel::Debug => f.debug_tuple("LogLevel::Debug").finish(), LogLevel::Info => f.debug_tuple("LogLevel::Info").finish(), @@ -2497,7 +2376,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; #[repr(C)] #[derive(Clone, Copy)] pub struct Vec2 { @@ -2505,10 +2385,7 @@ pub mod wired { pub y: f32, } impl ::core::fmt::Debug for Vec2 { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Vec2") .field("x", &self.x) .field("y", &self.y) @@ -2523,10 +2400,7 @@ pub mod wired { pub z: f32, } impl ::core::fmt::Debug for Vec3 { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Vec3") .field("x", &self.x) .field("y", &self.y) @@ -2543,10 +2417,7 @@ pub mod wired { pub w: f32, } impl ::core::fmt::Debug for Quat { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Quat") .field("x", &self.x) .field("y", &self.y) @@ -2563,10 +2434,7 @@ pub mod wired { pub translation: Vec3, } impl ::core::fmt::Debug for Transform { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Transform") .field("rotation", &self.rotation) .field("scale", &self.scale) @@ -2619,7 +2487,11 @@ pub mod wired { let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); let l3 = *ptr0.add(8).cast::(); - Vec3 { x: l1, y: l2, z: l3 } + Vec3 { + x: l1, + y: l2, + z: l3, + } } } #[allow(unused_unsafe, clippy::all)] @@ -2644,7 +2516,12 @@ pub mod wired { let l2 = *ptr0.add(4).cast::(); let l3 = *ptr0.add(8).cast::(); let l4 = *ptr0.add(12).cast::(); - Quat { x: l1, y: l2, z: l3, w: l4 } + Quat { + x: l1, + y: l2, + z: l3, + w: l4, + } } } #[allow(unused_unsafe, clippy::all)] @@ -2676,9 +2553,22 @@ pub mod wired { let l9 = *ptr0.add(32).cast::(); let l10 = *ptr0.add(36).cast::(); Transform { - rotation: Quat { x: l1, y: l2, z: l3, w: l4 }, - scale: Vec3 { x: l5, y: l6, z: l7 }, - translation: Vec3 { x: l8, y: l9, z: l10 }, + rotation: Quat { + x: l1, + y: l2, + z: l3, + w: l4, + }, + scale: Vec3 { + x: l5, + y: l6, + z: l7, + }, + translation: Vec3 { + x: l8, + y: l9, + z: l10, + }, } } } @@ -2690,7 +2580,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Vec3 = super::super::super::wired::math::types::Vec3; #[derive(Debug)] @@ -2737,10 +2628,7 @@ pub mod wired { pub radius: f32, } impl ::core::fmt::Debug for ShapeCylinder { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("ShapeCylinder") .field("height", &self.height) .field("radius", &self.radius) @@ -2754,20 +2642,11 @@ pub mod wired { Sphere(f32), } impl ::core::fmt::Debug for Shape { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Shape::Cuboid(e) => { - f.debug_tuple("Shape::Cuboid").field(e).finish() - } - Shape::Cylinder(e) => { - f.debug_tuple("Shape::Cylinder").field(e).finish() - } - Shape::Sphere(e) => { - f.debug_tuple("Shape::Sphere").field(e).finish() - } + Shape::Cuboid(e) => f.debug_tuple("Shape::Cuboid").field(e).finish(), + Shape::Cylinder(e) => f.debug_tuple("Shape::Cylinder").field(e).finish(), + Shape::Sphere(e) => f.debug_tuple("Shape::Sphere").field(e).finish(), } } } @@ -2816,17 +2695,10 @@ pub mod wired { Kinematic, } impl ::core::fmt::Debug for RigidBodyType { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - RigidBodyType::Dynamic => { - f.debug_tuple("RigidBodyType::Dynamic").finish() - } - RigidBodyType::Fixed => { - f.debug_tuple("RigidBodyType::Fixed").finish() - } + RigidBodyType::Dynamic => f.debug_tuple("RigidBodyType::Dynamic").finish(), + RigidBodyType::Fixed => f.debug_tuple("RigidBodyType::Fixed").finish(), RigidBodyType::Kinematic => { f.debug_tuple("RigidBodyType::Kinematic").finish() } @@ -2861,7 +2733,10 @@ pub mod wired { (0i32, _rt::as_f32(x0), _rt::as_f32(y0), _rt::as_f32(z0)) } Shape::Cylinder(e) => { - let ShapeCylinder { height: height1, radius: radius1 } = e; + let ShapeCylinder { + height: height1, + radius: radius1, + } = e; (1i32, _rt::as_f32(height1), _rt::as_f32(radius1), 0.0f32) } Shape::Sphere(e) => (2i32, _rt::as_f32(e), 0.0f32, 0.0f32), @@ -2943,9 +2818,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:physics/types")] @@ -3003,9 +2876,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:physics/types")] @@ -3065,7 +2936,8 @@ pub mod wired { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Node = super::super::super::wired::scene::node::Node; pub struct Skeleton { @@ -3091,10 +2963,7 @@ pub mod wired { pub right_foot: Node, } impl ::core::fmt::Debug for Skeleton { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Skeleton") .field("hips", &self.hips) .field("spine", &self.spine) @@ -3171,9 +3040,7 @@ pub mod wired { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -3183,9 +3050,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 80]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 80], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 80]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:player/api")] @@ -3237,45 +3102,55 @@ pub mod wired { head: super::super::super::wired::scene::node::Node::from_handle( l6 as u32, ), - left_shoulder: super::super::super::wired::scene::node::Node::from_handle( - l7 as u32, - ), - left_upper_arm: super::super::super::wired::scene::node::Node::from_handle( - l8 as u32, - ), - left_lower_arm: super::super::super::wired::scene::node::Node::from_handle( - l9 as u32, - ), + left_shoulder: + super::super::super::wired::scene::node::Node::from_handle( + l7 as u32, + ), + left_upper_arm: + super::super::super::wired::scene::node::Node::from_handle( + l8 as u32, + ), + left_lower_arm: + super::super::super::wired::scene::node::Node::from_handle( + l9 as u32, + ), left_hand: super::super::super::wired::scene::node::Node::from_handle( l10 as u32, ), - right_shoulder: super::super::super::wired::scene::node::Node::from_handle( - l11 as u32, - ), - right_upper_arm: super::super::super::wired::scene::node::Node::from_handle( - l12 as u32, - ), - right_lower_arm: super::super::super::wired::scene::node::Node::from_handle( - l13 as u32, - ), + right_shoulder: + super::super::super::wired::scene::node::Node::from_handle( + l11 as u32, + ), + right_upper_arm: + super::super::super::wired::scene::node::Node::from_handle( + l12 as u32, + ), + right_lower_arm: + super::super::super::wired::scene::node::Node::from_handle( + l13 as u32, + ), right_hand: super::super::super::wired::scene::node::Node::from_handle( l14 as u32, ), - left_upper_leg: super::super::super::wired::scene::node::Node::from_handle( - l15 as u32, - ), - left_lower_leg: super::super::super::wired::scene::node::Node::from_handle( - l16 as u32, - ), + left_upper_leg: + super::super::super::wired::scene::node::Node::from_handle( + l15 as u32, + ), + left_lower_leg: + super::super::super::wired::scene::node::Node::from_handle( + l16 as u32, + ), left_foot: super::super::super::wired::scene::node::Node::from_handle( l17 as u32, ), - right_upper_leg: super::super::super::wired::scene::node::Node::from_handle( - l18 as u32, - ), - right_lower_leg: super::super::super::wired::scene::node::Node::from_handle( - l19 as u32, - ), + right_upper_leg: + super::super::super::wired::scene::node::Node::from_handle( + l18 as u32, + ), + right_lower_leg: + super::super::super::wired::scene::node::Node::from_handle( + l19 as u32, + ), right_foot: super::super::super::wired::scene::node::Node::from_handle( l20 as u32, ), @@ -3343,7 +3218,8 @@ pub mod wired { pub mod material { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; #[repr(C)] #[derive(Clone, Copy)] @@ -3354,10 +3230,7 @@ pub mod wired { pub a: f32, } impl ::core::fmt::Debug for Color { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Color") .field("r", &self.r) .field("g", &self.g) @@ -3467,9 +3340,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] @@ -3517,9 +3388,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 16]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 16], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 16]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] @@ -3549,7 +3418,12 @@ pub mod wired { #[allow(unused_unsafe, clippy::all)] pub fn set_color(&self, value: Color) { unsafe { - let Color { r: r0, g: g0, b: b0, a: a0 } = value; + let Color { + r: r0, + g: g0, + b: b0, + a: a0, + } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] extern "C" { @@ -3575,7 +3449,8 @@ pub mod wired { pub mod mesh { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Material = super::super::super::wired::scene::material::Material; #[derive(Debug)] @@ -3677,9 +3552,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -3879,9 +3752,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -3929,9 +3800,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -3995,10 +3864,7 @@ pub mod wired { fn wit_import(_: i32, _: i32) { unreachable!() } - wit_import( - (self).handle() as i32, - (&value).take_handle() as i32, - ); + wit_import((self).handle() as i32, (&value).take_handle() as i32); } } } @@ -4007,7 +3873,8 @@ pub mod wired { pub mod node { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Mesh = super::super::super::wired::scene::mesh::Mesh; pub type InputHandler = super::super::super::wired::input::handler::InputHandler; @@ -4115,9 +3982,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4165,9 +4030,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4240,9 +4103,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4276,9 +4137,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4328,9 +4187,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4455,9 +4312,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4515,9 +4370,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4575,9 +4428,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4635,9 +4486,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4694,7 +4543,8 @@ pub mod wired { pub mod scene { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Node = super::super::super::wired::scene::node::Node; #[derive(Debug)] @@ -4778,9 +4628,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/scene")] @@ -4828,9 +4676,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/scene")] @@ -4904,7 +4750,8 @@ pub mod wired { pub mod gltf { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Material = super::super::super::wired::scene::material::Material; pub type Mesh = super::super::super::wired::scene::mesh::Mesh; @@ -4974,9 +4821,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5051,9 +4896,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5128,9 +4971,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5205,9 +5046,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5283,9 +5122,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5345,9 +5182,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5400,7 +5235,8 @@ pub mod wired { pub mod glxf { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Gltf = super::super::super::wired::scene::gltf::Gltf; pub type Node = super::super::super::wired::scene::node::Node; @@ -5523,10 +5359,7 @@ pub mod wired { Glxf(AssetGlxf), } impl ::core::fmt::Debug for Asset { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { Asset::Gltf(e) => f.debug_tuple("Asset::Gltf").field(e).finish(), Asset::Glxf(e) => f.debug_tuple("Asset::Glxf").field(e).finish(), @@ -5538,10 +5371,7 @@ pub mod wired { Glxf(&'a AssetGlxf), } impl<'a> ::core::fmt::Debug for AssetBorrow<'a> { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { AssetBorrow::Gltf(e) => { f.debug_tuple("AssetBorrow::Gltf").field(e).finish() @@ -5594,17 +5424,10 @@ pub mod wired { Nodes(_rt::Vec), } impl ::core::fmt::Debug for Children { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Children::Asset(e) => { - f.debug_tuple("Children::Asset").field(e).finish() - } - Children::Nodes(e) => { - f.debug_tuple("Children::Nodes").field(e).finish() - } + Children::Asset(e) => f.debug_tuple("Children::Asset").field(e).finish(), + Children::Nodes(e) => f.debug_tuple("Children::Nodes").field(e).finish(), } } } @@ -5613,10 +5436,7 @@ pub mod wired { Nodes(_rt::Vec<&'a GlxfNode>), } impl<'a> ::core::fmt::Debug for ChildrenBorrow<'a> { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { ChildrenBorrow::Asset(e) => { f.debug_tuple("ChildrenBorrow::Asset").field(e).finish() @@ -5707,9 +5527,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -5807,9 +5625,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -5882,9 +5698,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -5958,9 +5772,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6018,9 +5830,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6100,9 +5910,7 @@ pub mod wired { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::gltf::Gltf::from_handle( - ret as u32, - ) + super::super::super::wired::scene::gltf::Gltf::from_handle(ret as u32) } } } @@ -6114,9 +5922,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6231,9 +6037,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6344,9 +6148,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6394,9 +6196,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6521,9 +6321,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6557,9 +6355,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 16]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 16], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 16]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6591,7 +6387,10 @@ pub mod wired { Asset::Gltf(e6) } n => { - debug_assert_eq!(n, 1, "invalid enum discriminant"); + debug_assert_eq!( + n, 1, + "invalid enum discriminant" + ); let e6 = { let l5 = *ptr0.add(12).cast::(); AssetGlxf::from_handle(l5 as u32) @@ -6663,7 +6462,9 @@ pub mod wired { } ptr } else { - { ::core::ptr::null_mut() } + { + ::core::ptr::null_mut() + } }; for (i, e) in vec1.into_iter().enumerate() { let base = result1.add(i * 4); @@ -6748,9 +6549,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6798,9 +6597,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6880,7 +6677,8 @@ pub mod exports { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::super::__link_custom_section_describing_imports; use super::super::super::super::_rt; #[derive(Debug)] #[repr(transparent)] @@ -6897,9 +6695,7 @@ pub mod exports { pub fn new(val: T) -> Self { Self::type_guard::(); let val: _ScriptRep = Some(val); - let ptr: *mut _ScriptRep = _rt::Box::into_raw( - _rt::Box::new(val), - ); + let ptr: *mut _ScriptRep = _rt::Box::into_raw(_rt::Box::new(val)); unsafe { Self::from_handle(T::_resource_new(ptr.cast())) } } /// Gets access to the underlying `T` which represents this resource. @@ -6937,12 +6733,13 @@ pub mod exports { use core::any::TypeId; static mut LAST_TYPE: Option = None; unsafe { - assert!(! cfg!(target_feature = "atomics")); + assert!(!cfg!(target_feature = "atomics")); let id = TypeId::of::(); match LAST_TYPE { Some(ty) => { assert!( - ty == id, "cannot use two types with this resource type" + ty == id, + "cannot use two types with this resource type" ) } None => LAST_TYPE = Some(id), @@ -7004,7 +6801,8 @@ pub mod exports { #[doc(hidden)] #[allow(non_snake_case)] pub unsafe fn _export_constructor_script_cabi() -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let result0 = Script::new(T::new()); (result0).take_handle() as i32 } @@ -7014,7 +6812,8 @@ pub mod exports { arg0: *mut u8, arg1: f32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::update(ScriptBorrow::lift(arg0 as u32 as usize).get(), arg1); } pub trait Guest { @@ -7152,7 +6951,9 @@ mod _rt { } impl fmt::Debug for Resource { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("Resource").field("handle", &self.handle).finish() + f.debug_struct("Resource") + .field("handle", &self.handle) + .finish() } } impl Drop for Resource { diff --git a/wasm/test-wired-dwn/src/bindings.rs b/wasm/test-wired-dwn/src/bindings.rs index 5b5f631ef..d63f9cd68 100644 --- a/wasm/test-wired-dwn/src/bindings.rs +++ b/wasm/test-wired-dwn/src/bindings.rs @@ -6,7 +6,8 @@ pub mod wired { pub mod dwn { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; #[derive(Clone)] pub struct EncryptedData { @@ -17,10 +18,7 @@ pub mod wired { pub tag: _rt::String, } impl ::core::fmt::Debug for EncryptedData { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("EncryptedData") .field("alg", &self.alg) .field("ciphertext", &self.ciphertext) @@ -36,17 +34,10 @@ pub mod wired { Encrypted(EncryptedData), } impl ::core::fmt::Debug for Data { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Data::Base64(e) => { - f.debug_tuple("Data::Base64").field(e).finish() - } - Data::Encrypted(e) => { - f.debug_tuple("Data::Encrypted").field(e).finish() - } + Data::Base64(e) => f.debug_tuple("Data::Base64").field(e).finish(), + Data::Encrypted(e) => f.debug_tuple("Data::Encrypted").field(e).finish(), } } } @@ -56,10 +47,7 @@ pub mod wired { pub data: Option, } impl ::core::fmt::Debug for Message { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Message") .field("record-id", &self.record_id) .field("data", &self.data) @@ -72,10 +60,7 @@ pub mod wired { pub detail: Option<_rt::String>, } impl ::core::fmt::Debug for Status { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Status") .field("code", &self.code) .field("detail", &self.detail) @@ -88,10 +73,7 @@ pub mod wired { pub status: Status, } impl ::core::fmt::Debug for QueryReply { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("QueryReply") .field("entries", &self.entries) .field("status", &self.status) @@ -215,9 +197,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 28]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 28], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 28]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:dwn/dwn")] @@ -246,11 +226,8 @@ pub mod wired { let l4 = *base.add(0).cast::<*mut u8>(); let l5 = *base.add(4).cast::(); let len6 = l5; - let bytes6 = _rt::Vec::from_raw_parts( - l4.cast(), - len6, - len6, - ); + let bytes6 = + _rt::Vec::from_raw_parts(l4.cast(), len6, len6); let l7 = i32::from(*base.add(8).cast::()); Message { record_id: _rt::string_lift(bytes6), @@ -258,12 +235,19 @@ pub mod wired { 0 => None, 1 => { let e = { - let l8 = i32::from(*base.add(12).cast::()); + let l8 = i32::from( + *base.add(12).cast::(), + ); let v30 = match l8 { 0 => { let e30 = { - let l9 = *base.add(16).cast::<*mut u8>(); - let l10 = *base.add(20).cast::(); + let l9 = *base + .add(16) + .cast::<*mut u8>( + ); + let l10 = *base + .add(20) + .cast::(); let len11 = l10; let bytes11 = _rt::Vec::from_raw_parts( l9.cast(), @@ -275,55 +259,96 @@ pub mod wired { Data::Base64(e30) } n => { - debug_assert_eq!(n, 1, "invalid enum discriminant"); + debug_assert_eq!( + n, 1, + "invalid enum discriminant" + ); let e30 = { - let l12 = *base.add(16).cast::<*mut u8>(); - let l13 = *base.add(20).cast::(); + let l12 = *base + .add(16) + .cast::<*mut u8>( + ); + let l13 = *base + .add(20) + .cast::(); let len14 = l13; let bytes14 = _rt::Vec::from_raw_parts( l12.cast(), len14, len14, ); - let l15 = *base.add(24).cast::<*mut u8>(); - let l16 = *base.add(28).cast::(); + let l15 = *base + .add(24) + .cast::<*mut u8>( + ); + let l16 = *base + .add(28) + .cast::(); let len17 = l16; let bytes17 = _rt::Vec::from_raw_parts( l15.cast(), len17, len17, ); - let l18 = *base.add(32).cast::<*mut u8>(); - let l19 = *base.add(36).cast::(); + let l18 = *base + .add(32) + .cast::<*mut u8>( + ); + let l19 = *base + .add(36) + .cast::(); let len20 = l19; let bytes20 = _rt::Vec::from_raw_parts( l18.cast(), len20, len20, ); - let l21 = *base.add(40).cast::<*mut u8>(); - let l22 = *base.add(44).cast::(); + let l21 = *base + .add(40) + .cast::<*mut u8>( + ); + let l22 = *base + .add(44) + .cast::(); let base26 = l21; let len26 = l22; - let mut result26 = _rt::Vec::with_capacity(len26); + let mut result26 = + _rt::Vec::with_capacity( + len26, + ); for i in 0..len26 { - let base = base26.add(i * 8); + let base = + base26.add(i * 8); let e26 = { let l23 = *base.add(0).cast::<*mut u8>(); - let l24 = *base.add(4).cast::(); + let l24 = *base + .add(4) + .cast::( + ); let len25 = l24; let bytes25 = _rt::Vec::from_raw_parts( l23.cast(), len25, len25, ); - _rt::string_lift(bytes25) + _rt::string_lift( + bytes25, + ) }; result26.push(e26); } - _rt::cabi_dealloc(base26, len26 * 8, 4); - let l27 = *base.add(48).cast::<*mut u8>(); - let l28 = *base.add(52).cast::(); + _rt::cabi_dealloc( + base26, + len26 * 8, + 4, + ); + let l27 = *base + .add(48) + .cast::<*mut u8>( + ); + let l28 = *base + .add(52) + .cast::(); let len29 = l28; let bytes29 = _rt::Vec::from_raw_parts( l27.cast(), @@ -331,11 +356,20 @@ pub mod wired { len29, ); EncryptedData { - alg: _rt::string_lift(bytes14), - ciphertext: _rt::string_lift(bytes17), - iv: _rt::string_lift(bytes20), + alg: _rt::string_lift( + bytes14, + ), + ciphertext: + _rt::string_lift( + bytes17, + ), + iv: _rt::string_lift( + bytes20, + ), recipients: result26, - tag: _rt::string_lift(bytes29), + tag: _rt::string_lift( + bytes29, + ), } }; Data::Encrypted(e30) @@ -411,9 +445,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:dwn/dwn")] @@ -434,11 +466,7 @@ pub mod wired { let l2 = *ptr0.add(4).cast::<*mut u8>(); let l3 = *ptr0.add(8).cast::(); let len4 = l3; - let bytes4 = _rt::Vec::from_raw_parts( - l2.cast(), - len4, - len4, - ); + let bytes4 = _rt::Vec::from_raw_parts(l2.cast(), len4, len4); _rt::string_lift(bytes4) }; Some(e) @@ -471,12 +499,7 @@ pub mod wired { fn wit_import(_: i32, _: i32, _: *mut u8, _: usize) { unreachable!() } - wit_import( - (self).handle() as i32, - result1_0, - result1_1, - result1_2, - ); + wit_import((self).handle() as i32, result1_0, result1_1, result1_2); } } } @@ -486,9 +509,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:dwn/dwn")] @@ -509,11 +530,7 @@ pub mod wired { let l2 = *ptr0.add(4).cast::<*mut u8>(); let l3 = *ptr0.add(8).cast::(); let len4 = l3; - let bytes4 = _rt::Vec::from_raw_parts( - l2.cast(), - len4, - len4, - ); + let bytes4 = _rt::Vec::from_raw_parts(l2.cast(), len4, len4); _rt::string_lift(bytes4) }; Some(e) @@ -546,12 +563,7 @@ pub mod wired { fn wit_import(_: i32, _: i32, _: *mut u8, _: usize) { unreachable!() } - wit_import( - (self).handle() as i32, - result1_0, - result1_1, - result1_2, - ); + wit_import((self).handle() as i32, result1_0, result1_1, result1_2); } } } @@ -561,9 +573,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:dwn/dwn")] @@ -584,11 +594,7 @@ pub mod wired { let l2 = *ptr0.add(4).cast::<*mut u8>(); let l3 = *ptr0.add(8).cast::(); let len4 = l3; - let bytes4 = _rt::Vec::from_raw_parts( - l2.cast(), - len4, - len4, - ); + let bytes4 = _rt::Vec::from_raw_parts(l2.cast(), len4, len4); _rt::string_lift(bytes4) }; Some(e) @@ -621,12 +627,7 @@ pub mod wired { fn wit_import(_: i32, _: i32, _: *mut u8, _: usize) { unreachable!() } - wit_import( - (self).handle() as i32, - result1_0, - result1_1, - result1_2, - ); + wit_import((self).handle() as i32, result1_0, result1_1, result1_2); } } } @@ -673,7 +674,8 @@ pub mod wired { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; pub type Dwn = super::super::super::wired::dwn::dwn::Dwn; #[allow(unused_unsafe, clippy::all)] /// Get the local user's DWN. @@ -719,7 +721,8 @@ pub mod wired { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; #[repr(u8)] #[derive(Clone, Copy, Eq, PartialEq)] pub enum LogLevel { @@ -729,10 +732,7 @@ pub mod wired { Error, } impl ::core::fmt::Debug for LogLevel { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { LogLevel::Debug => f.debug_tuple("LogLevel::Debug").finish(), LogLevel::Info => f.debug_tuple("LogLevel::Info").finish(), @@ -788,7 +788,8 @@ pub mod exports { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::super::__link_custom_section_describing_imports; use super::super::super::super::_rt; #[derive(Debug)] #[repr(transparent)] @@ -805,9 +806,7 @@ pub mod exports { pub fn new(val: T) -> Self { Self::type_guard::(); let val: _ScriptRep = Some(val); - let ptr: *mut _ScriptRep = _rt::Box::into_raw( - _rt::Box::new(val), - ); + let ptr: *mut _ScriptRep = _rt::Box::into_raw(_rt::Box::new(val)); unsafe { Self::from_handle(T::_resource_new(ptr.cast())) } } /// Gets access to the underlying `T` which represents this resource. @@ -845,12 +844,13 @@ pub mod exports { use core::any::TypeId; static mut LAST_TYPE: Option = None; unsafe { - assert!(! cfg!(target_feature = "atomics")); + assert!(!cfg!(target_feature = "atomics")); let id = TypeId::of::(); match LAST_TYPE { Some(ty) => { assert!( - ty == id, "cannot use two types with this resource type" + ty == id, + "cannot use two types with this resource type" ) } None => LAST_TYPE = Some(id), @@ -912,7 +912,8 @@ pub mod exports { #[doc(hidden)] #[allow(non_snake_case)] pub unsafe fn _export_constructor_script_cabi() -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let result0 = Script::new(T::new()); (result0).take_handle() as i32 } @@ -922,7 +923,8 @@ pub mod exports { arg0: *mut u8, arg1: f32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::update(ScriptBorrow::lift(arg0 as u32 as usize).get(), arg1); } pub trait Guest { @@ -1062,7 +1064,9 @@ mod _rt { } impl fmt::Debug for Resource { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("Resource").field("handle", &self.handle).finish() + f.debug_struct("Resource") + .field("handle", &self.handle) + .finish() } } impl Drop for Resource { diff --git a/wasm/test-wired-physics/src/bindings.rs b/wasm/test-wired-physics/src/bindings.rs index 7de93b150..961aac38b 100644 --- a/wasm/test-wired-physics/src/bindings.rs +++ b/wasm/test-wired-physics/src/bindings.rs @@ -6,7 +6,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; pub type Vec3 = super::super::super::wired::math::types::Vec3; pub type Quat = super::super::super::wired::math::types::Quat; #[repr(u8)] @@ -16,10 +17,7 @@ pub mod wired { Right, } impl ::core::fmt::Debug for HandSide { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { HandSide::Left => f.debug_tuple("HandSide::Left").finish(), HandSide::Right => f.debug_tuple("HandSide::Right").finish(), @@ -47,10 +45,7 @@ pub mod wired { pub radius: f32, } impl ::core::fmt::Debug for Joint { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Joint") .field("translation", &self.translation) .field("rotation", &self.rotation) @@ -67,10 +62,7 @@ pub mod wired { pub metacarpal: Joint, } impl ::core::fmt::Debug for Finger { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Finger") .field("tip", &self.tip) .field("distal", &self.distal) @@ -94,10 +86,7 @@ pub mod wired { pub elbow: Option, } impl ::core::fmt::Debug for Hand { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Hand") .field("side", &self.side) .field("thumb", &self.thumb) @@ -119,10 +108,7 @@ pub mod wired { pub origin: Vec3, } impl ::core::fmt::Debug for Ray { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Ray") .field("orientation", &self.orientation) .field("origin", &self.origin) @@ -135,17 +121,10 @@ pub mod wired { Ray(Ray), } impl ::core::fmt::Debug for InputData { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputData::Hand(e) => { - f.debug_tuple("InputData::Hand").field(e).finish() - } - InputData::Ray(e) => { - f.debug_tuple("InputData::Ray").field(e).finish() - } + InputData::Hand(e) => f.debug_tuple("InputData::Hand").field(e).finish(), + InputData::Ray(e) => f.debug_tuple("InputData::Ray").field(e).finish(), } } } @@ -155,17 +134,10 @@ pub mod wired { Hover, } impl ::core::fmt::Debug for InputAction { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputAction::Collision => { - f.debug_tuple("InputAction::Collision").finish() - } - InputAction::Hover => { - f.debug_tuple("InputAction::Hover").finish() - } + InputAction::Collision => f.debug_tuple("InputAction::Collision").finish(), + InputAction::Hover => f.debug_tuple("InputAction::Hover").finish(), } } } @@ -180,10 +152,7 @@ pub mod wired { pub data: InputData, } impl ::core::fmt::Debug for InputEvent { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("InputEvent") .field("id", &self.id) .field("action", &self.action) @@ -196,7 +165,8 @@ pub mod wired { pub mod handler { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type InputEvent = super::super::super::wired::input::types::InputEvent; #[derive(Debug)] @@ -263,9 +233,7 @@ pub mod wired { unsafe { #[repr(align(8))] struct RetArea([::core::mem::MaybeUninit; 768]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 768], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 768]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:input/handler")] @@ -881,7 +849,8 @@ pub mod wired { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; #[repr(u8)] #[derive(Clone, Copy, Eq, PartialEq)] pub enum LogLevel { @@ -891,10 +860,7 @@ pub mod wired { Error, } impl ::core::fmt::Debug for LogLevel { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { LogLevel::Debug => f.debug_tuple("LogLevel::Debug").finish(), LogLevel::Info => f.debug_tuple("LogLevel::Info").finish(), @@ -945,7 +911,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; #[repr(C)] #[derive(Clone, Copy)] pub struct Vec2 { @@ -953,10 +920,7 @@ pub mod wired { pub y: f32, } impl ::core::fmt::Debug for Vec2 { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Vec2") .field("x", &self.x) .field("y", &self.y) @@ -971,10 +935,7 @@ pub mod wired { pub z: f32, } impl ::core::fmt::Debug for Vec3 { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Vec3") .field("x", &self.x) .field("y", &self.y) @@ -991,10 +952,7 @@ pub mod wired { pub w: f32, } impl ::core::fmt::Debug for Quat { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Quat") .field("x", &self.x) .field("y", &self.y) @@ -1011,10 +969,7 @@ pub mod wired { pub translation: Vec3, } impl ::core::fmt::Debug for Transform { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Transform") .field("rotation", &self.rotation) .field("scale", &self.scale) @@ -1067,7 +1022,11 @@ pub mod wired { let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); let l3 = *ptr0.add(8).cast::(); - Vec3 { x: l1, y: l2, z: l3 } + Vec3 { + x: l1, + y: l2, + z: l3, + } } } #[allow(unused_unsafe, clippy::all)] @@ -1092,7 +1051,12 @@ pub mod wired { let l2 = *ptr0.add(4).cast::(); let l3 = *ptr0.add(8).cast::(); let l4 = *ptr0.add(12).cast::(); - Quat { x: l1, y: l2, z: l3, w: l4 } + Quat { + x: l1, + y: l2, + z: l3, + w: l4, + } } } #[allow(unused_unsafe, clippy::all)] @@ -1124,9 +1088,22 @@ pub mod wired { let l9 = *ptr0.add(32).cast::(); let l10 = *ptr0.add(36).cast::(); Transform { - rotation: Quat { x: l1, y: l2, z: l3, w: l4 }, - scale: Vec3 { x: l5, y: l6, z: l7 }, - translation: Vec3 { x: l8, y: l9, z: l10 }, + rotation: Quat { + x: l1, + y: l2, + z: l3, + w: l4, + }, + scale: Vec3 { + x: l5, + y: l6, + z: l7, + }, + translation: Vec3 { + x: l8, + y: l9, + z: l10, + }, } } } @@ -1138,7 +1115,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Vec3 = super::super::super::wired::math::types::Vec3; #[derive(Debug)] @@ -1185,10 +1163,7 @@ pub mod wired { pub radius: f32, } impl ::core::fmt::Debug for ShapeCylinder { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("ShapeCylinder") .field("height", &self.height) .field("radius", &self.radius) @@ -1202,20 +1177,11 @@ pub mod wired { Sphere(f32), } impl ::core::fmt::Debug for Shape { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Shape::Cuboid(e) => { - f.debug_tuple("Shape::Cuboid").field(e).finish() - } - Shape::Cylinder(e) => { - f.debug_tuple("Shape::Cylinder").field(e).finish() - } - Shape::Sphere(e) => { - f.debug_tuple("Shape::Sphere").field(e).finish() - } + Shape::Cuboid(e) => f.debug_tuple("Shape::Cuboid").field(e).finish(), + Shape::Cylinder(e) => f.debug_tuple("Shape::Cylinder").field(e).finish(), + Shape::Sphere(e) => f.debug_tuple("Shape::Sphere").field(e).finish(), } } } @@ -1264,17 +1230,10 @@ pub mod wired { Kinematic, } impl ::core::fmt::Debug for RigidBodyType { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - RigidBodyType::Dynamic => { - f.debug_tuple("RigidBodyType::Dynamic").finish() - } - RigidBodyType::Fixed => { - f.debug_tuple("RigidBodyType::Fixed").finish() - } + RigidBodyType::Dynamic => f.debug_tuple("RigidBodyType::Dynamic").finish(), + RigidBodyType::Fixed => f.debug_tuple("RigidBodyType::Fixed").finish(), RigidBodyType::Kinematic => { f.debug_tuple("RigidBodyType::Kinematic").finish() } @@ -1309,7 +1268,10 @@ pub mod wired { (0i32, _rt::as_f32(x0), _rt::as_f32(y0), _rt::as_f32(z0)) } Shape::Cylinder(e) => { - let ShapeCylinder { height: height1, radius: radius1 } = e; + let ShapeCylinder { + height: height1, + radius: radius1, + } = e; (1i32, _rt::as_f32(height1), _rt::as_f32(radius1), 0.0f32) } Shape::Sphere(e) => (2i32, _rt::as_f32(e), 0.0f32, 0.0f32), @@ -1391,9 +1353,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:physics/types")] @@ -1451,9 +1411,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:physics/types")] @@ -1513,7 +1471,8 @@ pub mod wired { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Node = super::super::super::wired::scene::node::Node; pub struct Skeleton { @@ -1539,10 +1498,7 @@ pub mod wired { pub right_foot: Node, } impl ::core::fmt::Debug for Skeleton { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Skeleton") .field("hips", &self.hips) .field("spine", &self.spine) @@ -1619,9 +1575,7 @@ pub mod wired { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1631,9 +1585,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 80]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 80], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 80]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:player/api")] @@ -1685,45 +1637,55 @@ pub mod wired { head: super::super::super::wired::scene::node::Node::from_handle( l6 as u32, ), - left_shoulder: super::super::super::wired::scene::node::Node::from_handle( - l7 as u32, - ), - left_upper_arm: super::super::super::wired::scene::node::Node::from_handle( - l8 as u32, - ), - left_lower_arm: super::super::super::wired::scene::node::Node::from_handle( - l9 as u32, - ), + left_shoulder: + super::super::super::wired::scene::node::Node::from_handle( + l7 as u32, + ), + left_upper_arm: + super::super::super::wired::scene::node::Node::from_handle( + l8 as u32, + ), + left_lower_arm: + super::super::super::wired::scene::node::Node::from_handle( + l9 as u32, + ), left_hand: super::super::super::wired::scene::node::Node::from_handle( l10 as u32, ), - right_shoulder: super::super::super::wired::scene::node::Node::from_handle( - l11 as u32, - ), - right_upper_arm: super::super::super::wired::scene::node::Node::from_handle( - l12 as u32, - ), - right_lower_arm: super::super::super::wired::scene::node::Node::from_handle( - l13 as u32, - ), + right_shoulder: + super::super::super::wired::scene::node::Node::from_handle( + l11 as u32, + ), + right_upper_arm: + super::super::super::wired::scene::node::Node::from_handle( + l12 as u32, + ), + right_lower_arm: + super::super::super::wired::scene::node::Node::from_handle( + l13 as u32, + ), right_hand: super::super::super::wired::scene::node::Node::from_handle( l14 as u32, ), - left_upper_leg: super::super::super::wired::scene::node::Node::from_handle( - l15 as u32, - ), - left_lower_leg: super::super::super::wired::scene::node::Node::from_handle( - l16 as u32, - ), + left_upper_leg: + super::super::super::wired::scene::node::Node::from_handle( + l15 as u32, + ), + left_lower_leg: + super::super::super::wired::scene::node::Node::from_handle( + l16 as u32, + ), left_foot: super::super::super::wired::scene::node::Node::from_handle( l17 as u32, ), - right_upper_leg: super::super::super::wired::scene::node::Node::from_handle( - l18 as u32, - ), - right_lower_leg: super::super::super::wired::scene::node::Node::from_handle( - l19 as u32, - ), + right_upper_leg: + super::super::super::wired::scene::node::Node::from_handle( + l18 as u32, + ), + right_lower_leg: + super::super::super::wired::scene::node::Node::from_handle( + l19 as u32, + ), right_foot: super::super::super::wired::scene::node::Node::from_handle( l20 as u32, ), @@ -1791,7 +1753,8 @@ pub mod wired { pub mod material { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; #[repr(C)] #[derive(Clone, Copy)] @@ -1802,10 +1765,7 @@ pub mod wired { pub a: f32, } impl ::core::fmt::Debug for Color { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Color") .field("r", &self.r) .field("g", &self.g) @@ -1915,9 +1875,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] @@ -1965,9 +1923,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 16]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 16], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 16]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] @@ -1997,7 +1953,12 @@ pub mod wired { #[allow(unused_unsafe, clippy::all)] pub fn set_color(&self, value: Color) { unsafe { - let Color { r: r0, g: g0, b: b0, a: a0 } = value; + let Color { + r: r0, + g: g0, + b: b0, + a: a0, + } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] extern "C" { @@ -2023,7 +1984,8 @@ pub mod wired { pub mod mesh { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Material = super::super::super::wired::scene::material::Material; #[derive(Debug)] @@ -2125,9 +2087,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -2327,9 +2287,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -2377,9 +2335,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -2443,10 +2399,7 @@ pub mod wired { fn wit_import(_: i32, _: i32) { unreachable!() } - wit_import( - (self).handle() as i32, - (&value).take_handle() as i32, - ); + wit_import((self).handle() as i32, (&value).take_handle() as i32); } } } @@ -2455,7 +2408,8 @@ pub mod wired { pub mod node { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Mesh = super::super::super::wired::scene::mesh::Mesh; pub type InputHandler = super::super::super::wired::input::handler::InputHandler; @@ -2563,9 +2517,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2613,9 +2565,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2688,9 +2638,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2724,9 +2672,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2776,9 +2722,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2903,9 +2847,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2963,9 +2905,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -3023,9 +2963,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -3083,9 +3021,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -3142,7 +3078,8 @@ pub mod wired { pub mod scene { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Node = super::super::super::wired::scene::node::Node; #[derive(Debug)] @@ -3226,9 +3163,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/scene")] @@ -3276,9 +3211,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/scene")] @@ -3352,7 +3285,8 @@ pub mod wired { pub mod gltf { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Material = super::super::super::wired::scene::material::Material; pub type Mesh = super::super::super::wired::scene::mesh::Mesh; @@ -3422,9 +3356,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -3499,9 +3431,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -3576,9 +3506,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -3653,9 +3581,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -3731,9 +3657,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -3793,9 +3717,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -3848,7 +3770,8 @@ pub mod wired { pub mod glxf { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Gltf = super::super::super::wired::scene::gltf::Gltf; pub type Node = super::super::super::wired::scene::node::Node; @@ -3971,10 +3894,7 @@ pub mod wired { Glxf(AssetGlxf), } impl ::core::fmt::Debug for Asset { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { Asset::Gltf(e) => f.debug_tuple("Asset::Gltf").field(e).finish(), Asset::Glxf(e) => f.debug_tuple("Asset::Glxf").field(e).finish(), @@ -3986,10 +3906,7 @@ pub mod wired { Glxf(&'a AssetGlxf), } impl<'a> ::core::fmt::Debug for AssetBorrow<'a> { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { AssetBorrow::Gltf(e) => { f.debug_tuple("AssetBorrow::Gltf").field(e).finish() @@ -4042,17 +3959,10 @@ pub mod wired { Nodes(_rt::Vec), } impl ::core::fmt::Debug for Children { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Children::Asset(e) => { - f.debug_tuple("Children::Asset").field(e).finish() - } - Children::Nodes(e) => { - f.debug_tuple("Children::Nodes").field(e).finish() - } + Children::Asset(e) => f.debug_tuple("Children::Asset").field(e).finish(), + Children::Nodes(e) => f.debug_tuple("Children::Nodes").field(e).finish(), } } } @@ -4061,10 +3971,7 @@ pub mod wired { Nodes(_rt::Vec<&'a GlxfNode>), } impl<'a> ::core::fmt::Debug for ChildrenBorrow<'a> { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { ChildrenBorrow::Asset(e) => { f.debug_tuple("ChildrenBorrow::Asset").field(e).finish() @@ -4155,9 +4062,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -4255,9 +4160,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -4330,9 +4233,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -4406,9 +4307,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -4466,9 +4365,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -4548,9 +4445,7 @@ pub mod wired { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::gltf::Gltf::from_handle( - ret as u32, - ) + super::super::super::wired::scene::gltf::Gltf::from_handle(ret as u32) } } } @@ -4562,9 +4457,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -4679,9 +4572,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -4792,9 +4683,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -4842,9 +4731,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -4969,9 +4856,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -5005,9 +4890,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 16]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 16], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 16]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -5039,7 +4922,10 @@ pub mod wired { Asset::Gltf(e6) } n => { - debug_assert_eq!(n, 1, "invalid enum discriminant"); + debug_assert_eq!( + n, 1, + "invalid enum discriminant" + ); let e6 = { let l5 = *ptr0.add(12).cast::(); AssetGlxf::from_handle(l5 as u32) @@ -5111,7 +4997,9 @@ pub mod wired { } ptr } else { - { ::core::ptr::null_mut() } + { + ::core::ptr::null_mut() + } }; for (i, e) in vec1.into_iter().enumerate() { let base = result1.add(i * 4); @@ -5196,9 +5084,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -5246,9 +5132,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -5328,7 +5212,8 @@ pub mod exports { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::super::__link_custom_section_describing_imports; use super::super::super::super::_rt; #[derive(Debug)] #[repr(transparent)] @@ -5345,9 +5230,7 @@ pub mod exports { pub fn new(val: T) -> Self { Self::type_guard::(); let val: _ScriptRep = Some(val); - let ptr: *mut _ScriptRep = _rt::Box::into_raw( - _rt::Box::new(val), - ); + let ptr: *mut _ScriptRep = _rt::Box::into_raw(_rt::Box::new(val)); unsafe { Self::from_handle(T::_resource_new(ptr.cast())) } } /// Gets access to the underlying `T` which represents this resource. @@ -5385,12 +5268,13 @@ pub mod exports { use core::any::TypeId; static mut LAST_TYPE: Option = None; unsafe { - assert!(! cfg!(target_feature = "atomics")); + assert!(!cfg!(target_feature = "atomics")); let id = TypeId::of::(); match LAST_TYPE { Some(ty) => { assert!( - ty == id, "cannot use two types with this resource type" + ty == id, + "cannot use two types with this resource type" ) } None => LAST_TYPE = Some(id), @@ -5452,7 +5336,8 @@ pub mod exports { #[doc(hidden)] #[allow(non_snake_case)] pub unsafe fn _export_constructor_script_cabi() -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let result0 = Script::new(T::new()); (result0).take_handle() as i32 } @@ -5462,7 +5347,8 @@ pub mod exports { arg0: *mut u8, arg1: f32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::update(ScriptBorrow::lift(arg0 as u32 as usize).get(), arg1); } pub trait Guest { @@ -5600,7 +5486,9 @@ mod _rt { } impl fmt::Debug for Resource { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("Resource").field("handle", &self.handle).finish() + f.debug_struct("Resource") + .field("handle", &self.handle) + .finish() } } impl Drop for Resource { diff --git a/wasm/test-wired-scene/src/bindings.rs b/wasm/test-wired-scene/src/bindings.rs index 011981993..932a9260d 100644 --- a/wasm/test-wired-scene/src/bindings.rs +++ b/wasm/test-wired-scene/src/bindings.rs @@ -6,7 +6,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; pub type Vec3 = super::super::super::wired::math::types::Vec3; pub type Quat = super::super::super::wired::math::types::Quat; #[repr(u8)] @@ -16,10 +17,7 @@ pub mod wired { Right, } impl ::core::fmt::Debug for HandSide { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { HandSide::Left => f.debug_tuple("HandSide::Left").finish(), HandSide::Right => f.debug_tuple("HandSide::Right").finish(), @@ -47,10 +45,7 @@ pub mod wired { pub radius: f32, } impl ::core::fmt::Debug for Joint { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Joint") .field("translation", &self.translation) .field("rotation", &self.rotation) @@ -67,10 +62,7 @@ pub mod wired { pub metacarpal: Joint, } impl ::core::fmt::Debug for Finger { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Finger") .field("tip", &self.tip) .field("distal", &self.distal) @@ -94,10 +86,7 @@ pub mod wired { pub elbow: Option, } impl ::core::fmt::Debug for Hand { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Hand") .field("side", &self.side) .field("thumb", &self.thumb) @@ -119,10 +108,7 @@ pub mod wired { pub origin: Vec3, } impl ::core::fmt::Debug for Ray { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Ray") .field("orientation", &self.orientation) .field("origin", &self.origin) @@ -135,17 +121,10 @@ pub mod wired { Ray(Ray), } impl ::core::fmt::Debug for InputData { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputData::Hand(e) => { - f.debug_tuple("InputData::Hand").field(e).finish() - } - InputData::Ray(e) => { - f.debug_tuple("InputData::Ray").field(e).finish() - } + InputData::Hand(e) => f.debug_tuple("InputData::Hand").field(e).finish(), + InputData::Ray(e) => f.debug_tuple("InputData::Ray").field(e).finish(), } } } @@ -155,17 +134,10 @@ pub mod wired { Hover, } impl ::core::fmt::Debug for InputAction { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputAction::Collision => { - f.debug_tuple("InputAction::Collision").finish() - } - InputAction::Hover => { - f.debug_tuple("InputAction::Hover").finish() - } + InputAction::Collision => f.debug_tuple("InputAction::Collision").finish(), + InputAction::Hover => f.debug_tuple("InputAction::Hover").finish(), } } } @@ -180,10 +152,7 @@ pub mod wired { pub data: InputData, } impl ::core::fmt::Debug for InputEvent { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("InputEvent") .field("id", &self.id) .field("action", &self.action) @@ -196,7 +165,8 @@ pub mod wired { pub mod handler { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type InputEvent = super::super::super::wired::input::types::InputEvent; #[derive(Debug)] @@ -263,9 +233,7 @@ pub mod wired { unsafe { #[repr(align(8))] struct RetArea([::core::mem::MaybeUninit; 768]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 768], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 768]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:input/handler")] @@ -881,7 +849,8 @@ pub mod wired { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; #[repr(u8)] #[derive(Clone, Copy, Eq, PartialEq)] pub enum LogLevel { @@ -891,10 +860,7 @@ pub mod wired { Error, } impl ::core::fmt::Debug for LogLevel { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { LogLevel::Debug => f.debug_tuple("LogLevel::Debug").finish(), LogLevel::Info => f.debug_tuple("LogLevel::Info").finish(), @@ -945,7 +911,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; #[repr(C)] #[derive(Clone, Copy)] pub struct Vec2 { @@ -953,10 +920,7 @@ pub mod wired { pub y: f32, } impl ::core::fmt::Debug for Vec2 { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Vec2") .field("x", &self.x) .field("y", &self.y) @@ -971,10 +935,7 @@ pub mod wired { pub z: f32, } impl ::core::fmt::Debug for Vec3 { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Vec3") .field("x", &self.x) .field("y", &self.y) @@ -991,10 +952,7 @@ pub mod wired { pub w: f32, } impl ::core::fmt::Debug for Quat { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Quat") .field("x", &self.x) .field("y", &self.y) @@ -1011,10 +969,7 @@ pub mod wired { pub translation: Vec3, } impl ::core::fmt::Debug for Transform { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Transform") .field("rotation", &self.rotation) .field("scale", &self.scale) @@ -1067,7 +1022,11 @@ pub mod wired { let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); let l3 = *ptr0.add(8).cast::(); - Vec3 { x: l1, y: l2, z: l3 } + Vec3 { + x: l1, + y: l2, + z: l3, + } } } #[allow(unused_unsafe, clippy::all)] @@ -1092,7 +1051,12 @@ pub mod wired { let l2 = *ptr0.add(4).cast::(); let l3 = *ptr0.add(8).cast::(); let l4 = *ptr0.add(12).cast::(); - Quat { x: l1, y: l2, z: l3, w: l4 } + Quat { + x: l1, + y: l2, + z: l3, + w: l4, + } } } #[allow(unused_unsafe, clippy::all)] @@ -1124,9 +1088,22 @@ pub mod wired { let l9 = *ptr0.add(32).cast::(); let l10 = *ptr0.add(36).cast::(); Transform { - rotation: Quat { x: l1, y: l2, z: l3, w: l4 }, - scale: Vec3 { x: l5, y: l6, z: l7 }, - translation: Vec3 { x: l8, y: l9, z: l10 }, + rotation: Quat { + x: l1, + y: l2, + z: l3, + w: l4, + }, + scale: Vec3 { + x: l5, + y: l6, + z: l7, + }, + translation: Vec3 { + x: l8, + y: l9, + z: l10, + }, } } } @@ -1138,7 +1115,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Vec3 = super::super::super::wired::math::types::Vec3; #[derive(Debug)] @@ -1185,10 +1163,7 @@ pub mod wired { pub radius: f32, } impl ::core::fmt::Debug for ShapeCylinder { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("ShapeCylinder") .field("height", &self.height) .field("radius", &self.radius) @@ -1202,20 +1177,11 @@ pub mod wired { Sphere(f32), } impl ::core::fmt::Debug for Shape { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Shape::Cuboid(e) => { - f.debug_tuple("Shape::Cuboid").field(e).finish() - } - Shape::Cylinder(e) => { - f.debug_tuple("Shape::Cylinder").field(e).finish() - } - Shape::Sphere(e) => { - f.debug_tuple("Shape::Sphere").field(e).finish() - } + Shape::Cuboid(e) => f.debug_tuple("Shape::Cuboid").field(e).finish(), + Shape::Cylinder(e) => f.debug_tuple("Shape::Cylinder").field(e).finish(), + Shape::Sphere(e) => f.debug_tuple("Shape::Sphere").field(e).finish(), } } } @@ -1264,17 +1230,10 @@ pub mod wired { Kinematic, } impl ::core::fmt::Debug for RigidBodyType { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - RigidBodyType::Dynamic => { - f.debug_tuple("RigidBodyType::Dynamic").finish() - } - RigidBodyType::Fixed => { - f.debug_tuple("RigidBodyType::Fixed").finish() - } + RigidBodyType::Dynamic => f.debug_tuple("RigidBodyType::Dynamic").finish(), + RigidBodyType::Fixed => f.debug_tuple("RigidBodyType::Fixed").finish(), RigidBodyType::Kinematic => { f.debug_tuple("RigidBodyType::Kinematic").finish() } @@ -1309,7 +1268,10 @@ pub mod wired { (0i32, _rt::as_f32(x0), _rt::as_f32(y0), _rt::as_f32(z0)) } Shape::Cylinder(e) => { - let ShapeCylinder { height: height1, radius: radius1 } = e; + let ShapeCylinder { + height: height1, + radius: radius1, + } = e; (1i32, _rt::as_f32(height1), _rt::as_f32(radius1), 0.0f32) } Shape::Sphere(e) => (2i32, _rt::as_f32(e), 0.0f32, 0.0f32), @@ -1391,9 +1353,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:physics/types")] @@ -1451,9 +1411,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:physics/types")] @@ -1513,7 +1471,8 @@ pub mod wired { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Node = super::super::super::wired::scene::node::Node; pub struct Skeleton { @@ -1539,10 +1498,7 @@ pub mod wired { pub right_foot: Node, } impl ::core::fmt::Debug for Skeleton { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Skeleton") .field("hips", &self.hips) .field("spine", &self.spine) @@ -1619,9 +1575,7 @@ pub mod wired { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1631,9 +1585,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 80]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 80], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 80]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:player/api")] @@ -1685,45 +1637,55 @@ pub mod wired { head: super::super::super::wired::scene::node::Node::from_handle( l6 as u32, ), - left_shoulder: super::super::super::wired::scene::node::Node::from_handle( - l7 as u32, - ), - left_upper_arm: super::super::super::wired::scene::node::Node::from_handle( - l8 as u32, - ), - left_lower_arm: super::super::super::wired::scene::node::Node::from_handle( - l9 as u32, - ), + left_shoulder: + super::super::super::wired::scene::node::Node::from_handle( + l7 as u32, + ), + left_upper_arm: + super::super::super::wired::scene::node::Node::from_handle( + l8 as u32, + ), + left_lower_arm: + super::super::super::wired::scene::node::Node::from_handle( + l9 as u32, + ), left_hand: super::super::super::wired::scene::node::Node::from_handle( l10 as u32, ), - right_shoulder: super::super::super::wired::scene::node::Node::from_handle( - l11 as u32, - ), - right_upper_arm: super::super::super::wired::scene::node::Node::from_handle( - l12 as u32, - ), - right_lower_arm: super::super::super::wired::scene::node::Node::from_handle( - l13 as u32, - ), + right_shoulder: + super::super::super::wired::scene::node::Node::from_handle( + l11 as u32, + ), + right_upper_arm: + super::super::super::wired::scene::node::Node::from_handle( + l12 as u32, + ), + right_lower_arm: + super::super::super::wired::scene::node::Node::from_handle( + l13 as u32, + ), right_hand: super::super::super::wired::scene::node::Node::from_handle( l14 as u32, ), - left_upper_leg: super::super::super::wired::scene::node::Node::from_handle( - l15 as u32, - ), - left_lower_leg: super::super::super::wired::scene::node::Node::from_handle( - l16 as u32, - ), + left_upper_leg: + super::super::super::wired::scene::node::Node::from_handle( + l15 as u32, + ), + left_lower_leg: + super::super::super::wired::scene::node::Node::from_handle( + l16 as u32, + ), left_foot: super::super::super::wired::scene::node::Node::from_handle( l17 as u32, ), - right_upper_leg: super::super::super::wired::scene::node::Node::from_handle( - l18 as u32, - ), - right_lower_leg: super::super::super::wired::scene::node::Node::from_handle( - l19 as u32, - ), + right_upper_leg: + super::super::super::wired::scene::node::Node::from_handle( + l18 as u32, + ), + right_lower_leg: + super::super::super::wired::scene::node::Node::from_handle( + l19 as u32, + ), right_foot: super::super::super::wired::scene::node::Node::from_handle( l20 as u32, ), @@ -1791,7 +1753,8 @@ pub mod wired { pub mod material { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; #[repr(C)] #[derive(Clone, Copy)] @@ -1802,10 +1765,7 @@ pub mod wired { pub a: f32, } impl ::core::fmt::Debug for Color { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Color") .field("r", &self.r) .field("g", &self.g) @@ -1915,9 +1875,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] @@ -1965,9 +1923,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 16]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 16], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 16]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] @@ -1997,7 +1953,12 @@ pub mod wired { #[allow(unused_unsafe, clippy::all)] pub fn set_color(&self, value: Color) { unsafe { - let Color { r: r0, g: g0, b: b0, a: a0 } = value; + let Color { + r: r0, + g: g0, + b: b0, + a: a0, + } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] extern "C" { @@ -2023,7 +1984,8 @@ pub mod wired { pub mod mesh { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Material = super::super::super::wired::scene::material::Material; #[derive(Debug)] @@ -2125,9 +2087,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -2327,9 +2287,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -2377,9 +2335,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -2443,10 +2399,7 @@ pub mod wired { fn wit_import(_: i32, _: i32) { unreachable!() } - wit_import( - (self).handle() as i32, - (&value).take_handle() as i32, - ); + wit_import((self).handle() as i32, (&value).take_handle() as i32); } } } @@ -2455,7 +2408,8 @@ pub mod wired { pub mod node { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Mesh = super::super::super::wired::scene::mesh::Mesh; pub type InputHandler = super::super::super::wired::input::handler::InputHandler; @@ -2563,9 +2517,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2613,9 +2565,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2688,9 +2638,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2724,9 +2672,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2776,9 +2722,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2903,9 +2847,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2963,9 +2905,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -3023,9 +2963,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -3083,9 +3021,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -3142,7 +3078,8 @@ pub mod wired { pub mod scene { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Node = super::super::super::wired::scene::node::Node; #[derive(Debug)] @@ -3226,9 +3163,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/scene")] @@ -3276,9 +3211,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/scene")] @@ -3352,7 +3285,8 @@ pub mod wired { pub mod gltf { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Material = super::super::super::wired::scene::material::Material; pub type Mesh = super::super::super::wired::scene::mesh::Mesh; @@ -3422,9 +3356,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -3499,9 +3431,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -3576,9 +3506,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -3653,9 +3581,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -3731,9 +3657,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -3793,9 +3717,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -3848,7 +3770,8 @@ pub mod wired { pub mod glxf { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Gltf = super::super::super::wired::scene::gltf::Gltf; pub type Node = super::super::super::wired::scene::node::Node; @@ -3971,10 +3894,7 @@ pub mod wired { Glxf(AssetGlxf), } impl ::core::fmt::Debug for Asset { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { Asset::Gltf(e) => f.debug_tuple("Asset::Gltf").field(e).finish(), Asset::Glxf(e) => f.debug_tuple("Asset::Glxf").field(e).finish(), @@ -3986,10 +3906,7 @@ pub mod wired { Glxf(&'a AssetGlxf), } impl<'a> ::core::fmt::Debug for AssetBorrow<'a> { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { AssetBorrow::Gltf(e) => { f.debug_tuple("AssetBorrow::Gltf").field(e).finish() @@ -4042,17 +3959,10 @@ pub mod wired { Nodes(_rt::Vec), } impl ::core::fmt::Debug for Children { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Children::Asset(e) => { - f.debug_tuple("Children::Asset").field(e).finish() - } - Children::Nodes(e) => { - f.debug_tuple("Children::Nodes").field(e).finish() - } + Children::Asset(e) => f.debug_tuple("Children::Asset").field(e).finish(), + Children::Nodes(e) => f.debug_tuple("Children::Nodes").field(e).finish(), } } } @@ -4061,10 +3971,7 @@ pub mod wired { Nodes(_rt::Vec<&'a GlxfNode>), } impl<'a> ::core::fmt::Debug for ChildrenBorrow<'a> { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { ChildrenBorrow::Asset(e) => { f.debug_tuple("ChildrenBorrow::Asset").field(e).finish() @@ -4155,9 +4062,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -4255,9 +4160,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -4330,9 +4233,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -4406,9 +4307,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -4466,9 +4365,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -4548,9 +4445,7 @@ pub mod wired { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::gltf::Gltf::from_handle( - ret as u32, - ) + super::super::super::wired::scene::gltf::Gltf::from_handle(ret as u32) } } } @@ -4562,9 +4457,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -4679,9 +4572,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -4792,9 +4683,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -4842,9 +4731,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -4969,9 +4856,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -5005,9 +4890,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 16]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 16], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 16]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -5039,7 +4922,10 @@ pub mod wired { Asset::Gltf(e6) } n => { - debug_assert_eq!(n, 1, "invalid enum discriminant"); + debug_assert_eq!( + n, 1, + "invalid enum discriminant" + ); let e6 = { let l5 = *ptr0.add(12).cast::(); AssetGlxf::from_handle(l5 as u32) @@ -5111,7 +4997,9 @@ pub mod wired { } ptr } else { - { ::core::ptr::null_mut() } + { + ::core::ptr::null_mut() + } }; for (i, e) in vec1.into_iter().enumerate() { let base = result1.add(i * 4); @@ -5196,9 +5084,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -5246,9 +5132,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -5328,7 +5212,8 @@ pub mod exports { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::super::__link_custom_section_describing_imports; use super::super::super::super::_rt; #[derive(Debug)] #[repr(transparent)] @@ -5345,9 +5230,7 @@ pub mod exports { pub fn new(val: T) -> Self { Self::type_guard::(); let val: _ScriptRep = Some(val); - let ptr: *mut _ScriptRep = _rt::Box::into_raw( - _rt::Box::new(val), - ); + let ptr: *mut _ScriptRep = _rt::Box::into_raw(_rt::Box::new(val)); unsafe { Self::from_handle(T::_resource_new(ptr.cast())) } } /// Gets access to the underlying `T` which represents this resource. @@ -5385,12 +5268,13 @@ pub mod exports { use core::any::TypeId; static mut LAST_TYPE: Option = None; unsafe { - assert!(! cfg!(target_feature = "atomics")); + assert!(!cfg!(target_feature = "atomics")); let id = TypeId::of::(); match LAST_TYPE { Some(ty) => { assert!( - ty == id, "cannot use two types with this resource type" + ty == id, + "cannot use two types with this resource type" ) } None => LAST_TYPE = Some(id), @@ -5452,7 +5336,8 @@ pub mod exports { #[doc(hidden)] #[allow(non_snake_case)] pub unsafe fn _export_constructor_script_cabi() -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let result0 = Script::new(T::new()); (result0).take_handle() as i32 } @@ -5462,7 +5347,8 @@ pub mod exports { arg0: *mut u8, arg1: f32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::update(ScriptBorrow::lift(arg0 as u32 as usize).get(), arg1); } pub trait Guest { @@ -5600,7 +5486,9 @@ mod _rt { } impl fmt::Debug for Resource { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("Resource").field("handle", &self.handle).finish() + f.debug_struct("Resource") + .field("handle", &self.handle) + .finish() } } impl Drop for Resource { diff --git a/wasm/unavi-layout/src/bindings.rs b/wasm/unavi-layout/src/bindings.rs index 551cc0191..f5e7d6186 100644 --- a/wasm/unavi-layout/src/bindings.rs +++ b/wasm/unavi-layout/src/bindings.rs @@ -6,7 +6,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; pub type Vec3 = super::super::super::wired::math::types::Vec3; pub type Quat = super::super::super::wired::math::types::Quat; #[repr(u8)] @@ -16,10 +17,7 @@ pub mod wired { Right, } impl ::core::fmt::Debug for HandSide { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { HandSide::Left => f.debug_tuple("HandSide::Left").finish(), HandSide::Right => f.debug_tuple("HandSide::Right").finish(), @@ -47,10 +45,7 @@ pub mod wired { pub radius: f32, } impl ::core::fmt::Debug for Joint { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Joint") .field("translation", &self.translation) .field("rotation", &self.rotation) @@ -67,10 +62,7 @@ pub mod wired { pub metacarpal: Joint, } impl ::core::fmt::Debug for Finger { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Finger") .field("tip", &self.tip) .field("distal", &self.distal) @@ -94,10 +86,7 @@ pub mod wired { pub elbow: Option, } impl ::core::fmt::Debug for Hand { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Hand") .field("side", &self.side) .field("thumb", &self.thumb) @@ -119,10 +108,7 @@ pub mod wired { pub origin: Vec3, } impl ::core::fmt::Debug for Ray { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Ray") .field("orientation", &self.orientation) .field("origin", &self.origin) @@ -135,17 +121,10 @@ pub mod wired { Ray(Ray), } impl ::core::fmt::Debug for InputData { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputData::Hand(e) => { - f.debug_tuple("InputData::Hand").field(e).finish() - } - InputData::Ray(e) => { - f.debug_tuple("InputData::Ray").field(e).finish() - } + InputData::Hand(e) => f.debug_tuple("InputData::Hand").field(e).finish(), + InputData::Ray(e) => f.debug_tuple("InputData::Ray").field(e).finish(), } } } @@ -155,17 +134,10 @@ pub mod wired { Hover, } impl ::core::fmt::Debug for InputAction { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputAction::Collision => { - f.debug_tuple("InputAction::Collision").finish() - } - InputAction::Hover => { - f.debug_tuple("InputAction::Hover").finish() - } + InputAction::Collision => f.debug_tuple("InputAction::Collision").finish(), + InputAction::Hover => f.debug_tuple("InputAction::Hover").finish(), } } } @@ -180,10 +152,7 @@ pub mod wired { pub data: InputData, } impl ::core::fmt::Debug for InputEvent { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("InputEvent") .field("id", &self.id) .field("action", &self.action) @@ -196,7 +165,8 @@ pub mod wired { pub mod handler { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type InputEvent = super::super::super::wired::input::types::InputEvent; #[derive(Debug)] @@ -263,9 +233,7 @@ pub mod wired { unsafe { #[repr(align(8))] struct RetArea([::core::mem::MaybeUninit; 768]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 768], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 768]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:input/handler")] @@ -881,7 +849,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; #[repr(C)] #[derive(Clone, Copy)] pub struct Vec2 { @@ -889,10 +858,7 @@ pub mod wired { pub y: f32, } impl ::core::fmt::Debug for Vec2 { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Vec2") .field("x", &self.x) .field("y", &self.y) @@ -907,10 +873,7 @@ pub mod wired { pub z: f32, } impl ::core::fmt::Debug for Vec3 { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Vec3") .field("x", &self.x) .field("y", &self.y) @@ -927,10 +890,7 @@ pub mod wired { pub w: f32, } impl ::core::fmt::Debug for Quat { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Quat") .field("x", &self.x) .field("y", &self.y) @@ -947,10 +907,7 @@ pub mod wired { pub translation: Vec3, } impl ::core::fmt::Debug for Transform { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Transform") .field("rotation", &self.rotation) .field("scale", &self.scale) @@ -1003,7 +960,11 @@ pub mod wired { let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); let l3 = *ptr0.add(8).cast::(); - Vec3 { x: l1, y: l2, z: l3 } + Vec3 { + x: l1, + y: l2, + z: l3, + } } } #[allow(unused_unsafe, clippy::all)] @@ -1028,7 +989,12 @@ pub mod wired { let l2 = *ptr0.add(4).cast::(); let l3 = *ptr0.add(8).cast::(); let l4 = *ptr0.add(12).cast::(); - Quat { x: l1, y: l2, z: l3, w: l4 } + Quat { + x: l1, + y: l2, + z: l3, + w: l4, + } } } #[allow(unused_unsafe, clippy::all)] @@ -1060,9 +1026,22 @@ pub mod wired { let l9 = *ptr0.add(32).cast::(); let l10 = *ptr0.add(36).cast::(); Transform { - rotation: Quat { x: l1, y: l2, z: l3, w: l4 }, - scale: Vec3 { x: l5, y: l6, z: l7 }, - translation: Vec3 { x: l8, y: l9, z: l10 }, + rotation: Quat { + x: l1, + y: l2, + z: l3, + w: l4, + }, + scale: Vec3 { + x: l5, + y: l6, + z: l7, + }, + translation: Vec3 { + x: l8, + y: l9, + z: l10, + }, } } } @@ -1074,7 +1053,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Vec3 = super::super::super::wired::math::types::Vec3; #[derive(Debug)] @@ -1121,10 +1101,7 @@ pub mod wired { pub radius: f32, } impl ::core::fmt::Debug for ShapeCylinder { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("ShapeCylinder") .field("height", &self.height) .field("radius", &self.radius) @@ -1138,20 +1115,11 @@ pub mod wired { Sphere(f32), } impl ::core::fmt::Debug for Shape { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Shape::Cuboid(e) => { - f.debug_tuple("Shape::Cuboid").field(e).finish() - } - Shape::Cylinder(e) => { - f.debug_tuple("Shape::Cylinder").field(e).finish() - } - Shape::Sphere(e) => { - f.debug_tuple("Shape::Sphere").field(e).finish() - } + Shape::Cuboid(e) => f.debug_tuple("Shape::Cuboid").field(e).finish(), + Shape::Cylinder(e) => f.debug_tuple("Shape::Cylinder").field(e).finish(), + Shape::Sphere(e) => f.debug_tuple("Shape::Sphere").field(e).finish(), } } } @@ -1200,17 +1168,10 @@ pub mod wired { Kinematic, } impl ::core::fmt::Debug for RigidBodyType { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - RigidBodyType::Dynamic => { - f.debug_tuple("RigidBodyType::Dynamic").finish() - } - RigidBodyType::Fixed => { - f.debug_tuple("RigidBodyType::Fixed").finish() - } + RigidBodyType::Dynamic => f.debug_tuple("RigidBodyType::Dynamic").finish(), + RigidBodyType::Fixed => f.debug_tuple("RigidBodyType::Fixed").finish(), RigidBodyType::Kinematic => { f.debug_tuple("RigidBodyType::Kinematic").finish() } @@ -1245,7 +1206,10 @@ pub mod wired { (0i32, _rt::as_f32(x0), _rt::as_f32(y0), _rt::as_f32(z0)) } Shape::Cylinder(e) => { - let ShapeCylinder { height: height1, radius: radius1 } = e; + let ShapeCylinder { + height: height1, + radius: radius1, + } = e; (1i32, _rt::as_f32(height1), _rt::as_f32(radius1), 0.0f32) } Shape::Sphere(e) => (2i32, _rt::as_f32(e), 0.0f32, 0.0f32), @@ -1327,9 +1291,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:physics/types")] @@ -1387,9 +1349,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:physics/types")] @@ -1449,7 +1409,8 @@ pub mod wired { pub mod material { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; #[repr(C)] #[derive(Clone, Copy)] @@ -1460,10 +1421,7 @@ pub mod wired { pub a: f32, } impl ::core::fmt::Debug for Color { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Color") .field("r", &self.r) .field("g", &self.g) @@ -1573,9 +1531,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] @@ -1623,9 +1579,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 16]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 16], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 16]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] @@ -1655,7 +1609,12 @@ pub mod wired { #[allow(unused_unsafe, clippy::all)] pub fn set_color(&self, value: Color) { unsafe { - let Color { r: r0, g: g0, b: b0, a: a0 } = value; + let Color { + r: r0, + g: g0, + b: b0, + a: a0, + } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] extern "C" { @@ -1681,7 +1640,8 @@ pub mod wired { pub mod mesh { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Material = super::super::super::wired::scene::material::Material; #[derive(Debug)] @@ -1783,9 +1743,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -1985,9 +1943,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -2035,9 +1991,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -2101,10 +2055,7 @@ pub mod wired { fn wit_import(_: i32, _: i32) { unreachable!() } - wit_import( - (self).handle() as i32, - (&value).take_handle() as i32, - ); + wit_import((self).handle() as i32, (&value).take_handle() as i32); } } } @@ -2113,7 +2064,8 @@ pub mod wired { pub mod node { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Mesh = super::super::super::wired::scene::mesh::Mesh; pub type InputHandler = super::super::super::wired::input::handler::InputHandler; @@ -2221,9 +2173,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2271,9 +2221,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2346,9 +2294,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2382,9 +2328,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2434,9 +2378,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2561,9 +2503,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2621,9 +2561,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2681,9 +2619,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2741,9 +2677,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2808,7 +2742,8 @@ pub mod exports { pub mod container { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::super::__link_custom_section_describing_imports; use super::super::super::super::_rt; pub type Vec3 = super::super::super::super::wired::math::types::Vec3; pub type Node = super::super::super::super::wired::scene::node::Node; @@ -2820,18 +2755,11 @@ pub mod exports { Start, } impl ::core::fmt::Debug for Alignment { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Alignment::Center => { - f.debug_tuple("Alignment::Center").finish() - } + Alignment::Center => f.debug_tuple("Alignment::Center").finish(), Alignment::End => f.debug_tuple("Alignment::End").finish(), - Alignment::Start => { - f.debug_tuple("Alignment::Start").finish() - } + Alignment::Start => f.debug_tuple("Alignment::Start").finish(), } } } @@ -2865,9 +2793,7 @@ pub mod exports { pub fn new(val: T) -> Self { Self::type_guard::(); let val: _ContainerRep = Some(val); - let ptr: *mut _ContainerRep = _rt::Box::into_raw( - _rt::Box::new(val), - ); + let ptr: *mut _ContainerRep = _rt::Box::into_raw(_rt::Box::new(val)); unsafe { Self::from_handle(T::_resource_new(ptr.cast())) } } /// Gets access to the underlying `T` which represents this resource. @@ -2905,12 +2831,13 @@ pub mod exports { use core::any::TypeId; static mut LAST_TYPE: Option = None; unsafe { - assert!(! cfg!(target_feature = "atomics")); + assert!(!cfg!(target_feature = "atomics")); let id = TypeId::of::(); match LAST_TYPE { Some(ty) => { assert!( - ty == id, "cannot use two types with this resource type" + ty == id, + "cannot use two types with this resource type" ) } None => LAST_TYPE = Some(id), @@ -2960,9 +2887,7 @@ pub mod exports { unreachable!(); #[cfg(target_arch = "wasm32")] { - #[link( - wasm_import_module = "[export]unavi:layout/container" - )] + #[link(wasm_import_module = "[export]unavi:layout/container")] extern "C" { #[link_name = "[resource-drop]container"] fn drop(_: u32); @@ -2978,14 +2903,15 @@ pub mod exports { arg1: f32, arg2: f32, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = Container::new( - T::new(super::super::super::super::wired::math::types::Vec3 { + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = Container::new(T::new( + super::super::super::super::wired::math::types::Vec3 { x: arg0, y: arg1, z: arg2, - }), - ); + }, + )); (result0).take_handle() as i32 } #[doc(hidden)] @@ -2993,10 +2919,9 @@ pub mod exports { pub unsafe fn _export_method_container_ref_cabi( arg0: *mut u8, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::ref_( - ContainerBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::ref_(ContainerBorrow::lift(arg0 as u32 as usize).get()); (result0).take_handle() as i32 } #[doc(hidden)] @@ -3004,10 +2929,9 @@ pub mod exports { pub unsafe fn _export_method_container_root_cabi( arg0: *mut u8, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::root( - ContainerBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::root(ContainerBorrow::lift(arg0 as u32 as usize).get()); (result0).take_handle() as i32 } #[doc(hidden)] @@ -3015,28 +2939,24 @@ pub mod exports { pub unsafe fn _export_method_container_inner_cabi( arg0: *mut u8, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::inner( - ContainerBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::inner(ContainerBorrow::lift(arg0 as u32 as usize).get()); (result0).take_handle() as i32 } #[doc(hidden)] #[allow(non_snake_case)] - pub unsafe fn _export_method_container_list_children_cabi< - T: GuestContainer, - >(arg0: *mut u8) -> *mut u8 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::list_children( - ContainerBorrow::lift(arg0 as u32 as usize).get(), - ); + pub unsafe fn _export_method_container_list_children_cabi( + arg0: *mut u8, + ) -> *mut u8 { + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = + T::list_children(ContainerBorrow::lift(arg0 as u32 as usize).get()); let ptr1 = _RET_AREA.0.as_mut_ptr().cast::(); let vec2 = result0; let len2 = vec2.len(); - let layout2 = _rt::alloc::Layout::from_size_align_unchecked( - vec2.len() * 4, - 4, - ); + let layout2 = _rt::alloc::Layout::from_size_align_unchecked(vec2.len() * 4, 4); let result2 = if layout2.size() != 0 { let ptr = _rt::alloc::alloc(layout2).cast::(); if ptr.is_null() { @@ -3044,7 +2964,9 @@ pub mod exports { } ptr } else { - { ::core::ptr::null_mut() } + { + ::core::ptr::null_mut() + } }; for (i, e) in vec2.into_iter().enumerate() { let base = result2.add(i * 4); @@ -3058,9 +2980,9 @@ pub mod exports { } #[doc(hidden)] #[allow(non_snake_case)] - pub unsafe fn __post_return_method_container_list_children< - T: GuestContainer, - >(arg0: *mut u8) { + pub unsafe fn __post_return_method_container_list_children( + arg0: *mut u8, + ) { let l0 = *arg0.add(0).cast::<*mut u8>(); let l1 = *arg0.add(4).cast::(); let base2 = l0; @@ -3073,7 +2995,8 @@ pub mod exports { arg0: *mut u8, arg1: i32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::add_child( ContainerBorrow::lift(arg0 as u32 as usize).get(), ContainerBorrow::lift(arg1 as u32 as usize), @@ -3081,10 +3004,12 @@ pub mod exports { } #[doc(hidden)] #[allow(non_snake_case)] - pub unsafe fn _export_method_container_remove_child_cabi< - T: GuestContainer, - >(arg0: *mut u8, arg1: i32) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + pub unsafe fn _export_method_container_remove_child_cabi( + arg0: *mut u8, + arg1: i32, + ) { + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::remove_child( ContainerBorrow::lift(arg0 as u32 as usize).get(), ContainerBorrow::lift(arg1 as u32 as usize), @@ -3095,10 +3020,9 @@ pub mod exports { pub unsafe fn _export_method_container_size_cabi( arg0: *mut u8, ) -> *mut u8 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::size( - ContainerBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::size(ContainerBorrow::lift(arg0 as u32 as usize).get()); let ptr1 = _RET_AREA.0.as_mut_ptr().cast::(); let super::super::super::super::wired::math::types::Vec3 { x: x2, @@ -3118,7 +3042,8 @@ pub mod exports { arg2: f32, arg3: f32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::set_size( ContainerBorrow::lift(arg0 as u32 as usize).get(), super::super::super::super::wired::math::types::Vec3 { @@ -3133,10 +3058,9 @@ pub mod exports { pub unsafe fn _export_method_container_align_x_cabi( arg0: *mut u8, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::align_x( - ContainerBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::align_x(ContainerBorrow::lift(arg0 as u32 as usize).get()); result0.clone() as i32 } #[doc(hidden)] @@ -3144,10 +3068,9 @@ pub mod exports { pub unsafe fn _export_method_container_align_y_cabi( arg0: *mut u8, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::align_y( - ContainerBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::align_y(ContainerBorrow::lift(arg0 as u32 as usize).get()); result0.clone() as i32 } #[doc(hidden)] @@ -3155,18 +3078,19 @@ pub mod exports { pub unsafe fn _export_method_container_align_z_cabi( arg0: *mut u8, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::align_z( - ContainerBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::align_z(ContainerBorrow::lift(arg0 as u32 as usize).get()); result0.clone() as i32 } #[doc(hidden)] #[allow(non_snake_case)] - pub unsafe fn _export_method_container_set_align_x_cabi< - T: GuestContainer, - >(arg0: *mut u8, arg1: i32) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + pub unsafe fn _export_method_container_set_align_x_cabi( + arg0: *mut u8, + arg1: i32, + ) { + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::set_align_x( ContainerBorrow::lift(arg0 as u32 as usize).get(), Alignment::_lift(arg1 as u8), @@ -3174,10 +3098,12 @@ pub mod exports { } #[doc(hidden)] #[allow(non_snake_case)] - pub unsafe fn _export_method_container_set_align_y_cabi< - T: GuestContainer, - >(arg0: *mut u8, arg1: i32) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + pub unsafe fn _export_method_container_set_align_y_cabi( + arg0: *mut u8, + arg1: i32, + ) { + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::set_align_y( ContainerBorrow::lift(arg0 as u32 as usize).get(), Alignment::_lift(arg1 as u8), @@ -3185,10 +3111,12 @@ pub mod exports { } #[doc(hidden)] #[allow(non_snake_case)] - pub unsafe fn _export_method_container_set_align_z_cabi< - T: GuestContainer, - >(arg0: *mut u8, arg1: i32) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + pub unsafe fn _export_method_container_set_align_z_cabi( + arg0: *mut u8, + arg1: i32, + ) { + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::set_align_z( ContainerBorrow::lift(arg0 as u32 as usize).get(), Alignment::_lift(arg1 as u8), @@ -3210,9 +3138,7 @@ pub mod exports { } #[cfg(target_arch = "wasm32")] { - #[link( - wasm_import_module = "[export]unavi:layout/container" - )] + #[link(wasm_import_module = "[export]unavi:layout/container")] extern "C" { #[link_name = "[resource-new]container"] fn new(_: *mut u8) -> u32; @@ -3232,9 +3158,7 @@ pub mod exports { } #[cfg(target_arch = "wasm32")] { - #[link( - wasm_import_module = "[export]unavi:layout/container" - )] + #[link(wasm_import_module = "[export]unavi:layout/container")] extern "C" { #[link_name = "[resource-rep]container"] fn rep(_: u32) -> *mut u8; @@ -3362,20 +3286,21 @@ pub mod exports { pub(crate) use __export_unavi_layout_container_cabi; #[repr(align(4))] struct _RetArea([::core::mem::MaybeUninit; 12]); - static mut _RET_AREA: _RetArea = _RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 12]); } #[allow(dead_code, clippy::all)] pub mod grid { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::super::__link_custom_section_describing_imports; use super::super::super::super::_rt; - pub type Container = super::super::super::super::exports::unavi::layout::container::Container; - pub type ContainerBorrow<'a> = super::super::super::super::exports::unavi::layout::container::ContainerBorrow< - 'a, - >; + pub type Container = + super::super::super::super::exports::unavi::layout::container::Container; + pub type ContainerBorrow<'a> = + super::super::super::super::exports::unavi::layout::container::ContainerBorrow< + 'a, + >; pub type Vec3 = super::super::super::super::wired::math::types::Vec3; /// Creates a 3D grid of `container`s, with a set number of `rows` in each direction. #[derive(Debug)] @@ -3393,9 +3318,7 @@ pub mod exports { pub fn new(val: T) -> Self { Self::type_guard::(); let val: _GridRep = Some(val); - let ptr: *mut _GridRep = _rt::Box::into_raw( - _rt::Box::new(val), - ); + let ptr: *mut _GridRep = _rt::Box::into_raw(_rt::Box::new(val)); unsafe { Self::from_handle(T::_resource_new(ptr.cast())) } } /// Gets access to the underlying `T` which represents this resource. @@ -3433,12 +3356,13 @@ pub mod exports { use core::any::TypeId; static mut LAST_TYPE: Option = None; unsafe { - assert!(! cfg!(target_feature = "atomics")); + assert!(!cfg!(target_feature = "atomics")); let id = TypeId::of::(); match LAST_TYPE { Some(ty) => { assert!( - ty == id, "cannot use two types with this resource type" + ty == id, + "cannot use two types with this resource type" ) } None => LAST_TYPE = Some(id), @@ -3507,29 +3431,27 @@ pub mod exports { arg4: f32, arg5: f32, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = Grid::new( - T::new( - super::super::super::super::wired::math::types::Vec3 { - x: arg0, - y: arg1, - z: arg2, - }, - super::super::super::super::wired::math::types::Vec3 { - x: arg3, - y: arg4, - z: arg5, - }, - ), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = Grid::new(T::new( + super::super::super::super::wired::math::types::Vec3 { + x: arg0, + y: arg1, + z: arg2, + }, + super::super::super::super::wired::math::types::Vec3 { + x: arg3, + y: arg4, + z: arg5, + }, + )); (result0).take_handle() as i32 } #[doc(hidden)] #[allow(non_snake_case)] - pub unsafe fn _export_method_grid_root_cabi( - arg0: *mut u8, - ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + pub unsafe fn _export_method_grid_root_cabi(arg0: *mut u8) -> i32 { + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let result0 = T::root(GridBorrow::lift(arg0 as u32 as usize).get()); (result0).take_handle() as i32 } @@ -3538,15 +3460,13 @@ pub mod exports { pub unsafe fn _export_method_grid_cells_cabi( arg0: *mut u8, ) -> *mut u8 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let result0 = T::cells(GridBorrow::lift(arg0 as u32 as usize).get()); let ptr1 = _RET_AREA.0.as_mut_ptr().cast::(); let vec2 = result0; let len2 = vec2.len(); - let layout2 = _rt::alloc::Layout::from_size_align_unchecked( - vec2.len() * 4, - 4, - ); + let layout2 = _rt::alloc::Layout::from_size_align_unchecked(vec2.len() * 4, 4); let result2 = if layout2.size() != 0 { let ptr = _rt::alloc::alloc(layout2).cast::(); if ptr.is_null() { @@ -3554,7 +3474,9 @@ pub mod exports { } ptr } else { - { ::core::ptr::null_mut() } + { + ::core::ptr::null_mut() + } }; for (i, e) in vec2.into_iter().enumerate() { let base = result2.add(i * 4); @@ -3568,9 +3490,7 @@ pub mod exports { } #[doc(hidden)] #[allow(non_snake_case)] - pub unsafe fn __post_return_method_grid_cells( - arg0: *mut u8, - ) { + pub unsafe fn __post_return_method_grid_cells(arg0: *mut u8) { let l0 = *arg0.add(0).cast::<*mut u8>(); let l1 = *arg0.add(4).cast::(); let base2 = l0; @@ -3585,7 +3505,8 @@ pub mod exports { arg2: i32, arg3: i32, ) -> *mut u8 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let result0 = T::cell( GridBorrow::lift(arg0 as u32 as usize).get(), arg1 as u32, @@ -3609,7 +3530,8 @@ pub mod exports { pub unsafe fn _export_method_grid_rows_cabi( arg0: *mut u8, ) -> *mut u8 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let result0 = T::rows(GridBorrow::lift(arg0 as u32 as usize).get()); let ptr1 = _RET_AREA.0.as_mut_ptr().cast::(); let super::super::super::super::wired::math::types::Vec3 { @@ -3630,7 +3552,8 @@ pub mod exports { arg2: f32, arg3: f32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::set_rows( GridBorrow::lift(arg0 as u32 as usize).get(), super::super::super::super::wired::math::types::Vec3 { @@ -3740,9 +3663,7 @@ pub mod exports { pub(crate) use __export_unavi_layout_grid_cabi; #[repr(align(4))] struct _RetArea([::core::mem::MaybeUninit; 12]); - static mut _RET_AREA: _RetArea = _RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 12]); } } } @@ -3809,7 +3730,9 @@ mod _rt { } impl fmt::Debug for Resource { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("Resource").field("handle", &self.handle).finish() + f.debug_struct("Resource") + .field("handle", &self.handle) + .finish() } } impl Drop for Resource { diff --git a/wasm/unavi-scene/src/bindings.rs b/wasm/unavi-scene/src/bindings.rs index 3ef046d0b..de6155e70 100644 --- a/wasm/unavi-scene/src/bindings.rs +++ b/wasm/unavi-scene/src/bindings.rs @@ -6,7 +6,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; pub type Vec3 = super::super::super::wired::math::types::Vec3; pub type Quat = super::super::super::wired::math::types::Quat; #[repr(u8)] @@ -16,10 +17,7 @@ pub mod wired { Right, } impl ::core::fmt::Debug for HandSide { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { HandSide::Left => f.debug_tuple("HandSide::Left").finish(), HandSide::Right => f.debug_tuple("HandSide::Right").finish(), @@ -47,10 +45,7 @@ pub mod wired { pub radius: f32, } impl ::core::fmt::Debug for Joint { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Joint") .field("translation", &self.translation) .field("rotation", &self.rotation) @@ -67,10 +62,7 @@ pub mod wired { pub metacarpal: Joint, } impl ::core::fmt::Debug for Finger { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Finger") .field("tip", &self.tip) .field("distal", &self.distal) @@ -94,10 +86,7 @@ pub mod wired { pub elbow: Option, } impl ::core::fmt::Debug for Hand { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Hand") .field("side", &self.side) .field("thumb", &self.thumb) @@ -119,10 +108,7 @@ pub mod wired { pub origin: Vec3, } impl ::core::fmt::Debug for Ray { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Ray") .field("orientation", &self.orientation) .field("origin", &self.origin) @@ -135,17 +121,10 @@ pub mod wired { Ray(Ray), } impl ::core::fmt::Debug for InputData { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputData::Hand(e) => { - f.debug_tuple("InputData::Hand").field(e).finish() - } - InputData::Ray(e) => { - f.debug_tuple("InputData::Ray").field(e).finish() - } + InputData::Hand(e) => f.debug_tuple("InputData::Hand").field(e).finish(), + InputData::Ray(e) => f.debug_tuple("InputData::Ray").field(e).finish(), } } } @@ -155,17 +134,10 @@ pub mod wired { Hover, } impl ::core::fmt::Debug for InputAction { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputAction::Collision => { - f.debug_tuple("InputAction::Collision").finish() - } - InputAction::Hover => { - f.debug_tuple("InputAction::Hover").finish() - } + InputAction::Collision => f.debug_tuple("InputAction::Collision").finish(), + InputAction::Hover => f.debug_tuple("InputAction::Hover").finish(), } } } @@ -180,10 +152,7 @@ pub mod wired { pub data: InputData, } impl ::core::fmt::Debug for InputEvent { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("InputEvent") .field("id", &self.id) .field("action", &self.action) @@ -196,7 +165,8 @@ pub mod wired { pub mod handler { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type InputEvent = super::super::super::wired::input::types::InputEvent; #[derive(Debug)] @@ -263,9 +233,7 @@ pub mod wired { unsafe { #[repr(align(8))] struct RetArea([::core::mem::MaybeUninit; 768]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 768], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 768]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:input/handler")] @@ -881,7 +849,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; #[repr(C)] #[derive(Clone, Copy)] pub struct Vec2 { @@ -889,10 +858,7 @@ pub mod wired { pub y: f32, } impl ::core::fmt::Debug for Vec2 { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Vec2") .field("x", &self.x) .field("y", &self.y) @@ -907,10 +873,7 @@ pub mod wired { pub z: f32, } impl ::core::fmt::Debug for Vec3 { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Vec3") .field("x", &self.x) .field("y", &self.y) @@ -927,10 +890,7 @@ pub mod wired { pub w: f32, } impl ::core::fmt::Debug for Quat { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Quat") .field("x", &self.x) .field("y", &self.y) @@ -947,10 +907,7 @@ pub mod wired { pub translation: Vec3, } impl ::core::fmt::Debug for Transform { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Transform") .field("rotation", &self.rotation) .field("scale", &self.scale) @@ -1003,7 +960,11 @@ pub mod wired { let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); let l3 = *ptr0.add(8).cast::(); - Vec3 { x: l1, y: l2, z: l3 } + Vec3 { + x: l1, + y: l2, + z: l3, + } } } #[allow(unused_unsafe, clippy::all)] @@ -1028,7 +989,12 @@ pub mod wired { let l2 = *ptr0.add(4).cast::(); let l3 = *ptr0.add(8).cast::(); let l4 = *ptr0.add(12).cast::(); - Quat { x: l1, y: l2, z: l3, w: l4 } + Quat { + x: l1, + y: l2, + z: l3, + w: l4, + } } } #[allow(unused_unsafe, clippy::all)] @@ -1060,9 +1026,22 @@ pub mod wired { let l9 = *ptr0.add(32).cast::(); let l10 = *ptr0.add(36).cast::(); Transform { - rotation: Quat { x: l1, y: l2, z: l3, w: l4 }, - scale: Vec3 { x: l5, y: l6, z: l7 }, - translation: Vec3 { x: l8, y: l9, z: l10 }, + rotation: Quat { + x: l1, + y: l2, + z: l3, + w: l4, + }, + scale: Vec3 { + x: l5, + y: l6, + z: l7, + }, + translation: Vec3 { + x: l8, + y: l9, + z: l10, + }, } } } @@ -1074,7 +1053,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Vec3 = super::super::super::wired::math::types::Vec3; #[derive(Debug)] @@ -1121,10 +1101,7 @@ pub mod wired { pub radius: f32, } impl ::core::fmt::Debug for ShapeCylinder { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("ShapeCylinder") .field("height", &self.height) .field("radius", &self.radius) @@ -1138,20 +1115,11 @@ pub mod wired { Sphere(f32), } impl ::core::fmt::Debug for Shape { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Shape::Cuboid(e) => { - f.debug_tuple("Shape::Cuboid").field(e).finish() - } - Shape::Cylinder(e) => { - f.debug_tuple("Shape::Cylinder").field(e).finish() - } - Shape::Sphere(e) => { - f.debug_tuple("Shape::Sphere").field(e).finish() - } + Shape::Cuboid(e) => f.debug_tuple("Shape::Cuboid").field(e).finish(), + Shape::Cylinder(e) => f.debug_tuple("Shape::Cylinder").field(e).finish(), + Shape::Sphere(e) => f.debug_tuple("Shape::Sphere").field(e).finish(), } } } @@ -1200,17 +1168,10 @@ pub mod wired { Kinematic, } impl ::core::fmt::Debug for RigidBodyType { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - RigidBodyType::Dynamic => { - f.debug_tuple("RigidBodyType::Dynamic").finish() - } - RigidBodyType::Fixed => { - f.debug_tuple("RigidBodyType::Fixed").finish() - } + RigidBodyType::Dynamic => f.debug_tuple("RigidBodyType::Dynamic").finish(), + RigidBodyType::Fixed => f.debug_tuple("RigidBodyType::Fixed").finish(), RigidBodyType::Kinematic => { f.debug_tuple("RigidBodyType::Kinematic").finish() } @@ -1245,7 +1206,10 @@ pub mod wired { (0i32, _rt::as_f32(x0), _rt::as_f32(y0), _rt::as_f32(z0)) } Shape::Cylinder(e) => { - let ShapeCylinder { height: height1, radius: radius1 } = e; + let ShapeCylinder { + height: height1, + radius: radius1, + } = e; (1i32, _rt::as_f32(height1), _rt::as_f32(radius1), 0.0f32) } Shape::Sphere(e) => (2i32, _rt::as_f32(e), 0.0f32, 0.0f32), @@ -1327,9 +1291,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:physics/types")] @@ -1387,9 +1349,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:physics/types")] @@ -1449,7 +1409,8 @@ pub mod wired { pub mod material { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; #[repr(C)] #[derive(Clone, Copy)] @@ -1460,10 +1421,7 @@ pub mod wired { pub a: f32, } impl ::core::fmt::Debug for Color { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Color") .field("r", &self.r) .field("g", &self.g) @@ -1573,9 +1531,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] @@ -1623,9 +1579,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 16]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 16], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 16]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] @@ -1655,7 +1609,12 @@ pub mod wired { #[allow(unused_unsafe, clippy::all)] pub fn set_color(&self, value: Color) { unsafe { - let Color { r: r0, g: g0, b: b0, a: a0 } = value; + let Color { + r: r0, + g: g0, + b: b0, + a: a0, + } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] extern "C" { @@ -1681,7 +1640,8 @@ pub mod wired { pub mod mesh { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Material = super::super::super::wired::scene::material::Material; #[derive(Debug)] @@ -1783,9 +1743,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -1985,9 +1943,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -2035,9 +1991,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -2101,10 +2055,7 @@ pub mod wired { fn wit_import(_: i32, _: i32) { unreachable!() } - wit_import( - (self).handle() as i32, - (&value).take_handle() as i32, - ); + wit_import((self).handle() as i32, (&value).take_handle() as i32); } } } @@ -2113,7 +2064,8 @@ pub mod wired { pub mod node { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Mesh = super::super::super::wired::scene::mesh::Mesh; pub type InputHandler = super::super::super::wired::input::handler::InputHandler; @@ -2221,9 +2173,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2271,9 +2221,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2346,9 +2294,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2382,9 +2328,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2434,9 +2378,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2561,9 +2503,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2621,9 +2561,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2681,9 +2619,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2741,9 +2677,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2800,7 +2734,8 @@ pub mod wired { pub mod scene { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Node = super::super::super::wired::scene::node::Node; #[derive(Debug)] @@ -2884,9 +2819,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/scene")] @@ -2934,9 +2867,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/scene")] @@ -3010,7 +2941,8 @@ pub mod wired { pub mod gltf { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Material = super::super::super::wired::scene::material::Material; pub type Mesh = super::super::super::wired::scene::mesh::Mesh; @@ -3080,9 +3012,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -3157,9 +3087,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -3234,9 +3162,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -3311,9 +3237,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -3389,9 +3313,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -3451,9 +3373,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -3506,7 +3426,8 @@ pub mod wired { pub mod glxf { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Gltf = super::super::super::wired::scene::gltf::Gltf; pub type Node = super::super::super::wired::scene::node::Node; @@ -3629,10 +3550,7 @@ pub mod wired { Glxf(AssetGlxf), } impl ::core::fmt::Debug for Asset { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { Asset::Gltf(e) => f.debug_tuple("Asset::Gltf").field(e).finish(), Asset::Glxf(e) => f.debug_tuple("Asset::Glxf").field(e).finish(), @@ -3644,10 +3562,7 @@ pub mod wired { Glxf(&'a AssetGlxf), } impl<'a> ::core::fmt::Debug for AssetBorrow<'a> { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { AssetBorrow::Gltf(e) => { f.debug_tuple("AssetBorrow::Gltf").field(e).finish() @@ -3700,17 +3615,10 @@ pub mod wired { Nodes(_rt::Vec), } impl ::core::fmt::Debug for Children { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Children::Asset(e) => { - f.debug_tuple("Children::Asset").field(e).finish() - } - Children::Nodes(e) => { - f.debug_tuple("Children::Nodes").field(e).finish() - } + Children::Asset(e) => f.debug_tuple("Children::Asset").field(e).finish(), + Children::Nodes(e) => f.debug_tuple("Children::Nodes").field(e).finish(), } } } @@ -3719,10 +3627,7 @@ pub mod wired { Nodes(_rt::Vec<&'a GlxfNode>), } impl<'a> ::core::fmt::Debug for ChildrenBorrow<'a> { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { ChildrenBorrow::Asset(e) => { f.debug_tuple("ChildrenBorrow::Asset").field(e).finish() @@ -3813,9 +3718,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -3913,9 +3816,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -3988,9 +3889,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -4064,9 +3963,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -4124,9 +4021,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -4206,9 +4101,7 @@ pub mod wired { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::gltf::Gltf::from_handle( - ret as u32, - ) + super::super::super::wired::scene::gltf::Gltf::from_handle(ret as u32) } } } @@ -4220,9 +4113,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -4337,9 +4228,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -4450,9 +4339,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -4500,9 +4387,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -4627,9 +4512,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -4663,9 +4546,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 16]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 16], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 16]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -4697,7 +4578,10 @@ pub mod wired { Asset::Gltf(e6) } n => { - debug_assert_eq!(n, 1, "invalid enum discriminant"); + debug_assert_eq!( + n, 1, + "invalid enum discriminant" + ); let e6 = { let l5 = *ptr0.add(12).cast::(); AssetGlxf::from_handle(l5 as u32) @@ -4769,7 +4653,9 @@ pub mod wired { } ptr } else { - { ::core::ptr::null_mut() } + { + ::core::ptr::null_mut() + } }; for (i, e) in vec1.into_iter().enumerate() { let base = result1.add(i * 4); @@ -4854,9 +4740,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -4904,9 +4788,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -4986,7 +4868,8 @@ pub mod exports { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::super::__link_custom_section_describing_imports; use super::super::super::super::_rt; pub type Transform = super::super::super::super::wired::math::types::Transform; pub type Node = super::super::super::super::wired::scene::node::Node; @@ -5005,9 +4888,7 @@ pub mod exports { pub fn new(val: T) -> Self { Self::type_guard::(); let val: _RootRep = Some(val); - let ptr: *mut _RootRep = _rt::Box::into_raw( - _rt::Box::new(val), - ); + let ptr: *mut _RootRep = _rt::Box::into_raw(_rt::Box::new(val)); unsafe { Self::from_handle(T::_resource_new(ptr.cast())) } } /// Gets access to the underlying `T` which represents this resource. @@ -5045,12 +4926,13 @@ pub mod exports { use core::any::TypeId; static mut LAST_TYPE: Option = None; unsafe { - assert!(! cfg!(target_feature = "atomics")); + assert!(!cfg!(target_feature = "atomics")); let id = TypeId::of::(); match LAST_TYPE { Some(ty) => { assert!( - ty == id, "cannot use two types with this resource type" + ty == id, + "cannot use two types with this resource type" ) } None => LAST_TYPE = Some(id), @@ -5126,9 +5008,7 @@ pub mod exports { pub fn new(val: T) -> Self { Self::type_guard::(); let val: _SceneRep = Some(val); - let ptr: *mut _SceneRep = _rt::Box::into_raw( - _rt::Box::new(val), - ); + let ptr: *mut _SceneRep = _rt::Box::into_raw(_rt::Box::new(val)); unsafe { Self::from_handle(T::_resource_new(ptr.cast())) } } /// Gets access to the underlying `T` which represents this resource. @@ -5166,12 +5046,13 @@ pub mod exports { use core::any::TypeId; static mut LAST_TYPE: Option = None; unsafe { - assert!(! cfg!(target_feature = "atomics")); + assert!(!cfg!(target_feature = "atomics")); let id = TypeId::of::(); match LAST_TYPE { Some(ty) => { assert!( - ty == id, "cannot use two types with this resource type" + ty == id, + "cannot use two types with this resource type" ) } None => LAST_TYPE = Some(id), @@ -5233,15 +5114,13 @@ pub mod exports { #[doc(hidden)] #[allow(non_snake_case)] pub unsafe fn _export_static_root_list_scenes_cabi() -> *mut u8 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let result0 = T::list_scenes(); let ptr1 = _RET_AREA.0.as_mut_ptr().cast::(); let vec2 = result0; let len2 = vec2.len(); - let layout2 = _rt::alloc::Layout::from_size_align_unchecked( - vec2.len() * 4, - 4, - ); + let layout2 = _rt::alloc::Layout::from_size_align_unchecked(vec2.len() * 4, 4); let result2 = if layout2.size() != 0 { let ptr = _rt::alloc::alloc(layout2).cast::(); if ptr.is_null() { @@ -5249,7 +5128,9 @@ pub mod exports { } ptr } else { - { ::core::ptr::null_mut() } + { + ::core::ptr::null_mut() + } }; for (i, e) in vec2.into_iter().enumerate() { let base = result2.add(i * 4); @@ -5263,9 +5144,7 @@ pub mod exports { } #[doc(hidden)] #[allow(non_snake_case)] - pub unsafe fn __post_return_static_root_list_scenes( - arg0: *mut u8, - ) { + pub unsafe fn __post_return_static_root_list_scenes(arg0: *mut u8) { let l0 = *arg0.add(0).cast::<*mut u8>(); let l1 = *arg0.add(4).cast::(); let base2 = l0; @@ -5274,24 +5153,23 @@ pub mod exports { } #[doc(hidden)] #[allow(non_snake_case)] - pub unsafe fn _export_static_root_add_scene_cabi( - arg0: i32, - ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + pub unsafe fn _export_static_root_add_scene_cabi(arg0: i32) { + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::add_scene(SceneBorrow::lift(arg0 as u32 as usize)); } #[doc(hidden)] #[allow(non_snake_case)] - pub unsafe fn _export_static_root_remove_scene_cabi( - arg0: i32, - ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + pub unsafe fn _export_static_root_remove_scene_cabi(arg0: i32) { + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::remove_scene(SceneBorrow::lift(arg0 as u32 as usize)); } #[doc(hidden)] #[allow(non_snake_case)] pub unsafe fn _export_constructor_scene_cabi() -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let result0 = Scene::new(T::new()); (result0).take_handle() as i32 } @@ -5300,17 +5178,13 @@ pub mod exports { pub unsafe fn _export_method_scene_list_nodes_cabi( arg0: *mut u8, ) -> *mut u8 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::list_nodes( - SceneBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::list_nodes(SceneBorrow::lift(arg0 as u32 as usize).get()); let ptr1 = _RET_AREA.0.as_mut_ptr().cast::(); let vec2 = result0; let len2 = vec2.len(); - let layout2 = _rt::alloc::Layout::from_size_align_unchecked( - vec2.len() * 4, - 4, - ); + let layout2 = _rt::alloc::Layout::from_size_align_unchecked(vec2.len() * 4, 4); let result2 = if layout2.size() != 0 { let ptr = _rt::alloc::alloc(layout2).cast::(); if ptr.is_null() { @@ -5318,7 +5192,9 @@ pub mod exports { } ptr } else { - { ::core::ptr::null_mut() } + { + ::core::ptr::null_mut() + } }; for (i, e) in vec2.into_iter().enumerate() { let base = result2.add(i * 4); @@ -5332,9 +5208,7 @@ pub mod exports { } #[doc(hidden)] #[allow(non_snake_case)] - pub unsafe fn __post_return_method_scene_list_nodes( - arg0: *mut u8, - ) { + pub unsafe fn __post_return_method_scene_list_nodes(arg0: *mut u8) { let l0 = *arg0.add(0).cast::<*mut u8>(); let l1 = *arg0.add(4).cast::(); let base2 = l0; @@ -5346,10 +5220,9 @@ pub mod exports { pub unsafe fn _export_method_scene_create_node_cabi( arg0: *mut u8, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::create_node( - SceneBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::create_node(SceneBorrow::lift(arg0 as u32 as usize).get()); (result0).take_handle() as i32 } #[doc(hidden)] @@ -5358,17 +5231,15 @@ pub mod exports { arg0: *mut u8, arg1: i32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let handle0; - T::add_node( - SceneBorrow::lift(arg0 as u32 as usize).get(), - { - handle0 = super::super::super::super::wired::scene::node::Node::from_handle( - arg1 as u32, - ); - &handle0 - }, - ); + T::add_node(SceneBorrow::lift(arg0 as u32 as usize).get(), { + handle0 = super::super::super::super::wired::scene::node::Node::from_handle( + arg1 as u32, + ); + &handle0 + }); } #[doc(hidden)] #[allow(non_snake_case)] @@ -5376,27 +5247,24 @@ pub mod exports { arg0: *mut u8, arg1: i32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let handle0; - T::remove_node( - SceneBorrow::lift(arg0 as u32 as usize).get(), - { - handle0 = super::super::super::super::wired::scene::node::Node::from_handle( - arg1 as u32, - ); - &handle0 - }, - ); + T::remove_node(SceneBorrow::lift(arg0 as u32 as usize).get(), { + handle0 = super::super::super::super::wired::scene::node::Node::from_handle( + arg1 as u32, + ); + &handle0 + }); } #[doc(hidden)] #[allow(non_snake_case)] pub unsafe fn _export_method_scene_transform_cabi( arg0: *mut u8, ) -> *mut u8 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::transform( - SceneBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::transform(SceneBorrow::lift(arg0 as u32 as usize).get()); let ptr1 = _RET_AREA.0.as_mut_ptr().cast::(); let super::super::super::super::wired::math::types::Transform { rotation: rotation2, @@ -5446,7 +5314,8 @@ pub mod exports { arg9: f32, arg10: f32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::set_transform( SceneBorrow::lift(arg0 as u32 as usize).get(), super::super::super::super::wired::math::types::Transform { @@ -5474,10 +5343,9 @@ pub mod exports { pub unsafe fn _export_method_scene_active_cabi( arg0: *mut u8, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::active( - SceneBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::active(SceneBorrow::lift(arg0 as u32 as usize).get()); match result0 { true => 1, false => 0, @@ -5489,7 +5357,8 @@ pub mod exports { arg0: *mut u8, arg1: i32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::set_active( SceneBorrow::lift(arg0 as u32 as usize).get(), _rt::bool_lift(arg1 as u8), @@ -5681,9 +5550,7 @@ pub mod exports { pub(crate) use __export_unavi_scene_api_cabi; #[repr(align(4))] struct _RetArea([::core::mem::MaybeUninit; 40]); - static mut _RET_AREA: _RetArea = _RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 40]); } } } @@ -5750,7 +5617,9 @@ mod _rt { } impl fmt::Debug for Resource { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("Resource").field("handle", &self.handle).finish() + f.debug_struct("Resource") + .field("handle", &self.handle) + .finish() } } impl Drop for Resource { diff --git a/wasm/unavi-shapes/src/bindings.rs b/wasm/unavi-shapes/src/bindings.rs index be50ad04e..2a4acaa60 100644 --- a/wasm/unavi-shapes/src/bindings.rs +++ b/wasm/unavi-shapes/src/bindings.rs @@ -6,7 +6,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; pub type Vec3 = super::super::super::wired::math::types::Vec3; pub type Quat = super::super::super::wired::math::types::Quat; #[repr(u8)] @@ -16,10 +17,7 @@ pub mod wired { Right, } impl ::core::fmt::Debug for HandSide { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { HandSide::Left => f.debug_tuple("HandSide::Left").finish(), HandSide::Right => f.debug_tuple("HandSide::Right").finish(), @@ -47,10 +45,7 @@ pub mod wired { pub radius: f32, } impl ::core::fmt::Debug for Joint { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Joint") .field("translation", &self.translation) .field("rotation", &self.rotation) @@ -67,10 +62,7 @@ pub mod wired { pub metacarpal: Joint, } impl ::core::fmt::Debug for Finger { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Finger") .field("tip", &self.tip) .field("distal", &self.distal) @@ -94,10 +86,7 @@ pub mod wired { pub elbow: Option, } impl ::core::fmt::Debug for Hand { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Hand") .field("side", &self.side) .field("thumb", &self.thumb) @@ -119,10 +108,7 @@ pub mod wired { pub origin: Vec3, } impl ::core::fmt::Debug for Ray { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Ray") .field("orientation", &self.orientation) .field("origin", &self.origin) @@ -135,17 +121,10 @@ pub mod wired { Ray(Ray), } impl ::core::fmt::Debug for InputData { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputData::Hand(e) => { - f.debug_tuple("InputData::Hand").field(e).finish() - } - InputData::Ray(e) => { - f.debug_tuple("InputData::Ray").field(e).finish() - } + InputData::Hand(e) => f.debug_tuple("InputData::Hand").field(e).finish(), + InputData::Ray(e) => f.debug_tuple("InputData::Ray").field(e).finish(), } } } @@ -155,17 +134,10 @@ pub mod wired { Hover, } impl ::core::fmt::Debug for InputAction { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputAction::Collision => { - f.debug_tuple("InputAction::Collision").finish() - } - InputAction::Hover => { - f.debug_tuple("InputAction::Hover").finish() - } + InputAction::Collision => f.debug_tuple("InputAction::Collision").finish(), + InputAction::Hover => f.debug_tuple("InputAction::Hover").finish(), } } } @@ -180,10 +152,7 @@ pub mod wired { pub data: InputData, } impl ::core::fmt::Debug for InputEvent { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("InputEvent") .field("id", &self.id) .field("action", &self.action) @@ -196,7 +165,8 @@ pub mod wired { pub mod handler { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type InputEvent = super::super::super::wired::input::types::InputEvent; #[derive(Debug)] @@ -263,9 +233,7 @@ pub mod wired { unsafe { #[repr(align(8))] struct RetArea([::core::mem::MaybeUninit; 768]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 768], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 768]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:input/handler")] @@ -881,7 +849,8 @@ pub mod wired { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; #[repr(u8)] #[derive(Clone, Copy, Eq, PartialEq)] pub enum LogLevel { @@ -891,10 +860,7 @@ pub mod wired { Error, } impl ::core::fmt::Debug for LogLevel { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { LogLevel::Debug => f.debug_tuple("LogLevel::Debug").finish(), LogLevel::Info => f.debug_tuple("LogLevel::Info").finish(), @@ -945,7 +911,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; #[repr(C)] #[derive(Clone, Copy)] pub struct Vec2 { @@ -953,10 +920,7 @@ pub mod wired { pub y: f32, } impl ::core::fmt::Debug for Vec2 { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Vec2") .field("x", &self.x) .field("y", &self.y) @@ -971,10 +935,7 @@ pub mod wired { pub z: f32, } impl ::core::fmt::Debug for Vec3 { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Vec3") .field("x", &self.x) .field("y", &self.y) @@ -991,10 +952,7 @@ pub mod wired { pub w: f32, } impl ::core::fmt::Debug for Quat { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Quat") .field("x", &self.x) .field("y", &self.y) @@ -1011,10 +969,7 @@ pub mod wired { pub translation: Vec3, } impl ::core::fmt::Debug for Transform { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Transform") .field("rotation", &self.rotation) .field("scale", &self.scale) @@ -1067,7 +1022,11 @@ pub mod wired { let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); let l3 = *ptr0.add(8).cast::(); - Vec3 { x: l1, y: l2, z: l3 } + Vec3 { + x: l1, + y: l2, + z: l3, + } } } #[allow(unused_unsafe, clippy::all)] @@ -1092,7 +1051,12 @@ pub mod wired { let l2 = *ptr0.add(4).cast::(); let l3 = *ptr0.add(8).cast::(); let l4 = *ptr0.add(12).cast::(); - Quat { x: l1, y: l2, z: l3, w: l4 } + Quat { + x: l1, + y: l2, + z: l3, + w: l4, + } } } #[allow(unused_unsafe, clippy::all)] @@ -1124,9 +1088,22 @@ pub mod wired { let l9 = *ptr0.add(32).cast::(); let l10 = *ptr0.add(36).cast::(); Transform { - rotation: Quat { x: l1, y: l2, z: l3, w: l4 }, - scale: Vec3 { x: l5, y: l6, z: l7 }, - translation: Vec3 { x: l8, y: l9, z: l10 }, + rotation: Quat { + x: l1, + y: l2, + z: l3, + w: l4, + }, + scale: Vec3 { + x: l5, + y: l6, + z: l7, + }, + translation: Vec3 { + x: l8, + y: l9, + z: l10, + }, } } } @@ -1138,7 +1115,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Vec3 = super::super::super::wired::math::types::Vec3; #[derive(Debug)] @@ -1185,10 +1163,7 @@ pub mod wired { pub radius: f32, } impl ::core::fmt::Debug for ShapeCylinder { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("ShapeCylinder") .field("height", &self.height) .field("radius", &self.radius) @@ -1202,20 +1177,11 @@ pub mod wired { Sphere(f32), } impl ::core::fmt::Debug for Shape { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Shape::Cuboid(e) => { - f.debug_tuple("Shape::Cuboid").field(e).finish() - } - Shape::Cylinder(e) => { - f.debug_tuple("Shape::Cylinder").field(e).finish() - } - Shape::Sphere(e) => { - f.debug_tuple("Shape::Sphere").field(e).finish() - } + Shape::Cuboid(e) => f.debug_tuple("Shape::Cuboid").field(e).finish(), + Shape::Cylinder(e) => f.debug_tuple("Shape::Cylinder").field(e).finish(), + Shape::Sphere(e) => f.debug_tuple("Shape::Sphere").field(e).finish(), } } } @@ -1264,17 +1230,10 @@ pub mod wired { Kinematic, } impl ::core::fmt::Debug for RigidBodyType { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - RigidBodyType::Dynamic => { - f.debug_tuple("RigidBodyType::Dynamic").finish() - } - RigidBodyType::Fixed => { - f.debug_tuple("RigidBodyType::Fixed").finish() - } + RigidBodyType::Dynamic => f.debug_tuple("RigidBodyType::Dynamic").finish(), + RigidBodyType::Fixed => f.debug_tuple("RigidBodyType::Fixed").finish(), RigidBodyType::Kinematic => { f.debug_tuple("RigidBodyType::Kinematic").finish() } @@ -1309,7 +1268,10 @@ pub mod wired { (0i32, _rt::as_f32(x0), _rt::as_f32(y0), _rt::as_f32(z0)) } Shape::Cylinder(e) => { - let ShapeCylinder { height: height1, radius: radius1 } = e; + let ShapeCylinder { + height: height1, + radius: radius1, + } = e; (1i32, _rt::as_f32(height1), _rt::as_f32(radius1), 0.0f32) } Shape::Sphere(e) => (2i32, _rt::as_f32(e), 0.0f32, 0.0f32), @@ -1391,9 +1353,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:physics/types")] @@ -1451,9 +1411,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:physics/types")] @@ -1513,7 +1471,8 @@ pub mod wired { pub mod material { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; #[repr(C)] #[derive(Clone, Copy)] @@ -1524,10 +1483,7 @@ pub mod wired { pub a: f32, } impl ::core::fmt::Debug for Color { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Color") .field("r", &self.r) .field("g", &self.g) @@ -1637,9 +1593,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] @@ -1687,9 +1641,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 16]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 16], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 16]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] @@ -1719,7 +1671,12 @@ pub mod wired { #[allow(unused_unsafe, clippy::all)] pub fn set_color(&self, value: Color) { unsafe { - let Color { r: r0, g: g0, b: b0, a: a0 } = value; + let Color { + r: r0, + g: g0, + b: b0, + a: a0, + } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] extern "C" { @@ -1745,7 +1702,8 @@ pub mod wired { pub mod mesh { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Material = super::super::super::wired::scene::material::Material; #[derive(Debug)] @@ -1847,9 +1805,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -2049,9 +2005,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -2099,9 +2053,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -2165,10 +2117,7 @@ pub mod wired { fn wit_import(_: i32, _: i32) { unreachable!() } - wit_import( - (self).handle() as i32, - (&value).take_handle() as i32, - ); + wit_import((self).handle() as i32, (&value).take_handle() as i32); } } } @@ -2177,7 +2126,8 @@ pub mod wired { pub mod node { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Mesh = super::super::super::wired::scene::mesh::Mesh; pub type InputHandler = super::super::super::wired::input::handler::InputHandler; @@ -2285,9 +2235,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2335,9 +2283,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2410,9 +2356,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2446,9 +2390,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2498,9 +2440,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2625,9 +2565,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2685,9 +2623,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2745,9 +2681,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2805,9 +2739,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -2872,7 +2804,8 @@ pub mod exports { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::super::__link_custom_section_describing_imports; use super::super::super::super::_rt; pub type Vec2 = super::super::super::super::wired::math::types::Vec2; pub type Vec3 = super::super::super::super::wired::math::types::Vec3; @@ -2893,9 +2826,7 @@ pub mod exports { pub fn new(val: T) -> Self { Self::type_guard::(); let val: _RectangleRep = Some(val); - let ptr: *mut _RectangleRep = _rt::Box::into_raw( - _rt::Box::new(val), - ); + let ptr: *mut _RectangleRep = _rt::Box::into_raw(_rt::Box::new(val)); unsafe { Self::from_handle(T::_resource_new(ptr.cast())) } } /// Gets access to the underlying `T` which represents this resource. @@ -2933,12 +2864,13 @@ pub mod exports { use core::any::TypeId; static mut LAST_TYPE: Option = None; unsafe { - assert!(! cfg!(target_feature = "atomics")); + assert!(!cfg!(target_feature = "atomics")); let id = TypeId::of::(); match LAST_TYPE { Some(ty) => { assert!( - ty == id, "cannot use two types with this resource type" + ty == id, + "cannot use two types with this resource type" ) } None => LAST_TYPE = Some(id), @@ -3012,9 +2944,7 @@ pub mod exports { pub fn new(val: T) -> Self { Self::type_guard::(); let val: _CircleRep = Some(val); - let ptr: *mut _CircleRep = _rt::Box::into_raw( - _rt::Box::new(val), - ); + let ptr: *mut _CircleRep = _rt::Box::into_raw(_rt::Box::new(val)); unsafe { Self::from_handle(T::_resource_new(ptr.cast())) } } /// Gets access to the underlying `T` which represents this resource. @@ -3052,12 +2982,13 @@ pub mod exports { use core::any::TypeId; static mut LAST_TYPE: Option = None; unsafe { - assert!(! cfg!(target_feature = "atomics")); + assert!(!cfg!(target_feature = "atomics")); let id = TypeId::of::(); match LAST_TYPE { Some(ty) => { assert!( - ty == id, "cannot use two types with this resource type" + ty == id, + "cannot use two types with this resource type" ) } None => LAST_TYPE = Some(id), @@ -3131,9 +3062,7 @@ pub mod exports { pub fn new(val: T) -> Self { Self::type_guard::(); let val: _EllipseRep = Some(val); - let ptr: *mut _EllipseRep = _rt::Box::into_raw( - _rt::Box::new(val), - ); + let ptr: *mut _EllipseRep = _rt::Box::into_raw(_rt::Box::new(val)); unsafe { Self::from_handle(T::_resource_new(ptr.cast())) } } /// Gets access to the underlying `T` which represents this resource. @@ -3171,12 +3100,13 @@ pub mod exports { use core::any::TypeId; static mut LAST_TYPE: Option = None; unsafe { - assert!(! cfg!(target_feature = "atomics")); + assert!(!cfg!(target_feature = "atomics")); let id = TypeId::of::(); match LAST_TYPE { Some(ty) => { assert!( - ty == id, "cannot use two types with this resource type" + ty == id, + "cannot use two types with this resource type" ) } None => LAST_TYPE = Some(id), @@ -3250,9 +3180,7 @@ pub mod exports { pub fn new(val: T) -> Self { Self::type_guard::(); let val: _CylinderRep = Some(val); - let ptr: *mut _CylinderRep = _rt::Box::into_raw( - _rt::Box::new(val), - ); + let ptr: *mut _CylinderRep = _rt::Box::into_raw(_rt::Box::new(val)); unsafe { Self::from_handle(T::_resource_new(ptr.cast())) } } /// Gets access to the underlying `T` which represents this resource. @@ -3290,12 +3218,13 @@ pub mod exports { use core::any::TypeId; static mut LAST_TYPE: Option = None; unsafe { - assert!(! cfg!(target_feature = "atomics")); + assert!(!cfg!(target_feature = "atomics")); let id = TypeId::of::(); match LAST_TYPE { Some(ty) => { assert!( - ty == id, "cannot use two types with this resource type" + ty == id, + "cannot use two types with this resource type" ) } None => LAST_TYPE = Some(id), @@ -3369,9 +3298,7 @@ pub mod exports { pub fn new(val: T) -> Self { Self::type_guard::(); let val: _CuboidRep = Some(val); - let ptr: *mut _CuboidRep = _rt::Box::into_raw( - _rt::Box::new(val), - ); + let ptr: *mut _CuboidRep = _rt::Box::into_raw(_rt::Box::new(val)); unsafe { Self::from_handle(T::_resource_new(ptr.cast())) } } /// Gets access to the underlying `T` which represents this resource. @@ -3409,12 +3336,13 @@ pub mod exports { use core::any::TypeId; static mut LAST_TYPE: Option = None; unsafe { - assert!(! cfg!(target_feature = "atomics")); + assert!(!cfg!(target_feature = "atomics")); let id = TypeId::of::(); match LAST_TYPE { Some(ty) => { assert!( - ty == id, "cannot use two types with this resource type" + ty == id, + "cannot use two types with this resource type" ) } None => LAST_TYPE = Some(id), @@ -3479,10 +3407,7 @@ pub mod exports { pub subdivisions: u8, } impl ::core::fmt::Debug for SphereIco { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("SphereIco") .field("subdivisions", &self.subdivisions) .finish() @@ -3495,10 +3420,7 @@ pub mod exports { pub stacks: u8, } impl ::core::fmt::Debug for SphereUv { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("SphereUv") .field("sectors", &self.sectors) .field("stacks", &self.stacks) @@ -3513,17 +3435,12 @@ pub mod exports { Uv(SphereUv), } impl ::core::fmt::Debug for SphereKind { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { SphereKind::Ico(e) => { f.debug_tuple("SphereKind::Ico").field(e).finish() } - SphereKind::Uv(e) => { - f.debug_tuple("SphereKind::Uv").field(e).finish() - } + SphereKind::Uv(e) => f.debug_tuple("SphereKind::Uv").field(e).finish(), } } } @@ -3542,9 +3459,7 @@ pub mod exports { pub fn new(val: T) -> Self { Self::type_guard::(); let val: _SphereRep = Some(val); - let ptr: *mut _SphereRep = _rt::Box::into_raw( - _rt::Box::new(val), - ); + let ptr: *mut _SphereRep = _rt::Box::into_raw(_rt::Box::new(val)); unsafe { Self::from_handle(T::_resource_new(ptr.cast())) } } /// Gets access to the underlying `T` which represents this resource. @@ -3582,12 +3497,13 @@ pub mod exports { use core::any::TypeId; static mut LAST_TYPE: Option = None; unsafe { - assert!(! cfg!(target_feature = "atomics")); + assert!(!cfg!(target_feature = "atomics")); let id = TypeId::of::(); match LAST_TYPE { Some(ty) => { assert!( - ty == id, "cannot use two types with this resource type" + ty == id, + "cannot use two types with this resource type" ) } None => LAST_TYPE = Some(id), @@ -3661,9 +3577,7 @@ pub mod exports { pub fn new(val: T) -> Self { Self::type_guard::(); let val: _AxesRep = Some(val); - let ptr: *mut _AxesRep = _rt::Box::into_raw( - _rt::Box::new(val), - ); + let ptr: *mut _AxesRep = _rt::Box::into_raw(_rt::Box::new(val)); unsafe { Self::from_handle(T::_resource_new(ptr.cast())) } } /// Gets access to the underlying `T` which represents this resource. @@ -3701,12 +3615,13 @@ pub mod exports { use core::any::TypeId; static mut LAST_TYPE: Option = None; unsafe { - assert!(! cfg!(target_feature = "atomics")); + assert!(!cfg!(target_feature = "atomics")); let id = TypeId::of::(); match LAST_TYPE { Some(ty) => { assert!( - ty == id, "cannot use two types with this resource type" + ty == id, + "cannot use two types with this resource type" ) } None => LAST_TYPE = Some(id), @@ -3771,13 +3686,11 @@ pub mod exports { arg0: f32, arg1: f32, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = Rectangle::new( - T::new(super::super::super::super::wired::math::types::Vec2 { - x: arg0, - y: arg1, - }), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = Rectangle::new(T::new( + super::super::super::super::wired::math::types::Vec2 { x: arg0, y: arg1 }, + )); (result0).take_handle() as i32 } #[doc(hidden)] @@ -3785,15 +3698,12 @@ pub mod exports { pub unsafe fn _export_method_rectangle_size_cabi( arg0: *mut u8, ) -> *mut u8 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::size( - RectangleBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::size(RectangleBorrow::lift(arg0 as u32 as usize).get()); let ptr1 = _RET_AREA.0.as_mut_ptr().cast::(); - let super::super::super::super::wired::math::types::Vec2 { - x: x2, - y: y2, - } = result0; + let super::super::super::super::wired::math::types::Vec2 { x: x2, y: y2 } = + result0; *ptr1.add(0).cast::() = _rt::as_f32(x2); *ptr1.add(4).cast::() = _rt::as_f32(y2); ptr1 @@ -3805,13 +3715,11 @@ pub mod exports { arg1: f32, arg2: f32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::set_size( RectangleBorrow::lift(arg0 as u32 as usize).get(), - super::super::super::super::wired::math::types::Vec2 { - x: arg1, - y: arg2, - }, + super::super::super::super::wired::math::types::Vec2 { x: arg1, y: arg2 }, ); } #[doc(hidden)] @@ -3819,10 +3727,9 @@ pub mod exports { pub unsafe fn _export_method_rectangle_to_mesh_cabi( arg0: *mut u8, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::to_mesh( - RectangleBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::to_mesh(RectangleBorrow::lift(arg0 as u32 as usize).get()); (result0).take_handle() as i32 } #[doc(hidden)] @@ -3830,29 +3737,27 @@ pub mod exports { pub unsafe fn _export_method_rectangle_to_node_cabi( arg0: *mut u8, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::to_node( - RectangleBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::to_node(RectangleBorrow::lift(arg0 as u32 as usize).get()); (result0).take_handle() as i32 } #[doc(hidden)] #[allow(non_snake_case)] - pub unsafe fn _export_method_rectangle_to_physics_node_cabi< - T: GuestRectangle, - >(arg0: *mut u8) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::to_physics_node( - RectangleBorrow::lift(arg0 as u32 as usize).get(), - ); + pub unsafe fn _export_method_rectangle_to_physics_node_cabi( + arg0: *mut u8, + ) -> i32 { + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = + T::to_physics_node(RectangleBorrow::lift(arg0 as u32 as usize).get()); (result0).take_handle() as i32 } #[doc(hidden)] #[allow(non_snake_case)] - pub unsafe fn _export_constructor_circle_cabi( - arg0: f32, - ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + pub unsafe fn _export_constructor_circle_cabi(arg0: f32) -> i32 { + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let result0 = Circle::new(T::new(arg0)); (result0).take_handle() as i32 } @@ -3861,10 +3766,9 @@ pub mod exports { pub unsafe fn _export_method_circle_radius_cabi( arg0: *mut u8, ) -> f32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::radius( - CircleBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::radius(CircleBorrow::lift(arg0 as u32 as usize).get()); _rt::as_f32(result0) } #[doc(hidden)] @@ -3873,7 +3777,8 @@ pub mod exports { arg0: *mut u8, arg1: f32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::set_radius(CircleBorrow::lift(arg0 as u32 as usize).get(), arg1); } #[doc(hidden)] @@ -3881,10 +3786,9 @@ pub mod exports { pub unsafe fn _export_method_circle_resolution_cabi( arg0: *mut u8, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::resolution( - CircleBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::resolution(CircleBorrow::lift(arg0 as u32 as usize).get()); _rt::as_i32(result0) } #[doc(hidden)] @@ -3893,21 +3797,18 @@ pub mod exports { arg0: *mut u8, arg1: i32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - T::set_resolution( - CircleBorrow::lift(arg0 as u32 as usize).get(), - arg1 as u16, - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + T::set_resolution(CircleBorrow::lift(arg0 as u32 as usize).get(), arg1 as u16); } #[doc(hidden)] #[allow(non_snake_case)] pub unsafe fn _export_method_circle_to_mesh_cabi( arg0: *mut u8, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::to_mesh( - CircleBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::to_mesh(CircleBorrow::lift(arg0 as u32 as usize).get()); (result0).take_handle() as i32 } #[doc(hidden)] @@ -3915,10 +3816,9 @@ pub mod exports { pub unsafe fn _export_method_circle_to_node_cabi( arg0: *mut u8, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::to_node( - CircleBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::to_node(CircleBorrow::lift(arg0 as u32 as usize).get()); (result0).take_handle() as i32 } #[doc(hidden)] @@ -3926,10 +3826,10 @@ pub mod exports { pub unsafe fn _export_method_circle_to_physics_node_cabi( arg0: *mut u8, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::to_physics_node( - CircleBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = + T::to_physics_node(CircleBorrow::lift(arg0 as u32 as usize).get()); (result0).take_handle() as i32 } #[doc(hidden)] @@ -3938,13 +3838,11 @@ pub mod exports { arg0: f32, arg1: f32, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = Ellipse::new( - T::new(super::super::super::super::wired::math::types::Vec2 { - x: arg0, - y: arg1, - }), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = Ellipse::new(T::new( + super::super::super::super::wired::math::types::Vec2 { x: arg0, y: arg1 }, + )); (result0).take_handle() as i32 } #[doc(hidden)] @@ -3952,15 +3850,12 @@ pub mod exports { pub unsafe fn _export_method_ellipse_half_size_cabi( arg0: *mut u8, ) -> *mut u8 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::half_size( - EllipseBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::half_size(EllipseBorrow::lift(arg0 as u32 as usize).get()); let ptr1 = _RET_AREA.0.as_mut_ptr().cast::(); - let super::super::super::super::wired::math::types::Vec2 { - x: x2, - y: y2, - } = result0; + let super::super::super::super::wired::math::types::Vec2 { x: x2, y: y2 } = + result0; *ptr1.add(0).cast::() = _rt::as_f32(x2); *ptr1.add(4).cast::() = _rt::as_f32(y2); ptr1 @@ -3972,13 +3867,11 @@ pub mod exports { arg1: f32, arg2: f32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::set_half_size( EllipseBorrow::lift(arg0 as u32 as usize).get(), - super::super::super::super::wired::math::types::Vec2 { - x: arg1, - y: arg2, - }, + super::super::super::super::wired::math::types::Vec2 { x: arg1, y: arg2 }, ); } #[doc(hidden)] @@ -3986,32 +3879,29 @@ pub mod exports { pub unsafe fn _export_method_ellipse_resolution_cabi( arg0: *mut u8, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::resolution( - EllipseBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::resolution(EllipseBorrow::lift(arg0 as u32 as usize).get()); _rt::as_i32(result0) } #[doc(hidden)] #[allow(non_snake_case)] - pub unsafe fn _export_method_ellipse_set_resolution_cabi< - T: GuestEllipse, - >(arg0: *mut u8, arg1: i32) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - T::set_resolution( - EllipseBorrow::lift(arg0 as u32 as usize).get(), - arg1 as u16, - ); + pub unsafe fn _export_method_ellipse_set_resolution_cabi( + arg0: *mut u8, + arg1: i32, + ) { + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + T::set_resolution(EllipseBorrow::lift(arg0 as u32 as usize).get(), arg1 as u16); } #[doc(hidden)] #[allow(non_snake_case)] pub unsafe fn _export_method_ellipse_to_mesh_cabi( arg0: *mut u8, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::to_mesh( - EllipseBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::to_mesh(EllipseBorrow::lift(arg0 as u32 as usize).get()); (result0).take_handle() as i32 } #[doc(hidden)] @@ -4019,21 +3909,20 @@ pub mod exports { pub unsafe fn _export_method_ellipse_to_node_cabi( arg0: *mut u8, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::to_node( - EllipseBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::to_node(EllipseBorrow::lift(arg0 as u32 as usize).get()); (result0).take_handle() as i32 } #[doc(hidden)] #[allow(non_snake_case)] - pub unsafe fn _export_method_ellipse_to_physics_node_cabi< - T: GuestEllipse, - >(arg0: *mut u8) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::to_physics_node( - EllipseBorrow::lift(arg0 as u32 as usize).get(), - ); + pub unsafe fn _export_method_ellipse_to_physics_node_cabi( + arg0: *mut u8, + ) -> i32 { + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = + T::to_physics_node(EllipseBorrow::lift(arg0 as u32 as usize).get()); (result0).take_handle() as i32 } #[doc(hidden)] @@ -4042,7 +3931,8 @@ pub mod exports { arg0: f32, arg1: f32, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let result0 = Cylinder::new(T::new(arg0, arg1)); (result0).take_handle() as i32 } @@ -4051,10 +3941,9 @@ pub mod exports { pub unsafe fn _export_method_cylinder_cap_cabi( arg0: *mut u8, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::cap( - CylinderBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::cap(CylinderBorrow::lift(arg0 as u32 as usize).get()); match result0 { true => 1, false => 0, @@ -4066,7 +3955,8 @@ pub mod exports { arg0: *mut u8, arg1: i32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::set_cap( CylinderBorrow::lift(arg0 as u32 as usize).get(), _rt::bool_lift(arg1 as u8), @@ -4077,10 +3967,9 @@ pub mod exports { pub unsafe fn _export_method_cylinder_height_cabi( arg0: *mut u8, ) -> f32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::height( - CylinderBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::height(CylinderBorrow::lift(arg0 as u32 as usize).get()); _rt::as_f32(result0) } #[doc(hidden)] @@ -4089,21 +3978,18 @@ pub mod exports { arg0: *mut u8, arg1: f32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - T::set_height( - CylinderBorrow::lift(arg0 as u32 as usize).get(), - arg1, - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + T::set_height(CylinderBorrow::lift(arg0 as u32 as usize).get(), arg1); } #[doc(hidden)] #[allow(non_snake_case)] pub unsafe fn _export_method_cylinder_radius_cabi( arg0: *mut u8, ) -> f32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::radius( - CylinderBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::radius(CylinderBorrow::lift(arg0 as u32 as usize).get()); _rt::as_f32(result0) } #[doc(hidden)] @@ -4112,65 +3998,58 @@ pub mod exports { arg0: *mut u8, arg1: f32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - T::set_radius( - CylinderBorrow::lift(arg0 as u32 as usize).get(), - arg1, - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + T::set_radius(CylinderBorrow::lift(arg0 as u32 as usize).get(), arg1); } #[doc(hidden)] #[allow(non_snake_case)] pub unsafe fn _export_method_cylinder_resolution_cabi( arg0: *mut u8, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::resolution( - CylinderBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::resolution(CylinderBorrow::lift(arg0 as u32 as usize).get()); _rt::as_i32(result0) } #[doc(hidden)] #[allow(non_snake_case)] - pub unsafe fn _export_method_cylinder_set_resolution_cabi< - T: GuestCylinder, - >(arg0: *mut u8, arg1: i32) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - T::set_resolution( - CylinderBorrow::lift(arg0 as u32 as usize).get(), - arg1 as u8, - ); + pub unsafe fn _export_method_cylinder_set_resolution_cabi( + arg0: *mut u8, + arg1: i32, + ) { + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + T::set_resolution(CylinderBorrow::lift(arg0 as u32 as usize).get(), arg1 as u8); } #[doc(hidden)] #[allow(non_snake_case)] pub unsafe fn _export_method_cylinder_segments_cabi( arg0: *mut u8, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::segments( - CylinderBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::segments(CylinderBorrow::lift(arg0 as u32 as usize).get()); _rt::as_i32(result0) } #[doc(hidden)] #[allow(non_snake_case)] - pub unsafe fn _export_method_cylinder_set_segments_cabi< - T: GuestCylinder, - >(arg0: *mut u8, arg1: i32) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - T::set_segments( - CylinderBorrow::lift(arg0 as u32 as usize).get(), - arg1 as u8, - ); + pub unsafe fn _export_method_cylinder_set_segments_cabi( + arg0: *mut u8, + arg1: i32, + ) { + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + T::set_segments(CylinderBorrow::lift(arg0 as u32 as usize).get(), arg1 as u8); } #[doc(hidden)] #[allow(non_snake_case)] pub unsafe fn _export_method_cylinder_to_mesh_cabi( arg0: *mut u8, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::to_mesh( - CylinderBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::to_mesh(CylinderBorrow::lift(arg0 as u32 as usize).get()); (result0).take_handle() as i32 } #[doc(hidden)] @@ -4178,21 +4057,20 @@ pub mod exports { pub unsafe fn _export_method_cylinder_to_node_cabi( arg0: *mut u8, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::to_node( - CylinderBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::to_node(CylinderBorrow::lift(arg0 as u32 as usize).get()); (result0).take_handle() as i32 } #[doc(hidden)] #[allow(non_snake_case)] - pub unsafe fn _export_method_cylinder_to_physics_node_cabi< - T: GuestCylinder, - >(arg0: *mut u8) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::to_physics_node( - CylinderBorrow::lift(arg0 as u32 as usize).get(), - ); + pub unsafe fn _export_method_cylinder_to_physics_node_cabi( + arg0: *mut u8, + ) -> i32 { + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = + T::to_physics_node(CylinderBorrow::lift(arg0 as u32 as usize).get()); (result0).take_handle() as i32 } #[doc(hidden)] @@ -4202,14 +4080,15 @@ pub mod exports { arg1: f32, arg2: f32, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = Cuboid::new( - T::new(super::super::super::super::wired::math::types::Vec3 { + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = Cuboid::new(T::new( + super::super::super::super::wired::math::types::Vec3 { x: arg0, y: arg1, z: arg2, - }), - ); + }, + )); (result0).take_handle() as i32 } #[doc(hidden)] @@ -4217,10 +4096,9 @@ pub mod exports { pub unsafe fn _export_method_cuboid_size_cabi( arg0: *mut u8, ) -> *mut u8 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::size( - CuboidBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::size(CuboidBorrow::lift(arg0 as u32 as usize).get()); let ptr1 = _RET_AREA.0.as_mut_ptr().cast::(); let super::super::super::super::wired::math::types::Vec3 { x: x2, @@ -4240,7 +4118,8 @@ pub mod exports { arg2: f32, arg3: f32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::set_size( CuboidBorrow::lift(arg0 as u32 as usize).get(), super::super::super::super::wired::math::types::Vec3 { @@ -4255,10 +4134,9 @@ pub mod exports { pub unsafe fn _export_method_cuboid_to_mesh_cabi( arg0: *mut u8, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::to_mesh( - CuboidBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::to_mesh(CuboidBorrow::lift(arg0 as u32 as usize).get()); (result0).take_handle() as i32 } #[doc(hidden)] @@ -4266,10 +4144,9 @@ pub mod exports { pub unsafe fn _export_method_cuboid_to_node_cabi( arg0: *mut u8, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::to_node( - CuboidBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::to_node(CuboidBorrow::lift(arg0 as u32 as usize).get()); (result0).take_handle() as i32 } #[doc(hidden)] @@ -4277,27 +4154,25 @@ pub mod exports { pub unsafe fn _export_method_cuboid_to_physics_node_cabi( arg0: *mut u8, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::to_physics_node( - CuboidBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = + T::to_physics_node(CuboidBorrow::lift(arg0 as u32 as usize).get()); (result0).take_handle() as i32 } #[doc(hidden)] #[allow(non_snake_case)] - pub unsafe fn _export_static_sphere_new_ico_cabi( - arg0: f32, - ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + pub unsafe fn _export_static_sphere_new_ico_cabi(arg0: f32) -> i32 { + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let result0 = T::new_ico(arg0); (result0).take_handle() as i32 } #[doc(hidden)] #[allow(non_snake_case)] - pub unsafe fn _export_static_sphere_new_uv_cabi( - arg0: f32, - ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + pub unsafe fn _export_static_sphere_new_uv_cabi(arg0: f32) -> i32 { + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let result0 = T::new_uv(arg0); (result0).take_handle() as i32 } @@ -4306,10 +4181,9 @@ pub mod exports { pub unsafe fn _export_method_sphere_radius_cabi( arg0: *mut u8, ) -> f32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::radius( - SphereBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::radius(SphereBorrow::lift(arg0 as u32 as usize).get()); _rt::as_f32(result0) } #[doc(hidden)] @@ -4318,7 +4192,8 @@ pub mod exports { arg0: *mut u8, arg1: f32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::set_radius(SphereBorrow::lift(arg0 as u32 as usize).get(), arg1); } #[doc(hidden)] @@ -4326,21 +4201,24 @@ pub mod exports { pub unsafe fn _export_method_sphere_kind_cabi( arg0: *mut u8, ) -> *mut u8 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::kind( - SphereBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::kind(SphereBorrow::lift(arg0 as u32 as usize).get()); let ptr1 = _RET_AREA.0.as_mut_ptr().cast::(); match result0 { SphereKind::Ico(e) => { *ptr1.add(0).cast::() = (0i32) as u8; - let SphereIco { subdivisions: subdivisions2 } = e; - *ptr1.add(1).cast::() = (_rt::as_i32(subdivisions2)) - as u8; + let SphereIco { + subdivisions: subdivisions2, + } = e; + *ptr1.add(1).cast::() = (_rt::as_i32(subdivisions2)) as u8; } SphereKind::Uv(e) => { *ptr1.add(0).cast::() = (1i32) as u8; - let SphereUv { sectors: sectors3, stacks: stacks3 } = e; + let SphereUv { + sectors: sectors3, + stacks: stacks3, + } = e; *ptr1.add(1).cast::() = (_rt::as_i32(sectors3)) as u8; *ptr1.add(2).cast::() = (_rt::as_i32(stacks3)) as u8; } @@ -4355,7 +4233,8 @@ pub mod exports { arg2: i32, arg3: i32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let v0 = match arg1 { 0 => { let e0 = SphereIco { @@ -4379,10 +4258,9 @@ pub mod exports { pub unsafe fn _export_method_sphere_to_mesh_cabi( arg0: *mut u8, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::to_mesh( - SphereBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::to_mesh(SphereBorrow::lift(arg0 as u32 as usize).get()); (result0).take_handle() as i32 } #[doc(hidden)] @@ -4390,10 +4268,9 @@ pub mod exports { pub unsafe fn _export_method_sphere_to_node_cabi( arg0: *mut u8, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::to_node( - SphereBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::to_node(SphereBorrow::lift(arg0 as u32 as usize).get()); (result0).take_handle() as i32 } #[doc(hidden)] @@ -4401,25 +4278,25 @@ pub mod exports { pub unsafe fn _export_method_sphere_to_physics_node_cabi( arg0: *mut u8, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::to_physics_node( - SphereBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = + T::to_physics_node(SphereBorrow::lift(arg0 as u32 as usize).get()); (result0).take_handle() as i32 } #[doc(hidden)] #[allow(non_snake_case)] pub unsafe fn _export_constructor_axes_cabi() -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let result0 = Axes::new(T::new()); (result0).take_handle() as i32 } #[doc(hidden)] #[allow(non_snake_case)] - pub unsafe fn _export_method_axes_size_cabi( - arg0: *mut u8, - ) -> f32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + pub unsafe fn _export_method_axes_size_cabi(arg0: *mut u8) -> f32 { + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let result0 = T::size(AxesBorrow::lift(arg0 as u32 as usize).get()); _rt::as_f32(result0) } @@ -4429,18 +4306,16 @@ pub mod exports { arg0: *mut u8, arg1: f32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::set_size(AxesBorrow::lift(arg0 as u32 as usize).get(), arg1); } #[doc(hidden)] #[allow(non_snake_case)] - pub unsafe fn _export_method_axes_to_node_cabi( - arg0: *mut u8, - ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::to_node( - AxesBorrow::lift(arg0 as u32 as usize).get(), - ); + pub unsafe fn _export_method_axes_to_node_cabi(arg0: *mut u8) -> i32 { + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::to_node(AxesBorrow::lift(arg0 as u32 as usize).get()); (result0).take_handle() as i32 } pub trait Guest { @@ -5121,9 +4996,7 @@ pub mod exports { pub(crate) use __export_unavi_shapes_api_cabi; #[repr(align(4))] struct _RetArea([::core::mem::MaybeUninit; 12]); - static mut _RET_AREA: _RetArea = _RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 12]); } } } @@ -5190,7 +5063,9 @@ mod _rt { } impl fmt::Debug for Resource { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("Resource").field("handle", &self.handle).finish() + f.debug_struct("Resource") + .field("handle", &self.handle) + .finish() } } impl Drop for Resource { diff --git a/wasm/unavi-system/src/bindings.rs b/wasm/unavi-system/src/bindings.rs index 71d14bfd2..d6d824c94 100644 --- a/wasm/unavi-system/src/bindings.rs +++ b/wasm/unavi-system/src/bindings.rs @@ -6,7 +6,8 @@ pub mod unavi { pub mod container { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Vec3 = super::super::super::wired::math::types::Vec3; pub type Node = super::super::super::wired::scene::node::Node; @@ -18,10 +19,7 @@ pub mod unavi { Start, } impl ::core::fmt::Debug for Alignment { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { Alignment::Center => f.debug_tuple("Alignment::Center").finish(), Alignment::End => f.debug_tuple("Alignment::End").finish(), @@ -100,11 +98,7 @@ pub mod unavi { fn wit_import(_: f32, _: f32, _: f32) -> i32 { unreachable!() } - let ret = wit_import( - _rt::as_f32(x0), - _rt::as_f32(y0), - _rt::as_f32(z0), - ); + let ret = wit_import(_rt::as_f32(x0), _rt::as_f32(y0), _rt::as_f32(z0)); Container::from_handle(ret as u32) } } @@ -146,9 +140,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -169,9 +161,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -181,9 +171,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:layout/container")] @@ -256,9 +244,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:layout/container")] @@ -429,7 +415,8 @@ pub mod unavi { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Transform = super::super::super::wired::math::types::Transform; pub type Node = super::super::super::wired::scene::node::Node; @@ -515,9 +502,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:scene/api")] @@ -611,9 +596,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:scene/api")] @@ -662,9 +645,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -710,9 +691,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:scene/api")] @@ -882,7 +861,8 @@ pub mod unavi { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; #[allow(unused_unsafe, clippy::all)] pub fn update_ui(delta: f32) { @@ -905,7 +885,8 @@ pub mod unavi { pub mod button { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Container = super::super::super::unavi::layout::container::Container; /// 3D interactable button. @@ -1032,7 +1013,8 @@ pub mod unavi { pub mod text { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Alignment = super::super::super::unavi::layout::container::Alignment; pub type Container = super::super::super::unavi::layout::container::Container; @@ -1082,14 +1064,9 @@ pub mod unavi { Word, } impl ::core::fmt::Debug for WordWrap { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - WordWrap::Character => { - f.debug_tuple("WordWrap::Character").finish() - } + WordWrap::Character => f.debug_tuple("WordWrap::Character").finish(), WordWrap::Word => f.debug_tuple("WordWrap::Word").finish(), } } @@ -1212,12 +1189,7 @@ pub mod unavi { fn wit_import(_: i32, _: i32, _: *mut u8, _: usize) { unreachable!() } - wit_import( - (self).handle() as i32, - result1_0, - result1_1, - result1_2, - ); + wit_import((self).handle() as i32, result1_0, result1_1, result1_2); } } } @@ -1227,9 +1199,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:ui/text")] @@ -1286,9 +1256,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::unavi::layout::container::Alignment::_lift( - ret as u8, - ) + super::super::super::unavi::layout::container::Alignment::_lift(ret as u8) } } } @@ -1307,9 +1275,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::unavi::layout::container::Alignment::_lift( - ret as u8, - ) + super::super::super::unavi::layout::container::Alignment::_lift(ret as u8) } } } @@ -1429,9 +1395,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:ui/text")] @@ -1498,9 +1462,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1630,7 +1592,8 @@ pub mod unavi { pub mod screen { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Container = super::super::super::unavi::layout::container::Container; pub type Vec2 = super::super::super::wired::math::types::Vec2; @@ -1640,10 +1603,7 @@ pub mod unavi { Rectangle(Vec2), } impl ::core::fmt::Debug for ScreenShape { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { ScreenShape::Circle(e) => { f.debug_tuple("ScreenShape::Circle").field(e).finish() @@ -1700,10 +1660,8 @@ pub mod unavi { let (result1_0, result1_1, result1_2) = match shape { ScreenShape::Circle(e) => (0i32, _rt::as_f32(e), 0.0f32), ScreenShape::Rectangle(e) => { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = e; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = + e; (1i32, _rt::as_f32(x0), _rt::as_f32(y0)) } }; @@ -1872,9 +1830,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:vscreen/screen")] @@ -1971,7 +1927,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; pub type Vec3 = super::super::super::wired::math::types::Vec3; pub type Quat = super::super::super::wired::math::types::Quat; #[repr(u8)] @@ -1981,10 +1938,7 @@ pub mod wired { Right, } impl ::core::fmt::Debug for HandSide { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { HandSide::Left => f.debug_tuple("HandSide::Left").finish(), HandSide::Right => f.debug_tuple("HandSide::Right").finish(), @@ -2012,10 +1966,7 @@ pub mod wired { pub radius: f32, } impl ::core::fmt::Debug for Joint { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Joint") .field("translation", &self.translation) .field("rotation", &self.rotation) @@ -2032,10 +1983,7 @@ pub mod wired { pub metacarpal: Joint, } impl ::core::fmt::Debug for Finger { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Finger") .field("tip", &self.tip) .field("distal", &self.distal) @@ -2059,10 +2007,7 @@ pub mod wired { pub elbow: Option, } impl ::core::fmt::Debug for Hand { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Hand") .field("side", &self.side) .field("thumb", &self.thumb) @@ -2084,10 +2029,7 @@ pub mod wired { pub origin: Vec3, } impl ::core::fmt::Debug for Ray { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Ray") .field("orientation", &self.orientation) .field("origin", &self.origin) @@ -2100,17 +2042,10 @@ pub mod wired { Ray(Ray), } impl ::core::fmt::Debug for InputData { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputData::Hand(e) => { - f.debug_tuple("InputData::Hand").field(e).finish() - } - InputData::Ray(e) => { - f.debug_tuple("InputData::Ray").field(e).finish() - } + InputData::Hand(e) => f.debug_tuple("InputData::Hand").field(e).finish(), + InputData::Ray(e) => f.debug_tuple("InputData::Ray").field(e).finish(), } } } @@ -2120,17 +2055,10 @@ pub mod wired { Hover, } impl ::core::fmt::Debug for InputAction { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputAction::Collision => { - f.debug_tuple("InputAction::Collision").finish() - } - InputAction::Hover => { - f.debug_tuple("InputAction::Hover").finish() - } + InputAction::Collision => f.debug_tuple("InputAction::Collision").finish(), + InputAction::Hover => f.debug_tuple("InputAction::Hover").finish(), } } } @@ -2145,10 +2073,7 @@ pub mod wired { pub data: InputData, } impl ::core::fmt::Debug for InputEvent { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("InputEvent") .field("id", &self.id) .field("action", &self.action) @@ -2161,7 +2086,8 @@ pub mod wired { pub mod handler { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type InputEvent = super::super::super::wired::input::types::InputEvent; #[derive(Debug)] @@ -2228,9 +2154,7 @@ pub mod wired { unsafe { #[repr(align(8))] struct RetArea([::core::mem::MaybeUninit; 768]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 768], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 768]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:input/handler")] @@ -2846,7 +2770,8 @@ pub mod wired { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; #[repr(u8)] #[derive(Clone, Copy, Eq, PartialEq)] pub enum LogLevel { @@ -2856,10 +2781,7 @@ pub mod wired { Error, } impl ::core::fmt::Debug for LogLevel { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { LogLevel::Debug => f.debug_tuple("LogLevel::Debug").finish(), LogLevel::Info => f.debug_tuple("LogLevel::Info").finish(), @@ -2910,7 +2832,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; #[repr(C)] #[derive(Clone, Copy)] pub struct Vec2 { @@ -2918,10 +2841,7 @@ pub mod wired { pub y: f32, } impl ::core::fmt::Debug for Vec2 { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Vec2") .field("x", &self.x) .field("y", &self.y) @@ -2936,10 +2856,7 @@ pub mod wired { pub z: f32, } impl ::core::fmt::Debug for Vec3 { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Vec3") .field("x", &self.x) .field("y", &self.y) @@ -2956,10 +2873,7 @@ pub mod wired { pub w: f32, } impl ::core::fmt::Debug for Quat { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Quat") .field("x", &self.x) .field("y", &self.y) @@ -2976,10 +2890,7 @@ pub mod wired { pub translation: Vec3, } impl ::core::fmt::Debug for Transform { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Transform") .field("rotation", &self.rotation) .field("scale", &self.scale) @@ -3032,7 +2943,11 @@ pub mod wired { let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); let l3 = *ptr0.add(8).cast::(); - Vec3 { x: l1, y: l2, z: l3 } + Vec3 { + x: l1, + y: l2, + z: l3, + } } } #[allow(unused_unsafe, clippy::all)] @@ -3057,7 +2972,12 @@ pub mod wired { let l2 = *ptr0.add(4).cast::(); let l3 = *ptr0.add(8).cast::(); let l4 = *ptr0.add(12).cast::(); - Quat { x: l1, y: l2, z: l3, w: l4 } + Quat { + x: l1, + y: l2, + z: l3, + w: l4, + } } } #[allow(unused_unsafe, clippy::all)] @@ -3089,9 +3009,22 @@ pub mod wired { let l9 = *ptr0.add(32).cast::(); let l10 = *ptr0.add(36).cast::(); Transform { - rotation: Quat { x: l1, y: l2, z: l3, w: l4 }, - scale: Vec3 { x: l5, y: l6, z: l7 }, - translation: Vec3 { x: l8, y: l9, z: l10 }, + rotation: Quat { + x: l1, + y: l2, + z: l3, + w: l4, + }, + scale: Vec3 { + x: l5, + y: l6, + z: l7, + }, + translation: Vec3 { + x: l8, + y: l9, + z: l10, + }, } } } @@ -3103,7 +3036,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Vec3 = super::super::super::wired::math::types::Vec3; #[derive(Debug)] @@ -3150,10 +3084,7 @@ pub mod wired { pub radius: f32, } impl ::core::fmt::Debug for ShapeCylinder { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("ShapeCylinder") .field("height", &self.height) .field("radius", &self.radius) @@ -3167,20 +3098,11 @@ pub mod wired { Sphere(f32), } impl ::core::fmt::Debug for Shape { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Shape::Cuboid(e) => { - f.debug_tuple("Shape::Cuboid").field(e).finish() - } - Shape::Cylinder(e) => { - f.debug_tuple("Shape::Cylinder").field(e).finish() - } - Shape::Sphere(e) => { - f.debug_tuple("Shape::Sphere").field(e).finish() - } + Shape::Cuboid(e) => f.debug_tuple("Shape::Cuboid").field(e).finish(), + Shape::Cylinder(e) => f.debug_tuple("Shape::Cylinder").field(e).finish(), + Shape::Sphere(e) => f.debug_tuple("Shape::Sphere").field(e).finish(), } } } @@ -3229,17 +3151,10 @@ pub mod wired { Kinematic, } impl ::core::fmt::Debug for RigidBodyType { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - RigidBodyType::Dynamic => { - f.debug_tuple("RigidBodyType::Dynamic").finish() - } - RigidBodyType::Fixed => { - f.debug_tuple("RigidBodyType::Fixed").finish() - } + RigidBodyType::Dynamic => f.debug_tuple("RigidBodyType::Dynamic").finish(), + RigidBodyType::Fixed => f.debug_tuple("RigidBodyType::Fixed").finish(), RigidBodyType::Kinematic => { f.debug_tuple("RigidBodyType::Kinematic").finish() } @@ -3274,7 +3189,10 @@ pub mod wired { (0i32, _rt::as_f32(x0), _rt::as_f32(y0), _rt::as_f32(z0)) } Shape::Cylinder(e) => { - let ShapeCylinder { height: height1, radius: radius1 } = e; + let ShapeCylinder { + height: height1, + radius: radius1, + } = e; (1i32, _rt::as_f32(height1), _rt::as_f32(radius1), 0.0f32) } Shape::Sphere(e) => (2i32, _rt::as_f32(e), 0.0f32, 0.0f32), @@ -3356,9 +3274,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:physics/types")] @@ -3416,9 +3332,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:physics/types")] @@ -3478,7 +3392,8 @@ pub mod wired { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Node = super::super::super::wired::scene::node::Node; pub struct Skeleton { @@ -3504,10 +3419,7 @@ pub mod wired { pub right_foot: Node, } impl ::core::fmt::Debug for Skeleton { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Skeleton") .field("hips", &self.hips) .field("spine", &self.spine) @@ -3584,9 +3496,7 @@ pub mod wired { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -3596,9 +3506,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 80]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 80], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 80]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:player/api")] @@ -3650,45 +3558,55 @@ pub mod wired { head: super::super::super::wired::scene::node::Node::from_handle( l6 as u32, ), - left_shoulder: super::super::super::wired::scene::node::Node::from_handle( - l7 as u32, - ), - left_upper_arm: super::super::super::wired::scene::node::Node::from_handle( - l8 as u32, - ), - left_lower_arm: super::super::super::wired::scene::node::Node::from_handle( - l9 as u32, - ), + left_shoulder: + super::super::super::wired::scene::node::Node::from_handle( + l7 as u32, + ), + left_upper_arm: + super::super::super::wired::scene::node::Node::from_handle( + l8 as u32, + ), + left_lower_arm: + super::super::super::wired::scene::node::Node::from_handle( + l9 as u32, + ), left_hand: super::super::super::wired::scene::node::Node::from_handle( l10 as u32, ), - right_shoulder: super::super::super::wired::scene::node::Node::from_handle( - l11 as u32, - ), - right_upper_arm: super::super::super::wired::scene::node::Node::from_handle( - l12 as u32, - ), - right_lower_arm: super::super::super::wired::scene::node::Node::from_handle( - l13 as u32, - ), + right_shoulder: + super::super::super::wired::scene::node::Node::from_handle( + l11 as u32, + ), + right_upper_arm: + super::super::super::wired::scene::node::Node::from_handle( + l12 as u32, + ), + right_lower_arm: + super::super::super::wired::scene::node::Node::from_handle( + l13 as u32, + ), right_hand: super::super::super::wired::scene::node::Node::from_handle( l14 as u32, ), - left_upper_leg: super::super::super::wired::scene::node::Node::from_handle( - l15 as u32, - ), - left_lower_leg: super::super::super::wired::scene::node::Node::from_handle( - l16 as u32, - ), + left_upper_leg: + super::super::super::wired::scene::node::Node::from_handle( + l15 as u32, + ), + left_lower_leg: + super::super::super::wired::scene::node::Node::from_handle( + l16 as u32, + ), left_foot: super::super::super::wired::scene::node::Node::from_handle( l17 as u32, ), - right_upper_leg: super::super::super::wired::scene::node::Node::from_handle( - l18 as u32, - ), - right_lower_leg: super::super::super::wired::scene::node::Node::from_handle( - l19 as u32, - ), + right_upper_leg: + super::super::super::wired::scene::node::Node::from_handle( + l18 as u32, + ), + right_lower_leg: + super::super::super::wired::scene::node::Node::from_handle( + l19 as u32, + ), right_foot: super::super::super::wired::scene::node::Node::from_handle( l20 as u32, ), @@ -3756,7 +3674,8 @@ pub mod wired { pub mod material { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; #[repr(C)] #[derive(Clone, Copy)] @@ -3767,10 +3686,7 @@ pub mod wired { pub a: f32, } impl ::core::fmt::Debug for Color { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Color") .field("r", &self.r) .field("g", &self.g) @@ -3880,9 +3796,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] @@ -3930,9 +3844,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 16]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 16], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 16]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] @@ -3962,7 +3874,12 @@ pub mod wired { #[allow(unused_unsafe, clippy::all)] pub fn set_color(&self, value: Color) { unsafe { - let Color { r: r0, g: g0, b: b0, a: a0 } = value; + let Color { + r: r0, + g: g0, + b: b0, + a: a0, + } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] extern "C" { @@ -3988,7 +3905,8 @@ pub mod wired { pub mod mesh { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Material = super::super::super::wired::scene::material::Material; #[derive(Debug)] @@ -4090,9 +4008,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -4292,9 +4208,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -4342,9 +4256,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -4408,10 +4320,7 @@ pub mod wired { fn wit_import(_: i32, _: i32) { unreachable!() } - wit_import( - (self).handle() as i32, - (&value).take_handle() as i32, - ); + wit_import((self).handle() as i32, (&value).take_handle() as i32); } } } @@ -4420,7 +4329,8 @@ pub mod wired { pub mod node { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Mesh = super::super::super::wired::scene::mesh::Mesh; pub type InputHandler = super::super::super::wired::input::handler::InputHandler; @@ -4528,9 +4438,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4578,9 +4486,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4653,9 +4559,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4689,9 +4593,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4741,9 +4643,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4868,9 +4768,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4928,9 +4826,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4988,9 +4884,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5048,9 +4942,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -5107,7 +4999,8 @@ pub mod wired { pub mod scene { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Node = super::super::super::wired::scene::node::Node; #[derive(Debug)] @@ -5191,9 +5084,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/scene")] @@ -5241,9 +5132,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/scene")] @@ -5317,7 +5206,8 @@ pub mod wired { pub mod gltf { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Material = super::super::super::wired::scene::material::Material; pub type Mesh = super::super::super::wired::scene::mesh::Mesh; @@ -5387,9 +5277,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5464,9 +5352,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5541,9 +5427,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5618,9 +5502,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5696,9 +5578,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5758,9 +5638,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/gltf")] @@ -5813,7 +5691,8 @@ pub mod wired { pub mod glxf { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Gltf = super::super::super::wired::scene::gltf::Gltf; pub type Node = super::super::super::wired::scene::node::Node; @@ -5936,10 +5815,7 @@ pub mod wired { Glxf(AssetGlxf), } impl ::core::fmt::Debug for Asset { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { Asset::Gltf(e) => f.debug_tuple("Asset::Gltf").field(e).finish(), Asset::Glxf(e) => f.debug_tuple("Asset::Glxf").field(e).finish(), @@ -5951,10 +5827,7 @@ pub mod wired { Glxf(&'a AssetGlxf), } impl<'a> ::core::fmt::Debug for AssetBorrow<'a> { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { AssetBorrow::Gltf(e) => { f.debug_tuple("AssetBorrow::Gltf").field(e).finish() @@ -6007,17 +5880,10 @@ pub mod wired { Nodes(_rt::Vec), } impl ::core::fmt::Debug for Children { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Children::Asset(e) => { - f.debug_tuple("Children::Asset").field(e).finish() - } - Children::Nodes(e) => { - f.debug_tuple("Children::Nodes").field(e).finish() - } + Children::Asset(e) => f.debug_tuple("Children::Asset").field(e).finish(), + Children::Nodes(e) => f.debug_tuple("Children::Nodes").field(e).finish(), } } } @@ -6026,10 +5892,7 @@ pub mod wired { Nodes(_rt::Vec<&'a GlxfNode>), } impl<'a> ::core::fmt::Debug for ChildrenBorrow<'a> { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { ChildrenBorrow::Asset(e) => { f.debug_tuple("ChildrenBorrow::Asset").field(e).finish() @@ -6120,9 +5983,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6220,9 +6081,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6295,9 +6154,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6371,9 +6228,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6431,9 +6286,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6513,9 +6366,7 @@ pub mod wired { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::gltf::Gltf::from_handle( - ret as u32, - ) + super::super::super::wired::scene::gltf::Gltf::from_handle(ret as u32) } } } @@ -6527,9 +6378,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6644,9 +6493,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6757,9 +6604,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6807,9 +6652,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6934,9 +6777,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -6970,9 +6811,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 16]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 16], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 16]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7004,7 +6843,10 @@ pub mod wired { Asset::Gltf(e6) } n => { - debug_assert_eq!(n, 1, "invalid enum discriminant"); + debug_assert_eq!( + n, 1, + "invalid enum discriminant" + ); let e6 = { let l5 = *ptr0.add(12).cast::(); AssetGlxf::from_handle(l5 as u32) @@ -7076,7 +6918,9 @@ pub mod wired { } ptr } else { - { ::core::ptr::null_mut() } + { + ::core::ptr::null_mut() + } }; for (i, e) in vec1.into_iter().enumerate() { let base = result1.add(i * 4); @@ -7161,9 +7005,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7211,9 +7053,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/glxf")] @@ -7293,7 +7133,8 @@ pub mod exports { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::super::__link_custom_section_describing_imports; use super::super::super::super::_rt; #[derive(Debug)] #[repr(transparent)] @@ -7310,9 +7151,7 @@ pub mod exports { pub fn new(val: T) -> Self { Self::type_guard::(); let val: _ScriptRep = Some(val); - let ptr: *mut _ScriptRep = _rt::Box::into_raw( - _rt::Box::new(val), - ); + let ptr: *mut _ScriptRep = _rt::Box::into_raw(_rt::Box::new(val)); unsafe { Self::from_handle(T::_resource_new(ptr.cast())) } } /// Gets access to the underlying `T` which represents this resource. @@ -7350,12 +7189,13 @@ pub mod exports { use core::any::TypeId; static mut LAST_TYPE: Option = None; unsafe { - assert!(! cfg!(target_feature = "atomics")); + assert!(!cfg!(target_feature = "atomics")); let id = TypeId::of::(); match LAST_TYPE { Some(ty) => { assert!( - ty == id, "cannot use two types with this resource type" + ty == id, + "cannot use two types with this resource type" ) } None => LAST_TYPE = Some(id), @@ -7417,7 +7257,8 @@ pub mod exports { #[doc(hidden)] #[allow(non_snake_case)] pub unsafe fn _export_constructor_script_cabi() -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let result0 = Script::new(T::new()); (result0).take_handle() as i32 } @@ -7427,7 +7268,8 @@ pub mod exports { arg0: *mut u8, arg1: f32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::update(ScriptBorrow::lift(arg0 as u32 as usize).get(), arg1); } pub trait Guest { @@ -7565,7 +7407,9 @@ mod _rt { } impl fmt::Debug for Resource { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("Resource").field("handle", &self.handle).finish() + f.debug_struct("Resource") + .field("handle", &self.handle) + .finish() } } impl Drop for Resource { diff --git a/wasm/unavi-ui/src/bindings.rs b/wasm/unavi-ui/src/bindings.rs index c7c30d040..0530aaff3 100644 --- a/wasm/unavi-ui/src/bindings.rs +++ b/wasm/unavi-ui/src/bindings.rs @@ -6,7 +6,8 @@ pub mod unavi { pub mod container { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Vec3 = super::super::super::wired::math::types::Vec3; pub type Node = super::super::super::wired::scene::node::Node; @@ -18,10 +19,7 @@ pub mod unavi { Start, } impl ::core::fmt::Debug for Alignment { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { Alignment::Center => f.debug_tuple("Alignment::Center").finish(), Alignment::End => f.debug_tuple("Alignment::End").finish(), @@ -100,11 +98,7 @@ pub mod unavi { fn wit_import(_: f32, _: f32, _: f32) -> i32 { unreachable!() } - let ret = wit_import( - _rt::as_f32(x0), - _rt::as_f32(y0), - _rt::as_f32(z0), - ); + let ret = wit_import(_rt::as_f32(x0), _rt::as_f32(y0), _rt::as_f32(z0)); Container::from_handle(ret as u32) } } @@ -146,9 +140,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -169,9 +161,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -181,9 +171,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:layout/container")] @@ -256,9 +244,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:layout/container")] @@ -429,7 +415,8 @@ pub mod unavi { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Vec2 = super::super::super::wired::math::types::Vec2; pub type Vec3 = super::super::super::wired::math::types::Vec3; @@ -626,10 +613,7 @@ pub mod unavi { pub subdivisions: u8, } impl ::core::fmt::Debug for SphereIco { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("SphereIco") .field("subdivisions", &self.subdivisions) .finish() @@ -642,10 +626,7 @@ pub mod unavi { pub stacks: u8, } impl ::core::fmt::Debug for SphereUv { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("SphereUv") .field("sectors", &self.sectors) .field("stacks", &self.stacks) @@ -660,17 +641,10 @@ pub mod unavi { Uv(SphereUv), } impl ::core::fmt::Debug for SphereKind { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - SphereKind::Ico(e) => { - f.debug_tuple("SphereKind::Ico").field(e).finish() - } - SphereKind::Uv(e) => { - f.debug_tuple("SphereKind::Uv").field(e).finish() - } + SphereKind::Ico(e) => f.debug_tuple("SphereKind::Ico").field(e).finish(), + SphereKind::Uv(e) => f.debug_tuple("SphereKind::Uv").field(e).finish(), } } } @@ -752,10 +726,7 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn new(size: Vec2) -> Self { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = size; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = size; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -777,9 +748,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -794,10 +763,7 @@ pub mod unavi { wit_import((self).handle() as i32, ptr0); let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); - super::super::super::wired::math::types::Vec2 { - x: l1, - y: l2, - } + super::super::super::wired::math::types::Vec2 { x: l1, y: l2 } } } } @@ -805,10 +771,7 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn set_size(&self, value: Vec2) { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = value; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -819,11 +782,7 @@ pub mod unavi { fn wit_import(_: i32, _: f32, _: f32) { unreachable!() } - wit_import( - (self).handle() as i32, - _rt::as_f32(x0), - _rt::as_f32(y0), - ); + wit_import((self).handle() as i32, _rt::as_f32(x0), _rt::as_f32(y0)); } } } @@ -843,9 +802,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -865,9 +822,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -887,9 +842,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1003,9 +956,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1025,9 +976,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1047,9 +996,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1057,10 +1004,8 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn new(half_size: Vec2) -> Self { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = half_size; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = + half_size; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -1082,9 +1027,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -1099,10 +1042,7 @@ pub mod unavi { wit_import((self).handle() as i32, ptr0); let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); - super::super::super::wired::math::types::Vec2 { - x: l1, - y: l2, - } + super::super::super::wired::math::types::Vec2 { x: l1, y: l2 } } } } @@ -1110,10 +1050,7 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn set_half_size(&self, value: Vec2) { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = value; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -1124,11 +1061,7 @@ pub mod unavi { fn wit_import(_: i32, _: f32, _: f32) { unreachable!() } - wit_import( - (self).handle() as i32, - _rt::as_f32(x0), - _rt::as_f32(y0), - ); + wit_import((self).handle() as i32, _rt::as_f32(x0), _rt::as_f32(y0)); } } } @@ -1186,9 +1119,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1208,9 +1139,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1230,9 +1159,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1465,9 +1392,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1487,9 +1412,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1509,9 +1432,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1534,11 +1455,7 @@ pub mod unavi { fn wit_import(_: f32, _: f32, _: f32) -> i32 { unreachable!() } - let ret = wit_import( - _rt::as_f32(x0), - _rt::as_f32(y0), - _rt::as_f32(z0), - ); + let ret = wit_import(_rt::as_f32(x0), _rt::as_f32(y0), _rt::as_f32(z0)); Cuboid::from_handle(ret as u32) } } @@ -1549,9 +1466,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -1619,9 +1534,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1641,9 +1554,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1663,9 +1574,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1750,9 +1659,7 @@ pub mod unavi { unsafe { #[repr(align(1))] struct RetArea([::core::mem::MaybeUninit; 3]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 3], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 3]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -1799,11 +1706,16 @@ pub mod unavi { unsafe { let (result2_0, result2_1, result2_2) = match value { SphereKind::Ico(e) => { - let SphereIco { subdivisions: subdivisions0 } = e; + let SphereIco { + subdivisions: subdivisions0, + } = e; (0i32, _rt::as_i32(subdivisions0), 0i32) } SphereKind::Uv(e) => { - let SphereUv { sectors: sectors1, stacks: stacks1 } = e; + let SphereUv { + sectors: sectors1, + stacks: stacks1, + } = e; (1i32, _rt::as_i32(sectors1), _rt::as_i32(stacks1)) } }; @@ -1817,12 +1729,7 @@ pub mod unavi { fn wit_import(_: i32, _: i32, _: i32, _: i32) { unreachable!() } - wit_import( - (self).handle() as i32, - result2_0, - result2_1, - result2_2, - ); + wit_import((self).handle() as i32, result2_0, result2_1, result2_2); } } } @@ -1842,9 +1749,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1864,9 +1769,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1886,9 +1789,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1964,9 +1865,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1981,7 +1880,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; pub type Vec3 = super::super::super::wired::math::types::Vec3; pub type Quat = super::super::super::wired::math::types::Quat; #[repr(u8)] @@ -1991,10 +1891,7 @@ pub mod wired { Right, } impl ::core::fmt::Debug for HandSide { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { HandSide::Left => f.debug_tuple("HandSide::Left").finish(), HandSide::Right => f.debug_tuple("HandSide::Right").finish(), @@ -2022,10 +1919,7 @@ pub mod wired { pub radius: f32, } impl ::core::fmt::Debug for Joint { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Joint") .field("translation", &self.translation) .field("rotation", &self.rotation) @@ -2042,10 +1936,7 @@ pub mod wired { pub metacarpal: Joint, } impl ::core::fmt::Debug for Finger { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Finger") .field("tip", &self.tip) .field("distal", &self.distal) @@ -2069,10 +1960,7 @@ pub mod wired { pub elbow: Option, } impl ::core::fmt::Debug for Hand { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Hand") .field("side", &self.side) .field("thumb", &self.thumb) @@ -2094,10 +1982,7 @@ pub mod wired { pub origin: Vec3, } impl ::core::fmt::Debug for Ray { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Ray") .field("orientation", &self.orientation) .field("origin", &self.origin) @@ -2110,17 +1995,10 @@ pub mod wired { Ray(Ray), } impl ::core::fmt::Debug for InputData { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputData::Hand(e) => { - f.debug_tuple("InputData::Hand").field(e).finish() - } - InputData::Ray(e) => { - f.debug_tuple("InputData::Ray").field(e).finish() - } + InputData::Hand(e) => f.debug_tuple("InputData::Hand").field(e).finish(), + InputData::Ray(e) => f.debug_tuple("InputData::Ray").field(e).finish(), } } } @@ -2130,17 +2008,10 @@ pub mod wired { Hover, } impl ::core::fmt::Debug for InputAction { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputAction::Collision => { - f.debug_tuple("InputAction::Collision").finish() - } - InputAction::Hover => { - f.debug_tuple("InputAction::Hover").finish() - } + InputAction::Collision => f.debug_tuple("InputAction::Collision").finish(), + InputAction::Hover => f.debug_tuple("InputAction::Hover").finish(), } } } @@ -2155,10 +2026,7 @@ pub mod wired { pub data: InputData, } impl ::core::fmt::Debug for InputEvent { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("InputEvent") .field("id", &self.id) .field("action", &self.action) @@ -2171,7 +2039,8 @@ pub mod wired { pub mod handler { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type InputEvent = super::super::super::wired::input::types::InputEvent; #[derive(Debug)] @@ -2238,9 +2107,7 @@ pub mod wired { unsafe { #[repr(align(8))] struct RetArea([::core::mem::MaybeUninit; 768]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 768], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 768]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:input/handler")] @@ -2856,7 +2723,8 @@ pub mod wired { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; #[repr(u8)] #[derive(Clone, Copy, Eq, PartialEq)] pub enum LogLevel { @@ -2866,10 +2734,7 @@ pub mod wired { Error, } impl ::core::fmt::Debug for LogLevel { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { LogLevel::Debug => f.debug_tuple("LogLevel::Debug").finish(), LogLevel::Info => f.debug_tuple("LogLevel::Info").finish(), @@ -2920,7 +2785,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; #[repr(C)] #[derive(Clone, Copy)] pub struct Vec2 { @@ -2928,10 +2794,7 @@ pub mod wired { pub y: f32, } impl ::core::fmt::Debug for Vec2 { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Vec2") .field("x", &self.x) .field("y", &self.y) @@ -2946,10 +2809,7 @@ pub mod wired { pub z: f32, } impl ::core::fmt::Debug for Vec3 { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Vec3") .field("x", &self.x) .field("y", &self.y) @@ -2966,10 +2826,7 @@ pub mod wired { pub w: f32, } impl ::core::fmt::Debug for Quat { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Quat") .field("x", &self.x) .field("y", &self.y) @@ -2986,10 +2843,7 @@ pub mod wired { pub translation: Vec3, } impl ::core::fmt::Debug for Transform { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Transform") .field("rotation", &self.rotation) .field("scale", &self.scale) @@ -3042,7 +2896,11 @@ pub mod wired { let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); let l3 = *ptr0.add(8).cast::(); - Vec3 { x: l1, y: l2, z: l3 } + Vec3 { + x: l1, + y: l2, + z: l3, + } } } #[allow(unused_unsafe, clippy::all)] @@ -3067,7 +2925,12 @@ pub mod wired { let l2 = *ptr0.add(4).cast::(); let l3 = *ptr0.add(8).cast::(); let l4 = *ptr0.add(12).cast::(); - Quat { x: l1, y: l2, z: l3, w: l4 } + Quat { + x: l1, + y: l2, + z: l3, + w: l4, + } } } #[allow(unused_unsafe, clippy::all)] @@ -3099,9 +2962,22 @@ pub mod wired { let l9 = *ptr0.add(32).cast::(); let l10 = *ptr0.add(36).cast::(); Transform { - rotation: Quat { x: l1, y: l2, z: l3, w: l4 }, - scale: Vec3 { x: l5, y: l6, z: l7 }, - translation: Vec3 { x: l8, y: l9, z: l10 }, + rotation: Quat { + x: l1, + y: l2, + z: l3, + w: l4, + }, + scale: Vec3 { + x: l5, + y: l6, + z: l7, + }, + translation: Vec3 { + x: l8, + y: l9, + z: l10, + }, } } } @@ -3113,7 +2989,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Vec3 = super::super::super::wired::math::types::Vec3; #[derive(Debug)] @@ -3160,10 +3037,7 @@ pub mod wired { pub radius: f32, } impl ::core::fmt::Debug for ShapeCylinder { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("ShapeCylinder") .field("height", &self.height) .field("radius", &self.radius) @@ -3177,20 +3051,11 @@ pub mod wired { Sphere(f32), } impl ::core::fmt::Debug for Shape { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Shape::Cuboid(e) => { - f.debug_tuple("Shape::Cuboid").field(e).finish() - } - Shape::Cylinder(e) => { - f.debug_tuple("Shape::Cylinder").field(e).finish() - } - Shape::Sphere(e) => { - f.debug_tuple("Shape::Sphere").field(e).finish() - } + Shape::Cuboid(e) => f.debug_tuple("Shape::Cuboid").field(e).finish(), + Shape::Cylinder(e) => f.debug_tuple("Shape::Cylinder").field(e).finish(), + Shape::Sphere(e) => f.debug_tuple("Shape::Sphere").field(e).finish(), } } } @@ -3239,17 +3104,10 @@ pub mod wired { Kinematic, } impl ::core::fmt::Debug for RigidBodyType { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - RigidBodyType::Dynamic => { - f.debug_tuple("RigidBodyType::Dynamic").finish() - } - RigidBodyType::Fixed => { - f.debug_tuple("RigidBodyType::Fixed").finish() - } + RigidBodyType::Dynamic => f.debug_tuple("RigidBodyType::Dynamic").finish(), + RigidBodyType::Fixed => f.debug_tuple("RigidBodyType::Fixed").finish(), RigidBodyType::Kinematic => { f.debug_tuple("RigidBodyType::Kinematic").finish() } @@ -3284,7 +3142,10 @@ pub mod wired { (0i32, _rt::as_f32(x0), _rt::as_f32(y0), _rt::as_f32(z0)) } Shape::Cylinder(e) => { - let ShapeCylinder { height: height1, radius: radius1 } = e; + let ShapeCylinder { + height: height1, + radius: radius1, + } = e; (1i32, _rt::as_f32(height1), _rt::as_f32(radius1), 0.0f32) } Shape::Sphere(e) => (2i32, _rt::as_f32(e), 0.0f32, 0.0f32), @@ -3366,9 +3227,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:physics/types")] @@ -3426,9 +3285,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:physics/types")] @@ -3488,7 +3345,8 @@ pub mod wired { pub mod material { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; #[repr(C)] #[derive(Clone, Copy)] @@ -3499,10 +3357,7 @@ pub mod wired { pub a: f32, } impl ::core::fmt::Debug for Color { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Color") .field("r", &self.r) .field("g", &self.g) @@ -3612,9 +3467,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] @@ -3662,9 +3515,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 16]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 16], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 16]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] @@ -3694,7 +3545,12 @@ pub mod wired { #[allow(unused_unsafe, clippy::all)] pub fn set_color(&self, value: Color) { unsafe { - let Color { r: r0, g: g0, b: b0, a: a0 } = value; + let Color { + r: r0, + g: g0, + b: b0, + a: a0, + } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] extern "C" { @@ -3720,7 +3576,8 @@ pub mod wired { pub mod mesh { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Material = super::super::super::wired::scene::material::Material; #[derive(Debug)] @@ -3822,9 +3679,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -4024,9 +3879,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -4074,9 +3927,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -4140,10 +3991,7 @@ pub mod wired { fn wit_import(_: i32, _: i32) { unreachable!() } - wit_import( - (self).handle() as i32, - (&value).take_handle() as i32, - ); + wit_import((self).handle() as i32, (&value).take_handle() as i32); } } } @@ -4152,7 +4000,8 @@ pub mod wired { pub mod node { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Mesh = super::super::super::wired::scene::mesh::Mesh; pub type InputHandler = super::super::super::wired::input::handler::InputHandler; @@ -4260,9 +4109,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4310,9 +4157,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4385,9 +4230,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4421,9 +4264,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4473,9 +4314,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4600,9 +4439,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4660,9 +4497,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4720,9 +4555,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4780,9 +4613,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4847,12 +4678,14 @@ pub mod exports { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::super::__link_custom_section_describing_imports; use super::super::super::super::_rt; #[doc(hidden)] #[allow(non_snake_case)] pub unsafe fn _export_update_ui_cabi(arg0: f32) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::update_ui(arg0); } pub trait Guest { @@ -4873,9 +4706,11 @@ pub mod exports { pub mod button { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::super::__link_custom_section_describing_imports; use super::super::super::super::_rt; - pub type Container = super::super::super::super::unavi::layout::container::Container; + pub type Container = + super::super::super::super::unavi::layout::container::Container; /// 3D interactable button. /// Fills the space of its root container. #[derive(Debug)] @@ -4893,9 +4728,7 @@ pub mod exports { pub fn new(val: T) -> Self { Self::type_guard::(); let val: _ButtonRep = Some(val); - let ptr: *mut _ButtonRep = _rt::Box::into_raw( - _rt::Box::new(val), - ); + let ptr: *mut _ButtonRep = _rt::Box::into_raw(_rt::Box::new(val)); unsafe { Self::from_handle(T::_resource_new(ptr.cast())) } } /// Gets access to the underlying `T` which represents this resource. @@ -4933,12 +4766,13 @@ pub mod exports { use core::any::TypeId; static mut LAST_TYPE: Option = None; unsafe { - assert!(! cfg!(target_feature = "atomics")); + assert!(!cfg!(target_feature = "atomics")); let id = TypeId::of::(); match LAST_TYPE { Some(ty) => { assert!( - ty == id, "cannot use two types with this resource type" + ty == id, + "cannot use two types with this resource type" ) } None => LAST_TYPE = Some(id), @@ -4999,10 +4833,9 @@ pub mod exports { } #[doc(hidden)] #[allow(non_snake_case)] - pub unsafe fn _export_constructor_button_cabi( - arg0: i32, - ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + pub unsafe fn _export_constructor_button_cabi(arg0: i32) -> i32 { + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let result0 = Button::new( T::new( super::super::super::super::unavi::layout::container::Container::from_handle( @@ -5017,10 +4850,9 @@ pub mod exports { pub unsafe fn _export_method_button_root_cabi( arg0: *mut u8, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::root( - ButtonBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::root(ButtonBorrow::lift(arg0 as u32 as usize).get()); (result0).take_handle() as i32 } #[doc(hidden)] @@ -5028,10 +4860,9 @@ pub mod exports { pub unsafe fn _export_method_button_hovered_cabi( arg0: *mut u8, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::hovered( - ButtonBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::hovered(ButtonBorrow::lift(arg0 as u32 as usize).get()); match result0 { true => 1, false => 0, @@ -5042,10 +4873,9 @@ pub mod exports { pub unsafe fn _export_method_button_pressed_cabi( arg0: *mut u8, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::pressed( - ButtonBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::pressed(ButtonBorrow::lift(arg0 as u32 as usize).get()); match result0 { true => 1, false => 0, @@ -5135,10 +4965,13 @@ pub mod exports { pub mod text { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::super::__link_custom_section_describing_imports; use super::super::super::super::_rt; - pub type Alignment = super::super::super::super::unavi::layout::container::Alignment; - pub type Container = super::super::super::super::unavi::layout::container::Container; + pub type Alignment = + super::super::super::super::unavi::layout::container::Alignment; + pub type Container = + super::super::super::super::unavi::layout::container::Container; pub type Material = super::super::super::super::wired::scene::material::Material; pub type Mesh = super::super::super::super::wired::scene::mesh::Mesh; #[derive(Debug)] @@ -5156,9 +4989,7 @@ pub mod exports { pub fn new(val: T) -> Self { Self::type_guard::(); let val: _TextRep = Some(val); - let ptr: *mut _TextRep = _rt::Box::into_raw( - _rt::Box::new(val), - ); + let ptr: *mut _TextRep = _rt::Box::into_raw(_rt::Box::new(val)); unsafe { Self::from_handle(T::_resource_new(ptr.cast())) } } /// Gets access to the underlying `T` which represents this resource. @@ -5196,12 +5027,13 @@ pub mod exports { use core::any::TypeId; static mut LAST_TYPE: Option = None; unsafe { - assert!(! cfg!(target_feature = "atomics")); + assert!(!cfg!(target_feature = "atomics")); let id = TypeId::of::(); match LAST_TYPE { Some(ty) => { assert!( - ty == id, "cannot use two types with this resource type" + ty == id, + "cannot use two types with this resource type" ) } None => LAST_TYPE = Some(id), @@ -5267,14 +5099,9 @@ pub mod exports { Word, } impl ::core::fmt::Debug for WordWrap { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - WordWrap::Character => { - f.debug_tuple("WordWrap::Character").finish() - } + WordWrap::Character => f.debug_tuple("WordWrap::Character").finish(), WordWrap::Word => f.debug_tuple("WordWrap::Word").finish(), } } @@ -5308,9 +5135,7 @@ pub mod exports { pub fn new(val: T) -> Self { Self::type_guard::(); let val: _TextBoxRep = Some(val); - let ptr: *mut _TextBoxRep = _rt::Box::into_raw( - _rt::Box::new(val), - ); + let ptr: *mut _TextBoxRep = _rt::Box::into_raw(_rt::Box::new(val)); unsafe { Self::from_handle(T::_resource_new(ptr.cast())) } } /// Gets access to the underlying `T` which represents this resource. @@ -5348,12 +5173,13 @@ pub mod exports { use core::any::TypeId; static mut LAST_TYPE: Option = None; unsafe { - assert!(! cfg!(target_feature = "atomics")); + assert!(!cfg!(target_feature = "atomics")); let id = TypeId::of::(); match LAST_TYPE { Some(ty) => { assert!( - ty == id, "cannot use two types with this resource type" + ty == id, + "cannot use two types with this resource type" ) } None => LAST_TYPE = Some(id), @@ -5418,7 +5244,8 @@ pub mod exports { arg0: *mut u8, arg1: usize, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let len0 = arg1; let bytes0 = _rt::Vec::from_raw_parts(arg0.cast(), len0, len0); let result1 = Text::new(T::new(_rt::string_lift(bytes0))); @@ -5426,10 +5253,9 @@ pub mod exports { } #[doc(hidden)] #[allow(non_snake_case)] - pub unsafe fn _export_method_text_ref_cabi( - arg0: *mut u8, - ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + pub unsafe fn _export_method_text_ref_cabi(arg0: *mut u8) -> i32 { + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let result0 = T::ref_(TextBorrow::lift(arg0 as u32 as usize).get()); (result0).take_handle() as i32 } @@ -5441,7 +5267,8 @@ pub mod exports { arg2: *mut u8, arg3: usize, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::set_font( TextBorrow::lift(arg0 as u32 as usize).get(), match arg1 { @@ -5462,7 +5289,8 @@ pub mod exports { pub unsafe fn _export_method_text_text_cabi( arg0: *mut u8, ) -> *mut u8 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let result0 = T::text(TextBorrow::lift(arg0 as u32 as usize).get()); let ptr1 = _RET_AREA.0.as_mut_ptr().cast::(); let vec2 = (result0.into_bytes()).into_boxed_slice(); @@ -5475,9 +5303,7 @@ pub mod exports { } #[doc(hidden)] #[allow(non_snake_case)] - pub unsafe fn __post_return_method_text_text( - arg0: *mut u8, - ) { + pub unsafe fn __post_return_method_text_text(arg0: *mut u8) { let l0 = *arg0.add(0).cast::<*mut u8>(); let l1 = *arg0.add(4).cast::(); _rt::cabi_dealloc(l0, l1, 1); @@ -5489,7 +5315,8 @@ pub mod exports { arg1: *mut u8, arg2: usize, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let len0 = arg2; let bytes0 = _rt::Vec::from_raw_parts(arg1.cast(), len0, len0); T::set_text( @@ -5499,24 +5326,18 @@ pub mod exports { } #[doc(hidden)] #[allow(non_snake_case)] - pub unsafe fn _export_method_text_align_x_cabi( - arg0: *mut u8, - ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::align_x( - TextBorrow::lift(arg0 as u32 as usize).get(), - ); + pub unsafe fn _export_method_text_align_x_cabi(arg0: *mut u8) -> i32 { + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::align_x(TextBorrow::lift(arg0 as u32 as usize).get()); result0.clone() as i32 } #[doc(hidden)] #[allow(non_snake_case)] - pub unsafe fn _export_method_text_align_y_cabi( - arg0: *mut u8, - ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::align_y( - TextBorrow::lift(arg0 as u32 as usize).get(), - ); + pub unsafe fn _export_method_text_align_y_cabi(arg0: *mut u8) -> i32 { + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::align_y(TextBorrow::lift(arg0 as u32 as usize).get()); result0.clone() as i32 } #[doc(hidden)] @@ -5525,7 +5346,8 @@ pub mod exports { arg0: *mut u8, arg1: i32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::set_align_x( TextBorrow::lift(arg0 as u32 as usize).get(), super::super::super::super::unavi::layout::container::Alignment::_lift( @@ -5539,7 +5361,8 @@ pub mod exports { arg0: *mut u8, arg1: i32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::set_align_y( TextBorrow::lift(arg0 as u32 as usize).get(), super::super::super::super::unavi::layout::container::Alignment::_lift( @@ -5552,10 +5375,9 @@ pub mod exports { pub unsafe fn _export_method_text_font_size_cabi( arg0: *mut u8, ) -> f32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::font_size( - TextBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::font_size(TextBorrow::lift(arg0 as u32 as usize).get()); _rt::as_f32(result0) } #[doc(hidden)] @@ -5564,7 +5386,8 @@ pub mod exports { arg0: *mut u8, arg1: f32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::set_font_size(TextBorrow::lift(arg0 as u32 as usize).get(), arg1); } #[doc(hidden)] @@ -5572,10 +5395,9 @@ pub mod exports { pub unsafe fn _export_method_text_thickness_cabi( arg0: *mut u8, ) -> f32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::thickness( - TextBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::thickness(TextBorrow::lift(arg0 as u32 as usize).get()); _rt::as_f32(result0) } #[doc(hidden)] @@ -5584,7 +5406,8 @@ pub mod exports { arg0: *mut u8, arg1: f32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::set_thickness(TextBorrow::lift(arg0 as u32 as usize).get(), arg1); } #[doc(hidden)] @@ -5592,10 +5415,9 @@ pub mod exports { pub unsafe fn _export_method_text_material_cabi( arg0: *mut u8, ) -> *mut u8 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::material( - TextBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::material(TextBorrow::lift(arg0 as u32 as usize).get()); let ptr1 = _RET_AREA.0.as_mut_ptr().cast::(); match result0 { Some(e) => { @@ -5615,7 +5437,8 @@ pub mod exports { arg1: i32, arg2: i32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let handle0; T::set_material( TextBorrow::lift(arg0 as u32 as usize).get(), @@ -5636,19 +5459,17 @@ pub mod exports { } #[doc(hidden)] #[allow(non_snake_case)] - pub unsafe fn _export_method_text_mesh_cabi( - arg0: *mut u8, - ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + pub unsafe fn _export_method_text_mesh_cabi(arg0: *mut u8) -> i32 { + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let result0 = T::mesh(TextBorrow::lift(arg0 as u32 as usize).get()); (result0).take_handle() as i32 } #[doc(hidden)] #[allow(non_snake_case)] - pub unsafe fn _export_constructor_text_box_cabi( - arg0: i32, - ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + pub unsafe fn _export_constructor_text_box_cabi(arg0: i32) -> i32 { + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let result0 = TextBox::new( T::new( super::super::super::super::unavi::layout::container::Container::from_handle( @@ -5663,10 +5484,9 @@ pub mod exports { pub unsafe fn _export_method_text_box_root_cabi( arg0: *mut u8, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::root( - TextBoxBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::root(TextBoxBorrow::lift(arg0 as u32 as usize).get()); (result0).take_handle() as i32 } #[doc(hidden)] @@ -5674,10 +5494,9 @@ pub mod exports { pub unsafe fn _export_method_text_box_text_cabi( arg0: *mut u8, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::text( - TextBoxBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::text(TextBoxBorrow::lift(arg0 as u32 as usize).get()); (result0).take_handle() as i32 } #[doc(hidden)] @@ -5687,7 +5506,8 @@ pub mod exports { arg1: *mut u8, arg2: usize, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let len0 = arg2; let bytes0 = _rt::Vec::from_raw_parts(arg1.cast(), len0, len0); T::set_text( @@ -5700,10 +5520,9 @@ pub mod exports { pub unsafe fn _export_method_text_box_wrap_cabi( arg0: *mut u8, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::wrap( - TextBoxBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::wrap(TextBoxBorrow::lift(arg0 as u32 as usize).get()); result0.clone() as i32 } #[doc(hidden)] @@ -5712,7 +5531,8 @@ pub mod exports { arg0: *mut u8, arg1: i32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::set_wrap( TextBoxBorrow::lift(arg0 as u32 as usize).get(), WordWrap::_lift(arg1 as u8), @@ -5951,9 +5771,7 @@ pub mod exports { pub(crate) use __export_unavi_ui_text_cabi; #[repr(align(4))] struct _RetArea([::core::mem::MaybeUninit; 8]); - static mut _RET_AREA: _RetArea = _RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 8]); } } } @@ -6020,7 +5838,9 @@ mod _rt { } impl fmt::Debug for Resource { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("Resource").field("handle", &self.handle).finish() + f.debug_struct("Resource") + .field("handle", &self.handle) + .finish() } } impl Drop for Resource { diff --git a/wasm/unavi-vscreen/src/bindings.rs b/wasm/unavi-vscreen/src/bindings.rs index 2f278761e..92627ee0e 100644 --- a/wasm/unavi-vscreen/src/bindings.rs +++ b/wasm/unavi-vscreen/src/bindings.rs @@ -6,7 +6,8 @@ pub mod unavi { pub mod container { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Vec3 = super::super::super::wired::math::types::Vec3; pub type Node = super::super::super::wired::scene::node::Node; @@ -18,10 +19,7 @@ pub mod unavi { Start, } impl ::core::fmt::Debug for Alignment { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { Alignment::Center => f.debug_tuple("Alignment::Center").finish(), Alignment::End => f.debug_tuple("Alignment::End").finish(), @@ -100,11 +98,7 @@ pub mod unavi { fn wit_import(_: f32, _: f32, _: f32) -> i32 { unreachable!() } - let ret = wit_import( - _rt::as_f32(x0), - _rt::as_f32(y0), - _rt::as_f32(z0), - ); + let ret = wit_import(_rt::as_f32(x0), _rt::as_f32(y0), _rt::as_f32(z0)); Container::from_handle(ret as u32) } } @@ -146,9 +140,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -169,9 +161,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -181,9 +171,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:layout/container")] @@ -256,9 +244,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:layout/container")] @@ -429,7 +415,8 @@ pub mod unavi { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Vec2 = super::super::super::wired::math::types::Vec2; pub type Vec3 = super::super::super::wired::math::types::Vec3; @@ -626,10 +613,7 @@ pub mod unavi { pub subdivisions: u8, } impl ::core::fmt::Debug for SphereIco { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("SphereIco") .field("subdivisions", &self.subdivisions) .finish() @@ -642,10 +626,7 @@ pub mod unavi { pub stacks: u8, } impl ::core::fmt::Debug for SphereUv { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("SphereUv") .field("sectors", &self.sectors) .field("stacks", &self.stacks) @@ -660,17 +641,10 @@ pub mod unavi { Uv(SphereUv), } impl ::core::fmt::Debug for SphereKind { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - SphereKind::Ico(e) => { - f.debug_tuple("SphereKind::Ico").field(e).finish() - } - SphereKind::Uv(e) => { - f.debug_tuple("SphereKind::Uv").field(e).finish() - } + SphereKind::Ico(e) => f.debug_tuple("SphereKind::Ico").field(e).finish(), + SphereKind::Uv(e) => f.debug_tuple("SphereKind::Uv").field(e).finish(), } } } @@ -752,10 +726,7 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn new(size: Vec2) -> Self { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = size; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = size; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -777,9 +748,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -794,10 +763,7 @@ pub mod unavi { wit_import((self).handle() as i32, ptr0); let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); - super::super::super::wired::math::types::Vec2 { - x: l1, - y: l2, - } + super::super::super::wired::math::types::Vec2 { x: l1, y: l2 } } } } @@ -805,10 +771,7 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn set_size(&self, value: Vec2) { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = value; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -819,11 +782,7 @@ pub mod unavi { fn wit_import(_: i32, _: f32, _: f32) { unreachable!() } - wit_import( - (self).handle() as i32, - _rt::as_f32(x0), - _rt::as_f32(y0), - ); + wit_import((self).handle() as i32, _rt::as_f32(x0), _rt::as_f32(y0)); } } } @@ -843,9 +802,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -865,9 +822,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -887,9 +842,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1003,9 +956,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1025,9 +976,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1047,9 +996,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1057,10 +1004,8 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn new(half_size: Vec2) -> Self { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = half_size; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = + half_size; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -1082,9 +1027,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -1099,10 +1042,7 @@ pub mod unavi { wit_import((self).handle() as i32, ptr0); let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); - super::super::super::wired::math::types::Vec2 { - x: l1, - y: l2, - } + super::super::super::wired::math::types::Vec2 { x: l1, y: l2 } } } } @@ -1110,10 +1050,7 @@ pub mod unavi { #[allow(unused_unsafe, clippy::all)] pub fn set_half_size(&self, value: Vec2) { unsafe { - let super::super::super::wired::math::types::Vec2 { - x: x0, - y: y0, - } = value; + let super::super::super::wired::math::types::Vec2 { x: x0, y: y0 } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] extern "C" { @@ -1124,11 +1061,7 @@ pub mod unavi { fn wit_import(_: i32, _: f32, _: f32) { unreachable!() } - wit_import( - (self).handle() as i32, - _rt::as_f32(x0), - _rt::as_f32(y0), - ); + wit_import((self).handle() as i32, _rt::as_f32(x0), _rt::as_f32(y0)); } } } @@ -1186,9 +1119,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1208,9 +1139,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1230,9 +1159,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1465,9 +1392,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1487,9 +1412,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1509,9 +1432,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1534,11 +1455,7 @@ pub mod unavi { fn wit_import(_: f32, _: f32, _: f32) -> i32 { unreachable!() } - let ret = wit_import( - _rt::as_f32(x0), - _rt::as_f32(y0), - _rt::as_f32(z0), - ); + let ret = wit_import(_rt::as_f32(x0), _rt::as_f32(y0), _rt::as_f32(z0)); Cuboid::from_handle(ret as u32) } } @@ -1549,9 +1466,7 @@ pub mod unavi { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -1619,9 +1534,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1641,9 +1554,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1663,9 +1574,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1750,9 +1659,7 @@ pub mod unavi { unsafe { #[repr(align(1))] struct RetArea([::core::mem::MaybeUninit; 3]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 3], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 3]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "unavi:shapes/api")] @@ -1799,11 +1706,16 @@ pub mod unavi { unsafe { let (result2_0, result2_1, result2_2) = match value { SphereKind::Ico(e) => { - let SphereIco { subdivisions: subdivisions0 } = e; + let SphereIco { + subdivisions: subdivisions0, + } = e; (0i32, _rt::as_i32(subdivisions0), 0i32) } SphereKind::Uv(e) => { - let SphereUv { sectors: sectors1, stacks: stacks1 } = e; + let SphereUv { + sectors: sectors1, + stacks: stacks1, + } = e; (1i32, _rt::as_i32(sectors1), _rt::as_i32(stacks1)) } }; @@ -1817,12 +1729,7 @@ pub mod unavi { fn wit_import(_: i32, _: i32, _: i32, _: i32) { unreachable!() } - wit_import( - (self).handle() as i32, - result2_0, - result2_1, - result2_2, - ); + wit_import((self).handle() as i32, result2_0, result2_1, result2_2); } } } @@ -1842,9 +1749,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::mesh::Mesh::from_handle( - ret as u32, - ) + super::super::super::wired::scene::mesh::Mesh::from_handle(ret as u32) } } } @@ -1864,9 +1769,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1886,9 +1789,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1964,9 +1865,7 @@ pub mod unavi { unreachable!() } let ret = wit_import((self).handle() as i32); - super::super::super::wired::scene::node::Node::from_handle( - ret as u32, - ) + super::super::super::wired::scene::node::Node::from_handle(ret as u32) } } } @@ -1981,7 +1880,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; pub type Vec3 = super::super::super::wired::math::types::Vec3; pub type Quat = super::super::super::wired::math::types::Quat; #[repr(u8)] @@ -1991,10 +1891,7 @@ pub mod wired { Right, } impl ::core::fmt::Debug for HandSide { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { HandSide::Left => f.debug_tuple("HandSide::Left").finish(), HandSide::Right => f.debug_tuple("HandSide::Right").finish(), @@ -2022,10 +1919,7 @@ pub mod wired { pub radius: f32, } impl ::core::fmt::Debug for Joint { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Joint") .field("translation", &self.translation) .field("rotation", &self.rotation) @@ -2042,10 +1936,7 @@ pub mod wired { pub metacarpal: Joint, } impl ::core::fmt::Debug for Finger { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Finger") .field("tip", &self.tip) .field("distal", &self.distal) @@ -2069,10 +1960,7 @@ pub mod wired { pub elbow: Option, } impl ::core::fmt::Debug for Hand { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Hand") .field("side", &self.side) .field("thumb", &self.thumb) @@ -2094,10 +1982,7 @@ pub mod wired { pub origin: Vec3, } impl ::core::fmt::Debug for Ray { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Ray") .field("orientation", &self.orientation) .field("origin", &self.origin) @@ -2110,17 +1995,10 @@ pub mod wired { Ray(Ray), } impl ::core::fmt::Debug for InputData { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputData::Hand(e) => { - f.debug_tuple("InputData::Hand").field(e).finish() - } - InputData::Ray(e) => { - f.debug_tuple("InputData::Ray").field(e).finish() - } + InputData::Hand(e) => f.debug_tuple("InputData::Hand").field(e).finish(), + InputData::Ray(e) => f.debug_tuple("InputData::Ray").field(e).finish(), } } } @@ -2130,17 +2008,10 @@ pub mod wired { Hover, } impl ::core::fmt::Debug for InputAction { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - InputAction::Collision => { - f.debug_tuple("InputAction::Collision").finish() - } - InputAction::Hover => { - f.debug_tuple("InputAction::Hover").finish() - } + InputAction::Collision => f.debug_tuple("InputAction::Collision").finish(), + InputAction::Hover => f.debug_tuple("InputAction::Hover").finish(), } } } @@ -2155,10 +2026,7 @@ pub mod wired { pub data: InputData, } impl ::core::fmt::Debug for InputEvent { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("InputEvent") .field("id", &self.id) .field("action", &self.action) @@ -2171,7 +2039,8 @@ pub mod wired { pub mod handler { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type InputEvent = super::super::super::wired::input::types::InputEvent; #[derive(Debug)] @@ -2238,9 +2107,7 @@ pub mod wired { unsafe { #[repr(align(8))] struct RetArea([::core::mem::MaybeUninit; 768]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 768], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 768]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:input/handler")] @@ -2856,7 +2723,8 @@ pub mod wired { pub mod api { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; #[repr(u8)] #[derive(Clone, Copy, Eq, PartialEq)] pub enum LogLevel { @@ -2866,10 +2734,7 @@ pub mod wired { Error, } impl ::core::fmt::Debug for LogLevel { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { LogLevel::Debug => f.debug_tuple("LogLevel::Debug").finish(), LogLevel::Info => f.debug_tuple("LogLevel::Info").finish(), @@ -2920,7 +2785,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; #[repr(C)] #[derive(Clone, Copy)] pub struct Vec2 { @@ -2928,10 +2794,7 @@ pub mod wired { pub y: f32, } impl ::core::fmt::Debug for Vec2 { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Vec2") .field("x", &self.x) .field("y", &self.y) @@ -2946,10 +2809,7 @@ pub mod wired { pub z: f32, } impl ::core::fmt::Debug for Vec3 { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Vec3") .field("x", &self.x) .field("y", &self.y) @@ -2966,10 +2826,7 @@ pub mod wired { pub w: f32, } impl ::core::fmt::Debug for Quat { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Quat") .field("x", &self.x) .field("y", &self.y) @@ -2986,10 +2843,7 @@ pub mod wired { pub translation: Vec3, } impl ::core::fmt::Debug for Transform { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Transform") .field("rotation", &self.rotation) .field("scale", &self.scale) @@ -3042,7 +2896,11 @@ pub mod wired { let l1 = *ptr0.add(0).cast::(); let l2 = *ptr0.add(4).cast::(); let l3 = *ptr0.add(8).cast::(); - Vec3 { x: l1, y: l2, z: l3 } + Vec3 { + x: l1, + y: l2, + z: l3, + } } } #[allow(unused_unsafe, clippy::all)] @@ -3067,7 +2925,12 @@ pub mod wired { let l2 = *ptr0.add(4).cast::(); let l3 = *ptr0.add(8).cast::(); let l4 = *ptr0.add(12).cast::(); - Quat { x: l1, y: l2, z: l3, w: l4 } + Quat { + x: l1, + y: l2, + z: l3, + w: l4, + } } } #[allow(unused_unsafe, clippy::all)] @@ -3099,9 +2962,22 @@ pub mod wired { let l9 = *ptr0.add(32).cast::(); let l10 = *ptr0.add(36).cast::(); Transform { - rotation: Quat { x: l1, y: l2, z: l3, w: l4 }, - scale: Vec3 { x: l5, y: l6, z: l7 }, - translation: Vec3 { x: l8, y: l9, z: l10 }, + rotation: Quat { + x: l1, + y: l2, + z: l3, + w: l4, + }, + scale: Vec3 { + x: l5, + y: l6, + z: l7, + }, + translation: Vec3 { + x: l8, + y: l9, + z: l10, + }, } } } @@ -3113,7 +2989,8 @@ pub mod wired { pub mod types { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Vec3 = super::super::super::wired::math::types::Vec3; #[derive(Debug)] @@ -3160,10 +3037,7 @@ pub mod wired { pub radius: f32, } impl ::core::fmt::Debug for ShapeCylinder { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("ShapeCylinder") .field("height", &self.height) .field("radius", &self.radius) @@ -3177,20 +3051,11 @@ pub mod wired { Sphere(f32), } impl ::core::fmt::Debug for Shape { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Shape::Cuboid(e) => { - f.debug_tuple("Shape::Cuboid").field(e).finish() - } - Shape::Cylinder(e) => { - f.debug_tuple("Shape::Cylinder").field(e).finish() - } - Shape::Sphere(e) => { - f.debug_tuple("Shape::Sphere").field(e).finish() - } + Shape::Cuboid(e) => f.debug_tuple("Shape::Cuboid").field(e).finish(), + Shape::Cylinder(e) => f.debug_tuple("Shape::Cylinder").field(e).finish(), + Shape::Sphere(e) => f.debug_tuple("Shape::Sphere").field(e).finish(), } } } @@ -3239,17 +3104,10 @@ pub mod wired { Kinematic, } impl ::core::fmt::Debug for RigidBodyType { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - RigidBodyType::Dynamic => { - f.debug_tuple("RigidBodyType::Dynamic").finish() - } - RigidBodyType::Fixed => { - f.debug_tuple("RigidBodyType::Fixed").finish() - } + RigidBodyType::Dynamic => f.debug_tuple("RigidBodyType::Dynamic").finish(), + RigidBodyType::Fixed => f.debug_tuple("RigidBodyType::Fixed").finish(), RigidBodyType::Kinematic => { f.debug_tuple("RigidBodyType::Kinematic").finish() } @@ -3284,7 +3142,10 @@ pub mod wired { (0i32, _rt::as_f32(x0), _rt::as_f32(y0), _rt::as_f32(z0)) } Shape::Cylinder(e) => { - let ShapeCylinder { height: height1, radius: radius1 } = e; + let ShapeCylinder { + height: height1, + radius: radius1, + } = e; (1i32, _rt::as_f32(height1), _rt::as_f32(radius1), 0.0f32) } Shape::Sphere(e) => (2i32, _rt::as_f32(e), 0.0f32, 0.0f32), @@ -3366,9 +3227,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:physics/types")] @@ -3426,9 +3285,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 12]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 12], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 12]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:physics/types")] @@ -3488,7 +3345,8 @@ pub mod wired { pub mod material { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; #[repr(C)] #[derive(Clone, Copy)] @@ -3499,10 +3357,7 @@ pub mod wired { pub a: f32, } impl ::core::fmt::Debug for Color { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("Color") .field("r", &self.r) .field("g", &self.g) @@ -3612,9 +3467,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] @@ -3662,9 +3515,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 16]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 16], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 16]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] @@ -3694,7 +3545,12 @@ pub mod wired { #[allow(unused_unsafe, clippy::all)] pub fn set_color(&self, value: Color) { unsafe { - let Color { r: r0, g: g0, b: b0, a: a0 } = value; + let Color { + r: r0, + g: g0, + b: b0, + a: a0, + } = value; #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/material")] extern "C" { @@ -3720,7 +3576,8 @@ pub mod wired { pub mod mesh { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Material = super::super::super::wired::scene::material::Material; #[derive(Debug)] @@ -3822,9 +3679,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -4024,9 +3879,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -4074,9 +3927,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/mesh")] @@ -4140,10 +3991,7 @@ pub mod wired { fn wit_import(_: i32, _: i32) { unreachable!() } - wit_import( - (self).handle() as i32, - (&value).take_handle() as i32, - ); + wit_import((self).handle() as i32, (&value).take_handle() as i32); } } } @@ -4152,7 +4000,8 @@ pub mod wired { pub mod node { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::__link_custom_section_describing_imports; use super::super::super::_rt; pub type Mesh = super::super::super::wired::scene::mesh::Mesh; pub type InputHandler = super::super::super::wired::input::handler::InputHandler; @@ -4260,9 +4109,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4310,9 +4157,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4385,9 +4230,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4421,9 +4264,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4473,9 +4314,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 40]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 40], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 40]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4600,9 +4439,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4660,9 +4497,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4720,9 +4555,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4780,9 +4613,7 @@ pub mod wired { unsafe { #[repr(align(4))] struct RetArea([::core::mem::MaybeUninit; 8]); - let mut ret_area = RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + let mut ret_area = RetArea([::core::mem::MaybeUninit::uninit(); 8]); let ptr0 = ret_area.0.as_mut_ptr().cast::(); #[cfg(target_arch = "wasm32")] #[link(wasm_import_module = "wired:scene/node")] @@ -4847,9 +4678,11 @@ pub mod exports { pub mod screen { #[used] #[doc(hidden)] - static __FORCE_SECTION_REF: fn() = super::super::super::super::__link_custom_section_describing_imports; + static __FORCE_SECTION_REF: fn() = + super::super::super::super::__link_custom_section_describing_imports; use super::super::super::super::_rt; - pub type Container = super::super::super::super::unavi::layout::container::Container; + pub type Container = + super::super::super::super::unavi::layout::container::Container; pub type Vec2 = super::super::super::super::wired::math::types::Vec2; #[derive(Clone, Copy)] pub enum ScreenShape { @@ -4857,10 +4690,7 @@ pub mod exports { Rectangle(Vec2), } impl ::core::fmt::Debug for ScreenShape { - fn fmt( - &self, - f: &mut ::core::fmt::Formatter<'_>, - ) -> ::core::fmt::Result { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { ScreenShape::Circle(e) => { f.debug_tuple("ScreenShape::Circle").field(e).finish() @@ -4888,9 +4718,7 @@ pub mod exports { pub fn new(val: T) -> Self { Self::type_guard::(); let val: _ScreenRep = Some(val); - let ptr: *mut _ScreenRep = _rt::Box::into_raw( - _rt::Box::new(val), - ); + let ptr: *mut _ScreenRep = _rt::Box::into_raw(_rt::Box::new(val)); unsafe { Self::from_handle(T::_resource_new(ptr.cast())) } } /// Gets access to the underlying `T` which represents this resource. @@ -4928,12 +4756,13 @@ pub mod exports { use core::any::TypeId; static mut LAST_TYPE: Option = None; unsafe { - assert!(! cfg!(target_feature = "atomics")); + assert!(!cfg!(target_feature = "atomics")); let id = TypeId::of::(); match LAST_TYPE { Some(ty) => { assert!( - ty == id, "cannot use two types with this resource type" + ty == id, + "cannot use two types with this resource type" ) } None => LAST_TYPE = Some(id), @@ -4999,7 +4828,8 @@ pub mod exports { arg1: f32, arg2: f32, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); let v0 = match arg0 { 0 => { let e0 = arg1; @@ -5022,10 +4852,9 @@ pub mod exports { pub unsafe fn _export_method_screen_root_cabi( arg0: *mut u8, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::root( - ScreenBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::root(ScreenBorrow::lift(arg0 as u32 as usize).get()); (result0).take_handle() as i32 } #[doc(hidden)] @@ -5033,10 +4862,9 @@ pub mod exports { pub unsafe fn _export_method_screen_open_cabi( arg0: *mut u8, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::open( - ScreenBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::open(ScreenBorrow::lift(arg0 as u32 as usize).get()); match result0 { true => 1, false => 0, @@ -5048,7 +4876,8 @@ pub mod exports { arg0: *mut u8, arg1: i32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::set_open( ScreenBorrow::lift(arg0 as u32 as usize).get(), _rt::bool_lift(arg1 as u8), @@ -5059,10 +4888,9 @@ pub mod exports { pub unsafe fn _export_method_screen_visible_cabi( arg0: *mut u8, ) -> i32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::visible( - ScreenBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::visible(ScreenBorrow::lift(arg0 as u32 as usize).get()); match result0 { true => 1, false => 0, @@ -5074,7 +4902,8 @@ pub mod exports { arg0: *mut u8, arg1: i32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::set_visible( ScreenBorrow::lift(arg0 as u32 as usize).get(), _rt::bool_lift(arg1 as u8), @@ -5082,42 +4911,37 @@ pub mod exports { } #[doc(hidden)] #[allow(non_snake_case)] - pub unsafe fn _export_method_screen_animation_duration_cabi< - T: GuestScreen, - >(arg0: *mut u8) -> f32 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::animation_duration( - ScreenBorrow::lift(arg0 as u32 as usize).get(), - ); + pub unsafe fn _export_method_screen_animation_duration_cabi( + arg0: *mut u8, + ) -> f32 { + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = + T::animation_duration(ScreenBorrow::lift(arg0 as u32 as usize).get()); _rt::as_f32(result0) } #[doc(hidden)] #[allow(non_snake_case)] - pub unsafe fn _export_method_screen_set_animation_duration_cabi< - T: GuestScreen, - >(arg0: *mut u8, arg1: f32) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - T::set_animation_duration( - ScreenBorrow::lift(arg0 as u32 as usize).get(), - arg1, - ); + pub unsafe fn _export_method_screen_set_animation_duration_cabi( + arg0: *mut u8, + arg1: f32, + ) { + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + T::set_animation_duration(ScreenBorrow::lift(arg0 as u32 as usize).get(), arg1); } #[doc(hidden)] #[allow(non_snake_case)] pub unsafe fn _export_method_screen_children_cabi( arg0: *mut u8, ) -> *mut u8 { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); - let result0 = T::children( - ScreenBorrow::lift(arg0 as u32 as usize).get(), - ); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); + let result0 = T::children(ScreenBorrow::lift(arg0 as u32 as usize).get()); let ptr1 = _RET_AREA.0.as_mut_ptr().cast::(); let vec2 = result0; let len2 = vec2.len(); - let layout2 = _rt::alloc::Layout::from_size_align_unchecked( - vec2.len() * 4, - 4, - ); + let layout2 = _rt::alloc::Layout::from_size_align_unchecked(vec2.len() * 4, 4); let result2 = if layout2.size() != 0 { let ptr = _rt::alloc::alloc(layout2).cast::(); if ptr.is_null() { @@ -5125,7 +4949,9 @@ pub mod exports { } ptr } else { - { ::core::ptr::null_mut() } + { + ::core::ptr::null_mut() + } }; for (i, e) in vec2.into_iter().enumerate() { let base = result2.add(i * 4); @@ -5139,9 +4965,7 @@ pub mod exports { } #[doc(hidden)] #[allow(non_snake_case)] - pub unsafe fn __post_return_method_screen_children( - arg0: *mut u8, - ) { + pub unsafe fn __post_return_method_screen_children(arg0: *mut u8) { let l0 = *arg0.add(0).cast::<*mut u8>(); let l1 = *arg0.add(4).cast::(); let base2 = l0; @@ -5154,7 +4978,8 @@ pub mod exports { arg0: *mut u8, arg1: i32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::add_child( ScreenBorrow::lift(arg0 as u32 as usize).get(), ScreenBorrow::lift(arg1 as u32 as usize), @@ -5166,7 +4991,8 @@ pub mod exports { arg0: *mut u8, arg1: i32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::remove_child( ScreenBorrow::lift(arg0 as u32 as usize).get(), ScreenBorrow::lift(arg1 as u32 as usize), @@ -5178,7 +5004,8 @@ pub mod exports { arg0: *mut u8, arg1: f32, ) { - #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); + #[cfg(target_arch = "wasm32")] + _rt::run_ctors_once(); T::update(ScreenBorrow::lift(arg0 as u32 as usize).get(), arg1); } pub trait Guest { @@ -5318,9 +5145,7 @@ pub mod exports { pub(crate) use __export_unavi_vscreen_screen_cabi; #[repr(align(4))] struct _RetArea([::core::mem::MaybeUninit; 8]); - static mut _RET_AREA: _RetArea = _RetArea( - [::core::mem::MaybeUninit::uninit(); 8], - ); + static mut _RET_AREA: _RetArea = _RetArea([::core::mem::MaybeUninit::uninit(); 8]); } } } @@ -5387,7 +5212,9 @@ mod _rt { } impl fmt::Debug for Resource { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("Resource").field("handle", &self.handle).finish() + f.debug_struct("Resource") + .field("handle", &self.handle) + .finish() } } impl Drop for Resource {