Struct sdl2::render::TextureQuery
source · [−]pub struct TextureQuery {
pub format: PixelFormatEnum,
pub access: TextureAccess,
pub width: u32,
pub height: u32,
}
Fields
format: PixelFormatEnum
access: TextureAccess
width: u32
height: u32
Trait Implementations
sourceimpl Clone for TextureQuery
impl Clone for TextureQuery
sourcefn clone(&self) -> TextureQuery
fn clone(&self) -> TextureQuery
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TextureQuery
impl Debug for TextureQuery
sourceimpl Hash for TextureQuery
impl Hash for TextureQuery
sourceimpl PartialEq<TextureQuery> for TextureQuery
impl PartialEq<TextureQuery> for TextureQuery
sourcefn eq(&self, other: &TextureQuery) -> bool
fn eq(&self, other: &TextureQuery) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TextureQuery) -> bool
fn ne(&self, other: &TextureQuery) -> bool
This method tests for !=
.
impl Copy for TextureQuery
impl Eq for TextureQuery
impl StructuralEq for TextureQuery
impl StructuralPartialEq for TextureQuery
Auto Trait Implementations
impl RefUnwindSafe for TextureQuery
impl Send for TextureQuery
impl Sync for TextureQuery
impl Unpin for TextureQuery
impl UnwindSafe for TextureQuery
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more