Struct kas_core::draw::ImageHandle
source · pub struct ImageHandle(_, _);
Expand description
Handle for an image
Serves both to identify an allocated image and to track the number of users via reference counting.
Implementations§
Trait Implementations§
source§impl Clone for ImageHandle
impl Clone for ImageHandle
source§fn clone(&self) -> ImageHandle
fn clone(&self) -> ImageHandle
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 ImageHandle
impl Debug for ImageHandle
source§impl Hash for ImageHandle
impl Hash for ImageHandle
source§impl Ord for ImageHandle
impl Ord for ImageHandle
source§fn cmp(&self, other: &ImageHandle) -> Ordering
fn cmp(&self, other: &ImageHandle) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ImageHandle> for ImageHandle
impl PartialEq<ImageHandle> for ImageHandle
source§fn eq(&self, other: &ImageHandle) -> bool
fn eq(&self, other: &ImageHandle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ImageHandle> for ImageHandle
impl PartialOrd<ImageHandle> for ImageHandle
source§fn partial_cmp(&self, other: &ImageHandle) -> Option<Ordering>
fn partial_cmp(&self, other: &ImageHandle) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for ImageHandle
impl StructuralEq for ImageHandle
impl StructuralPartialEq for ImageHandle
Auto Trait Implementations§
impl RefUnwindSafe for ImageHandle
impl !Send for ImageHandle
impl !Sync for ImageHandle
impl Unpin for ImageHandle
impl UnwindSafe for ImageHandle
Blanket Implementations§
source§impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
source§fn try_cast_approx(self) -> Result<T, Error>
fn try_cast_approx(self) -> Result<T, Error>
source§fn cast_approx(self) -> T
fn cast_approx(self) -> T
source§impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
source§fn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
source§fn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
source§fn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.