Skip to main content

AttributeValue

Trait AttributeValue 

Source
pub trait AttributeValue: Copy + Sealed {
    const SIZE: usize;

    // Required method
    fn from_bytes(bytes: &[u8]) -> Self;
}
Expand description

Value types an attribute can be read into.

Sealed: the set of types cuEST returns for scalars is closed (uint64_t, int32_t, double).

Required Associated Constants§

Source

const SIZE: usize

Size in bytes cuEST expects for this type.

Required Methods§

Source

fn from_bytes(bytes: &[u8]) -> Self

Interpret the value written by cuEST into bytes.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl AttributeValue for f64

Source§

const SIZE: usize

Source§

fn from_bytes(bytes: &[u8]) -> Self

Source§

impl AttributeValue for i32

Source§

const SIZE: usize

Source§

fn from_bytes(bytes: &[u8]) -> Self

Source§

impl AttributeValue for u64

Source§

const SIZE: usize

Source§

fn from_bytes(bytes: &[u8]) -> Self

Implementors§