pub struct PackedRgb888Layout {
pub surface_w: usize,
pub surface_h: usize,
pub bytes_per_texel: usize,
pub pitch: usize,
}Expand description
Geometry of the RGBA8888 surface backing a packed RGB u8/i8 image tensor.
Obtain via packed_rgb888_layout — never construct directly.
Fields§
§surface_w: usizeSurface width in texels (width * 3 / 4).
surface_h: usizeSurface height in texels (height).
bytes_per_texel: usizeBytes per RGBA8888 texel (always 4).
pitch: usizeRow pitch in bytes (surface_w * 4 = width * 3).
Trait Implementations§
Source§impl Clone for PackedRgb888Layout
impl Clone for PackedRgb888Layout
Source§fn clone(&self) -> PackedRgb888Layout
fn clone(&self) -> PackedRgb888Layout
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 PackedRgb888Layout
Source§impl Debug for PackedRgb888Layout
impl Debug for PackedRgb888Layout
impl Eq for PackedRgb888Layout
Source§impl PartialEq for PackedRgb888Layout
impl PartialEq for PackedRgb888Layout
impl StructuralPartialEq for PackedRgb888Layout
Auto Trait Implementations§
impl Freeze for PackedRgb888Layout
impl RefUnwindSafe for PackedRgb888Layout
impl Send for PackedRgb888Layout
impl Sync for PackedRgb888Layout
impl Unpin for PackedRgb888Layout
impl UnsafeUnpin for PackedRgb888Layout
impl UnwindSafe for PackedRgb888Layout
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more