pub struct ExternalTexture { /* private fields */ }Implementations§
Source§impl ExternalTexture
impl ExternalTexture
pub fn new(texture: Arc<Texture>, desc: TextureDesc) -> Self
pub fn from_texture(texture: Texture, desc: TextureDesc) -> Self
pub fn texture(&self) -> &Texture
pub fn texture_arc(&self) -> Arc<Texture>
pub fn desc(&self) -> TextureDesc
Trait Implementations§
Source§impl Clone for ExternalTexture
impl Clone for ExternalTexture
Source§fn clone(&self) -> ExternalTexture
fn clone(&self) -> ExternalTexture
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ExternalTexture
impl !RefUnwindSafe for ExternalTexture
impl Send for ExternalTexture
impl Sync for ExternalTexture
impl Unpin for ExternalTexture
impl UnsafeUnpin for ExternalTexture
impl !UnwindSafe for ExternalTexture
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