#[non_exhaustive]pub struct Piece {
pub start: u64,
pub end: u64,
pub too_short: bool,
pub too_long: bool,
}Expand description
A piece of the original audio, [start, end) in samples.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.start: u64First sample.
end: u64One past the last sample.
too_short: boolShorter than the minimum length.
too_long: boolLonger than the maximum length. Only when the limits cannot be met on the analysis frame grid, such as a maximum shorter than a frame or a count too small for the maximum.
Trait Implementations§
impl Copy for Piece
Source§impl<'de> Deserialize<'de> for Piece
impl<'de> Deserialize<'de> for Piece
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
impl Eq for Piece
impl StructuralPartialEq for Piece
Auto Trait Implementations§
impl Freeze for Piece
impl RefUnwindSafe for Piece
impl Send for Piece
impl Sync for Piece
impl Unpin for Piece
impl UnsafeUnpin for Piece
impl UnwindSafe for Piece
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