-
-
Notifications
You must be signed in to change notification settings - Fork 186
Expand file tree
/
Copy pathlib.rs
More file actions
65 lines (55 loc) · 2.31 KB
/
Copy pathlib.rs
File metadata and controls
65 lines (55 loc) · 2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#![expect(rustdoc::broken_intra_doc_links)]
//! Rust bindings for the OpenCV computer vision library
//!
//! [Git](https://github.com/twistedfall/opencv-rust) | [Readme](https://github.com/twistedfall/opencv-rust/blob/master/README.md) |
//! [Docs](https://docs.rs/opencv) | [Sponsor](https://github.com/sponsors/twistedfall)
//!
//! Please note that this documentation is automatically generated from the C++ headers. So expect references to C++ items,
//! code examples in C++ and other strange things.
pub use error::{Error, Result};
pub use crate::opencv::hub::*;
#[macro_use]
mod templ;
pub mod error;
mod manual;
mod opencv;
pub mod traits;
/// Prelude for commonly used types and traits
///
/// The crate heavily relies on multiple traits to provide the methods of the C++ classes and implement the inheritance model, so
/// without importing the prelude you will not be able to call class methods.
pub mod prelude {
#[cfg(ocvrs_has_module_core)]
pub use crate::core::{DataType, Mat};
pub use crate::hub_prelude::*;
pub use crate::manual::prelude::*;
pub use crate::traits::{Boxed, OpenCVBitfieldEnum};
}
/// Reexported platform types that are used by OpenCV
pub mod platform_types {
pub use libc::{ptrdiff_t, size_t};
}
/// Prelude for sys (externs) module and types
mod mod_prelude_sys {
pub use core::ffi::{c_char, c_void};
pub use crate::platform_types::*;
pub use crate::traits::{Boxed, OpenCVFromExtern, OpenCVIntoExternContainer, OpenCVTypeExternContainer};
}
/// Prelude for generated modules and types
mod mod_prelude {
#[cfg_attr(not(ocvrs_opencv_branch_4), allow(unused_imports))]
pub use core::marker::PhantomData;
pub use std::ffi::OsStr;
pub use crate::boxed_ref::{BoxedRef, BoxedRefMut};
pub use crate::core::{ToInputArray, ToInputOutputArray, ToOutputArray};
pub use crate::hub_prelude::*;
pub use crate::mod_prelude_sys::*;
pub use crate::traits::OpenCVBitfieldEnum;
pub use crate::{
Result, boxed_cast_base, boxed_cast_descendant, boxed_ref, extern_arg_send, extern_container_send, extern_receive,
extern_send, input_array_ref_forward, opencv_type_bitfield_enum, opencv_type_boxed, opencv_type_enum, opencv_type_simple,
output_array_ref_forward, ptr_cast_base, ptr_extern, ptr_extern_ctor, tuple_extern, vector_boxed_ref, vector_copy_non_bool,
vector_extern, vector_non_copy_or_bool,
};
}
pub mod boxed_ref;