pub struct TypeParameter<'a> {
pub name: &'a str,
pub bound_class: Option<TypeSignature<'a>>,
pub bound_interface: Box<[TypeSignature<'a>]>,
}Expand description
Generic parameter of a class or method.
Fields§
§name: &'a strName of this generic parameter.
bound_class: Option<TypeSignature<'a>>Class bounds.
bound_interface: Box<[TypeSignature<'a>]>Interface bounds.
Trait Implementations§
Source§impl<'a> Clone for TypeParameter<'a>
impl<'a> Clone for TypeParameter<'a>
Source§impl Debug for TypeParameter<'_>
impl Debug for TypeParameter<'_>
impl<'a> Eq for TypeParameter<'a>
Source§impl<'a> PartialEq for TypeParameter<'a>
impl<'a> PartialEq for TypeParameter<'a>
impl<'a> StructuralPartialEq for TypeParameter<'a>
Auto Trait Implementations§
impl<'a> Freeze for TypeParameter<'a>
impl<'a> RefUnwindSafe for TypeParameter<'a>
impl<'a> Send for TypeParameter<'a>
impl<'a> Sync for TypeParameter<'a>
impl<'a> Unpin for TypeParameter<'a>
impl<'a> UnsafeUnpin for TypeParameter<'a>
impl<'a> UnwindSafe for TypeParameter<'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