pub enum AutoNoneOr<T> {
Auto(Ident),
None(Ident),
Some(T),
}Variants§
Trait Implementations§
Source§impl<T: Clone> Clone for AutoNoneOr<T>
impl<T: Clone> Clone for AutoNoneOr<T>
Source§fn clone(&self) -> AutoNoneOr<T>
fn clone(&self) -> AutoNoneOr<T>
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<T: Debug> Debug for AutoNoneOr<T>
impl<T: Debug> Debug for AutoNoneOr<T>
Source§impl<T> From<AutoNoneOr<T>> for Cursor
impl<T> From<AutoNoneOr<T>> for Cursor
Source§fn from(value: AutoNoneOr<T>) -> Self
fn from(value: AutoNoneOr<T>) -> Self
Converts to this type from the input type.
Source§impl<T: Hash> Hash for AutoNoneOr<T>
impl<T: Hash> Hash for AutoNoneOr<T>
Source§impl<T: Ord> Ord for AutoNoneOr<T>
impl<T: Ord> Ord for AutoNoneOr<T>
Source§fn cmp(&self, other: &AutoNoneOr<T>) -> Ordering
fn cmp(&self, other: &AutoNoneOr<T>) -> 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<'a, T> Parse<'a> for AutoNoneOr<T>where
T: Parse<'a>,
impl<'a, T> Parse<'a> for AutoNoneOr<T>where
T: Parse<'a>,
Source§impl<T: PartialEq> PartialEq for AutoNoneOr<T>
impl<T: PartialEq> PartialEq for AutoNoneOr<T>
Source§impl<T: PartialOrd> PartialOrd for AutoNoneOr<T>
impl<T: PartialOrd> PartialOrd for AutoNoneOr<T>
Source§impl<'a, T> Peek<'a> for AutoNoneOr<T>where
T: Peek<'a>,
impl<'a, T> Peek<'a> for AutoNoneOr<T>where
T: Peek<'a>,
Source§impl<T> ToCursors for AutoNoneOr<T>where
T: ToCursors,
impl<T> ToCursors for AutoNoneOr<T>where
T: ToCursors,
fn to_cursors(&self, s: &mut impl CursorSink)
Source§impl<T: ToNumberValue> ToNumberValue for AutoNoneOr<T>
impl<T: ToNumberValue> ToNumberValue for AutoNoneOr<T>
fn to_number_value(&self) -> Option<f32>
fn to_int_value(&self) -> Option<i32>
impl<T: Copy> Copy for AutoNoneOr<T>
impl<T: Eq> Eq for AutoNoneOr<T>
impl<T> StructuralPartialEq for AutoNoneOr<T>
Auto Trait Implementations§
impl<T> Freeze for AutoNoneOr<T>where
T: Freeze,
impl<T> RefUnwindSafe for AutoNoneOr<T>where
T: RefUnwindSafe,
impl<T> Send for AutoNoneOr<T>where
T: Send,
impl<T> Sync for AutoNoneOr<T>where
T: Sync,
impl<T> Unpin for AutoNoneOr<T>where
T: Unpin,
impl<T> UnwindSafe for AutoNoneOr<T>where
T: UnwindSafe,
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