extendx

Crates.ioextendx
lib.rsextendx
version0.0.1
created_at2025-12-03 19:49:41.376065+00
updated_at2025-12-03 19:49:41.376065+00
descriptiontype and implementation extentions
homepagehttps://www.github.com/aacebo/zinq
repositoryhttps://www.github.com/aacebo/zinq
max_upload_size
id1965168
size7,914
Alex Acebo (aacebo)

documentation

https://www.github.com/aacebo/zinq

README

ExtendX

type and implementation extentions

Usage

Code

pub struct A {
    a: usize,
}

#[derive(Extend)]
pub struct B {
    #[extend]
    a: A,
    b: bool,
}

Expanded

pub struct A {
    a: usize,
}

#[derive(Extend)]
pub struct B {
    #[extend]
    a: A,
    b: bool,
}

impl B {
    pub fn a(&self) -> &usize {
        return &self.a.a;
    }
}
Commit count: 0

cargo fmt