Struct fidl_test_conformance::StructWithArrays
source · pub struct StructWithArrays {
pub arr_int: [i32; 2],
pub arr_string: [String; 2],
pub arr_nullable_string: [Option<String>; 2],
pub arr_struct: [StructWithInt; 2],
pub arr_nullable_struct: [Option<Box<StructWithInt>>; 2],
pub arr_arr_int: [[i32; 3]; 2],
}
Fields§
§arr_int: [i32; 2]
§arr_string: [String; 2]
§arr_nullable_string: [Option<String>; 2]
§arr_struct: [StructWithInt; 2]
§arr_nullable_struct: [Option<Box<StructWithInt>>; 2]
§arr_arr_int: [[i32; 3]; 2]
Trait Implementations§
source§impl Clone for StructWithArrays
impl Clone for StructWithArrays
source§fn clone(&self) -> StructWithArrays
fn clone(&self) -> StructWithArrays
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StructWithArrays
impl Debug for StructWithArrays
source§impl Decode<StructWithArrays> for StructWithArrays
impl Decode<StructWithArrays> for StructWithArrays
source§impl Encode<StructWithArrays> for &StructWithArrays
impl Encode<StructWithArrays> for &StructWithArrays
source§impl<T0: Encode<Array<i32, 2>>, T1: Encode<Array<UnboundedString, 2>>, T2: Encode<Array<Optional<UnboundedString>, 2>>, T3: Encode<Array<StructWithInt, 2>>, T4: Encode<Array<Boxed<StructWithInt>, 2>>, T5: Encode<Array<Array<i32, 3>, 2>>> Encode<StructWithArrays> for (T0, T1, T2, T3, T4, T5)
impl<T0: Encode<Array<i32, 2>>, T1: Encode<Array<UnboundedString, 2>>, T2: Encode<Array<Optional<UnboundedString>, 2>>, T3: Encode<Array<StructWithInt, 2>>, T4: Encode<Array<Boxed<StructWithInt>, 2>>, T5: Encode<Array<Array<i32, 3>, 2>>> Encode<StructWithArrays> for (T0, T1, T2, T3, T4, T5)
source§impl Hash for StructWithArrays
impl Hash for StructWithArrays
source§impl Ord for StructWithArrays
impl Ord for StructWithArrays
source§fn cmp(&self, other: &StructWithArrays) -> Ordering
fn cmp(&self, other: &StructWithArrays) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for StructWithArrays
impl PartialEq for StructWithArrays
source§fn eq(&self, other: &StructWithArrays) -> bool
fn eq(&self, other: &StructWithArrays) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for StructWithArrays
impl PartialOrd for StructWithArrays
source§fn partial_cmp(&self, other: &StructWithArrays) -> Option<Ordering>
fn partial_cmp(&self, other: &StructWithArrays) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TypeMarker for StructWithArrays
impl TypeMarker for StructWithArrays
§type Owned = StructWithArrays
type Owned = StructWithArrays
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.source§impl ValueTypeMarker for StructWithArrays
impl ValueTypeMarker for StructWithArrays
§type Borrowed<'a> = &'a StructWithArrays
type Borrowed<'a> = &'a StructWithArrays
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Eq for StructWithArrays
impl Persistable for StructWithArrays
impl StructuralPartialEq for StructWithArrays
Auto Trait Implementations§
impl RefUnwindSafe for StructWithArrays
impl Send for StructWithArrays
impl Sync for StructWithArrays
impl Unpin for StructWithArrays
impl UnwindSafe for StructWithArrays
Blanket Implementations§
source§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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