pub enum GenericArg<'a> {
Lifetime(u64),
Type(Rc<Type<'a>>),
Const(Rc<Const<'a>>),
}Variants§
Implementations§
Source§impl GenericArg<'_>
impl GenericArg<'_>
Sourcepub fn display(&self, style: DisplayStyle) -> impl Display + '_
pub fn display(&self, style: DisplayStyle) -> impl Display + '_
Returns an object that implements Display for printing the generic argument.
Trait Implementations§
Source§impl<'a> Clone for GenericArg<'a>
impl<'a> Clone for GenericArg<'a>
Source§fn clone(&self) -> GenericArg<'a>
fn clone(&self) -> GenericArg<'a>
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<'a> Debug for GenericArg<'a>
impl<'a> Debug for GenericArg<'a>
Source§impl Display for GenericArg<'_>
impl Display for GenericArg<'_>
Source§impl<'a> Hash for GenericArg<'a>
impl<'a> Hash for GenericArg<'a>
Source§impl<'a> Ord for GenericArg<'a>
impl<'a> Ord for GenericArg<'a>
Source§fn cmp(&self, other: &GenericArg<'a>) -> Ordering
fn cmp(&self, other: &GenericArg<'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> PartialEq for GenericArg<'a>
impl<'a> PartialEq for GenericArg<'a>
Source§impl<'a> PartialOrd for GenericArg<'a>
impl<'a> PartialOrd for GenericArg<'a>
impl<'a> Eq for GenericArg<'a>
impl<'a> StructuralPartialEq for GenericArg<'a>
Auto Trait Implementations§
impl<'a> Freeze for GenericArg<'a>
impl<'a> RefUnwindSafe for GenericArg<'a>
impl<'a> !Send for GenericArg<'a>
impl<'a> !Sync for GenericArg<'a>
impl<'a> Unpin for GenericArg<'a>
impl<'a> UnwindSafe for GenericArg<'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