#[non_exhaustive]pub struct GaplessInfo {
pub leading_frames: u64,
pub trailing_frames: u64,
}Expand description
Gapless trim contract for one decoded track.
The values are expressed in PCM frames, not scalar samples:
leading_frames are dropped from the start of the track and
trailing_frames are dropped from the end at EOF.
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.leading_frames: u64§trailing_frames: u64Trait Implementations§
Source§impl Clone for GaplessInfo
impl Clone for GaplessInfo
Source§fn clone(&self) -> GaplessInfo
fn clone(&self) -> GaplessInfo
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 GaplessInfo
impl Debug for GaplessInfo
Source§impl Default for GaplessInfo
impl Default for GaplessInfo
Source§fn default() -> GaplessInfo
fn default() -> GaplessInfo
Returns the “default value” for a type. Read more
Source§impl From<GaplessInfo> for GaplessTrimmer
impl From<GaplessInfo> for GaplessTrimmer
Source§fn from(info: GaplessInfo) -> Self
fn from(info: GaplessInfo) -> Self
Converts to this type from the input type.
Source§impl PartialEq for GaplessInfo
impl PartialEq for GaplessInfo
Source§fn eq(&self, other: &GaplessInfo) -> bool
fn eq(&self, other: &GaplessInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for GaplessInfo
impl Eq for GaplessInfo
impl StructuralPartialEq for GaplessInfo
Auto Trait Implementations§
impl Freeze for GaplessInfo
impl RefUnwindSafe for GaplessInfo
impl Send for GaplessInfo
impl Sync for GaplessInfo
impl Unpin for GaplessInfo
impl UnsafeUnpin for GaplessInfo
impl UnwindSafe for GaplessInfo
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