cel_cxx_ffi/
lib.rs

1pub mod absl;
2pub mod checker;
3pub mod common;
4pub mod compiler;
5mod cxx;
6pub mod extensions;
7pub mod parser;
8pub mod protobuf;
9pub mod runtime;
10
11pub use absl::*;
12pub use checker::*;
13pub use common::*;
14pub use compiler::*;
15pub use extensions::*;
16pub use cxx::*;
17pub use parser::*;
18pub use protobuf::*;
19pub use runtime::*;
20
21// Rep is a helper type to represent data layout.
22#[repr(C)]
23#[derive(Copy, Clone)]
24struct Rep<'a, T: Copy + Clone, const N: usize> {
25    _space: std::mem::MaybeUninit<[T; N]>,
26    _marker: std::marker::PhantomData<&'a ()>,
27}
28
29pub trait SizedExternType: ::cxx::ExternType + Sized {
30    fn size_of() -> usize {
31        std::mem::size_of::<Self>()
32    }
33}