#[repr(transparent)]pub struct HBool(pub u8);Expand description
HDF5 boolean type, stored as u8 (0=false, 1=true).
This is a Copy type that can be used with H5Type:
use rust_hdf5::types::HBool;
let t: HBool = true.into();
let b: bool = t.into();Tuple Fields§
§0: u8Trait Implementations§
Source§impl H5Type for HBool
impl H5Type for HBool
Source§fn hdf5_type() -> DatatypeMessage
fn hdf5_type() -> DatatypeMessage
Return the HDF5 datatype message describing this type.
Source§fn element_size() -> usize
fn element_size() -> usize
Return the size of a single element in bytes.
impl Copy for HBool
impl Eq for HBool
impl StructuralPartialEq for HBool
Auto Trait Implementations§
impl Freeze for HBool
impl RefUnwindSafe for HBool
impl Send for HBool
impl Sync for HBool
impl Unpin for HBool
impl UnsafeUnpin for HBool
impl UnwindSafe for HBool
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