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