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