pub struct JigsawTemplate {
pub svg_paths: Vec<String>,
pub piece_dimensions: (f32, f32),
pub number_of_pieces: (usize, usize),
}Expand description
Provides all information on how to cut out the jigsaw puzzle pieces from an image
Fields§
§svg_paths: Vec<String>SVG path for every jigsaw puzzle piece
piece_dimensions: (f32, f32)The dimensions (width, length) in pixel
number_of_pieces: (usize, usize)The number of pieces in the x- and the y-axis
Trait Implementations§
Source§impl Clone for JigsawTemplate
impl Clone for JigsawTemplate
Source§fn clone(&self) -> JigsawTemplate
fn clone(&self) -> JigsawTemplate
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 moreAuto Trait Implementations§
impl Freeze for JigsawTemplate
impl RefUnwindSafe for JigsawTemplate
impl Send for JigsawTemplate
impl Sync for JigsawTemplate
impl Unpin for JigsawTemplate
impl UnwindSafe for JigsawTemplate
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