Enum symphonia_core::formats::util::SeekSearchResult
source · pub enum SeekSearchResult {
Stream,
Upper(SeekPoint),
Lower(SeekPoint),
Range(SeekPoint, SeekPoint),
}
Expand description
SeekSearchResult
is the return value for a search on a SeekIndex
. It returns a range of
SeekPoint
s a FormatReader
should search to find the desired timestamp. Ranges are
lower-bound inclusive, and upper-bound exclusive.
Variants§
Stream
The SeekIndex
is empty so the desired timestamp could not be found. The entire stream
should be searched for the desired timestamp.
Upper(SeekPoint)
The desired timestamp can be found before, the SeekPoint
. The stream should be
searched for the desired timestamp from the start of the stream up-to, but not
including, the SeekPoint
.
Lower(SeekPoint)
The desired timestamp can be found at, or after, the SeekPoint
. The stream should be
searched for the desired timestamp starting at the provided SeekPoint
up-to the end of
the stream.
Range(SeekPoint, SeekPoint)
The desired timestamp can be found within the range. The stream should be searched for
the desired starting at the first SeekPoint
up-to, but not-including, the second
SeekPoint
.
Trait Implementations§
source§impl Clone for SeekSearchResult
impl Clone for SeekSearchResult
source§fn clone(&self) -> SeekSearchResult
fn clone(&self) -> SeekSearchResult
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SeekSearchResult
impl Debug for SeekSearchResult
source§impl PartialEq for SeekSearchResult
impl PartialEq for SeekSearchResult
impl Copy for SeekSearchResult
impl Eq for SeekSearchResult
impl StructuralPartialEq for SeekSearchResult
Auto Trait Implementations§
impl Freeze for SeekSearchResult
impl RefUnwindSafe for SeekSearchResult
impl Send for SeekSearchResult
impl Sync for SeekSearchResult
impl Unpin for SeekSearchResult
impl UnwindSafe for SeekSearchResult
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)