pub enum ImporterType {
Default,
Text,
Texture,
RawHeightmap,
NativeFormat,
Folder,
}Expand description
Type of Unity importer to use for an asset
Variants§
Default
Default importer for unknown file types
Text
Text/script files (.cs, .js, .txt, .json, .xml)
Texture
Texture files (.png, .jpg, .tga, .psd)
RawHeightmap
Raw heightmap data
NativeFormat
Native Unity asset (.asset, .prefab, .mat)
Folder
Folder
Implementations§
Source§impl ImporterType
impl ImporterType
Sourcepub fn from_extension(ext: &str) -> Self
pub fn from_extension(ext: &str) -> Self
Detect importer type from file extension
Trait Implementations§
Source§impl Clone for ImporterType
impl Clone for ImporterType
Source§fn clone(&self) -> ImporterType
fn clone(&self) -> ImporterType
Returns a duplicate 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 ImporterType
impl Debug for ImporterType
Source§impl PartialEq for ImporterType
impl PartialEq for ImporterType
impl Copy for ImporterType
impl Eq for ImporterType
impl StructuralPartialEq for ImporterType
Auto Trait Implementations§
impl Freeze for ImporterType
impl RefUnwindSafe for ImporterType
impl Send for ImporterType
impl Sync for ImporterType
impl Unpin for ImporterType
impl UnwindSafe for ImporterType
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