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