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