Enum sdl2_sys::SDL_TextureAccess
source · #[repr(u32)]pub enum SDL_TextureAccess {
SDL_TEXTUREACCESS_STATIC = 0,
SDL_TEXTUREACCESS_STREAMING = 1,
SDL_TEXTUREACCESS_TARGET = 2,
}
Expand description
The access pattern allowed for a texture.
Variants§
SDL_TEXTUREACCESS_STATIC = 0
< Changes rarely, not lockable
SDL_TEXTUREACCESS_STREAMING = 1
< Changes frequently, lockable
SDL_TEXTUREACCESS_TARGET = 2
< Texture can be used as a render target
Trait Implementations§
source§impl Clone for SDL_TextureAccess
impl Clone for SDL_TextureAccess
source§fn clone(&self) -> SDL_TextureAccess
fn clone(&self) -> SDL_TextureAccess
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Hash for SDL_TextureAccess
impl Hash for SDL_TextureAccess
source§impl PartialEq for SDL_TextureAccess
impl PartialEq for SDL_TextureAccess
source§fn eq(&self, other: &SDL_TextureAccess) -> bool
fn eq(&self, other: &SDL_TextureAccess) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SDL_TextureAccess
impl Eq for SDL_TextureAccess
impl StructuralPartialEq for SDL_TextureAccess
Auto Trait Implementations§
impl Freeze for SDL_TextureAccess
impl RefUnwindSafe for SDL_TextureAccess
impl Send for SDL_TextureAccess
impl Sync for SDL_TextureAccess
impl Unpin for SDL_TextureAccess
impl UnwindSafe for SDL_TextureAccess
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more