pub struct TypeGenericParam {
pub name: GenericParamName,
pub constraint: TypeGenericConstraint,
pub default: Option<TypeExpr>,
}Expand description
A generic parameter on a type definition.
Fields§
§name: GenericParamName§constraint: TypeGenericConstraint§default: Option<TypeExpr>Optional default type expression, e.g. F: Type = Unframed.
Trait Implementations§
Source§impl Clone for TypeGenericParam
impl Clone for TypeGenericParam
Source§fn clone(&self) -> TypeGenericParam
fn clone(&self) -> TypeGenericParam
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 moreAuto Trait Implementations§
impl Freeze for TypeGenericParam
impl RefUnwindSafe for TypeGenericParam
impl Send for TypeGenericParam
impl Sync for TypeGenericParam
impl Unpin for TypeGenericParam
impl UnsafeUnpin for TypeGenericParam
impl UnwindSafe for TypeGenericParam
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