Struct capnp::private::layout::WirePointer

source ·
#[repr(C)]
pub struct WirePointer { /* private fields */ }

Implementations§

source§

impl WirePointer

source

pub fn kind(&self) -> WirePointerKind

source

pub fn is_positional(&self) -> bool

source

pub fn is_capability(&self) -> bool

source

pub unsafe fn target(ptr: *const Self) -> *const u8

source

pub fn set_kind_and_target(&mut self, kind: WirePointerKind, target: *mut u8)

source

pub fn set_kind_with_zero_offset(&mut self, kind: WirePointerKind)

source

pub fn set_kind_and_target_for_empty_struct(&mut self)

source

pub fn inline_composite_list_element_count(&self) -> ElementCount32

source

pub fn set_kind_and_inline_composite_list_element_count( &mut self, kind: WirePointerKind, element_count: ElementCount32 )

source

pub fn far_position_in_segment(&self) -> WordCount32

source

pub fn is_double_far(&self) -> bool

source

pub fn set_far(&mut self, is_double_far: bool, pos: WordCount32)

source

pub fn set_cap(&mut self, index: u32)

source

pub fn struct_data_size(&self) -> WordCount16

source

pub fn struct_ptr_count(&self) -> WordCount16

source

pub fn struct_word_size(&self) -> WordCount32

source

pub fn set_struct_size(&mut self, size: StructSize)

source

pub fn set_struct_size_from_pieces( &mut self, ds: WordCount16, rc: WirePointerCount16 )

source

pub fn list_element_size(&self) -> ElementSize

source

pub fn list_element_count(&self) -> ElementCount32

source

pub fn list_inline_composite_word_count(&self) -> WordCount32

source

pub fn set_list_size_and_count(&mut self, es: ElementSize, ec: ElementCount32)

source

pub fn set_list_inline_composite(&mut self, wc: WordCount32)

source

pub fn far_segment_id(&self) -> SegmentId

source

pub fn set_far_segment_id(&mut self, si: SegmentId)

source

pub fn cap_index(&self) -> u32

source

pub fn set_cap_index(&mut self, index: u32)

source

pub fn is_null(&self) -> bool

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.