pub struct WireOptionalVector<'buf, T> { /* private fields */ }
Expand description
An optional FIDL vector
Implementations§
Source§impl<'buf, T> WireOptionalVector<'buf, T>
impl<'buf, T> WireOptionalVector<'buf, 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 take(&mut self) -> Option<WireVector<'buf, T>>
pub fn take(&mut self) -> Option<WireVector<'buf, T>>
Takes the vector out of the option, if any.
Sourcepub fn as_ref(&self) -> Option<&WireVector<'buf, T>>
pub fn as_ref(&self) -> Option<&WireVector<'buf, T>>
Gets a reference to the vector, if any.
Sourcepub fn as_mut(&mut self) -> Option<&mut WireVector<'buf, T>>
pub fn as_mut(&mut self) -> Option<&mut WireVector<'buf, T>>
Gets a mutable 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<'buf, D: Decoder<'buf> + ?Sized, T: Decode<D>> Decode<D> for WireOptionalVector<'buf, T>
impl<'buf, D: Decoder<'buf> + ?Sized, T: Decode<D>> Decode<D> for WireOptionalVector<'buf, T>
Source§impl<T> Default for WireOptionalVector<'_, T>
impl<T> Default for WireOptionalVector<'_, T>
Source§impl<T> Drop for WireOptionalVector<'_, T>
impl<T> Drop for WireOptionalVector<'_, T>
Auto Trait Implementations§
impl<'buf, T> Freeze for WireOptionalVector<'buf, T>
impl<'buf, T> RefUnwindSafe for WireOptionalVector<'buf, T>where
T: RefUnwindSafe,
impl<'buf, T> Send for WireOptionalVector<'buf, T>where
T: Send,
impl<'buf, T> Sync for WireOptionalVector<'buf, T>where
T: Sync,
impl<'buf, T> Unpin for WireOptionalVector<'buf, T>
impl<'buf, T> !UnwindSafe for WireOptionalVector<'buf, 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