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