pub(crate) struct PassConstants {
x_sampling: u8,
x_offset: u8,
y_sampling: u8,
y_offset: u8,
}Fields§
§x_sampling: u8§x_offset: u8§y_sampling: u8§y_offset: u8Implementations§
Source§impl PassConstants
impl PassConstants
Sourcepub const PASSES: [Self; 7]
pub const PASSES: [Self; 7]
The constants associated with each of the 7 passes. Note that it is 0-indexed while the pass number (as per specification) is 1-indexed.
const fn splat_x_repeat(self) -> u8
const fn splat_y_repeat(self) -> u8
pub fn count_samples(self, width: u32) -> u32
pub fn count_lines(self, height: u32) -> u32
Trait Implementations§
Source§impl Clone for PassConstants
impl Clone for PassConstants
Source§fn clone(&self) -> PassConstants
fn clone(&self) -> PassConstants
Returns a duplicate 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 moreimpl Copy for PassConstants
Auto Trait Implementations§
impl Freeze for PassConstants
impl RefUnwindSafe for PassConstants
impl Send for PassConstants
impl Sync for PassConstants
impl Unpin for PassConstants
impl UnsafeUnpin for PassConstants
impl UnwindSafe for PassConstants
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