pub struct Surface { /* private fields */ }
Implementations§
source§impl Surface
impl Surface
pub fn get_capabilities<A: HalApi>( &self, adapter: &Adapter<A> ) -> Result<SurfaceCapabilities, GetSurfaceSupportError>
Trait Implementations§
source§impl Resource<Id<Surface>> for Surface
impl Resource<Id<Surface>> for Surface
const TYPE: &'static str = "Surface"
fn as_info(&self) -> &ResourceInfo<SurfaceId>
fn as_info_mut(&mut self) -> &mut ResourceInfo<SurfaceId>
fn label(&self) -> String
fn ref_count(self: &Arc<Self>) -> usize
fn is_unique(self: &Arc<Self>) -> bool
fn is_equal(&self, other: &Self) -> bool
Auto Trait Implementations§
impl !Freeze for Surface
impl !RefUnwindSafe for Surface
impl Send for Surface
impl Sync for Surface
impl Unpin for Surface
impl !UnwindSafe for Surface
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