pub enum TypeArgument {
Type(Box<Type>),
Wildcard(Wildcard),
}Expand description
A type argument, which can be a concrete type or a wildcard.
Variants§
Type(Box<Type>)
A specific type: String, List<Integer>.
Wildcard(Wildcard)
A wildcard: ?, ? extends Number, ? super String.
Trait Implementations§
Source§impl Clone for TypeArgument
impl Clone for TypeArgument
Source§fn clone(&self) -> TypeArgument
fn clone(&self) -> TypeArgument
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TypeArgument
impl Debug for TypeArgument
impl Eq for TypeArgument
Source§impl Hash for TypeArgument
impl Hash for TypeArgument
Source§impl PartialEq for TypeArgument
impl PartialEq for TypeArgument
Source§fn eq(&self, other: &TypeArgument) -> bool
fn eq(&self, other: &TypeArgument) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TypeArgument
Auto Trait Implementations§
impl Freeze for TypeArgument
impl RefUnwindSafe for TypeArgument
impl Send for TypeArgument
impl Sync for TypeArgument
impl Unpin for TypeArgument
impl UnsafeUnpin for TypeArgument
impl UnwindSafe for TypeArgument
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