Struct gfx_core::handle::Texture [] [src]

pub struct Texture<R: Resources, S>(_, _);

Typed texture object

Methods

impl<R: Resources, S> Texture<R, S>
[src]

fn get_info(&self) -> &Descriptor

Get texture descriptor

Trait Implementations

impl<R: PartialEq + Resources, S: PartialEq> PartialEq for Texture<R, S>
[src]

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: Hash + Resources, S: Hash> Hash for Texture<R, S>
[src]

fn hash<__HRS: Hasher>(&self, __arg_0: &mut __HRS)

Feeds this value into the state given, updating the hasher as necessary.

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0

Feeds a slice of this type into the state provided.

impl<R: Debug + Resources, S: Debug> Debug for Texture<R, S>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<R: Clone + Resources, S: Clone> Clone for Texture<R, S>
[src]

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: 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>

Crete a new phantom from the raw type.

fn raw(&self) -> &RawTexture<R>

Get an internal reference to the raw type.