#[repr(C)]pub struct RangeT {
pub start: u64,
pub end: u64,
}Expand description
A #[repr(C)] mirror of the SDK’s range_t, crossing the bridge by value as a Trivial ExternType.
Fields§
§start: u64start_ea, inclusive.
end: u64end_ea, exclusive.
Trait Implementations§
impl Copy for RangeT
impl Eq for RangeT
Source§impl ExternType for RangeT
RangeT’s two u64 fields mirror range_t’s two ea_t members under EA64, and range_t is trivially move-constructible and destructible, so it crosses by value soundly. cxx re-checks the triviality half with a C++ static_assert.
impl ExternType for RangeT
RangeT’s two u64 fields mirror range_t’s two ea_t members under EA64, and range_t is trivially move-constructible and destructible, so it crosses by value soundly. cxx re-checks the triviality half with a C++ static_assert.
impl StructuralPartialEq for RangeT
Auto Trait Implementations§
impl Freeze for RangeT
impl RefUnwindSafe for RangeT
impl Send for RangeT
impl Sync for RangeT
impl Unpin for RangeT
impl UnsafeUnpin for RangeT
impl UnwindSafe for RangeT
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more