pub enum ConformanceViewChange {
Viewport {
pan: CanvasPoint,
zoom: f32,
},
Selection {
nodes: Vec<NodeId>,
edges: Vec<EdgeId>,
groups: Vec<GroupId>,
},
}Variants§
Implementations§
Source§impl ConformanceViewChange
impl ConformanceViewChange
pub fn from_view_change(change: &ViewChange) -> Self
Trait Implementations§
Source§impl Clone for ConformanceViewChange
impl Clone for ConformanceViewChange
Source§fn clone(&self) -> ConformanceViewChange
fn clone(&self) -> ConformanceViewChange
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 ConformanceViewChange
impl Debug for ConformanceViewChange
Source§impl<'de> Deserialize<'de> for ConformanceViewChange
impl<'de> Deserialize<'de> for ConformanceViewChange
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 ConformanceViewChange
impl PartialEq for ConformanceViewChange
Source§fn eq(&self, other: &ConformanceViewChange) -> bool
fn eq(&self, other: &ConformanceViewChange) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ConformanceViewChange
impl Serialize for ConformanceViewChange
impl StructuralPartialEq for ConformanceViewChange
Auto Trait Implementations§
impl Freeze for ConformanceViewChange
impl RefUnwindSafe for ConformanceViewChange
impl Send for ConformanceViewChange
impl Sync for ConformanceViewChange
impl Unpin for ConformanceViewChange
impl UnsafeUnpin for ConformanceViewChange
impl UnwindSafe for ConformanceViewChange
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