pub struct FrameRecord {
pub index: usize,
pub row: u32,
pub column: u32,
pub x: u32,
pub y: u32,
pub width: u32,
pub height: u32,
pub opaque_pixels: u32,
pub kept: bool,
pub file: Option<String>,
}Expand description
One frame entry in a SliceManifest.
Fields§
§index: usizeStable frame index used by group_actions.
row: u32Row position in the logical layout.
column: u32Column position in the logical layout.
x: u32Left edge of the crop rectangle in the source image.
y: u32Top edge of the crop rectangle in the source image.
width: u32Width of the crop rectangle.
height: u32Height of the crop rectangle.
opaque_pixels: u32Count of foreground pixels used to evaluate the frame.
kept: boolWhether the frame was kept and exported.
file: Option<String>Relative output file path if the frame was exported.
Trait Implementations§
Source§impl Clone for FrameRecord
impl Clone for FrameRecord
Source§fn clone(&self) -> FrameRecord
fn clone(&self) -> FrameRecord
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 FrameRecord
impl Debug for FrameRecord
Source§impl<'de> Deserialize<'de> for FrameRecord
impl<'de> Deserialize<'de> for FrameRecord
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 FrameRecord
impl RefUnwindSafe for FrameRecord
impl Send for FrameRecord
impl Sync for FrameRecord
impl Unpin for FrameRecord
impl UnsafeUnpin for FrameRecord
impl UnwindSafe for FrameRecord
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