pub enum Implementation<'a> {
ByIndex(Index<'a>),
Inline {
ty: TypeUse<'a>,
instrs: Instructions<'a>,
},
}Expand description
Different ways to specify an implementation
Variants§
ByIndex(Index<'a>)
A specification using an index
Inline
An inline definition of what’s being implemented
Fields
§
instrs: Instructions<'a>Body of the implementation
Auto Trait Implementations§
impl<'a> Freeze for Implementation<'a>
impl<'a> RefUnwindSafe for Implementation<'a>
impl<'a> Send for Implementation<'a>
impl<'a> Sync for Implementation<'a>
impl<'a> Unpin for Implementation<'a>
impl<'a> UnwindSafe for Implementation<'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