Tweak `HhasTypeConstant` C++: Replace Option with Maybe
[hiphop-php.git] / hphp / hack / src / hhbc / hhbc_by_ref / hhas_type_const.rs
blobe3a495c4897bb7d1a8490d0e48a0698c6bcfa3ae
1 // Copyright (c) Facebook, Inc. and its affiliates.
2 //
3 // This source code is licensed under the MIT license found in the
4 // LICENSE file in the "hack" directory of this source tree.
6 use ffi::{Maybe, Str};
7 use hhbc_by_ref_runtime::TypedValue;
9 #[derive(Debug)]
10 #[repr(C)]
11 pub struct HhasTypeConstant<'arena> {
12     pub name: Str<'arena>,
13     pub initializer: Maybe<TypedValue<'arena>>,
14     pub is_abstract: bool,
17 // For cbindgen
18 #[allow(clippy::needless_lifetimes)]
19 #[no_mangle]
20 pub unsafe extern "C" fn no_call_compile_only_USED_TYPES_hhas_type_const<'arena>(
21     _: HhasTypeConstant<'arena>,
22 ) {
23     unimplemented!()