pub struct Table<'de> { /* private fields */ }Expand description
A FIDL table
Implementations§
Source§impl<'de> Table<'de>
impl<'de> Table<'de>
Sourcepub fn encode_len(out: &mut MaybeUninit<Self>, len: usize)
pub fn encode_len(out: &mut MaybeUninit<Self>, len: usize)
Encodes that a table contains len values in a slot.
Sourcepub fn decode_with<D: Decoder<'de> + ?Sized>(
slot: Slot<'_, Self>,
decoder: &mut D,
f: impl Fn(i64, Slot<'_, Envelope>, &mut D) -> Result<(), DecodeError>,
) -> Result<(), DecodeError>
pub fn decode_with<D: Decoder<'de> + ?Sized>( slot: Slot<'_, Self>, decoder: &mut D, f: impl Fn(i64, Slot<'_, Envelope>, &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.
Trait Implementations§
Source§impl Constrained for Table<'_>
impl Constrained for Table<'_>
Source§type Constraint = ()
type Constraint = ()
Type of constraint information for this type.
Source§fn validate(
_: Slot<'_, Self>,
_: Self::Constraint,
) -> Result<(), ValidationError>
fn validate( _: Slot<'_, Self>, _: Self::Constraint, ) -> Result<(), ValidationError>
Validate a slot of this type against a constraint. Can be called when
pointers/envelopes are just presence markers.
Auto Trait Implementations§
impl<'de> Freeze for Table<'de>
impl<'de> RefUnwindSafe for Table<'de>
impl<'de> Send for Table<'de>
impl<'de> Sync for Table<'de>
impl<'de> Unpin for Table<'de>
impl<'de> !UnwindSafe for Table<'de>
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