Bring back generic FieldIdx
This commit is contained in:
parent
3b99d73f5a
commit
b47ad3b744
3 changed files with 113 additions and 104 deletions
|
@ -42,8 +42,8 @@ impl<'a, Ty: fmt::Display> fmt::Debug for TyAndLayout<'a, Ty> {
|
|||
}
|
||||
|
||||
impl<'a, Ty> Deref for TyAndLayout<'a, Ty> {
|
||||
type Target = &'a LayoutS;
|
||||
fn deref(&self) -> &&'a LayoutS {
|
||||
type Target = &'a LayoutS<FieldIdx>;
|
||||
fn deref(&self) -> &&'a LayoutS<FieldIdx> {
|
||||
&self.layout.0.0
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue