#[non_exhaustive]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 (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.id: NodeId§view: VImplementations§
Trait 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