Skip to main content

ParamValue

Trait ParamValue 

Source
pub trait ParamValue: Copy {
    const TYPE: &'static str;

    // Required method
    fn append(self, bytes: &mut Vec<u8>);
}
Expand description

A value a tunable can hold: an integer or a bool, alone or as the element of an array.

Required Associated Constants§

Source

const TYPE: &'static str

The type as scx_rustsched::params! names it.

Required Methods§

Source

fn append(self, bytes: &mut Vec<u8>)

Append the value as the object holds it.

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 ParamValue for bool

Source§

const TYPE: &'static str = "bool"

Source§

fn append(self, bytes: &mut Vec<u8>)

Source§

impl ParamValue for i8

Source§

const TYPE: &'static str = "i8"

Source§

fn append(self, bytes: &mut Vec<u8>)

Source§

impl ParamValue for i16

Source§

const TYPE: &'static str = "i16"

Source§

fn append(self, bytes: &mut Vec<u8>)

Source§

impl ParamValue for i32

Source§

const TYPE: &'static str = "i32"

Source§

fn append(self, bytes: &mut Vec<u8>)

Source§

impl ParamValue for i64

Source§

const TYPE: &'static str = "i64"

Source§

fn append(self, bytes: &mut Vec<u8>)

Source§

impl ParamValue for u8

Source§

const TYPE: &'static str = "u8"

Source§

fn append(self, bytes: &mut Vec<u8>)

Source§

impl ParamValue for u16

Source§

const TYPE: &'static str = "u16"

Source§

fn append(self, bytes: &mut Vec<u8>)

Source§

impl ParamValue for u32

Source§

const TYPE: &'static str = "u32"

Source§

fn append(self, bytes: &mut Vec<u8>)

Source§

impl ParamValue for u64

Source§

const TYPE: &'static str = "u64"

Source§

fn append(self, bytes: &mut Vec<u8>)

Implementors§