Struct webrender::resource_cache::ImageRequest
source · pub struct ImageRequest {
pub key: ImageKey,
pub rendering: ImageRendering,
pub tile: Option<TileOffset>,
}
Fields§
§key: ImageKey
§rendering: ImageRendering
§tile: Option<TileOffset>
Implementations§
source§impl ImageRequest
impl ImageRequest
pub fn with_tile(&self, offset: TileOffset) -> Self
pub fn is_untiled_auto(&self) -> bool
Trait Implementations§
source§impl Clone for ImageRequest
impl Clone for ImageRequest
source§fn clone(&self) -> ImageRequest
fn clone(&self) -> ImageRequest
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 ImageRequest
impl Debug for ImageRequest
source§impl Hash for ImageRequest
impl Hash for ImageRequest
source§impl Into<BlobImageRequest> for ImageRequest
impl Into<BlobImageRequest> for ImageRequest
source§fn into(self) -> BlobImageRequest
fn into(self) -> BlobImageRequest
Converts this type into the (usually inferred) input type.
source§impl Into<CachedImageKey> for ImageRequest
impl Into<CachedImageKey> for ImageRequest
source§fn into(self) -> CachedImageKey
fn into(self) -> CachedImageKey
Converts this type into the (usually inferred) input type.
source§impl PartialEq for ImageRequest
impl PartialEq for ImageRequest
source§fn eq(&self, other: &ImageRequest) -> bool
fn eq(&self, other: &ImageRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ImageRequest
impl Serialize for ImageRequest
impl Copy for ImageRequest
impl Eq for ImageRequest
impl StructuralPartialEq for ImageRequest
Auto Trait Implementations§
impl Freeze for ImageRequest
impl RefUnwindSafe for ImageRequest
impl Send for ImageRequest
impl Sync for ImageRequest
impl Unpin for ImageRequest
impl UnwindSafe for ImageRequest
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more