Skip to main content

StructWithArrays

Struct StructWithArrays 

Source
pub struct StructWithArrays<T0, T1, T2, T3, T4, T5> {
    pub arr_int: T0,
    pub arr_string: T1,
    pub arr_nullable_string: T2,
    pub arr_struct: T3,
    pub arr_nullable_struct: T4,
    pub arr_arr_int: T5,
}

Fields§

§arr_int: T0§arr_string: T1§arr_nullable_string: T2§arr_struct: T3§arr_nullable_struct: T4§arr_arr_int: T5

Trait Implementations§

Source§

impl<___E, T0, T1, T2, T3, T4, T5> Encode<StructWithArrays<'static>, ___E> for StructWithArrays<T0, T1, T2, T3, T4, T5>
where ___E: InternalHandleEncoder + ?Sized + Encoder, T0: Encode<[Int32; 2], ___E>, T1: Encode<[String<'static>; 2], ___E>, T2: Encode<[OptionalString<'static>; 2], ___E>, T3: Encode<[StructWithInt; 2], ___E>, T4: Encode<[Box<'static, StructWithInt>; 2], ___E>, T5: Encode<[[Int32; 3]; 2], ___E>,

Source§

fn encode( self, encoder_: &mut ___E, out_: &mut MaybeUninit<StructWithArrays<'static>>, _: (), ) -> Result<(), EncodeError>

Encodes this value into an encoder and output.
§

const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _

Whether the conversion from Self to W is equivalent to copying the raw bytes of Self. Read more

Auto Trait Implementations§

§

impl<T0, T1, T2, T3, T4, T5> Freeze for StructWithArrays<T0, T1, T2, T3, T4, T5>
where T0: Freeze, T1: Freeze, T2: Freeze, T3: Freeze, T4: Freeze, T5: Freeze,

§

impl<T0, T1, T2, T3, T4, T5> RefUnwindSafe for StructWithArrays<T0, T1, T2, T3, T4, T5>

§

impl<T0, T1, T2, T3, T4, T5> Send for StructWithArrays<T0, T1, T2, T3, T4, T5>
where T0: Send, T1: Send, T2: Send, T3: Send, T4: Send, T5: Send,

§

impl<T0, T1, T2, T3, T4, T5> Sync for StructWithArrays<T0, T1, T2, T3, T4, T5>
where T0: Sync, T1: Sync, T2: Sync, T3: Sync, T4: Sync, T5: Sync,

§

impl<T0, T1, T2, T3, T4, T5> Unpin for StructWithArrays<T0, T1, T2, T3, T4, T5>
where T0: Unpin, T1: Unpin, T2: Unpin, T3: Unpin, T4: Unpin, T5: Unpin,

§

impl<T0, T1, T2, T3, T4, T5> UnsafeUnpin for StructWithArrays<T0, T1, T2, T3, T4, T5>

§

impl<T0, T1, T2, T3, T4, T5> UnwindSafe for StructWithArrays<T0, T1, T2, T3, T4, T5>
where T0: UnwindSafe, T1: UnwindSafe, T2: UnwindSafe, T3: UnwindSafe, T4: UnwindSafe, T5: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, D> Encode<Ambiguous1, D> for T
where D: ResourceDialect,

Source§

unsafe fn encode( self, _encoder: &mut Encoder<'_, D>, _offset: usize, _depth: Depth, ) -> Result<(), Error>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. Read more
Source§

impl<T, D> Encode<Ambiguous2, D> for T
where D: ResourceDialect,

Source§

unsafe fn encode( self, _encoder: &mut Encoder<'_, D>, _offset: usize, _depth: Depth, ) -> Result<(), Error>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> InstanceFromServiceTransport<T> for T

§

fn from_service_transport(handle: T) -> T

Converts the given service transport handle of type T to [Self]
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<E> RunsTransport<Mpsc> for E

§

impl<E> RunsTransport<Mpsc> for E
where E: RunsTransport<Mpsc>,