pub struct PixelSegment<const TW: usize, const TH: usize>(/* private fields */);
Implementations§
Source§impl<const TW: usize, const TH: usize> PixelSegment<TW, TH>
impl<const TW: usize, const TH: usize> PixelSegment<TW, TH>
pub fn new( layer_id: u32, tile_x: i16, tile_y: i16, local_x: u8, local_y: u8, double_area_multiplier: u8, cover: i8, ) -> Self
pub fn layer_id(self) -> u32
pub fn tile_x(self) -> i16
pub fn tile_y(self) -> i16
pub fn local_x(self) -> u8
pub fn local_y(self) -> u8
pub fn double_area(self) -> i16
pub fn cover(self) -> i8
Trait Implementations§
Source§impl<const TW: usize, const TH: usize> Clone for PixelSegment<TW, TH>
impl<const TW: usize, const TH: usize> Clone for PixelSegment<TW, TH>
Source§fn clone(&self) -> PixelSegment<TW, TH>
fn clone(&self) -> PixelSegment<TW, TH>
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<const TW: usize, const TH: usize> Default for PixelSegment<TW, TH>
impl<const TW: usize, const TH: usize> Default for PixelSegment<TW, TH>
Source§fn default() -> PixelSegment<TW, TH>
fn default() -> PixelSegment<TW, TH>
Returns the “default value” for a type. Read more
Source§impl<const TW: usize, const TH: usize> From<&PixelSegment<TW, TH>> for u64
impl<const TW: usize, const TH: usize> From<&PixelSegment<TW, TH>> for u64
Source§fn from(segment: &PixelSegment<TW, TH>) -> Self
fn from(segment: &PixelSegment<TW, TH>) -> Self
Converts to this type from the input type.
Source§impl<const TW: usize, const TH: usize> From<PixelSegment<TW, TH>> for PixelSegmentUnpacked
impl<const TW: usize, const TH: usize> From<PixelSegment<TW, TH>> for PixelSegmentUnpacked
Source§fn from(value: PixelSegment<TW, TH>) -> Self
fn from(value: PixelSegment<TW, TH>) -> Self
Converts to this type from the input type.
Source§impl<const TW: usize, const TH: usize> Ord for PixelSegment<TW, TH>
impl<const TW: usize, const TH: usize> Ord for PixelSegment<TW, TH>
Source§fn cmp(&self, other: &PixelSegment<TW, TH>) -> Ordering
fn cmp(&self, other: &PixelSegment<TW, TH>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<const TW: usize, const TH: usize> PartialOrd for PixelSegment<TW, TH>
impl<const TW: usize, const TH: usize> PartialOrd for PixelSegment<TW, TH>
impl<const TW: usize, const TH: usize> Copy for PixelSegment<TW, TH>
impl<const TW: usize, const TH: usize> Eq for PixelSegment<TW, TH>
impl<const TW: usize, const TH: usize> StructuralPartialEq for PixelSegment<TW, TH>
Auto Trait Implementations§
impl<const TW: usize, const TH: usize> Freeze for PixelSegment<TW, TH>
impl<const TW: usize, const TH: usize> RefUnwindSafe for PixelSegment<TW, TH>
impl<const TW: usize, const TH: usize> Send for PixelSegment<TW, TH>
impl<const TW: usize, const TH: usize> Sync for PixelSegment<TW, TH>
impl<const TW: usize, const TH: usize> Unpin for PixelSegment<TW, TH>
impl<const TW: usize, const TH: usize> UnwindSafe for PixelSegment<TW, TH>
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
)