pub enum RefFrameType {
ShortTerm,
LongTerm,
}Expand description
Indicates whether a reference frame is short-term or long-term.
Variants§
ShortTerm
Short-term reference: identified by frame_num / PicNum.
LongTerm
Long-term reference: identified by a long-term frame index.
Implementations§
Source§impl RefFrameType
impl RefFrameType
Sourcepub fn is_long_term(self) -> bool
pub fn is_long_term(self) -> bool
Returns true if this is a long-term reference.
Sourcepub fn is_short_term(self) -> bool
pub fn is_short_term(self) -> bool
Returns true if this is a short-term reference.
Trait Implementations§
Source§impl Clone for RefFrameType
impl Clone for RefFrameType
Source§fn clone(&self) -> RefFrameType
fn clone(&self) -> RefFrameType
Returns a duplicate of the value. Read more
1.0.0 · 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 RefFrameType
impl Debug for RefFrameType
Source§impl PartialEq for RefFrameType
impl PartialEq for RefFrameType
impl Copy for RefFrameType
impl Eq for RefFrameType
impl StructuralPartialEq for RefFrameType
Auto Trait Implementations§
impl Freeze for RefFrameType
impl RefUnwindSafe for RefFrameType
impl Send for RefFrameType
impl Sync for RefFrameType
impl Unpin for RefFrameType
impl UnsafeUnpin for RefFrameType
impl UnwindSafe for RefFrameType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more