Struct gfx_core::handle::Texture
[−]
[src]
pub struct Texture<R: Resources, S>(_, _);
Typed texture object
Methods
impl<R: Resources, S> Texture<R, S>
[src]
pub fn get_info(&self) -> &Descriptor
[src]
Get texture descriptor
Trait Implementations
impl<R: Clone + Resources, S: Clone> Clone for Texture<R, S>
[src]
fn clone(&self) -> Texture<R, S>
[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<R: Debug + Resources, S: Debug> Debug for Texture<R, S>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<R: Hash + Resources, S: Hash> Hash for Texture<R, S>
[src]
fn hash<__HRS: Hasher>(&self, __arg_0: &mut __HRS)
[src]
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<R: PartialEq + Resources, S: PartialEq> PartialEq for Texture<R, S>
[src]
fn eq(&self, __arg_0: &Texture<R, S>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Texture<R, S>) -> bool
[src]
This method tests for !=
.
impl<R: Resources, S> Typed for Texture<R, S>
[src]
type Raw = RawTexture<R>
The raw type behind the phantom.
fn new(handle: RawTexture<R>) -> Texture<R, S>
[src]
Crete a new phantom from the raw type.
fn raw(&self) -> &RawTexture<R>
[src]
Get an internal reference to the raw type.