Struct egui::viewport::ViewportId
source · pub struct ViewportId(pub Id);
Expand description
A unique identifier of a viewport.
This is returned by Context::viewport_id
and Context::parent_viewport_id
.
Tuple Fields§
§0: Id
Implementations§
source§impl ViewportId
impl ViewportId
pub fn from_hash_of(source: impl Hash) -> Self
Trait Implementations§
source§impl Clone for ViewportId
impl Clone for ViewportId
source§fn clone(&self) -> ViewportId
fn clone(&self) -> ViewportId
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 ViewportId
impl Debug for ViewportId
source§impl Default for ViewportId
impl Default for ViewportId
source§impl From<ViewportId> for Id
impl From<ViewportId> for Id
source§fn from(id: ViewportId) -> Self
fn from(id: ViewportId) -> Self
Converts to this type from the input type.
source§impl Hash for ViewportId
impl Hash for ViewportId
source§impl PartialEq for ViewportId
impl PartialEq for ViewportId
source§fn eq(&self, other: &ViewportId) -> bool
fn eq(&self, other: &ViewportId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ViewportId
impl Eq for ViewportId
impl IsEnabled for ViewportId
impl StructuralEq for ViewportId
impl StructuralPartialEq for ViewportId
Auto Trait Implementations§
impl RefUnwindSafe for ViewportId
impl Send for ViewportId
impl Sync for ViewportId
impl Unpin for ViewportId
impl UnwindSafe for ViewportId
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