pub struct WireOptionalVector<T> { /* private fields */ }
Expand description
An optional FIDL vector
Implementations§
Source§impl<T> WireOptionalVector<T>
impl<T> WireOptionalVector<T>
Sourcepub fn encode_present(slot: Slot<'_, Self>, len: u64)
pub fn encode_present(slot: Slot<'_, Self>, len: u64)
Encodes that a vector is present in a slot.
Sourcepub fn encode_absent(slot: Slot<'_, Self>)
pub fn encode_absent(slot: Slot<'_, 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.
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: TakeFrom<WT>, WT> TakeFrom<WireOptionalVector<WT>> for Option<Vec<T>>
impl<T: TakeFrom<WT>, WT> TakeFrom<WireOptionalVector<WT>> for Option<Vec<T>>
Source§fn take_from(from: &WireOptionalVector<WT>) -> Self
fn take_from(from: &WireOptionalVector<WT>) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.Source§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreSource§impl<T> ZeroPadding for WireOptionalVector<T>
impl<T> ZeroPadding for WireOptionalVector<T>
Source§unsafe fn zero_padding(ptr: *mut Self)
unsafe fn zero_padding(ptr: *mut Self)
Writes zeroes to the padding for this type, if any. Read more
Auto Trait Implementations§
impl<T> Freeze for WireOptionalVector<T>
impl<T> RefUnwindSafe for WireOptionalVector<T>where
T: RefUnwindSafe,
impl<T> Send for WireOptionalVector<T>where
T: Send,
impl<T> Sync for WireOptionalVector<T>where
T: Sync,
impl<T> Unpin for WireOptionalVector<T>
impl<T> UnwindSafe for WireOptionalVector<T>where
T: RefUnwindSafe,
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