pub enum SnapTarget<Id: Copy + Eq + Ord> {
Edge(InsertPosition),
TiledInsert {
target: Id,
position: InsertPosition,
},
}Variants§
Trait Implementations§
Source§impl<Id: Clone + Copy + Eq + Ord> Clone for SnapTarget<Id>
impl<Id: Clone + Copy + Eq + Ord> Clone for SnapTarget<Id>
Source§fn clone(&self) -> SnapTarget<Id>
fn clone(&self) -> SnapTarget<Id>
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 moreimpl<Id: Copy + Copy + Eq + Ord> Copy for SnapTarget<Id>
impl<Id: Eq + Copy + Eq + Ord> Eq for SnapTarget<Id>
Source§impl<Id: PartialEq + Copy + Eq + Ord> PartialEq for SnapTarget<Id>
impl<Id: PartialEq + Copy + Eq + Ord> PartialEq for SnapTarget<Id>
Source§fn eq(&self, other: &SnapTarget<Id>) -> bool
fn eq(&self, other: &SnapTarget<Id>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<Id: PartialEq + Copy + Eq + Ord> StructuralPartialEq for SnapTarget<Id>
Auto Trait Implementations§
impl<Id> Freeze for SnapTarget<Id>where
Id: Freeze,
impl<Id> RefUnwindSafe for SnapTarget<Id>where
Id: RefUnwindSafe,
impl<Id> Send for SnapTarget<Id>where
Id: Send,
impl<Id> Sync for SnapTarget<Id>where
Id: Sync,
impl<Id> Unpin for SnapTarget<Id>where
Id: Unpin,
impl<Id> UnsafeUnpin for SnapTarget<Id>where
Id: UnsafeUnpin,
impl<Id> UnwindSafe for SnapTarget<Id>where
Id: 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