#[repr(C)]pub struct WireTable { /* private fields */ }
Expand description
A FIDL table
Implementations§
Source§impl WireTable
impl WireTable
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 + ?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 + ?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.
Trait Implementations§
Source§impl ZeroPadding for WireTable
impl ZeroPadding for WireTable
Source§unsafe fn zero_padding(_: *mut Self)
unsafe fn zero_padding(_: *mut Self)
Writes zeroes to the padding for this type, if any. Read more
Auto Trait Implementations§
impl Freeze for WireTable
impl RefUnwindSafe for WireTable
impl !Send for WireTable
impl !Sync for WireTable
impl Unpin for WireTable
impl UnwindSafe for WireTable
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