#[repr(C)]pub struct WireTable<'buf> { /* private fields */ }
Expand description
A FIDL table
Implementations§
Source§impl<'buf> WireTable<'buf>
impl<'buf> WireTable<'buf>
Sourcepub fn encode_len(slot: Slot<'_, Self>, len: usize)
pub fn encode_len(slot: Slot<'_, Self>, len: usize)
Encodes that a table contains len
values in a slot.
Sourcepub fn decode_with<D: Decoder<'buf> + ?Sized>(
slot: Slot<'_, Self>,
decoder: &mut D,
f: impl Fn(i64, Slot<'_, WireEnvelope>, &mut D) -> Result<(), DecodeError>,
) -> Result<(), DecodeError>
pub fn decode_with<D: Decoder<'buf> + ?Sized>( slot: Slot<'_, Self>, decoder: &mut D, f: impl Fn(i64, Slot<'_, WireEnvelope>, &mut D) -> Result<(), DecodeError>, ) -> Result<(), DecodeError>
Decodes the fields of the table with a decoding function.
The decoding function receives the ordinal of the field, its slot, and the decoder.
Sourcepub fn get(&self, ordinal: usize) -> Option<&WireEnvelope>
pub fn get(&self, ordinal: usize) -> Option<&WireEnvelope>
Returns a reference to the envelope for the given ordinal, if any.
Sourcepub fn get_mut(&mut self, ordinal: usize) -> Option<&mut WireEnvelope>
pub fn get_mut(&mut self, ordinal: usize) -> Option<&mut WireEnvelope>
Returns a mutable reference to the envelope for the given ordinal, if any.
Auto Trait Implementations§
impl<'buf> Freeze for WireTable<'buf>
impl<'buf> RefUnwindSafe for WireTable<'buf>
impl<'buf> !Send for WireTable<'buf>
impl<'buf> !Sync for WireTable<'buf>
impl<'buf> Unpin for WireTable<'buf>
impl<'buf> !UnwindSafe for WireTable<'buf>
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