Struct gfx::texture::TextureCopyRegion
[−]
[src]
pub struct TextureCopyRegion<T> { pub texture: T, pub kind: Kind, pub cube_face: Option<CubeFace>, pub info: ImageInfoCommon<Format>, }
A texture region defined for copy operations
Fields
texture: T
Raw texture
kind: Kind
Texture kind
cube_face: Option<CubeFace>
Optional cube face
info: ImageInfoCommon<Format>
Dimensions, offsets, and format
Methods
impl<T> TextureCopyRegion<T>
[src]
fn with_texture<U>(self, texture: U) -> TextureCopyRegion<U>
[src]
Change the texture
Trait Implementations
impl<T> Ord for TextureCopyRegion<T> where
T: Ord,
[src]
T: Ord,
fn cmp(&self, __arg_0: &TextureCopyRegion<T>) -> Ordering
[src]
impl<T> Clone for TextureCopyRegion<T> where
T: Clone,
[src]
T: Clone,
fn clone(&self) -> TextureCopyRegion<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T> PartialOrd<TextureCopyRegion<T>> for TextureCopyRegion<T> where
T: PartialOrd<T>,
[src]
T: PartialOrd<T>,
fn partial_cmp(&self, __arg_0: &TextureCopyRegion<T>) -> Option<Ordering>
[src]
fn lt(&self, __arg_0: &TextureCopyRegion<T>) -> bool
[src]
fn le(&self, __arg_0: &TextureCopyRegion<T>) -> bool
[src]
fn gt(&self, __arg_0: &TextureCopyRegion<T>) -> bool
[src]
fn ge(&self, __arg_0: &TextureCopyRegion<T>) -> bool
[src]
impl<T> Hash for TextureCopyRegion<T> where
T: Hash,
[src]
T: Hash,
fn hash<__HT>(&self, __arg_0: &mut __HT) where
__HT: Hasher,
[src]
__HT: Hasher,
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<T> PartialEq<TextureCopyRegion<T>> for TextureCopyRegion<T> where
T: PartialEq<T>,
[src]
T: PartialEq<T>,
fn eq(&self, __arg_0: &TextureCopyRegion<T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TextureCopyRegion<T>) -> bool
[src]
This method tests for !=
.
impl<T> Debug for TextureCopyRegion<T> where
T: Debug,
[src]
T: Debug,
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl<T> Eq for TextureCopyRegion<T> where
T: Eq,
[src]
T: Eq,