pub struct TypeParameter {
pub annotations: Vec<Annotation>,
pub name: Ident,
pub bound: Option<TypeBound>,
pub span: Span,
}Expand description
A single type parameter.
Fields§
§annotations: Vec<Annotation>§name: Ident§bound: Option<TypeBound>§span: SpanTrait Implementations§
Source§impl Clone for TypeParameter
impl Clone for TypeParameter
Source§fn clone(&self) -> TypeParameter
fn clone(&self) -> TypeParameter
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 TypeParameter
impl Debug for TypeParameter
Source§impl Hash for TypeParameter
impl Hash for TypeParameter
Source§impl PartialEq for TypeParameter
impl PartialEq for TypeParameter
Source§fn eq(&self, other: &TypeParameter) -> bool
fn eq(&self, other: &TypeParameter) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for TypeParameter
impl StructuralPartialEq for TypeParameter
Auto Trait Implementations§
impl Freeze 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