pub struct FrameRange { /* private fields */ }Expand description
An inclusive, regularly stepped frame domain.
Implementations§
Source§impl FrameRange
impl FrameRange
Sourcepub fn new(start: i64, end: i64, step: u32) -> Result<Self>
pub fn new(start: i64, end: i64, step: u32) -> Result<Self>
Creates an inclusive range whose end is aligned to its step.
§Errors
Returns ErrorKind::InvalidArgument for a reversed range, zero step,
or an end frame not reachable from the start by whole steps.
Sourcepub fn frame_count(self) -> u128
pub fn frame_count(self) -> u128
Returns the exact number of frames in the regular domain.
Trait Implementations§
Source§impl Clone for FrameRange
impl Clone for FrameRange
Source§fn clone(&self) -> FrameRange
fn clone(&self) -> FrameRange
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 moreimpl Copy for FrameRange
Source§impl Debug for FrameRange
impl Debug for FrameRange
impl Eq for FrameRange
Source§impl Hash for FrameRange
impl Hash for FrameRange
Source§impl PartialEq for FrameRange
impl PartialEq for FrameRange
Source§fn eq(&self, other: &FrameRange) -> bool
fn eq(&self, other: &FrameRange) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FrameRange
Auto Trait Implementations§
impl Freeze for FrameRange
impl RefUnwindSafe for FrameRange
impl Send for FrameRange
impl Sync for FrameRange
impl Unpin for FrameRange
impl UnsafeUnpin for FrameRange
impl UnwindSafe for FrameRange
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