pub struct DisplayPrimary(/* private fields */);Implementations§
Source§impl DisplayPrimary
impl DisplayPrimary
pub fn new() -> Self
pub fn format(&self) -> Result<SurfaceFormat, i32>
pub fn width(&self) -> usize
pub fn height(&self) -> usize
pub fn stride(&self) -> usize
pub fn shmid(&self) -> i32
pub fn data(&self) -> &[u8] ⓘ
pub fn marked(&self) -> bool
pub fn as_ptr(&self) -> *const SpiceDisplayPrimary
Trait Implementations§
Source§impl Clone for DisplayPrimary
impl Clone for DisplayPrimary
Source§fn clone(&self) -> DisplayPrimary
fn clone(&self) -> DisplayPrimary
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 moreSource§impl Debug for DisplayPrimary
impl Debug for DisplayPrimary
Source§impl Default for DisplayPrimary
impl Default for DisplayPrimary
Source§impl From<SpiceDisplayPrimary> for DisplayPrimary
impl From<SpiceDisplayPrimary> for DisplayPrimary
Source§fn from(p: SpiceDisplayPrimary) -> Self
fn from(p: SpiceDisplayPrimary) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Send for DisplayPrimary
impl !Sync for DisplayPrimary
impl Freeze for DisplayPrimary
impl RefUnwindSafe for DisplayPrimary
impl Unpin for DisplayPrimary
impl UnsafeUnpin for DisplayPrimary
impl UnwindSafe for DisplayPrimary
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