pub struct Surface { /* private fields */ }
Expand description
A surface has a fixed size and contains pixel data for it. You can render frames onto the surface.
Implementations
sourceimpl Surface
impl Surface
sourcepub fn into_data(self) -> Vec<Bgra>
pub fn into_data(self) -> Vec<Bgra>
Return the pixel data of the surface. You should prefer [data()
] unless you
absolutely need owned access to the data.
Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more