pub enum TypeParameter {
Integer(IntegerParameter),
Type(Type),
Name(String),
}Available on crate feature
parse only.Expand description
A parameter, used in parameterized types
Variants§
Integer(IntegerParameter)
Integer parameter (e.g., precision, scale)
Type(Type)
Type parameter (nested type)
Name(String)
A name whose parameter kind depends on the user-defined type declaration.
Implementations§
Source§impl TypeParameter
impl TypeParameter
Sourcepub fn is_concrete(&self) -> bool
pub fn is_concrete(&self) -> bool
Returns whether this parameter contains no unresolved variables.
Trait Implementations§
Source§impl Clone for TypeParameter
impl Clone for TypeParameter
Source§impl Debug for TypeParameter
impl Debug for TypeParameter
Source§impl Display for TypeParameter
impl Display for TypeParameter
Source§impl PartialEq for TypeParameter
impl PartialEq for TypeParameter
impl StructuralPartialEq for TypeParameter
Auto Trait Implementations§
impl Forget for TypeParameter
impl Freeze for TypeParameterwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const IntegerParameter is !null: Freeze,
PhantomData<IntegerParameter>: Freeze,
*const BooleanExpr is !null: Freeze,
PhantomData<BooleanExpr>: Freeze,
PhantomData<TypeParameter>: Freeze,
*const Type is !null: Freeze,
PhantomData<Type>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<String, Type>>: Freeze,
impl Move for TypeParameter
impl RefUnwindSafe for TypeParameter
impl Send for TypeParameterwhere
RawVecInner: Send,
BoxRaw<IntegerParameter>: Send,
BoxRaw<BooleanExpr>: Send,
BoxRaw<Type>: Send,
RawTable<usize>: Send,
impl Sync for TypeParameterwhere
RawVecInner: Sync,
BoxRaw<IntegerParameter>: Sync,
BoxRaw<BooleanExpr>: Sync,
BoxRaw<Type>: Sync,
RawTable<usize>: Sync,
impl Unpin for TypeParameter
impl UnsafeUnpin for TypeParameterwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const IntegerParameter is !null: UnsafeUnpin,
PhantomData<IntegerParameter>: UnsafeUnpin,
*const BooleanExpr is !null: UnsafeUnpin,
PhantomData<BooleanExpr>: UnsafeUnpin,
PhantomData<TypeParameter>: UnsafeUnpin,
*const Type is !null: UnsafeUnpin,
PhantomData<Type>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, Type>>: UnsafeUnpin,
impl UnwindSafe for TypeParameterwhere
RawVecInner: UnwindSafe,
BoxRaw<IntegerParameter>: UnwindSafe,
BoxRaw<BooleanExpr>: UnwindSafe,
BoxRaw<Type>: UnwindSafe,
NonNull<u8>: UnwindSafe,
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