pub struct SerializedScrollData {
pub scroll_top: f64,
pub scroll_left: f64,
pub scroll_width: i32,
pub scroll_height: i32,
pub client_width: i32,
pub client_height: i32,
}Expand description
A serialized version of ScrollData
Fields§
§scroll_top: f64§scroll_left: f64§scroll_width: i32§scroll_height: i32§client_width: i32§client_height: i32Trait Implementations§
Source§impl Clone for SerializedScrollData
impl Clone for SerializedScrollData
Source§fn clone(&self) -> SerializedScrollData
fn clone(&self) -> SerializedScrollData
Returns a duplicate of the value. Read more
1.0.0 · 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 SerializedScrollData
impl Debug for SerializedScrollData
Source§impl<'de> Deserialize<'de> for SerializedScrollData
impl<'de> Deserialize<'de> for SerializedScrollData
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 From<&ScrollData> for SerializedScrollData
Available on crate feature serialize only.
impl From<&ScrollData> for SerializedScrollData
Available on crate feature
serialize only.Source§fn from(data: &ScrollData) -> Self
fn from(data: &ScrollData) -> Self
Converts to this type from the input type.
Source§impl HasScrollData for SerializedScrollData
Available on crate feature serialize only.
impl HasScrollData for SerializedScrollData
Available on crate feature
serialize only.Source§fn scroll_top(&self) -> f64
fn scroll_top(&self) -> f64
Get the vertical scroll position
Source§fn scroll_left(&self) -> f64
fn scroll_left(&self) -> f64
Get the horizontal scroll position
Source§fn scroll_width(&self) -> i32
fn scroll_width(&self) -> i32
Get the total scrollable width
Source§fn scroll_height(&self) -> i32
fn scroll_height(&self) -> i32
Get the total scrollable height
Source§fn client_width(&self) -> i32
fn client_width(&self) -> i32
Get the viewport width
Source§fn client_height(&self) -> i32
fn client_height(&self) -> i32
Get the viewport height
Source§impl PartialEq for SerializedScrollData
impl PartialEq for SerializedScrollData
Source§impl Serialize for SerializedScrollData
impl Serialize for SerializedScrollData
impl StructuralPartialEq for SerializedScrollData
Auto Trait Implementations§
impl Freeze for SerializedScrollData
impl RefUnwindSafe for SerializedScrollData
impl Send for SerializedScrollData
impl Sync for SerializedScrollData
impl Unpin for SerializedScrollData
impl UnwindSafe for SerializedScrollData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.