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 TypeParameter
impl Move for TypeParameter
impl RefUnwindSafe for TypeParameter
impl Send for TypeParameter
impl Sync for TypeParameter
impl Unpin for TypeParameter
impl UnsafeUnpin for TypeParameter
impl UnwindSafe for TypeParameter
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