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
fn get_info(&self) -> &Descriptor
Get texture descriptor
Trait Implementations
impl<R, S> PartialEq<Texture<R, S>> for Texture<R, S> where R: Resources + PartialEq<R>, S: PartialEq<S>
fn eq(&self, __arg_0: &Texture<R, S>) -> bool
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
This method tests for !=
.
impl<R, S> Hash for Texture<R, S> where R: Resources + Hash, S: Hash
impl<R, S> Debug for Texture<R, S> where R: Resources + Debug, S: Debug
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl<R, S> Clone for Texture<R, S> where R: Resources + Clone, S: Clone
fn clone(&self) -> Texture<R, S>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<R, S> Typed for Texture<R, S> where R: Resources
type Raw = RawTexture<R>
The raw type behind the phantom.
fn new(handle: RawTexture<R>) -> Texture<R, S>
Crete a new phantom from the raw type.
fn raw(&self) -> &RawTexture<R>
Get an internal reference to the raw type.