Skip to content

Keep rust code unchanged #2957

Answered by messense
SimonG85 asked this question in Questions
Feb 16, 2023 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

Is this what you want?

use pyo3::prelude::*;

pub struct Foo<I, S> {
    a: I,
    b: S,
}

#[pyclass]
pub struct PyFoo {
    inner: Foo<i64, String>,
}

https://www.rustexplorer.com/b/z4p7n1

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@SimonG85
Comment options

@SimonG85
Comment options

@davidhewitt
Comment options

@SimonG85
Comment options

Answer selected by SimonG85
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants