pub struct AllTypesTable {Show 21 fields
pub bool_member: Option<bool>,
pub int8_member: Option<i8>,
pub int16_member: Option<i16>,
pub int32_member: Option<i32>,
pub int64_member: Option<i64>,
pub uint8_member: Option<u8>,
pub uint16_member: Option<u16>,
pub uint32_member: Option<u32>,
pub uint64_member: Option<u64>,
pub float32_member: Option<f32>,
pub float64_member: Option<f64>,
pub enum_member: Option<DefaultEnum>,
pub bits_member: Option<DefaultBits>,
pub handle_member: Option<Handle>,
pub string_member: Option<String>,
pub struct_member: Option<ThisIsAStruct>,
pub union_member: Option<ThisIsAUnion>,
pub array_member: Option<[u32; 3]>,
pub vector_member: Option<Vec<u32>>,
pub table_member: Option<ThisIsATable>,
pub xunion_member: Option<ThisIsAXunion>,
/* private fields */
}
Fields§
§bool_member: Option<bool>
§int8_member: Option<i8>
§int16_member: Option<i16>
§int32_member: Option<i32>
§int64_member: Option<i64>
§uint8_member: Option<u8>
§uint16_member: Option<u16>
§uint32_member: Option<u32>
§uint64_member: Option<u64>
§float32_member: Option<f32>
§float64_member: Option<f64>
§enum_member: Option<DefaultEnum>
§bits_member: Option<DefaultBits>
§handle_member: Option<Handle>
§string_member: Option<String>
§struct_member: Option<ThisIsAStruct>
§union_member: Option<ThisIsAUnion>
§array_member: Option<[u32; 3]>
§vector_member: Option<Vec<u32>>
§table_member: Option<ThisIsATable>
§xunion_member: Option<ThisIsAXunion>
Trait Implementations§
Source§impl Debug for AllTypesTable
impl Debug for AllTypesTable
Source§impl Decode<AllTypesTable, DefaultFuchsiaResourceDialect> for AllTypesTable
impl Decode<AllTypesTable, DefaultFuchsiaResourceDialect> for AllTypesTable
Source§impl Default for AllTypesTable
impl Default for AllTypesTable
Source§fn default() -> AllTypesTable
fn default() -> AllTypesTable
Returns the “default value” for a type. Read more
Source§impl Encode<AllTypesTable, DefaultFuchsiaResourceDialect> for &mut AllTypesTable
impl Encode<AllTypesTable, DefaultFuchsiaResourceDialect> for &mut AllTypesTable
Source§impl PartialEq for AllTypesTable
impl PartialEq for AllTypesTable
Source§impl ResourceTypeMarker for AllTypesTable
impl ResourceTypeMarker for AllTypesTable
Source§type Borrowed<'a> = &'a mut AllTypesTable
type Borrowed<'a> = &'a mut AllTypesTable
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 AllTypesTable
impl TypeMarker for AllTypesTable
Source§type Owned = AllTypesTable
type Owned = AllTypesTable
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 AllTypesTable
impl StructuralPartialEq for AllTypesTable
Auto Trait Implementations§
impl Freeze for AllTypesTable
impl RefUnwindSafe for AllTypesTable
impl Send for AllTypesTable
impl Sync for AllTypesTable
impl Unpin for AllTypesTable
impl UnwindSafe for AllTypesTable
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