pub struct ViewportIdPair {
pub this: ViewportId,
pub parent: ViewportId,
}
Expand description
A pair of ViewportId
, used to identify a viewport and its parent.
Fields§
§this: ViewportId
§parent: ViewportId
Implementations§
Source§impl ViewportIdPair
impl ViewportIdPair
pub fn from_self_and_parent(this: ViewportId, parent: ViewportId) -> Self
Trait Implementations§
Source§impl Clone for ViewportIdPair
impl Clone for ViewportIdPair
Source§fn clone(&self) -> ViewportIdPair
fn clone(&self) -> ViewportIdPair
Returns a copy 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 ViewportIdPair
impl Debug for ViewportIdPair
Source§impl Default for ViewportIdPair
impl Default for ViewportIdPair
Source§impl<'de> Deserialize<'de> for ViewportIdPair
impl<'de> Deserialize<'de> for ViewportIdPair
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 Hash for ViewportIdPair
impl Hash for ViewportIdPair
Source§impl PartialEq for ViewportIdPair
impl PartialEq for ViewportIdPair
Source§impl Serialize for ViewportIdPair
impl Serialize for ViewportIdPair
impl Copy for ViewportIdPair
impl Eq for ViewportIdPair
impl StructuralPartialEq for ViewportIdPair
Auto Trait Implementations§
impl Freeze for ViewportIdPair
impl RefUnwindSafe for ViewportIdPair
impl Send for ViewportIdPair
impl Sync for ViewportIdPair
impl Unpin for ViewportIdPair
impl UnwindSafe for ViewportIdPair
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