pub struct CodedUnitLayout {
pub unit_width: u32,
pub unit_height: u32,
pub units_x: u32,
pub units_y: u32,
}Expand description
Regular coded-unit grid layout for formats with independently coded units.
Fields§
§unit_width: u32Width of one coded unit in pixels.
unit_height: u32Height of one coded unit in pixels.
units_x: u32Number of coded units across the image.
units_y: u32Number of coded units down the image.
Implementations§
Source§impl CodedUnitLayout
impl CodedUnitLayout
Sourcepub const fn unit_count(&self) -> u32
pub const fn unit_count(&self) -> u32
Return the saturating total coded-unit count.
Trait Implementations§
Source§impl Clone for CodedUnitLayout
impl Clone for CodedUnitLayout
Source§fn clone(&self) -> CodedUnitLayout
fn clone(&self) -> CodedUnitLayout
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 moreimpl Copy for CodedUnitLayout
Source§impl Debug for CodedUnitLayout
impl Debug for CodedUnitLayout
impl Eq for CodedUnitLayout
Source§impl Hash for CodedUnitLayout
impl Hash for CodedUnitLayout
Source§impl PartialEq for CodedUnitLayout
impl PartialEq for CodedUnitLayout
Source§fn eq(&self, other: &CodedUnitLayout) -> bool
fn eq(&self, other: &CodedUnitLayout) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CodedUnitLayout
Auto Trait Implementations§
impl Freeze for CodedUnitLayout
impl RefUnwindSafe for CodedUnitLayout
impl Send for CodedUnitLayout
impl Sync for CodedUnitLayout
impl Unpin for CodedUnitLayout
impl UnsafeUnpin for CodedUnitLayout
impl UnwindSafe for CodedUnitLayout
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