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
impl Copy for ViewportId
impl Eq for ViewportId
impl IsEnabled for ViewportId
impl StructuralPartialEq for ViewportId
Auto Trait Implementations§
impl Freeze for ViewportId
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)