pub enum ConformanceTraceEvent {
DocumentReplaced {
before_revision: u64,
after_revision: u64,
},
GraphCommitted {
label: Option<String>,
op_kinds: Vec<String>,
},
ViewChanged {
changes: Vec<ConformanceViewChange>,
},
Gesture(NodeGraphGestureEvent),
Callback(ConformanceCallbackEvent),
}Variants§
DocumentReplaced
GraphCommitted
ViewChanged
Fields
§
changes: Vec<ConformanceViewChange>Gesture(NodeGraphGestureEvent)
Callback(ConformanceCallbackEvent)
Implementations§
Source§impl ConformanceTraceEvent
impl ConformanceTraceEvent
pub fn graph_commit( label: Option<impl Into<String>>, op_kinds: impl IntoIterator<Item = impl AsRef<str>>, ) -> Self
pub fn viewport(pan: CanvasPoint, zoom: f32) -> Self
pub fn selection( nodes: impl IntoIterator<Item = NodeId>, edges: impl IntoIterator<Item = EdgeId>, groups: impl IntoIterator<Item = GroupId>, ) -> Self
pub fn gesture(event: NodeGraphGestureEvent) -> Self
pub fn callback(event: ConformanceCallbackEvent) -> Self
pub fn from_store_event(event: NodeGraphStoreEvent<'_>) -> Self
Trait Implementations§
Source§impl Clone for ConformanceTraceEvent
impl Clone for ConformanceTraceEvent
Source§fn clone(&self) -> ConformanceTraceEvent
fn clone(&self) -> ConformanceTraceEvent
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 moreSource§impl Debug for ConformanceTraceEvent
impl Debug for ConformanceTraceEvent
Source§impl<'de> Deserialize<'de> for ConformanceTraceEvent
impl<'de> Deserialize<'de> for ConformanceTraceEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ConformanceTraceEvent
impl PartialEq for ConformanceTraceEvent
Source§fn eq(&self, other: &ConformanceTraceEvent) -> bool
fn eq(&self, other: &ConformanceTraceEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ConformanceTraceEvent
impl Serialize for ConformanceTraceEvent
impl StructuralPartialEq for ConformanceTraceEvent
Auto Trait Implementations§
impl Freeze for ConformanceTraceEvent
impl RefUnwindSafe for ConformanceTraceEvent
impl Send for ConformanceTraceEvent
impl Sync for ConformanceTraceEvent
impl Unpin for ConformanceTraceEvent
impl UnsafeUnpin for ConformanceTraceEvent
impl UnwindSafe for ConformanceTraceEvent
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