ctest 0.5.1

Automated testing of FFI bindings in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::BoxStr;

/// Represents a parameter in a function signature defined in Rust.
#[derive(Debug, Clone)]
pub struct Parameter {
    pub(crate) ident: BoxStr,
    #[expect(unused)]
    pub(crate) ty: syn::Type,
}

impl Parameter {
    /// Return the identifier of the parameter as a string.
    pub fn ident(&self) -> &str {
        &self.ident
    }
}