[−][src]Struct ktx::header::KtxHeader
KTX texture storage format header. Provides KtxInfo
.
Methods
impl KtxHeader
[src]
pub fn new(first_64_bytes: &[u8]) -> Self
[src]
Reads first 64 bytes to parse KTX header data, returns a KtxHeader
.
Trait Implementations
impl Eq for KtxHeader
[src]
impl PartialEq<KtxHeader> for KtxHeader
[src]
impl Copy for KtxHeader
[src]
impl AsRef<KtxHeader> for KtxHeader
[src]
impl<D> AsRef<KtxHeader> for Ktx<D>
[src]
impl<R> AsRef<KtxHeader> for KtxDecoder<R>
[src]
impl Clone for KtxHeader
[src]
fn clone(&self) -> KtxHeader
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Hash for KtxHeader
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for KtxHeader
[src]
Auto Trait Implementations
impl Sync for KtxHeader
impl Send for KtxHeader
impl Unpin for KtxHeader
impl RefUnwindSafe for KtxHeader
impl UnwindSafe for KtxHeader
Blanket Implementations
impl<T> KtxInfo for T where
T: AsRef<KtxHeader>,
[src]
T: AsRef<KtxHeader>,
fn big_endian(&Self) -> bool
[src]
fn gl_type(&Self) -> u32
[src]
fn gl_type_size(&Self) -> u32
[src]
fn gl_format(&Self) -> u32
[src]
fn gl_internal_format(&Self) -> u32
[src]
fn gl_base_internal_format(&Self) -> u32
[src]
fn pixel_width(&Self) -> u32
[src]
fn pixel_height(&Self) -> u32
[src]
fn pixel_depth(&Self) -> u32
[src]
fn array_elements(&Self) -> u32
[src]
fn faces(&Self) -> u32
[src]
fn mipmap_levels(&Self) -> u32
[src]
fn bytes_of_key_value_data(&Self) -> u32
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,