#[repr(C, u8)]pub enum OptionVideoFrame {
None,
Some(VideoFrame),
}Variants§
None
Some(VideoFrame)
Implementations§
Source§impl OptionVideoFrame
impl OptionVideoFrame
pub fn into_option(&self) -> Option<VideoFrame>
Source§impl OptionVideoFrame
impl OptionVideoFrame
pub fn as_option(&self) -> Option<&VideoFrame>
pub fn replace(&mut self, value: VideoFrame) -> OptionVideoFrame
pub fn is_some(&self) -> bool
pub fn is_none(&self) -> bool
pub const fn as_ref(&self) -> Option<&VideoFrame>
pub fn as_mut(&mut self) -> Option<&mut VideoFrame>
pub fn map<U, F: FnOnce(VideoFrame) -> U>(self, f: F) -> Option<U>
pub fn and_then<U, F>(self, f: F) -> Option<U>
Trait Implementations§
Source§impl Clone for OptionVideoFrame
impl Clone for OptionVideoFrame
Source§fn clone(&self) -> OptionVideoFrame
fn clone(&self) -> OptionVideoFrame
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 OptionVideoFrame
impl Debug for OptionVideoFrame
Source§impl Default for OptionVideoFrame
impl Default for OptionVideoFrame
Source§fn default() -> OptionVideoFrame
fn default() -> OptionVideoFrame
Returns the “default value” for a type. Read more
Source§impl From<Option<VideoFrame>> for OptionVideoFrame
impl From<Option<VideoFrame>> for OptionVideoFrame
Source§fn from(o: Option<VideoFrame>) -> OptionVideoFrame
fn from(o: Option<VideoFrame>) -> OptionVideoFrame
Converts to this type from the input type.
Source§impl From<OptionVideoFrame> for Option<VideoFrame>
impl From<OptionVideoFrame> for Option<VideoFrame>
Source§fn from(o: OptionVideoFrame) -> Option<VideoFrame>
fn from(o: OptionVideoFrame) -> Option<VideoFrame>
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OptionVideoFrame
impl RefUnwindSafe for OptionVideoFrame
impl Send for OptionVideoFrame
impl Sync for OptionVideoFrame
impl Unpin for OptionVideoFrame
impl UnsafeUnpin for OptionVideoFrame
impl UnwindSafe for OptionVideoFrame
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