Skip to main contentCrate zr
Source - pin_init_ffi
- A helper macro to initialize a pinned object in-place using a raw FFI constructor.
- static_assert
- Compile-time assertion.
Fails to compile if the condition is false.
- static_assert_size_and_align
- Compile-time assertion that a type’s size is <=
max_size and alignment == expected_align. - unsafe_pinned_drop_ffi
- A helper macro to implement
PinnedDrop using a raw FFI destructor.
- Opaque
- A wrapper for types that are opaque to Rust.
- OpaqueFacade
- A zero-sized type representing an opaque C++ object facade.
- ToMutPtr
- Extension trait for references to obtain a mutable raw pointer.
- parse_usize
- Parse a decimal integer from a string slice at compile time.
- to_array
- Copy a string slice into a fixed-size byte array at compile time, leaving space for a null
terminator.
- OpaqueBytes
- A generic, safe opaque storage container with exact const size constraints.