Struct luminance_front::texture::Dim1
source · [−]pub struct Dim1;
Expand description
1D dimension.
Trait Implementations
sourceimpl Dimensionable for Dim1
impl Dimensionable for Dim1
type Offset = u32
type Offset = u32
Offset type of a dimension (used to caracterize addition and subtraction of sizes, mostly).
sourceconst ZERO_OFFSET: <Dim1 as Dimensionable>::Offset
const ZERO_OFFSET: <Dim1 as Dimensionable>::Offset
Zero offset. Read more
sourcefn width(w: <Dim1 as Dimensionable>::Size) -> u32
fn width(w: <Dim1 as Dimensionable>::Size) -> u32
Width of the associated Dimensionable::Size
.
sourcefn count(size: <Dim1 as Dimensionable>::Size) -> usize
fn count(size: <Dim1 as Dimensionable>::Size) -> usize
Amount of pixels this size represents. Read more
sourcefn height(Self::Size) -> u32
fn height(Self::Size) -> u32
Height of the associated Dimensionable::Size
. If it doesn’t have one, set it to 1.
sourcefn depth(Self::Size) -> u32
fn depth(Self::Size) -> u32
Depth of the associated Dimensionable::Size
. If it doesn’t have one, set it to 1.
impl Copy for Dim1
Auto Trait Implementations
impl RefUnwindSafe for Dim1
impl Send for Dim1
impl Sync for Dim1
impl Unpin for Dim1
impl UnwindSafe for Dim1
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more