Skip to content

Rust the proper type for a Rust pointer #2

Description

@janus

I would want to call g1_get_zero , and don't know the proper type to use here

#[repr(C)] #[derive(Debug)] pub struct ArrayStruct { d: *mut T, len: usize }

#[no_mangle] pub extern "C" fn g1_get_zero(g: ArrayStruct) -> bool { return panic::catch_unwind(|| {
g1_to_raw(G1Affine::zero(), g);
}).is_ok(); }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions