pub struct Buffer { /* private fields */ }
Expand description
An implementation of ‘wl_buffer’.
Implementations§
Source§impl Buffer
impl Buffer
pub fn from_import_token( import_token: Rc<BufferCollectionImportToken>, image_size: Size, has_alpha: bool, ) -> Self
pub fn image_size(&self) -> Size
pub fn has_alpha(&self) -> bool
pub fn image_content( &self, instance_id: ImageInstanceId, flatland: &FlatlandPtr, ) -> Rc<Content>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Buffer
impl !RefUnwindSafe for Buffer
impl !Send for Buffer
impl !Sync for Buffer
impl Unpin for Buffer
impl !UnwindSafe for Buffer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)