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