pub struct Texture { /* private fields */ }
Trait Implementations§
Source§impl Borrow<TextureSelector> for Texture
impl Borrow<TextureSelector> for Texture
Source§fn borrow(&self) -> &TextureSelector
fn borrow(&self) -> &TextureSelector
Immutably borrows from an owned value. Read more
Source§impl Labeled for Texture
impl Labeled for Texture
Source§fn label(&self) -> &str
fn label(&self) -> &str
Returns a string identifying this resource for logging and errors. Read more
fn error_ident(&self) -> ResourceErrorIdent
Source§impl ParentDevice for Texture
impl ParentDevice for Texture
Source§impl RawResourceAccess for Texture
impl RawResourceAccess for Texture
type DynResource = dyn DynTexture
Source§fn raw<'a>(
&'a self,
guard: &'a SnatchGuard<'_>,
) -> Option<&'a Self::DynResource>
fn raw<'a>( &'a self, guard: &'a SnatchGuard<'_>, ) -> Option<&'a Self::DynResource>
Get access to the raw resource if it is not destroyed. Read more
Source§fn try_raw<'a>(
&'a self,
guard: &'a SnatchGuard<'_>,
) -> Result<&'a Self::DynResource, DestroyedResourceError>
fn try_raw<'a>( &'a self, guard: &'a SnatchGuard<'_>, ) -> Result<&'a Self::DynResource, DestroyedResourceError>
Get access to the raw resource if it is not destroyed. Read more
Auto Trait Implementations§
impl !Freeze for Texture
impl !RefUnwindSafe for Texture
impl Send for Texture
impl Sync for Texture
impl Unpin for Texture
impl !UnwindSafe for Texture
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