Skip to content

Releases: taiki-e/pin-project

0.4.20

06 Jun 18:23
Compare
Choose a tag to compare

0.4.19

04 Jun 14:29
Compare
Choose a tag to compare

0.4.18

04 Jun 12:18
Compare
Choose a tag to compare

0.4.17

18 May 12:26
Compare
Choose a tag to compare
  • Support naming the projection types.

    By passing an argument with the same name as the method to the attribute, you can name the projection type returned from the method:

    use pin_project::pin_project;
    use std::pin::Pin;
    
    #[pin_project(project = EnumProj)]
    enum Enum<T> {
        Variant(#[pin] T),
    }
    
    fn func<T>(x: Pin<&mut Enum<T>>) {
        match x.project() {
            EnumProj::Variant(y) => {
                let _: Pin<&mut T> = y;
            }
        }
    }

0.4.16

11 May 00:46
Compare
Choose a tag to compare

0.4.15

0.4.14

09 May 17:13
Compare
Choose a tag to compare

0.4.13

0.4.12

07 May 06:26
Compare
Choose a tag to compare

0.4.11