pub struct ProcessSheetMetadata {Show 22 fields
pub input: PathBuf,
pub raw_sheet: PathBuf,
pub raw_sheet_clean: PathBuf,
pub rows: u32,
pub cols: u32,
pub cell_size: u32,
pub threshold: u8,
pub edge_threshold: u8,
pub fit_scale: f32,
pub trim_border: u32,
pub edge_clean_depth: u32,
pub align: FrameAlign,
pub shared_scale: bool,
pub component_mode: ComponentMode,
pub component_padding: u32,
pub min_component_area: u32,
pub edge_touch_margin: u32,
pub reject_edge_touch: bool,
pub gif_delay: u16,
pub frame_labels: Vec<String>,
pub edge_touch_frames: Vec<[u32; 2]>,
pub frames: Vec<ProcessedFrameInfo>,
}Expand description
JSON-friendly metadata emitted by process_sprite_sheet.
Fields§
§input: PathBuf§raw_sheet: PathBuf§raw_sheet_clean: PathBuf§rows: u32§cols: u32§cell_size: u32§threshold: u8§edge_threshold: u8§fit_scale: f32§trim_border: u32§edge_clean_depth: u32§align: FrameAlign§component_mode: ComponentMode§component_padding: u32§min_component_area: u32§edge_touch_margin: u32§reject_edge_touch: bool§gif_delay: u16§frame_labels: Vec<String>§edge_touch_frames: Vec<[u32; 2]>§frames: Vec<ProcessedFrameInfo>Trait Implementations§
Source§impl Clone for ProcessSheetMetadata
impl Clone for ProcessSheetMetadata
Source§fn clone(&self) -> ProcessSheetMetadata
fn clone(&self) -> ProcessSheetMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProcessSheetMetadata
impl Debug for ProcessSheetMetadata
Source§impl<'de> Deserialize<'de> for ProcessSheetMetadata
impl<'de> Deserialize<'de> for ProcessSheetMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProcessSheetMetadata
impl RefUnwindSafe for ProcessSheetMetadata
impl Send for ProcessSheetMetadata
impl Sync for ProcessSheetMetadata
impl Unpin for ProcessSheetMetadata
impl UnsafeUnpin for ProcessSheetMetadata
impl UnwindSafe for ProcessSheetMetadata
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