pub enum PureGenericParam {
Type {
name: String,
bounds: Vec<String>,
},
Lifetime {
name: String,
bounds: Vec<String>,
},
Const {
name: String,
ty: String,
},
}Expand description
A generic parameter.
Variants§
Trait Implementations§
Source§impl Clone for PureGenericParam
impl Clone for PureGenericParam
Source§fn clone(&self) -> PureGenericParam
fn clone(&self) -> PureGenericParam
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 PureGenericParam
impl Debug for PureGenericParam
Source§impl PartialEq for PureGenericParam
impl PartialEq for PureGenericParam
Source§fn eq(&self, other: &PureGenericParam) -> bool
fn eq(&self, other: &PureGenericParam) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl ToSyn for PureGenericParam
impl ToSyn for PureGenericParam
Source§type Output = GenericParam
type Output = GenericParam
syn output type produced from self.Source§fn to_syn(&self) -> Result<GenericParam, ToSynError>
fn to_syn(&self) -> Result<GenericParam, ToSynError>
Convert
self back into its syn representation.impl Eq for PureGenericParam
impl StructuralPartialEq for PureGenericParam
Auto Trait Implementations§
impl Freeze for PureGenericParam
impl RefUnwindSafe for PureGenericParam
impl Send for PureGenericParam
impl Sync for PureGenericParam
impl Unpin for PureGenericParam
impl UnsafeUnpin for PureGenericParam
impl UnwindSafe for PureGenericParam
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