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
source§fn eq(&self, other: &SeekSearchResult) -> bool
fn eq(&self, other: &SeekSearchResult) -> bool
self
and other
values to be equal, and is used
by ==
.