pub enum ReturnType<'a> {
Undefined(Undefined),
Type(Type<'a>),
}
Expand description
Parses the return type which may be undefined
or any given Type
Variants§
Trait Implementations§
Source§impl<'a> Clone for ReturnType<'a>
impl<'a> Clone for ReturnType<'a>
Source§fn clone(&self) -> ReturnType<'a>
fn clone(&self) -> ReturnType<'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 ReturnType<'a>
impl<'a> Debug for ReturnType<'a>
Source§impl<'a> From<Type<'a>> for ReturnType<'a>
impl<'a> From<Type<'a>> for ReturnType<'a>
Source§impl<'a> From<Undefined> for ReturnType<'a>
impl<'a> From<Undefined> for ReturnType<'a>
Source§impl<'a> Hash for ReturnType<'a>
impl<'a> Hash for ReturnType<'a>
Source§impl<'a> Ord for ReturnType<'a>
impl<'a> Ord for ReturnType<'a>
Source§fn cmp(&self, other: &ReturnType<'a>) -> Ordering
fn cmp(&self, other: &ReturnType<'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 ReturnType<'a>
impl<'a> Parse<'a> for ReturnType<'a>
Source§impl<'a> PartialEq for ReturnType<'a>
impl<'a> PartialEq for ReturnType<'a>
Source§impl<'a> PartialOrd for ReturnType<'a>
impl<'a> PartialOrd for ReturnType<'a>
impl<'a> Eq for ReturnType<'a>
impl<'a> StructuralPartialEq for ReturnType<'a>
Auto Trait Implementations§
impl<'a> Freeze for ReturnType<'a>
impl<'a> RefUnwindSafe for ReturnType<'a>
impl<'a> Send for ReturnType<'a>
impl<'a> Sync for ReturnType<'a>
impl<'a> Unpin for ReturnType<'a>
impl<'a> UnwindSafe for ReturnType<'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