pub struct WrapperMatch<'a> {
pub generic_args: &'a Punctuated<GenericArgument, Comma>,
}Expand description
The generic argument list of a matched wrapper type.
Returned by try_extract_wrapper and extract_wrapper.
Fields§
§generic_args: &'a Punctuated<GenericArgument, Comma>Implementations§
Source§impl<'a> WrapperMatch<'a>
impl<'a> WrapperMatch<'a>
Sourcepub fn first_type(&self) -> Option<&'a Type>
pub fn first_type(&self) -> Option<&'a Type>
The first type argument — T in Wrapper<T, ...>.
Sourcepub fn second_type(&self) -> Option<&'a Type>
pub fn second_type(&self) -> Option<&'a Type>
The second type argument — E in Result<T, E>.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Send for WrapperMatch<'a>
impl<'a> !Sync for WrapperMatch<'a>
impl<'a> Freeze for WrapperMatch<'a>
impl<'a> RefUnwindSafe for WrapperMatch<'a>
impl<'a> Unpin for WrapperMatch<'a>
impl<'a> UnsafeUnpin for WrapperMatch<'a>
impl<'a> UnwindSafe for WrapperMatch<'a>
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