pub struct PromiseType<'a> {
pub promise: Promise,
pub generics: Generics<Box<ReturnType<'a>>>,
}
Expand description
Parses a Promise<Type|undefined>
type
Fields§
§promise: Promise
§generics: Generics<Box<ReturnType<'a>>>
Trait Implementations§
Source§impl<'a> Clone for PromiseType<'a>
impl<'a> Clone for PromiseType<'a>
Source§fn clone(&self) -> PromiseType<'a>
fn clone(&self) -> PromiseType<'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 PromiseType<'a>
impl<'a> Debug for PromiseType<'a>
Source§impl<'a> From<PromiseType<'a>> for NonAnyType<'a>
impl<'a> From<PromiseType<'a>> for NonAnyType<'a>
Source§fn from(x: PromiseType<'a>) -> Self
fn from(x: PromiseType<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Hash for PromiseType<'a>
impl<'a> Hash for PromiseType<'a>
Source§impl<'a> Ord for PromiseType<'a>
impl<'a> Ord for PromiseType<'a>
Source§fn cmp(&self, other: &PromiseType<'a>) -> Ordering
fn cmp(&self, other: &PromiseType<'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 PromiseType<'a>
impl<'a> Parse<'a> for PromiseType<'a>
Source§impl<'a> PartialEq for PromiseType<'a>
impl<'a> PartialEq for PromiseType<'a>
Source§impl<'a> PartialOrd for PromiseType<'a>
impl<'a> PartialOrd for PromiseType<'a>
impl<'a> Eq for PromiseType<'a>
impl<'a> StructuralPartialEq for PromiseType<'a>
Auto Trait Implementations§
impl<'a> Freeze for PromiseType<'a>
impl<'a> RefUnwindSafe for PromiseType<'a>
impl<'a> Send for PromiseType<'a>
impl<'a> Sync for PromiseType<'a>
impl<'a> Unpin for PromiseType<'a>
impl<'a> UnwindSafe for PromiseType<'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