pub struct FidlvizDemo {Show 31 fields
pub f1: u8,
pub f2: i8,
pub f3: u16,
pub f4: u32,
pub f5: u64,
pub f6: u8,
pub f7: u8,
pub f8: u16,
pub f9: f32,
pub f10: f64,
pub f11: bool,
pub f12: bool,
pub f13: String,
pub f14: Option<String>,
pub f15: String,
pub f16: Option<Handle>,
pub f17: Handle,
pub f18: [u8; 3],
pub f19: Vec<f64>,
pub f20: Option<Vec<u8>>,
pub f21: Vec<u8>,
pub f22: FidlvizBits,
pub f23: FidlvizEnum,
pub f24: FidlvizStruct1,
pub f25: FidlvizStruct2,
pub f26: Option<Box<FidlvizStruct1>>,
pub f27: Option<Box<FidlvizStruct2>>,
pub f28: FidlvizTable,
pub f29: FidlvizTable,
pub f30: Option<Box<FidlvizUnion>>,
pub f31: FidlvizUnion,
}
Fields§
§f1: u8
§f2: i8
§f3: u16
§f4: u32
§f5: u64
§f6: u8
§f7: u8
§f8: u16
§f9: f32
§f10: f64
§f11: bool
§f12: bool
§f13: String
§f14: Option<String>
§f15: String
§f16: Option<Handle>
§f17: Handle
§f18: [u8; 3]
§f19: Vec<f64>
§f20: Option<Vec<u8>>
§f21: Vec<u8>
§f22: FidlvizBits
§f23: FidlvizEnum
§f24: FidlvizStruct1
§f25: FidlvizStruct2
§f26: Option<Box<FidlvizStruct1>>
§f27: Option<Box<FidlvizStruct2>>
§f28: FidlvizTable
§f29: FidlvizTable
§f30: Option<Box<FidlvizUnion>>
§f31: FidlvizUnion
Trait Implementations§
Source§impl Debug for FidlvizDemo
impl Debug for FidlvizDemo
Source§impl Decode<FidlvizDemo, DefaultFuchsiaResourceDialect> for FidlvizDemo
impl Decode<FidlvizDemo, DefaultFuchsiaResourceDialect> for FidlvizDemo
Source§impl Encode<FidlvizDemo, DefaultFuchsiaResourceDialect> for &mut FidlvizDemo
impl Encode<FidlvizDemo, DefaultFuchsiaResourceDialect> for &mut FidlvizDemo
Source§impl<T0: Encode<u8, DefaultFuchsiaResourceDialect>, T1: Encode<i8, DefaultFuchsiaResourceDialect>, T2: Encode<u16, DefaultFuchsiaResourceDialect>, T3: Encode<u32, DefaultFuchsiaResourceDialect>, T4: Encode<u64, DefaultFuchsiaResourceDialect>, T5: Encode<u8, DefaultFuchsiaResourceDialect>, T6: Encode<u8, DefaultFuchsiaResourceDialect>, T7: Encode<u16, DefaultFuchsiaResourceDialect>, T8: Encode<f32, DefaultFuchsiaResourceDialect>, T9: Encode<f64, DefaultFuchsiaResourceDialect>, T10: Encode<bool, DefaultFuchsiaResourceDialect>, T11: Encode<bool, DefaultFuchsiaResourceDialect>, T12: Encode<UnboundedString, DefaultFuchsiaResourceDialect>, T13: Encode<Optional<UnboundedString>, DefaultFuchsiaResourceDialect>, T14: Encode<UnboundedString, DefaultFuchsiaResourceDialect>, T15: Encode<Optional<HandleType<Handle, { _ }, 2147483648>>, DefaultFuchsiaResourceDialect>, T16: Encode<HandleType<Handle, { _ }, 2147483648>, DefaultFuchsiaResourceDialect>, T17: Encode<Array<u8, 3>, DefaultFuchsiaResourceDialect>, T18: Encode<UnboundedVector<f64>, DefaultFuchsiaResourceDialect>, T19: Encode<Optional<UnboundedVector<u8>>, DefaultFuchsiaResourceDialect>, T20: Encode<UnboundedVector<u8>, DefaultFuchsiaResourceDialect>, T21: Encode<FidlvizBits, DefaultFuchsiaResourceDialect>, T22: Encode<FidlvizEnum, DefaultFuchsiaResourceDialect>, T23: Encode<FidlvizStruct1, DefaultFuchsiaResourceDialect>, T24: Encode<FidlvizStruct2, DefaultFuchsiaResourceDialect>, T25: Encode<Boxed<FidlvizStruct1>, DefaultFuchsiaResourceDialect>, T26: Encode<Boxed<FidlvizStruct2>, DefaultFuchsiaResourceDialect>, T27: Encode<FidlvizTable, DefaultFuchsiaResourceDialect>, T28: Encode<FidlvizTable, DefaultFuchsiaResourceDialect>, T29: Encode<OptionalUnion<FidlvizUnion>, DefaultFuchsiaResourceDialect>, T30: Encode<FidlvizUnion, DefaultFuchsiaResourceDialect>> Encode<FidlvizDemo, DefaultFuchsiaResourceDialect> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, T30)
impl<T0: Encode<u8, DefaultFuchsiaResourceDialect>, T1: Encode<i8, DefaultFuchsiaResourceDialect>, T2: Encode<u16, DefaultFuchsiaResourceDialect>, T3: Encode<u32, DefaultFuchsiaResourceDialect>, T4: Encode<u64, DefaultFuchsiaResourceDialect>, T5: Encode<u8, DefaultFuchsiaResourceDialect>, T6: Encode<u8, DefaultFuchsiaResourceDialect>, T7: Encode<u16, DefaultFuchsiaResourceDialect>, T8: Encode<f32, DefaultFuchsiaResourceDialect>, T9: Encode<f64, DefaultFuchsiaResourceDialect>, T10: Encode<bool, DefaultFuchsiaResourceDialect>, T11: Encode<bool, DefaultFuchsiaResourceDialect>, T12: Encode<UnboundedString, DefaultFuchsiaResourceDialect>, T13: Encode<Optional<UnboundedString>, DefaultFuchsiaResourceDialect>, T14: Encode<UnboundedString, DefaultFuchsiaResourceDialect>, T15: Encode<Optional<HandleType<Handle, { _ }, 2147483648>>, DefaultFuchsiaResourceDialect>, T16: Encode<HandleType<Handle, { _ }, 2147483648>, DefaultFuchsiaResourceDialect>, T17: Encode<Array<u8, 3>, DefaultFuchsiaResourceDialect>, T18: Encode<UnboundedVector<f64>, DefaultFuchsiaResourceDialect>, T19: Encode<Optional<UnboundedVector<u8>>, DefaultFuchsiaResourceDialect>, T20: Encode<UnboundedVector<u8>, DefaultFuchsiaResourceDialect>, T21: Encode<FidlvizBits, DefaultFuchsiaResourceDialect>, T22: Encode<FidlvizEnum, DefaultFuchsiaResourceDialect>, T23: Encode<FidlvizStruct1, DefaultFuchsiaResourceDialect>, T24: Encode<FidlvizStruct2, DefaultFuchsiaResourceDialect>, T25: Encode<Boxed<FidlvizStruct1>, DefaultFuchsiaResourceDialect>, T26: Encode<Boxed<FidlvizStruct2>, DefaultFuchsiaResourceDialect>, T27: Encode<FidlvizTable, DefaultFuchsiaResourceDialect>, T28: Encode<FidlvizTable, DefaultFuchsiaResourceDialect>, T29: Encode<OptionalUnion<FidlvizUnion>, DefaultFuchsiaResourceDialect>, T30: Encode<FidlvizUnion, DefaultFuchsiaResourceDialect>> Encode<FidlvizDemo, DefaultFuchsiaResourceDialect> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22, T23, T24, T25, T26, T27, T28, T29, T30)
Source§impl PartialEq for FidlvizDemo
impl PartialEq for FidlvizDemo
Source§impl ResourceTypeMarker for FidlvizDemo
impl ResourceTypeMarker for FidlvizDemo
Source§type Borrowed<'a> = &'a mut FidlvizDemo
type Borrowed<'a> = &'a mut FidlvizDemo
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &mut Self::Owned
. There are three cases: Read moreSource§fn take_or_borrow<'a>(
value: &'a mut <Self as TypeMarker>::Owned,
) -> Self::Borrowed<'a>
fn take_or_borrow<'a>( value: &'a mut <Self as TypeMarker>::Owned, ) -> Self::Borrowed<'a>
Cheaply converts from
&mut Self::Owned
to Self::Borrowed
. For
HandleBased
types this is “take” (it returns an owned handle and
replaces value
with Handle::invalid
), and for all other types it is
“borrow” (just converts from one reference to another).Source§impl TypeMarker for FidlvizDemo
impl TypeMarker for FidlvizDemo
Source§type Owned = FidlvizDemo
type Owned = FidlvizDemo
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.impl Standalone<DefaultFuchsiaResourceDialect> for FidlvizDemo
impl StructuralPartialEq for FidlvizDemo
Auto Trait Implementations§
impl Freeze for FidlvizDemo
impl RefUnwindSafe for FidlvizDemo
impl Send for FidlvizDemo
impl Sync for FidlvizDemo
impl Unpin for FidlvizDemo
impl UnwindSafe for FidlvizDemo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more