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