pub struct Surface { /* private fields */ }
Implementations§
source§impl Surface
impl Surface
pub fn get_capabilities<A>(
&self,
adapter: &Adapter<A>
) -> Result<SurfaceCapabilities, GetSurfaceSupportError>where
A: HalApi,
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<Id<Surface>>
fn as_info_mut(&mut self) -> &mut ResourceInfo<Id<Surface>>
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 !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