pub enum ExportFormat {
Glb,
GltfSep,
Obj,
StlAscii,
StlBinary,
JsonMesh,
}Expand description
Supported export formats.
Variants§
Implementations§
Source§impl ExportFormat
impl ExportFormat
Sourcepub fn from_extension(ext: &str) -> Option<Self>
pub fn from_extension(ext: &str) -> Option<Self>
Detect format from file extension. Case-insensitive.
Sourcepub fn supports_normals(&self) -> bool
pub fn supports_normals(&self) -> bool
Whether this format supports normals.
Sourcepub fn supports_uvs(&self) -> bool
pub fn supports_uvs(&self) -> bool
Whether this format supports UV coordinates.
Sourcepub fn all() -> Vec<ExportFormat>
pub fn all() -> Vec<ExportFormat>
All supported formats (one entry per variant).
Trait Implementations§
Source§impl Clone for ExportFormat
impl Clone for ExportFormat
Source§fn clone(&self) -> ExportFormat
fn clone(&self) -> ExportFormat
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 ExportFormat
impl Debug for ExportFormat
Source§impl Hash for ExportFormat
impl Hash for ExportFormat
Source§impl PartialEq for ExportFormat
impl PartialEq for ExportFormat
impl Copy for ExportFormat
impl Eq for ExportFormat
impl StructuralPartialEq for ExportFormat
Auto Trait Implementations§
impl Freeze for ExportFormat
impl RefUnwindSafe for ExportFormat
impl Send for ExportFormat
impl Sync for ExportFormat
impl Unpin for ExportFormat
impl UnsafeUnpin for ExportFormat
impl UnwindSafe for ExportFormat
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