Struct plt_draw::SaveFileDescriptor
source · [−]pub struct SaveFileDescriptor<P: AsRef<Path>> {
pub filename: P,
pub format: FileFormat,
pub dpi: u16,
}
Expand description
Describes how to save the image to a file.
Fields
filename: P
The name of the output file.
format: FileFormat
The image format of the file.
dpi: u16
The dots (pixels) per inch.
Trait Implementations
sourceimpl<P: Clone + AsRef<Path>> Clone for SaveFileDescriptor<P>
impl<P: Clone + AsRef<Path>> Clone for SaveFileDescriptor<P>
sourcefn clone(&self) -> SaveFileDescriptor<P>
fn clone(&self) -> SaveFileDescriptor<P>
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl<P> RefUnwindSafe for SaveFileDescriptor<P>where
P: RefUnwindSafe,
impl<P> Send for SaveFileDescriptor<P>where
P: Send,
impl<P> Sync for SaveFileDescriptor<P>where
P: Sync,
impl<P> Unpin for SaveFileDescriptor<P>where
P: Unpin,
impl<P> UnwindSafe for SaveFileDescriptor<P>where
P: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more