#[repr(C, u8)]pub enum OptionFrameConsumer {
None,
Some(FrameConsumer),
}Variants§
None
Some(FrameConsumer)
Implementations§
Source§impl OptionFrameConsumer
impl OptionFrameConsumer
pub fn into_option(&self) -> Option<FrameConsumer>
Source§impl OptionFrameConsumer
impl OptionFrameConsumer
pub const fn as_option(&self) -> Option<&FrameConsumer>
pub const fn replace(&mut self, value: FrameConsumer) -> OptionFrameConsumer
pub const fn is_some(&self) -> bool
pub const fn is_none(&self) -> bool
pub const fn as_ref(&self) -> Option<&FrameConsumer>
pub const fn as_mut(&mut self) -> Option<&mut FrameConsumer>
pub fn map<U, F: FnOnce(FrameConsumer) -> U>(self, f: F) -> Option<U>
pub fn and_then<U, F>(self, f: F) -> Option<U>
Trait Implementations§
Source§impl Clone for OptionFrameConsumer
impl Clone for OptionFrameConsumer
Source§fn clone(&self) -> OptionFrameConsumer
fn clone(&self) -> OptionFrameConsumer
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 OptionFrameConsumer
Source§impl Debug for OptionFrameConsumer
impl Debug for OptionFrameConsumer
Source§impl Default for OptionFrameConsumer
impl Default for OptionFrameConsumer
Source§fn default() -> OptionFrameConsumer
fn default() -> OptionFrameConsumer
Returns the “default value” for a type. Read more
impl Eq for OptionFrameConsumer
Source§impl From<Option<FrameConsumer>> for OptionFrameConsumer
impl From<Option<FrameConsumer>> for OptionFrameConsumer
Source§fn from(o: Option<FrameConsumer>) -> OptionFrameConsumer
fn from(o: Option<FrameConsumer>) -> OptionFrameConsumer
Converts to this type from the input type.
Source§impl From<OptionFrameConsumer> for Option<FrameConsumer>
impl From<OptionFrameConsumer> for Option<FrameConsumer>
Source§fn from(o: OptionFrameConsumer) -> Option<FrameConsumer>
fn from(o: OptionFrameConsumer) -> Option<FrameConsumer>
Converts to this type from the input type.
Source§impl Hash for OptionFrameConsumer
impl Hash for OptionFrameConsumer
Source§impl Ord for OptionFrameConsumer
impl Ord for OptionFrameConsumer
Source§fn cmp(&self, other: &OptionFrameConsumer) -> Ordering
fn cmp(&self, other: &OptionFrameConsumer) -> Ordering
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for OptionFrameConsumer
impl PartialEq for OptionFrameConsumer
Source§impl PartialOrd for OptionFrameConsumer
impl PartialOrd for OptionFrameConsumer
impl StructuralPartialEq for OptionFrameConsumer
Auto Trait Implementations§
impl Freeze for OptionFrameConsumer
impl RefUnwindSafe for OptionFrameConsumer
impl Send for OptionFrameConsumer
impl Sync for OptionFrameConsumer
impl Unpin for OptionFrameConsumer
impl UnsafeUnpin for OptionFrameConsumer
impl UnwindSafe for OptionFrameConsumer
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