Struct gfx::handle::Texture
[−]
[src]
pub struct Texture<R, S>(_, _)
where
R: Resources;
Typed texture object
Methods
impl<R, S> Texture<R, S> where
R: Resources, [src]
R: Resources,
pub fn get_info(&self) -> &Descriptor[src]
Get texture descriptor
Trait Implementations
impl<R, S> Typed for Texture<R, S> where
R: Resources, [src]
R: Resources,
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.
impl<R, S> PartialEq<Texture<R, S>> for Texture<R, S> where
R: Resources + PartialEq<R>,
S: PartialEq<S>, [src]
R: Resources + PartialEq<R>,
S: PartialEq<S>,
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, S> Hash for Texture<R, S> where
R: Resources + Hash,
S: Hash, [src]
R: Resources + Hash,
S: Hash,
fn hash<__HRS>(&self, __arg_0: &mut __HRS) where
__HRS: Hasher, [src]
__HRS: 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<R, S> Debug for Texture<R, S> where
R: Resources + Debug,
S: Debug, [src]
R: Resources + Debug,
S: Debug,
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>[src]
Formats the value using the given formatter. Read more
impl<R, S> Clone for Texture<R, S> where
R: Resources + Clone,
S: Clone, [src]
R: Resources + Clone,
S: Clone,