inspect_format

Struct PayloadFields

Source
pub struct PayloadFields;
Expand description

Represents the payload of inspect VMO Blocks (except for EXTENT and NAME).

Implementations§

Source§

impl PayloadFields

Source

pub fn property_total_length<T: Deref<Target = Q>, Q: ReadBytes>( b: &Block<T>, ) -> u32

Only for BUFFER or STRING_REFERENCE blocks. The total size of the buffer.

Source

pub fn set_property_total_length<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes>( b: &mut Block<T>, value: u32, )

Only for BUFFER or STRING_REFERENCE blocks. The total size of the buffer.

Source

pub fn property_extent_index<T: Deref<Target = Q>, Q: ReadBytes>( b: &Block<T>, ) -> u32

Only for BUFFER blocks. The index of the first EXTENT block of this buffer.

Source

pub fn set_property_extent_index<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes>( b: &mut Block<T>, value: u32, )

Only for BUFFER blocks. The index of the first EXTENT block of this buffer.

Source

pub fn property_flags<T: Deref<Target = Q>, Q: ReadBytes>(b: &Block<T>) -> u8

Only for BUFFER blocks. The buffer flags of this block indicating its display format. 0: utf-8 string 1: binary array

Source

pub fn set_property_flags<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes>( b: &mut Block<T>, value: u8, )

Only for BUFFER blocks. The buffer flags of this block indicating its display format. 0: utf-8 string 1: binary array

Source

pub fn array_entry_type<T: Deref<Target = Q>, Q: ReadBytes>(b: &Block<T>) -> u8

Only for ARRAY_VALUE blocks. The type of each entry in the array (int, uint, double). 0: Int 1: Uint 2: Double

Source

pub fn set_array_entry_type<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes>( b: &mut Block<T>, value: u8, )

Only for ARRAY_VALUE blocks. The type of each entry in the array (int, uint, double). 0: Int 1: Uint 2: Double

Source

pub fn array_flags<T: Deref<Target = Q>, Q: ReadBytes>(b: &Block<T>) -> u8

Only for ARRAY_VALUE blocks. The display format of the block (default, linear histogram, exponential histogram) 0: Regular array 1: Linear histogram 2: Exponential histogram

Source

pub fn set_array_flags<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes>( b: &mut Block<T>, value: u8, )

Only for ARRAY_VALUE blocks. The display format of the block (default, linear histogram, exponential histogram) 0: Regular array 1: Linear histogram 2: Exponential histogram

Source

pub fn array_slots_count<T: Deref<Target = Q>, Q: ReadBytes>(b: &Block<T>) -> u8

Only for ARRAY_VALUE blocks. The nmber of entries in the array.

Source

pub fn set_array_slots_count<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes>( b: &mut Block<T>, value: u8, )

Only for ARRAY_VALUE blocks. The nmber of entries in the array.

Source

pub fn content_index<T: Deref<Target = Q>, Q: ReadBytes>(b: &Block<T>) -> u32

Only for LINK_VALUE blocks. Index of the content of this link (as a NAME node)

Source

pub fn set_content_index<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes>( b: &mut Block<T>, value: u32, )

Only for LINK_VALUE blocks. Index of the content of this link (as a NAME node)

Source

pub fn disposition_flags<T: Deref<Target = Q>, Q: ReadBytes>(b: &Block<T>) -> u8

Only for LINK_VALUE. Instructs readers whether to use child or inline disposition. 0: child 1: inline

Source

pub fn set_disposition_flags<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes>( b: &mut Block<T>, value: u8, )

Only for LINK_VALUE. Instructs readers whether to use child or inline disposition. 0: child 1: inline

Source

pub fn value<T: Deref<Target = Q>, Q: ReadBytes>(b: &Block<T>) -> u64

Get the raw 64 bits of the header section of the block.

Source

pub fn set_value<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes>( b: &mut Block<T>, value: u64, )

Set the raw 64 bits of the header section of the block.

Source§

impl PayloadFields

Source

pub fn numeric_value<T: Deref<Target = Q>, Q: ReadBytes>(b: &Block<T>) -> u64

Only for INT/UINT/DOUBLE_VALUE blocks. The numeric value of the block, this number has to be casted to its type for INT and DOUBLE blocks.

Source

pub fn set_numeric_value<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes>( b: &mut Block<T>, value: u64, )

Only for INT/UINT/DOUBLE_VALUE blocks. The numeric value of the block, this number has to be casted to its type for INT and DOUBLE blocks.

Source

pub fn header_generation_count<T: Deref<Target = Q>, Q: ReadBytes>( b: &Block<T>, ) -> u64

Only for the HEADER block. The generation count of the header, used for implementing locking.

Source

pub fn set_header_generation_count<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes>( b: &mut Block<T>, value: u64, )

Only for the HEADER block. The generation count of the header, used for implementing locking.

Source

pub fn child_count<T: Deref<Target = Q>, Q: ReadBytes>(b: &Block<T>) -> u64

Only for NODE blocks

Source

pub fn set_child_count<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes>( b: &mut Block<T>, value: u64, )

Only for NODE blocks

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
§

impl<T, D> Encode<Ambiguous1, D> for T
where D: ResourceDialect,

§

unsafe fn encode( self, _encoder: &mut Encoder<'_, D>, _offset: usize, _depth: Depth, ) -> Result<(), Error>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. Read more
§

impl<T, D> Encode<Ambiguous2, D> for T
where D: ResourceDialect,

§

unsafe fn encode( self, _encoder: &mut Encoder<'_, D>, _offset: usize, _depth: Depth, ) -> Result<(), Error>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. 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.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

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

Source§

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>,

Source§

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.