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: ViewportIdImplementations§
Source§impl ViewportIdPair
impl ViewportIdPair
Sourcepub const ROOT: ViewportIdPair
pub const ROOT: ViewportIdPair
The ViewportIdPair of the root viewport, which is its own parent.
pub fn from_self_and_parent( this: ViewportId, parent: ViewportId, ) -> ViewportIdPair
Trait Implementations§
Source§impl Clone for ViewportIdPair
impl Clone for ViewportIdPair
Source§fn clone(&self) -> ViewportIdPair
fn clone(&self) -> ViewportIdPair
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 ViewportIdPair
Source§impl Debug for ViewportIdPair
impl Debug for ViewportIdPair
Source§impl Default for ViewportIdPair
impl Default for ViewportIdPair
Source§fn default() -> ViewportIdPair
fn default() -> ViewportIdPair
Returns the “default value” for a type. Read more
impl Eq for ViewportIdPair
Source§impl Hash for ViewportIdPair
impl Hash for ViewportIdPair
Source§impl PartialEq for ViewportIdPair
impl PartialEq 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 UnsafeUnpin 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