pub struct Region {
pub start: PlaybackPosition,
pub end: EndPosition,
}
Expand description
A portion of audio.
Fields§
§start: PlaybackPosition
The starting time of the region (in seconds).
end: EndPosition
The ending time of the region.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
impl<'de> Deserialize<'de> for Region
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
source§impl<T: Into<PlaybackPosition> + Copy> From<RangeInclusive<T>> for Region
impl<T: Into<PlaybackPosition> + Copy> From<RangeInclusive<T>> for Region
source§fn from(range: RangeInclusive<T>) -> Self
fn from(range: RangeInclusive<T>) -> Self
Converts to this type from the input type.
source§impl<T: Into<PlaybackPosition>> From<RangeToInclusive<T>> for Region
impl<T: Into<PlaybackPosition>> From<RangeToInclusive<T>> for Region
source§fn from(range: RangeToInclusive<T>) -> Self
fn from(range: RangeToInclusive<T>) -> Self
Converts to this type from the input type.
source§impl PartialEq for Region
impl PartialEq for Region
impl Copy for Region
impl StructuralPartialEq for Region
Auto Trait Implementations§
impl RefUnwindSafe for Region
impl Send for Region
impl Sync for Region
impl Unpin for Region
impl UnwindSafe for Region
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
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
source§impl<T> IntoOptionalRegion for T
impl<T> IntoOptionalRegion for T
source§fn into_optional_loop_region(self) -> Option<Region>
fn into_optional_loop_region(self) -> Option<Region>
Converts the type into an
Option<Region>
.