Enum x11rb::image::ScanlinePad
source · #[non_exhaustive]pub enum ScanlinePad {
Pad8 = 8,
Pad16 = 16,
Pad32 = 32,
}
Expand description
The padding of scanlines.
Each line of an image is padded to a multiple of some value. This value is the scanline padding, which this enum represents.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Pad8 = 8
Padding to multiples of 8 bits, i.e. no padding.
Pad16 = 16
Padding to multiples of 16 bits, i.e. the next even number of bytes.
Pad32 = 32
Padding to multiples of 32 bits, i.e. the next multiple of 4.
Trait Implementations§
source§impl Clone for ScanlinePad
impl Clone for ScanlinePad
source§fn clone(&self) -> ScanlinePad
fn clone(&self) -> ScanlinePad
Returns a copy of the value. Read more
1.0.0 · 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 ScanlinePad
impl Debug for ScanlinePad
source§impl From<ScanlinePad> for u8
impl From<ScanlinePad> for u8
source§fn from(value: ScanlinePad) -> u8
fn from(value: ScanlinePad) -> u8
Converts to this type from the input type.
source§impl From<ScanlinePad> for usize
impl From<ScanlinePad> for usize
source§fn from(value: ScanlinePad) -> usize
fn from(value: ScanlinePad) -> usize
Converts to this type from the input type.
source§impl Hash for ScanlinePad
impl Hash for ScanlinePad
source§impl PartialEq for ScanlinePad
impl PartialEq for ScanlinePad
source§fn eq(&self, other: &ScanlinePad) -> bool
fn eq(&self, other: &ScanlinePad) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u8> for ScanlinePad
impl TryFrom<u8> for ScanlinePad
impl Copy for ScanlinePad
impl Eq for ScanlinePad
impl StructuralPartialEq for ScanlinePad
Auto Trait Implementations§
impl Freeze for ScanlinePad
impl RefUnwindSafe for ScanlinePad
impl Send for ScanlinePad
impl Sync for ScanlinePad
impl Unpin for ScanlinePad
impl UnwindSafe for ScanlinePad
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