pub struct ViewportState {
pub rect: Rect,
}Expand description
A lightweight, serializable snapshot of the current viewport geometry.
With feature = "serde", this type implements Serialize/Deserialize.
Fields§
§rect: RectTrait Implementations§
Source§impl Clone for ViewportState
impl Clone for ViewportState
Source§fn clone(&self) -> ViewportState
fn clone(&self) -> ViewportState
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 ViewportState
impl Debug for ViewportState
Source§impl Default for ViewportState
impl Default for ViewportState
Source§fn default() -> ViewportState
fn default() -> ViewportState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ViewportState
impl<'de> Deserialize<'de> for ViewportState
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 ViewportState
impl PartialEq for ViewportState
Source§impl Serialize for ViewportState
impl Serialize for ViewportState
impl Copy for ViewportState
impl Eq for ViewportState
impl StructuralPartialEq for ViewportState
Auto Trait Implementations§
impl Freeze for ViewportState
impl RefUnwindSafe for ViewportState
impl Send for ViewportState
impl Sync for ViewportState
impl Unpin for ViewportState
impl UnwindSafe for ViewportState
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