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