Trait PropertyParser

Source
pub trait PropertyParser {
    type Output;

    // Required method
    unsafe fn parse(ptr: *const c_void) -> Self::Output;
}
Expand description

A property parser.

Required Associated Types§

Source

type Output

The output type of the parser

Required Methods§

Source

unsafe fn parse(ptr: *const c_void) -> Self::Output

Parse a property’s data

§Safety

Parsing a raw pointer is inherently unsafe, since it will at least require casting the pointer to some data type. The pointer should point to the right underlying type, and have sufficient size to contain a Self::Output.

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.

Implementors§