Struct hwlocality_sys::hwloc_bitmap_s
source · #[repr(C)]pub struct hwloc_bitmap_s(/* private fields */);Expand description
Opaque bitmap struct
Represents the private hwloc_bitmap_s type that hwloc_bitmap_t API
pointers map to.
This type purposely implements almost no traits, not even Debug, because you should never, ever deal with it directly, only with raw pointers to it that you blindly pass to the hwloc API.
The only exception to this rule is RefUnwindSafe, which is special
because…
- You cannot implement
UnwindSafeyourself for standard pointer types due to orphan rules - Rust implements it for pointers to
RefUnwindSafe, i.e. it assumes you use pointers to such data responsibly. - The ergonomic impact of everyday types not being
UnwindSafeis annoying (needAssertUnwindSafein everycatch_unwind()).
Trait Implementations§
impl RefUnwindSafe for hwloc_bitmap_s
Auto Trait Implementations§
impl !Send for hwloc_bitmap_s
impl !Sync for hwloc_bitmap_s
impl !Unpin for hwloc_bitmap_s
impl !UnwindSafe for hwloc_bitmap_s
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