Trait fidl_next::encode::EncodableOption

source ·
pub trait EncodableOption {
    type EncodedOption<'buf>;
}
Expand description

A type which can be encoded as FIDL when optional.

Required Associated Types§

source

type EncodedOption<'buf>

The wire type for the optional value.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl EncodableOption for bool

§

type EncodedOption<'buf> = WireBox<'buf, bool>

source§

impl EncodableOption for f32

§

type EncodedOption<'buf> = WireBox<'buf, f32_le>

source§

impl EncodableOption for f64

§

type EncodedOption<'buf> = WireBox<'buf, f64_le>

source§

impl EncodableOption for i8

§

type EncodedOption<'buf> = WireBox<'buf, i8>

source§

impl EncodableOption for i16

§

type EncodedOption<'buf> = WireBox<'buf, i16_le>

source§

impl EncodableOption for i32

§

type EncodedOption<'buf> = WireBox<'buf, i32_le>

source§

impl EncodableOption for i64

§

type EncodedOption<'buf> = WireBox<'buf, i64_le>

source§

impl EncodableOption for u8

§

type EncodedOption<'buf> = WireBox<'buf, u8>

source§

impl EncodableOption for u16

§

type EncodedOption<'buf> = WireBox<'buf, u16_le>

source§

impl EncodableOption for u32

§

type EncodedOption<'buf> = WireBox<'buf, u32_le>

source§

impl EncodableOption for u64

§

type EncodedOption<'buf> = WireBox<'buf, u64_le>

source§

impl EncodableOption for String

source§

impl<T: Encodable> EncodableOption for Vec<T>

§

type EncodedOption<'buf> = WireOptionalVector<'buf, <T as Encodable>::Encoded<'buf>>

Implementors§