pub struct TypeParamBindings<'a> { /* private fields */ }Implementations§
Source§impl<'a> TypeParamBindings<'a>
impl<'a> TypeParamBindings<'a>
pub fn empty() -> Self
pub fn from_type_params(type_params: &'a [impl AsRef<str>]) -> Self
pub fn from_type_args( parent_bindings: &'a TypeParamBindings<'a>, type_params: &'a [impl AsRef<str>], type_args: &'a [Type], ) -> Self
pub fn resolve(&self, type_name: &str) -> Option<TypeParamBinding<'a>>
Trait Implementations§
Source§impl<'a> Clone for TypeParamBindings<'a>
impl<'a> Clone for TypeParamBindings<'a>
Source§fn clone(&self) -> TypeParamBindings<'a>
fn clone(&self) -> TypeParamBindings<'a>
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<'a> Freeze for TypeParamBindings<'a>
impl<'a> RefUnwindSafe for TypeParamBindings<'a>
impl<'a> Send for TypeParamBindings<'a>
impl<'a> Sync for TypeParamBindings<'a>
impl<'a> Unpin for TypeParamBindings<'a>
impl<'a> UnsafeUnpin for TypeParamBindings<'a>
impl<'a> UnwindSafe for TypeParamBindings<'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