Struct rb_sys::bindings::rb_memory_view_item_component_t
source · #[repr(C)]pub struct rb_memory_view_item_component_t {
pub format: c_char,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
pub offset: size_t,
pub size: size_t,
pub repeat: size_t,
}Expand description
Generated by rb-sys for Ruby 3.0.0
Fields§
§format: c_charGenerated by rb-sys for Ruby 3.0.0
_bitfield_align_1: [u8; 0]Generated by rb-sys for Ruby 3.0.0
_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>Generated by rb-sys for Ruby 3.0.0
offset: size_tGenerated by rb-sys for Ruby 3.0.0
size: size_tGenerated by rb-sys for Ruby 3.0.0
repeat: size_tGenerated by rb-sys for Ruby 3.0.0
Implementations§
source§impl rb_memory_view_item_component_t
impl rb_memory_view_item_component_t
pub fn native_size_p(&self) -> c_uint
pub fn set_native_size_p(&mut self, val: c_uint)
pub fn little_endian_p(&self) -> c_uint
pub fn set_little_endian_p(&mut self, val: c_uint)
pub fn new_bitfield_1( native_size_p: c_uint, little_endian_p: c_uint ) -> __BindgenBitfieldUnit<[u8; 1]>
Trait Implementations§
source§impl Clone for rb_memory_view_item_component_t
impl Clone for rb_memory_view_item_component_t
source§fn clone(&self) -> rb_memory_view_item_component_t
fn clone(&self) -> rb_memory_view_item_component_t
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl PartialEq<rb_memory_view_item_component_t> for rb_memory_view_item_component_t
impl PartialEq<rb_memory_view_item_component_t> for rb_memory_view_item_component_t
source§fn eq(&self, other: &rb_memory_view_item_component_t) -> bool
fn eq(&self, other: &rb_memory_view_item_component_t) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for rb_memory_view_item_component_t
impl Eq for rb_memory_view_item_component_t
impl StructuralEq for rb_memory_view_item_component_t
impl StructuralPartialEq for rb_memory_view_item_component_t
Auto Trait Implementations§
impl RefUnwindSafe for rb_memory_view_item_component_t
impl Send for rb_memory_view_item_component_t
impl Sync for rb_memory_view_item_component_t
impl Unpin for rb_memory_view_item_component_t
impl UnwindSafe for rb_memory_view_item_component_t
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