fn property_value_rust_type_declaration_codes()

in optee-utee-build/src/code_generator.rs [262:273]


fn property_value_rust_type_declaration_codes(value: &PropertyValue) -> proc_macro2::TokenStream {
    proc_macro2::TokenStream::from_str(match value {
        PropertyValue::U32(_) => "u32",
        PropertyValue::U64(_) => "u64",
        PropertyValue::Bool(_) => "bool",
        PropertyValue::Uuid(_) => "optee_utee_sys::TEE_UUID",
        PropertyValue::Str(_) => "&[u8]",
        PropertyValue::BinaryBlock(_) => "&[u8]",
        PropertyValue::Identity(..) => "optee_utee_sys::TEE_Identity",
    })
    .unwrap()
}