#[non_exhaustive]pub enum ReflectEvent {
VecInserted {
path: Option<String>,
index: usize,
},
VecRemoved {
path: Option<String>,
index: usize,
},
VecReordered {
path: Option<String>,
from: usize,
to: usize,
},
VecCleared {
path: Option<String>,
previous_len: usize,
},
ArrayReordered {
path: Option<String>,
from: usize,
to: usize,
},
MapInserted {
path: Option<String>,
key: String,
},
MapRemoved {
path: Option<String>,
key: String,
},
MapRenamed {
path: Option<String>,
from: String,
to: String,
},
MapCleared {
path: Option<String>,
previous_len: usize,
},
}Expand description
A single structural change observed while rendering reflected UI.
These events focus on container structure (insert/remove/reorder/rename)
rather than low-level pointer or interaction details, providing a
simplified analogue to ImReflect’s richer ImResponse type.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
VecInserted
A vector had an element inserted at the given index.
Fields
VecRemoved
A vector element was removed from the given index.
Fields
VecReordered
A vector element was moved from from to to (indices in the final layout).
Fields
VecCleared
All elements were removed from a vector that previously contained previous_len items.
Fields
ArrayReordered
A fixed-size array had two elements swapped.
Fields
MapInserted
A map entry with the given key was inserted.
Fields
MapRemoved
A map entry with the given key was removed.
Fields
MapRenamed
A map entry key was renamed from from to to.
Fields
MapCleared
All entries were removed from a map that previously contained previous_len items.
Trait Implementations§
Source§impl Clone for ReflectEvent
impl Clone for ReflectEvent
Source§fn clone(&self) -> ReflectEvent
fn clone(&self) -> ReflectEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more