pub struct TimeRanges {
pub ranges: Vec<TimeRange>,
}Fields§
§ranges: Vec<TimeRange>Implementations§
Source§impl TimeRanges
impl TimeRanges
pub fn new() -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn start(&self, index: usize) -> Option<f64>
pub fn end(&self, index: usize) -> Option<f64>
pub fn add(&mut self, start: f64, end: f64)
Sourcepub fn intersect(&self, other: &TimeRanges) -> TimeRanges
pub fn intersect(&self, other: &TimeRanges) -> TimeRanges
2 つの TimeRanges の共通部分(<video>.buffered は全 SourceBuffer の共通部分。MSE 仕様)。
Trait Implementations§
Source§impl Clone for TimeRanges
impl Clone for TimeRanges
Source§fn clone(&self) -> TimeRanges
fn clone(&self) -> TimeRanges
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 TimeRanges
impl Debug for TimeRanges
Source§impl Default for TimeRanges
impl Default for TimeRanges
Source§fn default() -> TimeRanges
fn default() -> TimeRanges
Returns the “default value” for a type. Read more
Source§impl PartialEq for TimeRanges
impl PartialEq for TimeRanges
impl StructuralPartialEq for TimeRanges
Auto Trait Implementations§
impl Freeze for TimeRanges
impl RefUnwindSafe for TimeRanges
impl Send for TimeRanges
impl Sync for TimeRanges
impl Unpin for TimeRanges
impl UnsafeUnpin for TimeRanges
impl UnwindSafe for TimeRanges
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