tvm-ffi 0.1.16

tvm-ffi rust support
Documentation
/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

//! Object reflection: look up the methods, fields and type attributes of
//! registered types; register Rust object types with [`ObjectDef`], type
//! attributes with [`TypeAttrDef`] and enum values with [`EnumDef`]; call the
//! typed hooks that attributes hold with [`NativeFunction`].

mod access_path;
mod accessor;
pub(crate) mod enum_def;
mod native_function;
mod registry;
mod unsafe_init;
pub use access_path::{AccessKind, AccessPath, AccessPathObj, AccessStep, AccessStepObj};
pub use accessor::{
    FieldGetter, TypeAttrColumn, field_default, get_method, get_method_by_index, type_key,
};
pub use enum_def::{EnumAttrMap, EnumDef};
pub use native_function::{NativeArgs, NativeFunction};
pub(crate) use registry::field_static_type_index;
#[doc(hidden)]
pub use registry::register_object;
pub use registry::{FieldFlags, ObjectDef, SEqHashKind, ShallowCopy, TypeAttrDef};
pub use unsafe_init::{UnsafeInit, unsafe_init};
#[doc(hidden)]
pub use unsafe_init::{field_drop, unsafe_init_creator};