pub struct WireOptionalVector<'de, T> { /* private fields */ }
Expand description
An optional FIDL vector
Implementations§
Source§impl<'de, T> WireOptionalVector<'de, T>
impl<'de, T> WireOptionalVector<'de, T>
Sourcepub fn encode_present(out: &mut MaybeUninit<Self>, len: u64)
pub fn encode_present(out: &mut MaybeUninit<Self>, len: u64)
Encodes that a vector is present in a slot.
Sourcepub fn encode_absent(out: &mut MaybeUninit<Self>)
pub fn encode_absent(out: &mut MaybeUninit<Self>)
Encodes that a vector is absent in a slot.
Sourcepub fn as_ref(&self) -> Option<&WireVector<'_, T>>
pub fn as_ref(&self) -> Option<&WireVector<'_, T>>
Gets a reference to the vector, if any.
Sourcepub fn to_option(self) -> Option<WireVector<'de, T>>
pub fn to_option(self) -> Option<WireVector<'de, T>>
Converts the optional wire vector to an Option<WireVector>
.
Trait Implementations§
Source§impl<T: Debug> Debug for WireOptionalVector<'_, T>
impl<T: Debug> Debug for WireOptionalVector<'_, T>
Source§impl<T> Drop for WireOptionalVector<'_, T>
impl<T> Drop for WireOptionalVector<'_, T>
Source§impl<T: FromWire<W>, W> FromWireOption<WireOptionalVector<'_, W>> for Vec<T>
impl<T: FromWire<W>, W> FromWireOption<WireOptionalVector<'_, W>> for Vec<T>
Source§fn from_wire_option(wire: WireOptionalVector<'_, W>) -> Option<Self>
fn from_wire_option(wire: WireOptionalVector<'_, W>) -> Option<Self>
Converts the given
wire
to an option of this type.Source§impl<T: FromWireRef<W>, W> FromWireOptionRef<WireOptionalVector<'_, W>> for Vec<T>
impl<T: FromWireRef<W>, W> FromWireOptionRef<WireOptionalVector<'_, W>> for Vec<T>
Source§fn from_wire_option_ref(wire: &WireOptionalVector<'_, W>) -> Option<Self>
fn from_wire_option_ref(wire: &WireOptionalVector<'_, W>) -> Option<Self>
Converts the given
wire
reference to an option of this type.Source§impl<T: Wire> Wire for WireOptionalVector<'static, T>
impl<T: Wire> Wire for WireOptionalVector<'static, T>
Source§type Decoded<'de> = WireOptionalVector<'de, <T as Wire>::Decoded<'de>>
type Decoded<'de> = WireOptionalVector<'de, <T as Wire>::Decoded<'de>>
The decoded wire type, restricted to the
'de
lifetime.Source§fn zero_padding(out: &mut MaybeUninit<Self>)
fn zero_padding(out: &mut MaybeUninit<Self>)
Writes zeroes to the padding for this type, if any.
Auto Trait Implementations§
impl<'de, T> Freeze for WireOptionalVector<'de, T>
impl<'de, T> RefUnwindSafe for WireOptionalVector<'de, T>where
T: RefUnwindSafe,
impl<'de, T> Send for WireOptionalVector<'de, T>where
T: Send,
impl<'de, T> Sync for WireOptionalVector<'de, T>where
T: Sync,
impl<'de, T> Unpin for WireOptionalVector<'de, T>
impl<'de, T> !UnwindSafe for WireOptionalVector<'de, T>
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