Skip to main content

Texture2DHolder

Trait Texture2DHolder 

Source
pub trait Texture2DHolder {
    // Required method
    fn texture(&self) -> &Texture2D;
}
Expand description

Abstraction over owned and borrowed raylib textures.

Required Methods§

Source

fn texture(&self) -> &Texture2D

Returns the underlying raylib texture.

Trait Implementations§

Source§

impl Debug for dyn Texture2DHolder

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deref for dyn Texture2DHolder

Source§

type Target = Texture2D

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Texture2DHolder for Arc<Texture2D>

Source§

impl Texture2DHolder for Texture2D

Source§

impl<T: Texture2DHolder> Texture2DHolder for &T

Implementors§