pub struct VectorsStruct {Show 26 fields
pub bools: Vec<bool>,
pub int8s: Vec<i8>,
pub int16s: Vec<i16>,
pub int32s: Vec<i32>,
pub int64s: Vec<i64>,
pub uint8s: Vec<u8>,
pub uint16s: Vec<u16>,
pub uint32s: Vec<u32>,
pub uint64s: Vec<u64>,
pub float32s: Vec<f32>,
pub float64s: Vec<f64>,
pub enums: Vec<DefaultEnum>,
pub bits: Vec<DefaultBits>,
pub handles: Vec<Handle>,
pub nullable_handles: Vec<Option<Handle>>,
pub strings: Vec<String>,
pub nullable_strings: Vec<Option<String>>,
pub structs: Vec<ThisIsAStruct>,
pub nullable_structs: Vec<Option<Box<ThisIsAStruct>>>,
pub unions: Vec<ThisIsAUnion>,
pub nullable_unions: Vec<Option<Box<ThisIsAUnion>>>,
pub arrays: Vec<[u32; 3]>,
pub vectors: Vec<Vec<u32>>,
pub nullable_vectors: Vec<Option<Vec<u32>>>,
pub tables: Vec<ThisIsATable>,
pub xunions: Vec<ThisIsAXunion>,
}
Fields§
§bools: Vec<bool>
§int8s: Vec<i8>
§int16s: Vec<i16>
§int32s: Vec<i32>
§int64s: Vec<i64>
§uint8s: Vec<u8>
§uint16s: Vec<u16>
§uint32s: Vec<u32>
§uint64s: Vec<u64>
§float32s: Vec<f32>
§float64s: Vec<f64>
§enums: Vec<DefaultEnum>
§bits: Vec<DefaultBits>
§handles: Vec<Handle>
§nullable_handles: Vec<Option<Handle>>
§strings: Vec<String>
§nullable_strings: Vec<Option<String>>
§structs: Vec<ThisIsAStruct>
§nullable_structs: Vec<Option<Box<ThisIsAStruct>>>
§unions: Vec<ThisIsAUnion>
§nullable_unions: Vec<Option<Box<ThisIsAUnion>>>
§arrays: Vec<[u32; 3]>
§vectors: Vec<Vec<u32>>
§nullable_vectors: Vec<Option<Vec<u32>>>
§tables: Vec<ThisIsATable>
§xunions: Vec<ThisIsAXunion>
Trait Implementations§
Source§impl Debug for VectorsStruct
impl Debug for VectorsStruct
Source§impl Decode<VectorsStruct, DefaultFuchsiaResourceDialect> for VectorsStruct
impl Decode<VectorsStruct, DefaultFuchsiaResourceDialect> for VectorsStruct
Source§impl Encode<VectorsStruct, DefaultFuchsiaResourceDialect> for &mut VectorsStruct
impl Encode<VectorsStruct, DefaultFuchsiaResourceDialect> for &mut VectorsStruct
Source§impl<T0: Encode<Vector<bool, 3>, DefaultFuchsiaResourceDialect>, T1: Encode<Vector<i8, 3>, DefaultFuchsiaResourceDialect>, T2: Encode<Vector<i16, 3>, DefaultFuchsiaResourceDialect>, T3: Encode<Vector<i32, 3>, DefaultFuchsiaResourceDialect>, T4: Encode<Vector<i64, 3>, DefaultFuchsiaResourceDialect>, T5: Encode<Vector<u8, 3>, DefaultFuchsiaResourceDialect>, T6: Encode<Vector<u16, 3>, DefaultFuchsiaResourceDialect>, T7: Encode<Vector<u32, 3>, DefaultFuchsiaResourceDialect>, T8: Encode<Vector<u64, 3>, DefaultFuchsiaResourceDialect>, T9: Encode<Vector<f32, 3>, DefaultFuchsiaResourceDialect>, T10: Encode<Vector<f64, 3>, DefaultFuchsiaResourceDialect>, T11: Encode<Vector<DefaultEnum, 3>, DefaultFuchsiaResourceDialect>, T12: Encode<Vector<DefaultBits, 3>, DefaultFuchsiaResourceDialect>, T13: Encode<Vector<HandleType<Handle, { _ }, 2147483648>, 3>, DefaultFuchsiaResourceDialect>, T14: Encode<Vector<Optional<HandleType<Handle, { _ }, 2147483648>>, 3>, DefaultFuchsiaResourceDialect>, T15: Encode<Vector<UnboundedString, 3>, DefaultFuchsiaResourceDialect>, T16: Encode<Vector<Optional<UnboundedString>, 3>, DefaultFuchsiaResourceDialect>, T17: Encode<Vector<ThisIsAStruct, 3>, DefaultFuchsiaResourceDialect>, T18: Encode<Vector<Boxed<ThisIsAStruct>, 3>, DefaultFuchsiaResourceDialect>, T19: Encode<Vector<ThisIsAUnion, 3>, DefaultFuchsiaResourceDialect>, T20: Encode<Vector<OptionalUnion<ThisIsAUnion>, 3>, DefaultFuchsiaResourceDialect>, T21: Encode<Vector<Array<u32, 3>, 3>, DefaultFuchsiaResourceDialect>, T22: Encode<Vector<UnboundedVector<u32>, 3>, DefaultFuchsiaResourceDialect>, T23: Encode<Vector<Optional<UnboundedVector<u32>>, 3>, DefaultFuchsiaResourceDialect>, T24: Encode<Vector<ThisIsATable, 3>, DefaultFuchsiaResourceDialect>, T25: Encode<Vector<ThisIsAXunion, 3>, DefaultFuchsiaResourceDialect>> Encode<VectorsStruct, 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)
impl<T0: Encode<Vector<bool, 3>, DefaultFuchsiaResourceDialect>, T1: Encode<Vector<i8, 3>, DefaultFuchsiaResourceDialect>, T2: Encode<Vector<i16, 3>, DefaultFuchsiaResourceDialect>, T3: Encode<Vector<i32, 3>, DefaultFuchsiaResourceDialect>, T4: Encode<Vector<i64, 3>, DefaultFuchsiaResourceDialect>, T5: Encode<Vector<u8, 3>, DefaultFuchsiaResourceDialect>, T6: Encode<Vector<u16, 3>, DefaultFuchsiaResourceDialect>, T7: Encode<Vector<u32, 3>, DefaultFuchsiaResourceDialect>, T8: Encode<Vector<u64, 3>, DefaultFuchsiaResourceDialect>, T9: Encode<Vector<f32, 3>, DefaultFuchsiaResourceDialect>, T10: Encode<Vector<f64, 3>, DefaultFuchsiaResourceDialect>, T11: Encode<Vector<DefaultEnum, 3>, DefaultFuchsiaResourceDialect>, T12: Encode<Vector<DefaultBits, 3>, DefaultFuchsiaResourceDialect>, T13: Encode<Vector<HandleType<Handle, { _ }, 2147483648>, 3>, DefaultFuchsiaResourceDialect>, T14: Encode<Vector<Optional<HandleType<Handle, { _ }, 2147483648>>, 3>, DefaultFuchsiaResourceDialect>, T15: Encode<Vector<UnboundedString, 3>, DefaultFuchsiaResourceDialect>, T16: Encode<Vector<Optional<UnboundedString>, 3>, DefaultFuchsiaResourceDialect>, T17: Encode<Vector<ThisIsAStruct, 3>, DefaultFuchsiaResourceDialect>, T18: Encode<Vector<Boxed<ThisIsAStruct>, 3>, DefaultFuchsiaResourceDialect>, T19: Encode<Vector<ThisIsAUnion, 3>, DefaultFuchsiaResourceDialect>, T20: Encode<Vector<OptionalUnion<ThisIsAUnion>, 3>, DefaultFuchsiaResourceDialect>, T21: Encode<Vector<Array<u32, 3>, 3>, DefaultFuchsiaResourceDialect>, T22: Encode<Vector<UnboundedVector<u32>, 3>, DefaultFuchsiaResourceDialect>, T23: Encode<Vector<Optional<UnboundedVector<u32>>, 3>, DefaultFuchsiaResourceDialect>, T24: Encode<Vector<ThisIsATable, 3>, DefaultFuchsiaResourceDialect>, T25: Encode<Vector<ThisIsAXunion, 3>, DefaultFuchsiaResourceDialect>> Encode<VectorsStruct, 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)
Source§impl PartialEq for VectorsStruct
impl PartialEq for VectorsStruct
Source§impl ResourceTypeMarker for VectorsStruct
impl ResourceTypeMarker for VectorsStruct
Source§type Borrowed<'a> = &'a mut VectorsStruct
type Borrowed<'a> = &'a mut VectorsStruct
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 VectorsStruct
impl TypeMarker for VectorsStruct
Source§type Owned = VectorsStruct
type Owned = VectorsStruct
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 VectorsStruct
impl StructuralPartialEq for VectorsStruct
Auto Trait Implementations§
impl Freeze for VectorsStruct
impl RefUnwindSafe for VectorsStruct
impl Send for VectorsStruct
impl Sync for VectorsStruct
impl Unpin for VectorsStruct
impl UnwindSafe for VectorsStruct
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