pub enum BlpContent {
Jpeg(BlpJpeg),
Raw1(BlpRaw1),
Raw3(BlpRaw3),
Dxt1(BlpDxtn),
Dxt3(BlpDxtn),
Dxt5(BlpDxtn),
}
Expand description
Collects all possible content types with actual data
Variants§
Jpeg(BlpJpeg)
Raw1(BlpRaw1)
Used with direct type for BLP0/BLP1 and raw compression in BLP2
Raw3(BlpRaw3)
Used with direct type for BLP2, encodes RGBA bitmap.
Dxt1(BlpDxtn)
BLP2 DXT1 compression (no alpha)
Dxt3(BlpDxtn)
BLP2 DXT3 compression (with alpha)
Dxt5(BlpDxtn)
BLP2 DXT5 compression (with alpha)
Implementations§
Source§impl BlpContent
impl BlpContent
pub fn tag(&self) -> BlpContentTag
pub fn jpeg(&self) -> Option<&BlpJpeg>
pub fn raw1(&self) -> Option<&BlpRaw1>
pub fn raw3(&self) -> Option<&BlpRaw3>
pub fn dxt1(&self) -> Option<&BlpDxtn>
pub fn dxt3(&self) -> Option<&BlpDxtn>
pub fn dxt5(&self) -> Option<&BlpDxtn>
Trait Implementations§
Source§impl Clone for BlpContent
impl Clone for BlpContent
Source§fn clone(&self) -> BlpContent
fn clone(&self) -> BlpContent
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BlpContent
impl Debug for BlpContent
Source§impl Hash for BlpContent
impl Hash for BlpContent
Source§impl Ord for BlpContent
impl Ord for BlpContent
Source§fn cmp(&self, other: &BlpContent) -> Ordering
fn cmp(&self, other: &BlpContent) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BlpContent
impl PartialEq for BlpContent
Source§impl PartialOrd for BlpContent
impl PartialOrd for BlpContent
impl Eq for BlpContent
impl StructuralPartialEq for BlpContent
Auto Trait Implementations§
impl Freeze for BlpContent
impl RefUnwindSafe for BlpContent
impl Send for BlpContent
impl Sync for BlpContent
impl Unpin for BlpContent
impl UnwindSafe for BlpContent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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