Struct bevy_retrograde::core::luminance::texture::Dim1Array [−]
pub struct Dim1Array;
Expand description
1D array dimension.
Trait Implementations
impl Dimensionable for Dim1Array
impl Dimensionable for Dim1Array
Offset type of a dimension (used to caracterize addition and subtraction of sizes, mostly).
pub const ZERO_OFFSET: <Dim1Array as Dimensionable>::Offset
pub const ZERO_OFFSET: <Dim1Array as Dimensionable>::Offset
Zero offset.
pub fn width(size: <Dim1Array as Dimensionable>::Size) -> u32
pub fn width(size: <Dim1Array as Dimensionable>::Size) -> u32
Width of the associated Dimensionable::Size
.
pub fn height(size: <Dim1Array as Dimensionable>::Size) -> u32
pub fn height(size: <Dim1Array as Dimensionable>::Size) -> u32
Height of the associated Dimensionable::Size
. If it doesn’t have one, set it to 1.
pub fn x_offset(off: <Dim1Array as Dimensionable>::Offset) -> u32
pub fn x_offset(off: <Dim1Array as Dimensionable>::Offset) -> u32
X offset.
pub fn y_offset(off: <Dim1Array as Dimensionable>::Offset) -> u32
pub fn y_offset(off: <Dim1Array as Dimensionable>::Offset) -> u32
Y offset. If it doesn’t have one, set it to 0.
pub fn count(<Dim1Array as Dimensionable>::Size) -> usize
pub fn count(<Dim1Array as Dimensionable>::Size) -> usize
Amount of pixels this size represents. Read more
Depth of the associated Dimensionable::Size
. If it doesn’t have one, set it to 1.
Auto Trait Implementations
impl RefUnwindSafe for Dim1Array
impl UnwindSafe for Dim1Array
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn clone_type_data(&self) -> Box<dyn TypeData + 'static, Global>
pub fn vzip(self) -> V