pub(crate) struct GenericsSearch<'s> {
pub(crate) types: Vec<&'s Ident>,
pub(crate) lifetimes: Vec<&'s Ident>,
pub(crate) consts: Vec<&'s Ident>,
}Expand description
Search of whether some generics (type parameters, lifetime parameters or const parameters)
are present in some syn::Type.
Fields§
§types: Vec<&'s Ident>Type parameters to look for.
lifetimes: Vec<&'s Ident>Lifetime parameters to look for.
consts: Vec<&'s Ident>Const parameters to look for.
Implementations§
Source§impl GenericsSearch<'_>
impl GenericsSearch<'_>
Trait Implementations§
Auto Trait Implementations§
impl<'s> Freeze for GenericsSearch<'s>
impl<'s> RefUnwindSafe for GenericsSearch<'s>
impl<'s> !Send for GenericsSearch<'s>
impl<'s> !Sync for GenericsSearch<'s>
impl<'s> Unpin for GenericsSearch<'s>
impl<'s> UnwindSafe for GenericsSearch<'s>
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