pub struct ConformanceViewportDragPanSessionContract {
pub context: ViewportGestureContext,
pub input: ViewportDragPanInput,
pub start: ViewportTransform,
pub end: ViewportTransform,
}Expand description
Behavior contract for an accepted viewport drag-pan session.
Fields§
§context: ViewportGestureContext§input: ViewportDragPanInput§start: ViewportTransform§end: ViewportTransformImplementations§
Source§impl ConformanceViewportDragPanSessionContract
impl ConformanceViewportDragPanSessionContract
pub fn new( context: ViewportGestureContext, input: ViewportDragPanInput, start: ViewportTransform, end: ViewportTransform, ) -> Self
Trait Implementations§
Source§impl Clone for ConformanceViewportDragPanSessionContract
impl Clone for ConformanceViewportDragPanSessionContract
Source§fn clone(&self) -> ConformanceViewportDragPanSessionContract
fn clone(&self) -> ConformanceViewportDragPanSessionContract
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 Copy for ConformanceViewportDragPanSessionContract
Source§impl<'de> Deserialize<'de> for ConformanceViewportDragPanSessionContract
impl<'de> Deserialize<'de> for ConformanceViewportDragPanSessionContract
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 ConformanceViewportDragPanSessionContract
impl PartialEq for ConformanceViewportDragPanSessionContract
Source§fn eq(&self, other: &ConformanceViewportDragPanSessionContract) -> bool
fn eq(&self, other: &ConformanceViewportDragPanSessionContract) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConformanceViewportDragPanSessionContract
Auto Trait Implementations§
impl Freeze for ConformanceViewportDragPanSessionContract
impl RefUnwindSafe for ConformanceViewportDragPanSessionContract
impl Send for ConformanceViewportDragPanSessionContract
impl Sync for ConformanceViewportDragPanSessionContract
impl Unpin for ConformanceViewportDragPanSessionContract
impl UnsafeUnpin for ConformanceViewportDragPanSessionContract
impl UnwindSafe for ConformanceViewportDragPanSessionContract
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