pub enum FieldMarker {
Primitive(PrimitiveMarker),
Struct(Vec<FieldMarker>),
}Expand description
Recursive enum representing data structure fields.
A FieldMarker can either be a primitive or a nested structure. The marker helps the decoder
understand the layout and type of each field in the data, guiding the decoding process.
Variants§
Primitive(PrimitiveMarker)
A primitive data type.
Struct(Vec<FieldMarker>)
A structured type composed of multiple fields, allowing for nested data.
Trait Implementations§
Source§impl Clone for FieldMarker
impl Clone for FieldMarker
Source§fn clone(&self) -> FieldMarker
fn clone(&self) -> FieldMarker
Returns a duplicate 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 Debug for FieldMarker
impl Debug for FieldMarker
Source§impl<'a> From<Inner<'a, false, 1, 1, 255>> for FieldMarker
impl<'a> From<Inner<'a, false, 1, 1, 255>> for FieldMarker
Source§fn from(_: Inner<'a, false, 1, 1, 255>) -> FieldMarker
fn from(_: Inner<'a, false, 1, 1, 255>) -> FieldMarker
Converts to this type from the input type.
Source§impl<'a> From<Inner<'a, false, 1, 1, 32>> for FieldMarker
impl<'a> From<Inner<'a, false, 1, 1, 32>> for FieldMarker
Source§fn from(_: Inner<'a, false, 1, 1, 32>) -> FieldMarker
fn from(_: Inner<'a, false, 1, 1, 32>) -> FieldMarker
Converts to this type from the input type.
Source§impl<'a> From<Inner<'a, false, 1, 2, binary_codec_sv2::::codec::impls::{impl#95}::{constant#3}>> for FieldMarker
impl<'a> From<Inner<'a, false, 1, 2, binary_codec_sv2::::codec::impls::{impl#95}::{constant#3}>> for FieldMarker
Source§fn from(
_: Inner<'a, false, 1, 2, binary_codec_sv2::::codec::impls::{impl#95}::from::{constant#3}>,
) -> FieldMarker
fn from( _: Inner<'a, false, 1, 2, binary_codec_sv2::::codec::impls::{impl#95}::from::{constant#3}>, ) -> FieldMarker
Converts to this type from the input type.
Source§impl<'a> From<Inner<'a, false, 1, 3, binary_codec_sv2::::codec::impls::{impl#96}::{constant#3}>> for FieldMarker
impl<'a> From<Inner<'a, false, 1, 3, binary_codec_sv2::::codec::impls::{impl#96}::{constant#3}>> for FieldMarker
Source§fn from(
_: Inner<'a, false, 1, 3, binary_codec_sv2::::codec::impls::{impl#96}::from::{constant#3}>,
) -> FieldMarker
fn from( _: Inner<'a, false, 1, 3, binary_codec_sv2::::codec::impls::{impl#96}::from::{constant#3}>, ) -> FieldMarker
Converts to this type from the input type.
Source§impl<'a> From<Inner<'a, true, 32, 0, 0>> for FieldMarker
impl<'a> From<Inner<'a, true, 32, 0, 0>> for FieldMarker
Source§fn from(_: Inner<'a, true, 32, 0, 0>) -> FieldMarker
fn from(_: Inner<'a, true, 32, 0, 0>) -> FieldMarker
Converts to this type from the input type.
Source§impl<'a> From<Inner<'a, true, 4, 0, 0>> for FieldMarker
impl<'a> From<Inner<'a, true, 4, 0, 0>> for FieldMarker
Source§fn from(_: Inner<'a, true, 4, 0, 0>) -> FieldMarker
fn from(_: Inner<'a, true, 4, 0, 0>) -> FieldMarker
Converts to this type from the input type.
Source§impl<'a> From<Inner<'a, true, 64, 0, 0>> for FieldMarker
impl<'a> From<Inner<'a, true, 64, 0, 0>> for FieldMarker
Source§fn from(_: Inner<'a, true, 64, 0, 0>) -> FieldMarker
fn from(_: Inner<'a, true, 64, 0, 0>) -> FieldMarker
Converts to this type from the input type.
Source§impl From<PrimitiveMarker> for FieldMarker
impl From<PrimitiveMarker> for FieldMarker
Source§fn from(v: PrimitiveMarker) -> FieldMarker
fn from(v: PrimitiveMarker) -> FieldMarker
Converts to this type from the input type.
Source§impl From<U24> for FieldMarker
impl From<U24> for FieldMarker
Source§fn from(_: U24) -> FieldMarker
fn from(_: U24) -> FieldMarker
Converts to this type from the input type.
Source§impl From<bool> for FieldMarker
impl From<bool> for FieldMarker
Source§fn from(_: bool) -> FieldMarker
fn from(_: bool) -> FieldMarker
Converts to this type from the input type.
Source§impl From<f32> for FieldMarker
impl From<f32> for FieldMarker
Source§fn from(_: f32) -> FieldMarker
fn from(_: f32) -> FieldMarker
Converts to this type from the input type.
Source§impl From<u16> for FieldMarker
impl From<u16> for FieldMarker
Source§fn from(_: u16) -> FieldMarker
fn from(_: u16) -> FieldMarker
Converts to this type from the input type.
Source§impl From<u32> for FieldMarker
impl From<u32> for FieldMarker
Source§fn from(_: u32) -> FieldMarker
fn from(_: u32) -> FieldMarker
Converts to this type from the input type.
Source§impl From<u64> for FieldMarker
impl From<u64> for FieldMarker
Source§fn from(_: u64) -> FieldMarker
fn from(_: u64) -> FieldMarker
Converts to this type from the input type.
Source§impl From<u8> for FieldMarker
impl From<u8> for FieldMarker
Source§fn from(_: u8) -> FieldMarker
fn from(_: u8) -> FieldMarker
Converts to this type from the input type.
Source§impl SizeHint for FieldMarker
impl SizeHint for FieldMarker
Source§fn size_hint(_data: &[u8], _offset: usize) -> Result<usize, Error>
fn size_hint(_data: &[u8], _offset: usize) -> Result<usize, Error>
size_hint is a static method that takes the raw data and an offset and returns the total
size of the encoded message. This is particularly useful for types where the encoded size
may vary based on the contents of the data, and we need to calculate how much space is
required for decoding.Source§impl TryFrom<Vec<FieldMarker>> for FieldMarker
impl TryFrom<Vec<FieldMarker>> for FieldMarker
Auto Trait Implementations§
impl Freeze for FieldMarker
impl RefUnwindSafe for FieldMarker
impl Send for FieldMarker
impl Sync for FieldMarker
impl Unpin for FieldMarker
impl UnwindSafe for FieldMarker
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