pub enum MediaType {
Statusbar,
Background,
Border,
Font,
Sound,
}Expand description
Media type enumeration for LibSharedMedia categories.
Each variant maps to an LSM registration type and has associated file handling rules.
Variants§
Statusbar
A LibSharedMedia statusbar texture.
Background
A LibSharedMedia background texture.
Border
A LibSharedMedia border texture.
Font
A LibSharedMedia font face.
Sound
A LibSharedMedia sound asset.
Implementations§
Source§impl MediaType
impl MediaType
Sourcepub fn folder_name(&self) -> &'static str
pub fn folder_name(&self) -> &'static str
Get the folder name for this media type.
Sourcepub fn accepted_extensions(&self) -> &'static [&'static str]
pub fn accepted_extensions(&self) -> &'static [&'static str]
Get accepted input file extensions.
Sourcepub fn output_extension(&self) -> &'static str
pub fn output_extension(&self) -> &'static str
Get the output file extension for WoW storage.
Sourcepub fn supports_locale(&self) -> bool
pub fn supports_locale(&self) -> bool
Whether this type supports locale masks.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MediaType
impl<'de> Deserialize<'de> for MediaType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for MediaType
impl Eq for MediaType
impl StructuralPartialEq for MediaType
Auto Trait Implementations§
impl Freeze for MediaType
impl RefUnwindSafe for MediaType
impl Send for MediaType
impl Sync for MediaType
impl Unpin for MediaType
impl UnsafeUnpin for MediaType
impl UnwindSafe for MediaType
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