#[non_exhaustive]pub struct Target {
pub entity: EntityId,
pub layer: LayerId,
pub path: Vec<(u32, EntityId)>,
}Expand description
where a pick or a snap found something: the entity on a layer, its layer and, inside an insert, the way down to the entity
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.entity: EntityId§layer: LayerId§path: Vec<(u32, EntityId)>inside an insert, one step per level: the copy of the insert above (row * columns + column; 0 for a single insert) and the entity of its block the way goes on with (a nested insert, …, last the entity itself). Empty for an entity on a layer
Trait Implementations§
impl Eq for Target
impl StructuralPartialEq for Target
Auto Trait Implementations§
impl Forget for Target
impl Freeze for Target
impl Move for Target
impl RefUnwindSafe for Target
impl Send for Targetwhere
RawVecInner: Send,
impl Sync for Targetwhere
RawVecInner: Sync,
impl Unpin for Target
impl UnsafeUnpin for Target
impl UnwindSafe for Targetwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more