Struct capnp::private::layout::WirePointer
source · #[repr(C)]pub struct WirePointer { /* private fields */ }
Implementations§
source§impl WirePointer
impl WirePointer
pub fn kind(&self) -> WirePointerKind
pub fn is_positional(&self) -> bool
pub fn is_capability(&self) -> bool
pub unsafe fn target(ptr: *const Self) -> *const u8
pub fn set_kind_and_target(&mut self, kind: WirePointerKind, target: *mut u8)
pub fn set_kind_with_zero_offset(&mut self, kind: WirePointerKind)
pub fn set_kind_and_target_for_empty_struct(&mut self)
pub fn inline_composite_list_element_count(&self) -> ElementCount32
pub fn set_kind_and_inline_composite_list_element_count( &mut self, kind: WirePointerKind, element_count: ElementCount32 )
pub fn far_position_in_segment(&self) -> WordCount32
pub fn is_double_far(&self) -> bool
pub fn set_far(&mut self, is_double_far: bool, pos: WordCount32)
pub fn set_cap(&mut self, index: u32)
pub fn struct_data_size(&self) -> WordCount16
pub fn struct_ptr_count(&self) -> WordCount16
pub fn struct_word_size(&self) -> WordCount32
pub fn set_struct_size(&mut self, size: StructSize)
pub fn set_struct_size_from_pieces( &mut self, ds: WordCount16, rc: WirePointerCount16 )
pub fn list_element_size(&self) -> ElementSize
pub fn list_element_count(&self) -> ElementCount32
pub fn list_inline_composite_word_count(&self) -> WordCount32
pub fn set_list_size_and_count(&mut self, es: ElementSize, ec: ElementCount32)
pub fn set_list_inline_composite(&mut self, wc: WordCount32)
pub fn far_segment_id(&self) -> SegmentId
pub fn set_far_segment_id(&mut self, si: SegmentId)
pub fn cap_index(&self) -> u32
pub fn set_cap_index(&mut self, index: u32)
pub fn is_null(&self) -> bool
Auto Trait Implementations§
impl Freeze for WirePointer
impl RefUnwindSafe for WirePointer
impl Send for WirePointer
impl Sync for WirePointer
impl Unpin for WirePointer
impl UnwindSafe for WirePointer
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