Struct stable_mir::ty::GenericArgs
source · pub struct GenericArgs(pub Vec<GenericArgKind>);
Tuple Fields§
§0: Vec<GenericArgKind>
Trait Implementations§
source§impl Clone for GenericArgs
impl Clone for GenericArgs
source§fn clone(&self) -> GenericArgs
fn clone(&self) -> GenericArgs
Returns a copy 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 moresource§impl Debug for GenericArgs
impl Debug for GenericArgs
source§impl Foldable for GenericArgs
impl Foldable for GenericArgs
fn super_fold<V: Folder>(&self, folder: &mut V) -> ControlFlow<V::Break, Self>
fn fold<V: Folder>(&self, folder: &mut V) -> ControlFlow<V::Break, Self>
source§impl Folder for GenericArgs
impl Folder for GenericArgs
In order to instantiate a Foldable
’s generic parameters with specific arguments,
GenericArgs
can be used as a Folder
that replaces all mentions of generic params
with the entries in its list.
source§impl Index<ParamConst> for GenericArgs
impl Index<ParamConst> for GenericArgs
source§impl Index<ParamTy> for GenericArgs
impl Index<ParamTy> for GenericArgs
source§impl Visitable for GenericArgs
impl Visitable for GenericArgs
fn super_visit<V: Visitor>(&self, visitor: &mut V) -> ControlFlow<V::Break>
fn visit<V: Visitor>(&self, visitor: &mut V) -> ControlFlow<V::Break>
Auto Trait Implementations§
impl RefUnwindSafe for GenericArgs
impl Send for GenericArgs
impl Sync for GenericArgs
impl Unpin for GenericArgs
impl UnwindSafe for GenericArgs
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes