pub enum SingleType<'a> {
Any(Any),
NonAny(NonAnyType<'a>),
}
Expand description
Parses one of the single types
Variants§
Any(Any)
NonAny(NonAnyType<'a>)
Trait Implementations§
Source§impl<'a> Clone for SingleType<'a>
impl<'a> Clone for SingleType<'a>
Source§fn clone(&self) -> SingleType<'a>
fn clone(&self) -> SingleType<'a>
Returns a copy 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<'a> Debug for SingleType<'a>
impl<'a> Debug for SingleType<'a>
Source§impl<'a> From<Any> for SingleType<'a>
impl<'a> From<Any> for SingleType<'a>
Source§impl<'a> From<NonAnyType<'a>> for SingleType<'a>
impl<'a> From<NonAnyType<'a>> for SingleType<'a>
Source§fn from(x: NonAnyType<'a>) -> Self
fn from(x: NonAnyType<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<SingleType<'a>> for Type<'a>
impl<'a> From<SingleType<'a>> for Type<'a>
Source§fn from(x: SingleType<'a>) -> Self
fn from(x: SingleType<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Hash for SingleType<'a>
impl<'a> Hash for SingleType<'a>
Source§impl<'a> Ord for SingleType<'a>
impl<'a> Ord for SingleType<'a>
Source§fn cmp(&self, other: &SingleType<'a>) -> Ordering
fn cmp(&self, other: &SingleType<'a>) -> 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> Parse<'a> for SingleType<'a>
impl<'a> Parse<'a> for SingleType<'a>
Source§impl<'a> PartialEq for SingleType<'a>
impl<'a> PartialEq for SingleType<'a>
Source§impl<'a> PartialOrd for SingleType<'a>
impl<'a> PartialOrd for SingleType<'a>
impl<'a> Eq for SingleType<'a>
impl<'a> StructuralPartialEq for SingleType<'a>
Auto Trait Implementations§
impl<'a> Freeze for SingleType<'a>
impl<'a> RefUnwindSafe for SingleType<'a>
impl<'a> Send for SingleType<'a>
impl<'a> Sync for SingleType<'a>
impl<'a> Unpin for SingleType<'a>
impl<'a> UnwindSafe for SingleType<'a>
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