Struct astc_decode::Footprint [−][src]
pub struct Footprint { /* fields omitted */ }
Expand description
Configuration for ASTC block footprint size
This struct provides predefined constants for supported footprint in the specification, as well as a constructor for custom footprint. It is recommended to use only the predefined constants. The constructor can be used when you want to pass in dimensions defined numerically in other file formats.
Implementations
Constructs custom footprint. Panic if any of the dimensions is zero.
Returns the block width.
Returns the block height.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Footprint
impl UnwindSafe for Footprint
Blanket Implementations
Mutably borrows from an owned value. Read more