pub struct PayloadFields;
Expand description
Represents the payload of inspect VMO Blocks (except for EXTENT
and NAME
).
Implementations§
Source§impl PayloadFields
impl PayloadFields
Sourcepub fn property_total_length<T: Deref<Target = Q>, Q: ReadBytes, K: BlockKind>(
b: &Block<T, K>,
) -> u32
pub fn property_total_length<T: Deref<Target = Q>, Q: ReadBytes, K: BlockKind>( b: &Block<T, K>, ) -> u32
Only for BUFFER
or STRING_REFERENCE
blocks. The total size of the buffer.
Sourcepub fn set_property_total_length<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes, K: BlockKind>(
b: &mut Block<T, K>,
value: u32,
)
pub fn set_property_total_length<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes, K: BlockKind>( b: &mut Block<T, K>, value: u32, )
Only for BUFFER
or STRING_REFERENCE
blocks. The total size of the buffer.
Sourcepub fn property_extent_index<T: Deref<Target = Q>, Q: ReadBytes, K: BlockKind>(
b: &Block<T, K>,
) -> u32
pub fn property_extent_index<T: Deref<Target = Q>, Q: ReadBytes, K: BlockKind>( b: &Block<T, K>, ) -> u32
Only for BUFFER
blocks. The index of the first EXTENT
block of this buffer.
Sourcepub fn set_property_extent_index<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes, K: BlockKind>(
b: &mut Block<T, K>,
value: u32,
)
pub fn set_property_extent_index<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes, K: BlockKind>( b: &mut Block<T, K>, value: u32, )
Only for BUFFER
blocks. The index of the first EXTENT
block of this buffer.
Sourcepub fn property_flags<T: Deref<Target = Q>, Q: ReadBytes, K: BlockKind>(
b: &Block<T, K>,
) -> u8
pub fn property_flags<T: Deref<Target = Q>, Q: ReadBytes, K: BlockKind>( b: &Block<T, K>, ) -> u8
Only for BUFFER
blocks. The buffer flags of this block indicating its display format.
0: utf-8 string
1: binary array
Sourcepub fn set_property_flags<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes, K: BlockKind>(
b: &mut Block<T, K>,
value: u8,
)
pub fn set_property_flags<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes, K: BlockKind>( b: &mut Block<T, K>, value: u8, )
Only for BUFFER
blocks. The buffer flags of this block indicating its display format.
0: utf-8 string
1: binary array
Sourcepub fn array_entry_type<T: Deref<Target = Q>, Q: ReadBytes, K: BlockKind>(
b: &Block<T, K>,
) -> u8
pub fn array_entry_type<T: Deref<Target = Q>, Q: ReadBytes, K: BlockKind>( b: &Block<T, K>, ) -> u8
Only for ARRAY_VALUE
blocks. The type of each entry in the array (int, uint, double).
0: Int
1: Uint
2: Double
Sourcepub fn set_array_entry_type<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes, K: BlockKind>(
b: &mut Block<T, K>,
value: u8,
)
pub fn set_array_entry_type<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes, K: BlockKind>( b: &mut Block<T, K>, value: u8, )
Only for ARRAY_VALUE
blocks. The type of each entry in the array (int, uint, double).
0: Int
1: Uint
2: Double
Sourcepub fn array_flags<T: Deref<Target = Q>, Q: ReadBytes, K: BlockKind>(
b: &Block<T, K>,
) -> u8
pub fn array_flags<T: Deref<Target = Q>, Q: ReadBytes, K: BlockKind>( b: &Block<T, K>, ) -> 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
Sourcepub fn set_array_flags<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes, K: BlockKind>(
b: &mut Block<T, K>,
value: u8,
)
pub fn set_array_flags<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes, K: BlockKind>( b: &mut Block<T, K>, 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
Sourcepub fn array_slots_count<T: Deref<Target = Q>, Q: ReadBytes, K: BlockKind>(
b: &Block<T, K>,
) -> u8
pub fn array_slots_count<T: Deref<Target = Q>, Q: ReadBytes, K: BlockKind>( b: &Block<T, K>, ) -> u8
Only for ARRAY_VALUE
blocks. The nmber of entries in the array.
Sourcepub fn set_array_slots_count<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes, K: BlockKind>(
b: &mut Block<T, K>,
value: u8,
)
pub fn set_array_slots_count<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes, K: BlockKind>( b: &mut Block<T, K>, value: u8, )
Only for ARRAY_VALUE
blocks. The nmber of entries in the array.
Sourcepub fn content_index<T: Deref<Target = Q>, Q: ReadBytes, K: BlockKind>(
b: &Block<T, K>,
) -> u32
pub fn content_index<T: Deref<Target = Q>, Q: ReadBytes, K: BlockKind>( b: &Block<T, K>, ) -> u32
Only for LINK_VALUE
blocks. Index of the content of this link (as a NAME
node)
Sourcepub fn set_content_index<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes, K: BlockKind>(
b: &mut Block<T, K>,
value: u32,
)
pub fn set_content_index<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes, K: BlockKind>( b: &mut Block<T, K>, value: u32, )
Only for LINK_VALUE
blocks. Index of the content of this link (as a NAME
node)
Sourcepub fn disposition_flags<T: Deref<Target = Q>, Q: ReadBytes, K: BlockKind>(
b: &Block<T, K>,
) -> u8
pub fn disposition_flags<T: Deref<Target = Q>, Q: ReadBytes, K: BlockKind>( b: &Block<T, K>, ) -> u8
Only for LINK_VALUE
. Instructs readers whether to use child or inline disposition.
0: child
1: inline
Sourcepub fn set_disposition_flags<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes, K: BlockKind>(
b: &mut Block<T, K>,
value: u8,
)
pub fn set_disposition_flags<T: Deref<Target = Q> + DerefMut<Target = Q>, Q: WriteBytes + ReadBytes, K: BlockKind>( b: &mut Block<T, K>, value: u8, )
Only for LINK_VALUE
. Instructs readers whether to use child or inline disposition.
0: child
1: inline
Auto Trait Implementations§
impl Freeze for PayloadFields
impl RefUnwindSafe for PayloadFields
impl Send for PayloadFields
impl Sync for PayloadFields
impl Unpin for PayloadFields
impl UnwindSafe for PayloadFields
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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more