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