bevy/crates/bevy_ui/src
MiniaczQ 5289e18e0b
System param validation for observers, system registry and run once (#15526)
# Objective

Fixes #15394

## Solution

Observers now validate params.

System registry has a new error variant for when system running fails
due to invalid parameters.

Run once now returns a `Result<Out, RunOnceError>` instead of `Out`.
This is more inline with system registry, which also returns a result.

I'll address warning messages in #15500.

## Testing

Added one test for each case.

---

## Migration Guide

- `RunSystemOnce::run_system_once` and
`RunSystemOnce::run_system_once_with` now return a `Result<Out>` instead
of just `Out`

---------

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
Co-authored-by: Zachary Harrold <zac@harrold.com.au>
2024-09-30 01:00:39 +00:00
..
layout System param validation for observers, system registry and run once (#15526) 2024-09-30 01:00:39 +00:00
render Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
widget Make CosmicFontSystem and SwashCache pub resources. (#15479) 2024-09-28 00:00:27 +00:00
accessibility.rs Return Results from Camera's world/viewport conversion methods (#14989) 2024-09-03 19:45:15 +00:00
focus.rs use precomputed border values (#15163) 2024-09-26 23:10:35 +00:00
geometry.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
lib.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
measurement.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
node_bundles.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
picking_backend.rs Rename UiPickingBackend to UiPickingBackendPlugin (#15462) 2024-09-27 00:50:06 +00:00
stack.rs Merge BuildWorldChildren and BuildChildren traits. (#14052) 2024-07-01 14:29:39 +00:00
ui_material.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
ui_node.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
update.rs use precomputed border values (#15163) 2024-09-26 23:10:35 +00:00