pub struct ConditionWithId<V> {
pub id: NodeId,
pub view: V,
}Expand description
Stable identity for one condition, assigned at snapshot time.
Returned by [Workspace::snapshot] alongside each condition view so
GUI code can target granular edit commands without reading index
positions.
Fields§
§id: NodeId§view: VTrait Implementations§
Source§impl<V: Clone> Clone for ConditionWithId<V>
impl<V: Clone> Clone for ConditionWithId<V>
Source§fn clone(&self) -> ConditionWithId<V>
fn clone(&self) -> ConditionWithId<V>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<V> Freeze for ConditionWithId<V>where
V: Freeze,
impl<V> RefUnwindSafe for ConditionWithId<V>where
V: RefUnwindSafe,
impl<V> Send for ConditionWithId<V>where
V: Send,
impl<V> Sync for ConditionWithId<V>where
V: Sync,
impl<V> Unpin for ConditionWithId<V>where
V: Unpin,
impl<V> UnsafeUnpin for ConditionWithId<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for ConditionWithId<V>where
V: 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