#[repr(transparent)]pub struct AVSeekWhence(pub i32);
Expand description
Seek flags used in FFmpeg’s av_seek_frame
function.
These flags modify how seeking is performed in media files.
See the official FFmpeg documentation: https://ffmpeg.org/doxygen/trunk/group__lavf__decoding.html#gaa59bdaec0590cc36300753c5cf6c9d49
Tuple Fields§
§0: i32
Implementations§
Source§impl AVSeekWhence
impl AVSeekWhence
Sourcepub const Start: Self
pub const Start: Self
Seek from the beginning of the file.
- Used for: Seeking from the start of the file.
- Binary representation:
0b0000000000000001
- Equivalent to:
SEEK_SET
Sourcepub const Current: Self
pub const Current: Self
Seek from the current position.
- Used for: Seeking from the current position.
- Binary representation:
0b0000000000000010
- Equivalent to:
SEEK_CUR
Sourcepub const End: Self
pub const End: Self
Seek from the end of the file.
- Used for: Seeking from the end of the file.
- Binary representation:
0b0000000000000100
- Equivalent to:
SEEK_END
Trait Implementations§
Source§impl BitAnd for AVSeekWhence
impl BitAnd for AVSeekWhence
Source§impl BitAndAssign for AVSeekWhence
impl BitAndAssign for AVSeekWhence
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moreSource§impl BitOr for AVSeekWhence
impl BitOr for AVSeekWhence
Source§impl BitOrAssign for AVSeekWhence
impl BitOrAssign for AVSeekWhence
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moreSource§impl BitXor for AVSeekWhence
impl BitXor for AVSeekWhence
Source§impl BitXorAssign for AVSeekWhence
impl BitXorAssign for AVSeekWhence
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moreSource§impl Clone for AVSeekWhence
impl Clone for AVSeekWhence
Source§fn clone(&self) -> AVSeekWhence
fn clone(&self) -> AVSeekWhence
Returns a copy 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 AVSeekWhence
impl Debug for AVSeekWhence
Source§impl From<AVSeekWhence> for i32
impl From<AVSeekWhence> for i32
Source§fn from(value: AVSeekWhence) -> Self
fn from(value: AVSeekWhence) -> Self
Converts to this type from the input type.
Source§impl From<AVSeekWhence> for u32
impl From<AVSeekWhence> for u32
Source§fn from(value: AVSeekWhence) -> Self
fn from(value: AVSeekWhence) -> Self
Converts to this type from the input type.
Source§impl From<i32> for AVSeekWhence
impl From<i32> for AVSeekWhence
Source§impl From<u32> for AVSeekWhence
impl From<u32> for AVSeekWhence
Source§impl Hash for AVSeekWhence
impl Hash for AVSeekWhence
Source§impl Not for AVSeekWhence
impl Not for AVSeekWhence
Source§impl Ord for AVSeekWhence
impl Ord for AVSeekWhence
Source§fn cmp(&self, other: &AVSeekWhence) -> Ordering
fn cmp(&self, other: &AVSeekWhence) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<i32> for AVSeekWhence
impl PartialEq<i32> for AVSeekWhence
Source§impl PartialEq for AVSeekWhence
impl PartialEq for AVSeekWhence
Source§impl PartialOrd for AVSeekWhence
impl PartialOrd for AVSeekWhence
impl Copy for AVSeekWhence
impl Eq for AVSeekWhence
impl StructuralPartialEq for AVSeekWhence
Auto Trait Implementations§
impl Freeze for AVSeekWhence
impl RefUnwindSafe for AVSeekWhence
impl Send for AVSeekWhence
impl Sync for AVSeekWhence
impl Unpin for AVSeekWhence
impl UnwindSafe for AVSeekWhence
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