Struct three_d::Saver [−][src]
Functionality for saving resources. Only available on desktop at the moment.
Implementations
impl Saver
[src]
pub fn save_file<P: AsRef<Path>>(path: P, bytes: &[u8]) -> Result<(), IOError>
[src]
Save the byte array as a file.
impl Saver
[src]
pub fn save_pixels<P: AsRef<Path>>(
path: P,
pixels: &[u8],
width: usize,
height: usize
) -> Result<(), IOError>
[src]
path: P,
pixels: &[u8],
width: usize,
height: usize
) -> Result<(), IOError>
Saves the given RGB pixels as an image.
Feature
Only available when the image-io
feature is enabled.
impl Saver
[src]
pub fn save_3d_file<P: AsRef<Path>>(
path: P,
cpu_meshes: Vec<CPUMesh>,
cpu_materials: Vec<CPUMaterial>
) -> Result<(), IOError>
[src]
path: P,
cpu_meshes: Vec<CPUMesh>,
cpu_materials: Vec<CPUMaterial>
) -> Result<(), IOError>
Saves the given meshes and materials as a .3d file.
Feature
Only available when the 3d-io
and image-io
features are enabled.
Auto Trait Implementations
impl RefUnwindSafe for Saver
impl Send for Saver
impl Sync for Saver
impl Unpin for Saver
impl UnwindSafe for Saver
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,