pub struct BoundedGenericParam {
pub param: GenericParamName,
pub bounds: Option<TokenStream>,
}Expand description
The name of a generic parameter with bounds
Fields§
§param: GenericParamNamethe parameter name
bounds: Option<TokenStream>bounds like 'static, or Send + Sync, etc. — None if no bounds
Trait Implementations§
Source§impl Clone for BoundedGenericParam
impl Clone for BoundedGenericParam
Source§fn clone(&self) -> BoundedGenericParam
fn clone(&self) -> BoundedGenericParam
Returns a duplicate of the value. Read more
1.0.0 · 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 BoundedGenericParam
impl RefUnwindSafe for BoundedGenericParam
impl !Send for BoundedGenericParam
impl !Sync for BoundedGenericParam
impl Unpin for BoundedGenericParam
impl UnwindSafe for BoundedGenericParam
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