pub struct TypeParam {
pub name: String,
pub span: Span,
pub doc_comment: Option<DocComment>,
pub default_type: Option<TypeAnnotation>,
pub trait_bounds: Vec<TypePath>,
}Fields§
§name: String§span: Span§doc_comment: Option<DocComment>§default_type: Option<TypeAnnotation>Default type argument: T = int
trait_bounds: Vec<TypePath>Trait bounds: T: Comparable + Displayable
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TypeParam
impl<'de> Deserialize<'de> for TypeParam
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TypeParam
impl RefUnwindSafe for TypeParam
impl Send for TypeParam
impl Sync for TypeParam
impl Unpin for TypeParam
impl UnsafeUnpin for TypeParam
impl UnwindSafe for TypeParam
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