Struct WireTable
#[repr(C)]pub struct WireTable { /* private fields */ }
Expand description
A FIDL table
Implementations§
§impl WireTable
impl WireTable
pub fn encode_len(slot: Slot<'_, WireTable>, len: usize)
pub fn encode_len(slot: Slot<'_, WireTable>, len: usize)
Encodes that a table contains len
values in a slot.
pub fn decode_with<D>(
slot: Slot<'_, WireTable>,
decoder: &mut D,
f: impl Fn(i64, Slot<'_, WireEnvelope>, &mut D) -> Result<(), DecodeError>,
) -> Result<(), DecodeError>
pub fn decode_with<D>( slot: Slot<'_, WireTable>, 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.
pub 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.
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