pub struct Formats(/* private fields */);Expand description
A set of formats, by TextureFormat value. Every value UnityPy 1.25.2
names is below 128 (TEXTURE_FORMATS).
Implementations§
Source§impl Formats
impl Formats
Sourcepub const V1: Formats
pub const V1: Formats
The five version 1 exports (Format::EXPORTED).
Sourcepub const DECODED: Formats
pub const DECODED: Formats
Every format this crate decodes (Format::ALL).
Sourcepub const fn with(self, format: Format) -> Formats
pub const fn with(self, format: Format) -> Formats
The set with format’s Unity value added, including both DXT crunch variants.
Sourcepub const fn contains(self, format: Format) -> bool
pub const fn contains(self, format: Format) -> bool
Whether format’s Unity value is in the set, for either DXT crunch variant.
Trait Implementations§
impl Copy for Formats
impl Eq for Formats
impl StructuralPartialEq for Formats
Auto Trait Implementations§
impl Forget for Formats
impl Freeze for Formats
impl Move for Formats
impl RefUnwindSafe for Formats
impl Send for Formats
impl Sync for Formats
impl Unpin for Formats
impl UnsafeUnpin for Formats
impl UnwindSafe for Formats
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