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<'de> Deserialize<'de> for ViewportId
impl<'de> Deserialize<'de> for ViewportId
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 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§impl Serialize for ViewportId
impl Serialize 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