GetMarker

Trait GetMarker 

Source
pub trait GetMarker {
    // Required method
    fn get_marker() -> FieldMarker;
}
Expand description

Trait for retrieving the FieldMarker associated with a type.

Provides a standardized way to retrieve a FieldMarker for a type, allowing the protocol to identify the structure and layout of data fields during decoding.

Required Methods§

Source

fn get_marker() -> FieldMarker

Defines the structure of a type for decoding purposes, supporting both primitive and structured types. It helps getting a marker for a type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl GetMarker for bool

Source§

impl GetMarker for f32

Source§

impl GetMarker for u8

Source§

impl GetMarker for u16

Source§

impl GetMarker for u32

Source§

impl GetMarker for u64

Implementors§