#[repr(C)]pub struct StructWithVectors<'de> {
pub vec_empty: Vector<'de, Int32>,
pub vec_int: Vector<'de, Int32>,
pub vec_string: Vector<'de, String<'de>>,
pub vec_nullable_string: Vector<'de, OptionalString<'de>>,
pub vec_struct: Vector<'de, StructWithInt>,
pub vec_nullable_struct: Vector<'de, Box<'de, StructWithInt>>,
pub vec_vec_int: Vector<'de, Vector<'de, Int32>>,
}Expand description
The wire type corresponding to StructWithVectors.
Fields§
§vec_empty: Vector<'de, Int32>§vec_int: Vector<'de, Int32>§vec_string: Vector<'de, String<'de>>§vec_nullable_string: Vector<'de, OptionalString<'de>>§vec_struct: Vector<'de, StructWithInt>§vec_nullable_struct: Vector<'de, Box<'de, StructWithInt>>§vec_vec_int: Vector<'de, Vector<'de, Int32>>Trait Implementations§
Source§impl Constrained for StructWithVectors<'_>
impl Constrained for StructWithVectors<'_>
Source§type Constraint = ()
type Constraint = ()
Type of constraint information for this type.
Source§fn validate(
_: Slot<'_, StructWithVectors<'_>>,
_: <StructWithVectors<'_> as Constrained>::Constraint,
) -> Result<(), ValidationError>
fn validate( _: Slot<'_, StructWithVectors<'_>>, _: <StructWithVectors<'_> as Constrained>::Constraint, ) -> Result<(), ValidationError>
Validate a slot of this type against a constraint. Can be called when
pointers/envelopes are just presence markers.
Source§impl<'de> Debug for StructWithVectors<'de>
impl<'de> Debug for StructWithVectors<'de>
Source§impl<'de, ___D> Decode<___D> for StructWithVectors<'de>where
___D: InternalHandleDecoder + Decoder<'de> + ?Sized,
impl<'de, ___D> Decode<___D> for StructWithVectors<'de>where
___D: InternalHandleDecoder + Decoder<'de> + ?Sized,
Source§impl<'a, ___E> Encode<StructWithVectors<'static>, ___E> for &'a StructWithVectorswhere
___E: InternalHandleEncoder + Encoder + ?Sized,
impl<'a, ___E> Encode<StructWithVectors<'static>, ___E> for &'a StructWithVectorswhere
___E: InternalHandleEncoder + Encoder + ?Sized,
Source§fn encode(
self,
encoder_: &mut ___E,
out_: &mut MaybeUninit<StructWithVectors<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder_: &mut ___E, out_: &mut MaybeUninit<StructWithVectors<'static>>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<___E> Encode<StructWithVectors<'static>, ___E> for StructWithVectorswhere
___E: InternalHandleEncoder + Encoder + ?Sized,
impl<___E> Encode<StructWithVectors<'static>, ___E> for StructWithVectorswhere
___E: InternalHandleEncoder + Encoder + ?Sized,
Source§fn encode(
self,
encoder_: &mut ___E,
out_: &mut MaybeUninit<StructWithVectors<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder_: &mut ___E, out_: &mut MaybeUninit<StructWithVectors<'static>>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<___E, T0, T1, T2, T3, T4, T5, T6> Encode<StructWithVectors<'static>, ___E> for StructWithVectors<T0, T1, T2, T3, T4, T5, T6>where
___E: InternalHandleEncoder + Encoder + ?Sized,
T0: Encode<Vector<'static, Int32>, ___E>,
T1: Encode<Vector<'static, Int32>, ___E>,
T2: Encode<Vector<'static, String<'static>>, ___E>,
T3: Encode<Vector<'static, OptionalString<'static>>, ___E>,
T4: Encode<Vector<'static, StructWithInt>, ___E>,
T5: Encode<Vector<'static, Box<'static, StructWithInt>>, ___E>,
T6: Encode<Vector<'static, Vector<'static, Int32>>, ___E>,
impl<___E, T0, T1, T2, T3, T4, T5, T6> Encode<StructWithVectors<'static>, ___E> for StructWithVectors<T0, T1, T2, T3, T4, T5, T6>where
___E: InternalHandleEncoder + Encoder + ?Sized,
T0: Encode<Vector<'static, Int32>, ___E>,
T1: Encode<Vector<'static, Int32>, ___E>,
T2: Encode<Vector<'static, String<'static>>, ___E>,
T3: Encode<Vector<'static, OptionalString<'static>>, ___E>,
T4: Encode<Vector<'static, StructWithInt>, ___E>,
T5: Encode<Vector<'static, Box<'static, StructWithInt>>, ___E>,
T6: Encode<Vector<'static, Vector<'static, Int32>>, ___E>,
Source§fn encode(
self,
encoder_: &mut ___E,
out_: &mut MaybeUninit<StructWithVectors<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder_: &mut ___E, out_: &mut MaybeUninit<StructWithVectors<'static>>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<'de> FromWire<StructWithVectors<'de>> for StructWithVectors
impl<'de> FromWire<StructWithVectors<'de>> for StructWithVectors
Source§fn from_wire(wire: StructWithVectors<'de>) -> StructWithVectors
fn from_wire(wire: StructWithVectors<'de>) -> StructWithVectors
Converts the given owned value to this type.
§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl<'de> FromWireRef<StructWithVectors<'de>> for StructWithVectors
impl<'de> FromWireRef<StructWithVectors<'de>> for StructWithVectors
Source§fn from_wire_ref(wire: &StructWithVectors<'de>) -> StructWithVectors
fn from_wire_ref(wire: &StructWithVectors<'de>) -> StructWithVectors
Converts the given reference to this type.
Source§impl<'de> IntoNatural for StructWithVectors<'de>
impl<'de> IntoNatural for StructWithVectors<'de>
Source§type Natural = StructWithVectors
type Natural = StructWithVectors
A good default type for this wire type to convert into.
§fn into_natural(self) -> Self::Natural
fn into_natural(self) -> Self::Natural
Converts this type into its natural equivalent.
Source§impl Wire for StructWithVectors<'static>
impl Wire for StructWithVectors<'static>
Source§type Narrowed<'de> = StructWithVectors<'de>
type Narrowed<'de> = StructWithVectors<'de>
The narrowed wire type, restricted to the
'de lifetime.Source§fn zero_padding(out_: &mut MaybeUninit<StructWithVectors<'static>>)
fn zero_padding(out_: &mut MaybeUninit<StructWithVectors<'static>>)
Writes zeroes to the padding for this type, if any.
Auto Trait Implementations§
impl<'de> Freeze for StructWithVectors<'de>
impl<'de> RefUnwindSafe for StructWithVectors<'de>
impl<'de> Send for StructWithVectors<'de>
impl<'de> Sync for StructWithVectors<'de>
impl<'de> Unpin for StructWithVectors<'de>
impl<'de> UnsafeUnpin for StructWithVectors<'de>
impl<'de> !UnwindSafe for StructWithVectors<'de>
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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]